[Tile-serving] [osm2pgsql-dev/osm2pgsql] Make sure identifiers are in line with policy (Issue #2361)
Jochen Topf
notifications at github.com
Fri Jul 18 20:46:02 UTC 2025
joto created an issue (osm2pgsql-dev/osm2pgsql#2361)
Identifiers for classes, functions, classes etc. should [follow our coding styles](https://github.com/osm2pgsql-dev/osm2pgsql/blob/master/CONTRIBUTING.md#code-style). Most use lower case with underscore, classes have postfix `_t` etc.
clang-tidy can check this. See https://clang.llvm.org/extra/clang-tidy/checks/readability/identifier-naming.html .
Here is a first, incomplete try at a config snippet which can be added to `.clang-tidy`:
```
- key: readability-identifier-naming.ClassCase
value: lower_case
- key: readability-identifier-naming.ClassSuffix
value: _t
- key: readability-identifier-naming.PrivateMemberPrefix
value: m_
- key: readability-identifier-naming.StructCase
value: lower_case
- key: readability-identifier-naming.EnumCase
value: lower_case
- key: readability-identifier-naming.FunctionCase
value: lower_case
- key: readability-identifier-naming.FunctionIgnoredRegexp
value: luaX.*
- key: readability-identifier-naming.VariableCase
value: lower_case
- key: readability-identifier-naming.GlobalConstantCase
value: UPPER_CASE
- key: readability-identifier-naming.NamespaceCase
value: lower_case
```
--
Reply to this email directly or view it on GitHub:
https://github.com/osm2pgsql-dev/osm2pgsql/issues/2361
You are receiving this because you are subscribed to this thread.
Message ID: <osm2pgsql-dev/osm2pgsql/issues/2361 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20250718/102d7e90/attachment.htm>
More information about the Tile-serving
mailing list