CMake: Use C++17 for macOs build
[smuview/gsi.git] / .clang-tidy
blob74425e784b26465b034406c40c172dce0d0198bb
1 # Disabled checks:
2 # - misc-definitions-in-headers
3 #     TODO: Used in deviceutil.hpp and datautil.hpp. Maybe to const static?
4 # - misc-non-private-member-variables-in-classes
5 #     protected member variables are used all over the place...
6 # - misc-static-assert
7 #     TODO: Replace all `assert("ex")` with `throw Ex()` and activate check!
8 # - performance-unnecessary-value-param
9 #     TODO: !
10 # - readability-avoid-const-params-in-decls
11 #     TODO: Keep Decl and Def signatures the same! Recheck after
12 #     performance-unnecessary-value-param solved! Maybe `const type` makes
13 #     no sense:
14 #     https://stackoverflow.com/questions/52916410/why-is-const-allowed-in-function-declarations
15 # - readability-braces-around-statements
16 #     Even with `ShortStatementLines` = 3 there are too many false positives.
17 # -readability-convert-member-functions-to-static,
18 #     TODO: Could this be useful in some cases?
19 # - readability-inconsistent-declaration-parameter-name
20 #     This check shows to many false positives for Qt signal declarations. We can
21 #     use CppChecks "funcArgNamesDifferent" instead.
22 # - readability-magic-numbers
23 #     Magic numbers are ok. Maybe replace with macros(?) in the future?
25 # TODO:
26 # - google-*,
27 #   -google-readability-braces-around-statements,
28 #   -google-readability-todo,
29 # - modernize-*,
30 #   -modernize-raw-string-literal
32 Checks: >-
33   bugprone-*,
34   clang-diagnostic-*,
35   clang-analyzer-*,
36   google-explicit-constructor,
37   misc-*,
38   -misc-definitions-in-headers,
39   -misc-non-private-member-variables-in-classes,
40   -misc-static-assert,
41   performance-*,
42   -performance-unnecessary-value-param,
43   readability-*,
44   -readability-avoid-const-params-in-decls,
45   -readability-braces-around-statements,
46   -readability-convert-member-functions-to-static,
47   -readability-inconsistent-declaration-parameter-name,
48   -readability-magic-numbers,
50 WarningsAsErrors:      ''
51 HeaderFilterRegex:     'src/.*'
52 AnalyzeTemporaryDtors: false
53 FormatStyle:           none
54 User:                  frank
55 CheckOptions:
56   - key:             cert-dcl16-c.NewSuffixes
57     value:           'L;LL;LU;LLU'
58   - key:             cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
59     value:           '1'
60   - key:             google-readability-braces-around-statements.ShortStatementLines
61     value:           '1'
62   - key:             google-readability-function-size.StatementThreshold
63     value:           '800'
64   - key:             google-readability-namespace-comments.ShortNamespaceLines
65     value:           '10'
66   - key:             google-readability-namespace-comments.SpacesBeforeComments
67     value:           '2'
68   - key:             modernize-loop-convert.MaxCopySize
69     value:           '16'
70   - key:             modernize-loop-convert.MinConfidence
71     value:           reasonable
72   - key:             modernize-loop-convert.NamingStyle
73     value:           CamelCase
74   - key:             modernize-pass-by-value.IncludeStyle
75     value:           llvm
76   - key:             modernize-replace-auto-ptr.IncludeStyle
77     value:           llvm
78   - key:             modernize-use-nullptr.NullMacros
79     value:           'NULL'
80   - key:             readability-braces-around-statements.ShortStatementLines
81     value:           '3'
82   - key:             readability-implicit-bool-conversion.AllowPointerConditions
83     value:           '1'
84   - key:             readability-implicit-bool-conversion.AllowIntegerConditions
85     value:           '1'
86   - key:             readability-redundant-member-init.IgnoreBaseInCopyConstructors
87     value:           '1'