]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Finally fix the clang-tidy issues. 14788/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 21 Oct 2024 07:52:16 +0000 (09:52 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 21 Oct 2024 07:55:39 +0000 (09:55 +0200)
Root cause was the slightly different parsing or the Checks: line, newer version handle the single quotes differently.
Also remove two entries that are not present on older clang-tidy implementations.

.clang-tidy.bugs
.clang-tidy.full

index 612bcf370c7804edde28a7e40e01bb6d3e30c3e5..f6499ffc38fe3bf6590adf92e9e38ab8ae073ea5 100644 (file)
@@ -1,17 +1,18 @@
 ---
 FormatStyle: none
-HeaderFileExtensions:
-  - h
-  - hh
-  - hpp
-ImplementationFileExtensions:
-  - c
-  - cc
-  - cpp
+# Older (pre 19) versions of clang-tidy do not grok these
+# HeaderFileExtensions:
+#  - h
+#  - hh
+#  - hpp
+#ImplementationFileExtensions:
+#  - c
+#  - cc
+#  - cpp
 WarningsAsErrors: ''
 HeaderFilterRegex: ''
 Checks: |
-  'clang-diagnostic-*,clang-analyzer-*,bugprone-*,concurrency-*,-modernize-use-trailing-return-type,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-performance-avoid-endl'
+  clang-diagnostic-*,clang-analyzer-*,bugprone-*,concurrency-*,-modernize-use-trailing-return-type,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-performance-avoid-endl
 # yamllint disable rule:line-length
 CheckOptions:
   - key: bugprone-string-constructor.LargeLengthThreshold
index 3c73e19b47da9fbdbe558afb02b749ecd7f0a039..ff0eb7355008333155d69d947831553986a6acec 100644 (file)
@@ -1,17 +1,18 @@
 ---
-FormatStyle: none
-HeaderFileExtensions:
-  - h
-  - hh
-  - hpp
-ImplementationFileExtensions:
-  - c
-  - cc
-  - cpp
+FormatStyle: non
+# Older (pre 19) versions of clang-tidy do not grok these
+#HeaderFileExtensions:
+#  - h
+#  - hh
+#  - hpp
+#ImplementationFileExtensions:
+#  - c
+#  - cc
+#  - cpp
 WarningsAsErrors: ''
 HeaderFilterRegex: ''
 Checks: |
-  'clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,bugprone-*,concurrency-*,modernize-*,performance-*,portability-*,readability-*,-modernize-use-trailing-return-type,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-avoid-do-while,-cppcoreguidelines-avoid-const-or-ref-data-members,-performance-avoid-endl'
+  clang-diagnostic-*,clang-analyzer-*,cppcoreguidelines-*,bugprone-*,concurrency-*,modernize-*,performance-*,portability-*,readability-*,-modernize-use-trailing-return-type,-readability-magic-numbers,-cppcoreguidelines-avoid-magic-numbers,-cppcoreguidelines-pro-type-union-access,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-avoid-do-while,-cppcoreguidelines-avoid-const-or-ref-data-members,-performance-avoid-endl
 # yamllint disable rule:line-length
 CheckOptions:
   - key: readability-suspicious-call-argument.PrefixSimilarAbove