• Home
  • Raw
  • Download

Lines Matching +full:non +full:- +full:array

6 # http://www.apache.org/licenses/LICENSE-2.0
14 option(PANDA_ENABLE_CLANG_TIDY "Enable clang-tidy checks during compilation" true)
16 # There seems to be a bug in either clang-tidy or CMake:
17 # When clang/gcc is used for cross-compilation, it is ran on host and use definitions and options f…
18 # For example for arm32 cross-compilation Clang-Tidy:
19 # - don't know about -march=armv7-a
20 # - believes that size of pointer is 64 instead of 32 for aarch32
30 # Currently we fix a certain version of clang-tidy to avoid unstable linting,
32 set(panda_clang_tidy "clang-tidy-9")
34 # Require clang-tidy
38 DOC "Path to clang-tidy executable")
40 …message(FATAL_ERROR "clang-tidy not found, but requested for build. Use -DPANDA_ENABLE_CLANG_TIDY=…
45 message(STATUS "clang-tidy found: ${CLANG_TIDY}")
46 # NB! Even if config is malformed, clang-tidy -dump-config returns 0 on failure.
49 COMMAND ${CLANG_TIDY} -dump-config
56 # Create a preprocessor definition that depends on .clang-tidy content so
57 # the compile command will change when .clang-tidy changes. This ensures
58 # that a subsequent build re-runs clang-tidy on all sources even if they
60 # definition. We add it to targets on which we run clang-tidy just to
61 # get the build dependency on the .clang-tidy file.
62 file(SHA1 ${CMAKE_CURRENT_SOURCE_DIR}/.clang-tidy clang_tidy_sha1)
65 configure_file(${PANDA_ROOT}/.clang-tidy ${PANDA_BINARY_ROOT}/.clang-tidy COPYONLY)
68 # Add a target to clang-tidy checks.
74 # "-check-to-be-disabled"
75 # "-glob-to-be-disabled-*"
76 # "check-to-be-enabled"
77 # "glob-to-be-enabled-*"
80 # This function makes target_name to be co-compiled with clang-tidy.
81 # The list of CHECKS allows to pass per-target checks in additions to
82 # global ones (see below). CHECKS follow clang-tidy syntax of checks.
89 # * We maintain the list of global exceptions in this function (not in .clang-tidy)
92 # * -header-filter is set to check only headers of the target_name. It is supposed
112 "-config="
113 "-format-style=file"
114 …"-header-filter='^(${CMAKE_SOURCE_DIR}|${CMAKE_BINARY_DIR}).*/(assembler|compiler|debugger|libpand…
115 "-p='${PANDA_BINARY_ROOT}'"
119 …# aliases for other checks(here full list: https://clang.llvm.org/extra/clang-tidy/checks/list.htm…
120 "-hicpp-braces-around-statements" # alias for readability-braces-around-statements
121 … "-google-readability-braces-around-statements" # alias for readability-braces-around-statements
122 "-google-readability-function-size" # alias for readability-function-size
123 "-hicpp-explicit-conversions" # alias for google-explicit-constructor
124 "-hicpp-function-size" # alias for readability-function-size
125 "-hicpp-no-array-decay" # alias for cppcoreguidelines-pro-bounds-array-to-pointer-decay
126 "-hicpp-avoid-c-arrays" # alias for modernize-avoid-c-arrays
127 "-cppcoreguidelines-avoid-c-arrays" # alias for modernize-avoid-c-arrays
128 "-cppcoreguidelines-avoid-magic-numbers" # alias for readability-magic-numbers
129 …"-cppcoreguidelines-non-private-member-variables-in-classes" # alias for misc-non-private-member-v…
130 "-cert-dcl03-c" # alias for misc-static-assert
131 "-hicpp-static-assert" # alias for misc-static-assert
132 "-hicpp-no-malloc" # alias for cppcoreguidelines-no-malloc
133 "-hicpp-vararg" # alias for cppcoreguidelines-pro-type-vararg
134 "-hicpp-member-init" # alias for cppcoreguidelines-pro-type-member-init
135 "-hicpp-move-const-arg" # alias for performance-move-const-arg
137 … "-bugprone-macro-parentheses" # disabled because it is hard to write macroses with types with it
138 "-llvm-header-guard" # disabled because of incorrect root prefix
139 "-llvm-include-order" # disabled because conflicts with the clang-format
140 "-readability-identifier-naming" # disabled because we will use little-hump-style
141 "google-runtime-references" # disabled to use non-const references
142 …"-fuchsia-trailing-return" # disabled because we have a lot of false positives and it is stylisti…
143 …"-fuchsia-default-arguments-calls" # disabled because we use functions with default arguments a lot
144 …"-fuchsia-default-arguments-declarations" # disabled because we use functions with default argumen…
145 "-modernize-use-trailing-return-type" # disabled as a stylistic check
146 …"-clang-analyzer-optin.cplusplus.UninitializedObject" # disabled due to instability on clang-9 and…
147 "-readability-static-accessed-through-instance"
148 "-readability-convert-member-functions-to-static"
149 "-bugprone-sizeof-expression"
150 "-bugprone-branch-clone"
151 "-cppcoreguidelines-owning-memory"
152 "-cppcoreguidelines-pro-bounds-array-to-pointer-decay"
153 "-cppcoreguidelines-pro-bounds-constant-array-index"
154 "-cppcoreguidelines-pro-type-const-cast"
155 "-cppcoreguidelines-pro-type-reinterpret-cast"
156 "-cppcoreguidelines-pro-type-static-cast-downcast"
157 "-fuchsia-default-arguments"
158 "-fuchsia-overloaded-operator"
159 "-modernize-use-nodiscard"
160 "-cert-dcl50-cpp" # ailas for cppcoreguidelines-pro-type-vararg
162 "-hicpp-noexcept-move" # For some reason become failed in DEFAULT_MOVE_SEMANTIC
163 "-performance-noexcept-move-constructor" # Same as above
168 set(clang_tidy_checks "-checks=*,${default_exceptions}")