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/[email protected]>
_______________________________________________
Tile-serving mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/tile-serving

Reply via email to