Codebase list osm2pgsql / c2f6e999-94f0-4f5d-be3b-f515842ef619/upstream .clang-tidy
c2f6e999-94f0-4f5d-be3b-f515842ef619/upstream

Tree @c2f6e999-94f0-4f5d-be3b-f515842ef619/upstream (Download .tar.gz)

.clang-tidy @c2f6e999-94f0-4f5d-be3b-f515842ef619/upstreamraw · history · blame

---
Checks: '*,-android-cloexec-*,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-cppcoreguidelines-pro-bounds-pointer-arithmetic,-cppcoreguidelines-pro-type-cstyle-cast,-cppcoreguidelines-pro-type-reinterpret-cast,-cppcoreguidelines-pro-type-static-cast-downcast,-cppcoreguidelines-pro-type-vararg,-fuchsia-*,-google-readability-casting,-google-readability-todo,-hicpp-named-parameter,-hicpp-no-array-decay,-hicpp-vararg,-llvm-include-order,-llvm-header-guard,-llvmlibc-*,-misc-no-recursion,-modernize-use-trailing-return-type,-readability-implicit-bool-conversion,-readability-named-parameter,-readability-magic-numbers'
#
#  cppcoreguidelines-pro-type-cstyle-cast
#  google-build-using-namespace
#  google-readability-casting
#  llvm-header-guard
#  llvm-include-order
#  hicpp-named-parameter
#  readability-named-parameter
#    Differ from our style guidelines
#
#  android-cloexec-*
#    O_CLOEXEC isn't available on Windows
#
#  cppcoreguidelines-avoid-magic-numbers
#  readability-magic-numbers
#    We have a lot of these and should probably at least fix some. But remove
#    it for the time being because with it we can't see the forest for the
#    trees. (TODO)
#
#  cppcoreguidelines-avoid-non-const-global-variables
#    Not wrong to avoid those, but we have a few that are hard to avoid.
#    Also this warning is triggered many times by constructs in the Catch test
#    framework.
#
#  cppcoreguidelines-owning-memory
#  cppcoreguidelines-pro-bounds-array-to-pointer-decay
#  cppcoreguidelines-pro-bounds-pointer-arithmetic
#  cppcoreguidelines-pro-type-static-cast-downcast
#  cppcoreguidelines-pro-type-vararg
#  hicpp-no-array-decay
#  hicpp-vararg
#    When you need them, you need them
#
#  fuchsia-*
#    Very specific and way too strict
#
#  google-readability-todo
#    We are not that organized
#
#  llvmlibc-*
#    Not applicable
#
#  misc-no-recursion
#    Nothing wrong with recursion
#
#  modernize-use-trailing-return-type
#    We are not that modern...
#
#  readability-implicit-bool-conversion
#    Readability is a matter of opinion here
#
#WarningsAsErrors: '*'
HeaderFilterRegex: '\/src\/'
CheckOptions:
    - key: cppcoreguidelines-special-member-functions.AllowSoleDefaultDtor
      value: true
    - key: hicpp-special-member-functions.AllowSoleDefaultDtor
      value: true
    - key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
      value: true
    - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
      value: true
...