2024-11-20 04:27:39 +08:00
|
|
|
---
|
|
|
|
|
Checks:
|
|
|
|
|
- "-*"
|
2024-11-20 06:10:26 +08:00
|
|
|
- "misc-include-cleaner"
|
|
|
|
|
- "bugprone-argument-comment"
|
2024-12-18 06:41:42 +08:00
|
|
|
- "bugprone-assert-side-effect"
|
|
|
|
|
- "bugprone-assignment-in-if-condition"
|
|
|
|
|
- "bugprone-bad-signal-to-kill-thread"
|
|
|
|
|
- "bugprone-bool-pointer-implicit-conversion"
|
|
|
|
|
- "bugprone-branch-clone"
|
|
|
|
|
- "bugprone-casting-through-void"
|
|
|
|
|
- "bugprone-chained-comparison"
|
|
|
|
|
- "bugprone-compare-pointer-to-member-virtual-function"
|
|
|
|
|
- "bugprone-copy-constructor-init"
|
2024-12-20 04:55:14 +08:00
|
|
|
- "bugprone-crtp-constructor-accessibility"
|
2024-12-18 06:41:42 +08:00
|
|
|
- "bugprone-dangling-handle"
|
|
|
|
|
- "bugprone-dynamic-static-initializers"
|
|
|
|
|
- "-bugprone-easily-swappable-parameters"
|
|
|
|
|
- "bugprone-empty-catch"
|
2024-12-19 04:25:51 +08:00
|
|
|
# See https://github.com/CesiumGS/cesium-native/issues/348
|
2024-12-18 06:27:03 +08:00
|
|
|
#- "bugprone-exception-escape"
|
2024-12-18 06:41:42 +08:00
|
|
|
- "bugprone-fold-init-type"
|
|
|
|
|
- "bugprone-forward-declaration-namespace"
|
|
|
|
|
- "bugprone-forwarding-reference-overload"
|
|
|
|
|
- "bugprone-implicit-widening-of-multiplication-result"
|
|
|
|
|
- "bugprone-inaccurate-erase"
|
|
|
|
|
- "bugprone-inc-dec-in-conditions"
|
|
|
|
|
- "bugprone-incorrect-enable-if"
|
2024-12-19 02:04:47 +08:00
|
|
|
- "bugprone-incorrect-roundings"
|
|
|
|
|
- "bugprone-infinite-loop"
|
2024-12-19 05:59:50 +08:00
|
|
|
- "bugprone-unhandled-self-assignment"
|
2024-12-19 03:21:10 +08:00
|
|
|
- "bugprone-unchecked-optional-access"
|
2024-11-20 04:27:39 +08:00
|
|
|
|
2024-12-19 04:25:51 +08:00
|
|
|
- "bugprone-integer-division"
|
|
|
|
|
- "bugprone-lambda-function-name"
|
|
|
|
|
- "bugprone-macro-parentheses"
|
|
|
|
|
- "bugprone-macro-repeated-side-effects"
|
|
|
|
|
- "bugprone-misplaced-operator-in-strlen-in-alloc"
|
|
|
|
|
- "bugprone-misplaced-pointer-arithmetic-in-alloc"
|
|
|
|
|
# Produces a lot of results that are just extra-verbose - skipping for now
|
2024-12-18 06:27:03 +08:00
|
|
|
#- "bugprone-misplaced-widening-cast"
|
2024-12-19 04:25:51 +08:00
|
|
|
- "bugprone-move-forwarding-reference"
|
|
|
|
|
- "bugprone-multi-level-implicit-pointer-conversion"
|
|
|
|
|
- "bugprone-multiple-new-in-one-expression"
|
|
|
|
|
- "bugprone-multiple-statement-macro"
|
|
|
|
|
- "bugprone-no-escape"
|
|
|
|
|
- "bugprone-non-zero-enum-to-bool-conversion"
|
|
|
|
|
- "bugprone-not-null-terminated-result"
|
|
|
|
|
- "bugprone-optional-value-conversion"
|
|
|
|
|
- "bugprone-parent-virtual-call"
|
|
|
|
|
- "bugprone-pointer-arithmetic-on-polymorphic-object"
|
|
|
|
|
- "bugprone-posix-return"
|
|
|
|
|
- "bugprone-redundant-branch-condition"
|
|
|
|
|
- "bugprone-reserved-identifier"
|
|
|
|
|
- "bugprone-return-const-ref-from-parameter"
|
2024-12-19 04:49:40 +08:00
|
|
|
- "bugprone-shared-ptr-array-mismatch"
|
|
|
|
|
- "bugprone-signal-handler"
|
|
|
|
|
- "bugprone-sizeof-container"
|
|
|
|
|
- "bugprone-sizeof-expression"
|
|
|
|
|
- "bugprone-spuriously-wake-up-functions"
|
|
|
|
|
- "bugprone-standalone-empty"
|
|
|
|
|
- "bugprone-string-constructor"
|
|
|
|
|
- "bugprone-string-integer-assignment"
|
|
|
|
|
- "bugprone-string-literal-with-embedded-nul"
|
|
|
|
|
- "bugprone-stringview-nullptr"
|
|
|
|
|
- "bugprone-suspicious-enum-usage"
|
|
|
|
|
- "bugprone-suspicious-include"
|
|
|
|
|
- "bugprone-suspicious-memory-comparison"
|
|
|
|
|
- "bugprone-suspicious-memset-usage"
|
|
|
|
|
- "bugprone-suspicious-missing-comma"
|
|
|
|
|
- "bugprone-suspicious-realloc-usage"
|
|
|
|
|
- "bugprone-suspicious-semicolon"
|
|
|
|
|
- "bugprone-suspicious-string-compare"
|
|
|
|
|
- "bugprone-suspicious-stringview-data-usage"
|
|
|
|
|
- "bugprone-swapped-arguments"
|
|
|
|
|
- "bugprone-terminating-continue"
|
|
|
|
|
- "bugprone-throw-keyword-missing"
|
|
|
|
|
- "bugprone-too-small-loop-variable"
|
|
|
|
|
- "bugprone-undefined-memory-manipulation"
|
|
|
|
|
- "bugprone-undelegated-constructor"
|
2024-12-18 06:27:03 +08:00
|
|
|
#- "bugprone-unhandled-exception-at-new"
|
2024-12-19 04:49:40 +08:00
|
|
|
- "bugprone-unique-ptr-array-mismatch"
|
|
|
|
|
- "bugprone-unsafe-functions"
|
|
|
|
|
- "bugprone-unused-local-non-trivial-variable"
|
|
|
|
|
- "bugprone-unused-raii"
|
|
|
|
|
- "bugprone-unused-return-value"
|
|
|
|
|
- "bugprone-use-after-move"
|
|
|
|
|
- "bugprone-virtual-near-miss"
|
2024-12-20 02:49:21 +08:00
|
|
|
- "cppcoreguidelines-avoid-capturing-lambda-coroutines"
|
|
|
|
|
- "cppcoreguidelines-avoid-goto"
|
|
|
|
|
- "cppcoreguidelines-avoid-reference-coroutine-parameters"
|
|
|
|
|
- "cppcoreguidelines-interfaces-global-init"
|
|
|
|
|
- "cppcoreguidelines-misleading-capture-default-by-value"
|
|
|
|
|
- "cppcoreguidelines-no-suspend-with-lock"
|
|
|
|
|
- "cppcoreguidelines-prefer-member-initializer"
|
|
|
|
|
- "cppcoreguidelines-pro-type-cstyle-cast"
|
|
|
|
|
- "cppcoreguidelines-pro-type-static-cast-downcast"
|
|
|
|
|
- "cppcoreguidelines-pro-type-union-access"
|
|
|
|
|
- "cppcoreguidelines-slicing"
|
2024-12-20 03:33:52 +08:00
|
|
|
- "google-runtime-int"
|
|
|
|
|
# We should enable this one at some point, but it produces a huge number of changes
|
|
|
|
|
# - "misc-const-correctness"
|
|
|
|
|
- "misc-misleading-bidrectional"
|
|
|
|
|
- "misc-misleading-identifier"
|
|
|
|
|
- "misc-misplaced-const"
|
|
|
|
|
- "misc-non-copyable-objects"
|
|
|
|
|
- "misc-redundant-expression"
|
|
|
|
|
- "misc-unused-parameters"
|
|
|
|
|
- "misc-unused-using-decls"
|
|
|
|
|
- "misc-use-anonymous-namespace"
|
|
|
|
|
- "misc-use-internal-linkage"
|
2024-12-20 04:20:19 +08:00
|
|
|
- "modernize-deprecated-headers"
|
2024-12-20 04:55:14 +08:00
|
|
|
#- "modernize-loop-convert"
|
2024-12-20 04:20:19 +08:00
|
|
|
- "modernize-make-shared"
|
|
|
|
|
- "modernize-make-unique"
|
|
|
|
|
- "modernize-min-max-use-initializer-list"
|
|
|
|
|
- "modernize-raw-string-literal"
|
|
|
|
|
- "modernize-redundant-void-arg"
|
|
|
|
|
- "modernize-replace-auto-ptr"
|
|
|
|
|
#- "modernize-type-traits"
|
|
|
|
|
#- "modernize-use-constraints"
|
|
|
|
|
- "modernize-use-emplace"
|
|
|
|
|
- "modernize-use-equals-default"
|
|
|
|
|
- "modernize-use-equals-delete"
|
|
|
|
|
- "modernize-use-nullptr"
|
|
|
|
|
- "modernize-use-starts-ends-with"
|
2025-01-17 10:42:52 +08:00
|
|
|
# The <numbers> header is unfortunately not available in Android NDK r25b,
|
|
|
|
|
# which is an important target for cesium-native via Unreal Engine.
|
|
|
|
|
#- "modernize-use-std-numbers"
|
2024-12-20 04:20:19 +08:00
|
|
|
#- "modernize-use-using"
|
2024-12-20 04:27:53 +08:00
|
|
|
- "performance-*"
|
|
|
|
|
- "-performance-enum-size"
|
2024-11-26 04:56:51 +08:00
|
|
|
- "-readability-redundant-member-init"
|
2024-11-20 04:27:39 +08:00
|
|
|
|
2024-12-19 04:49:40 +08:00
|
|
|
WarningsAsErrors: "*"
|
2024-11-20 04:27:39 +08:00
|
|
|
FormatStyle: none
|
|
|
|
|
CheckOptions:
|
|
|
|
|
- key: readability-implicit-bool-conversion.AllowPointerConditions
|
|
|
|
|
value: "true"
|
|
|
|
|
- key: cppcoreguidelines-rvalue-reference-param-not-moved.AllowPartialMove
|
|
|
|
|
value: "true"
|
|
|
|
|
- key: modernize-use-auto.RemoveStars
|
|
|
|
|
value: "true"
|
|
|
|
|
- key: misc-include-cleaner.IgnoreHeaders
|
2024-12-19 04:49:40 +08:00
|
|
|
value: ".*cesium-async\\+\\+\\.h;.*bits\/.*.h"
|
2024-12-21 04:30:31 +08:00
|
|
|
- key: performance-move-const-arg.CheckTriviallyCopyableMove
|
|
|
|
|
value: "false"
|
2024-11-20 04:27:39 +08:00
|
|
|
HeaderFilterRegex: ".*"
|
|
|
|
|
HeaderFileExtensions: ["h"]
|
2024-12-18 06:27:03 +08:00
|
|
|
ExcludeHeaderFilterRegex: ".*\\.ezvcpkg\/.*"
|
2024-11-20 04:27:39 +08:00
|
|
|
ImplementationFileExtensions: ["cpp"]
|