2020-10-12 10:53:11 +00:00
|
|
|
# Why we disabled individual checks:
|
|
|
|
#
|
|
|
|
# clang-analyzer-optin.cplusplus.UninitializedObject
|
|
|
|
# TODO: Occurs commonly in graphics_threaded.h
|
|
|
|
# clang-analyzer-optin.cplusplus.VirtualCall
|
|
|
|
# Occurs very commonly all over
|
|
|
|
# clang-analyzer-optin.performance.Padding
|
|
|
|
# Too annoying to always align for perfect padding
|
|
|
|
# clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
|
|
|
|
# TODO: Requires C11 to fix
|
2020-11-05 10:47:07 +00:00
|
|
|
# misc-unused-parameters
|
|
|
|
# TODO: Many changes
|
2023-10-05 20:11:38 +00:00
|
|
|
# misc-use-anonymous-namespace
|
|
|
|
# We don't want to use anonymous namespaces instead of static functions.
|
2023-10-05 20:33:52 +00:00
|
|
|
# bugprone-suspicious-realloc-usage
|
|
|
|
# We generally don't handle memory allocation failures.
|
2020-10-12 10:53:11 +00:00
|
|
|
|
|
|
|
Checks: >
|
|
|
|
-*,
|
2020-11-04 18:03:10 +00:00
|
|
|
bugprone-*,
|
2023-01-23 10:19:19 +00:00
|
|
|
-bugprone-assignment-in-if-condition,
|
2020-11-04 18:03:10 +00:00
|
|
|
-bugprone-branch-clone,
|
2022-01-22 12:24:45 +00:00
|
|
|
-bugprone-easily-swappable-parameters,
|
|
|
|
-bugprone-implicit-widening-of-multiplication-result,
|
2020-11-04 18:03:10 +00:00
|
|
|
-bugprone-incorrect-roundings,
|
|
|
|
-bugprone-integer-division,
|
|
|
|
-bugprone-macro-parentheses,
|
|
|
|
-bugprone-narrowing-conversions,
|
|
|
|
-bugprone-parent-virtual-call,
|
2020-12-22 11:28:37 +00:00
|
|
|
-bugprone-reserved-identifier,
|
2022-01-22 12:24:45 +00:00
|
|
|
-bugprone-suspicious-include,
|
2020-11-04 18:03:10 +00:00
|
|
|
-bugprone-unhandled-self-assignment,
|
2023-10-05 20:33:52 +00:00
|
|
|
-bugprone-suspicious-realloc-usage,
|
2020-10-12 10:53:11 +00:00
|
|
|
clang-analyzer-*,
|
|
|
|
-clang-analyzer-optin.cplusplus.UninitializedObject,
|
|
|
|
-clang-analyzer-optin.cplusplus.VirtualCall,
|
2022-01-23 18:04:01 +00:00
|
|
|
-clang-analyzer-optin.osx.cocoa.localizability.NonLocalizedStringChecker,
|
2020-10-12 10:53:11 +00:00
|
|
|
-clang-analyzer-optin.performance.Padding,
|
2022-01-23 18:04:01 +00:00
|
|
|
-clang-analyzer-osx.cocoa.RetainCount,
|
2020-10-12 10:53:11 +00:00
|
|
|
-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,
|
2022-01-23 17:56:37 +00:00
|
|
|
-clang-analyzer-security.insecureAPI.rand,
|
2022-05-26 10:13:36 +00:00
|
|
|
cppcoreguidelines-avoid-goto,
|
|
|
|
cppcoreguidelines-interfaces-global-init,
|
|
|
|
cppcoreguidelines-slicing,
|
|
|
|
cppcoreguidelines-virtual-class-destructor,
|
2020-11-05 10:47:07 +00:00
|
|
|
misc-*,
|
2023-01-23 10:19:19 +00:00
|
|
|
-misc-const-correctness,
|
2020-12-22 11:28:37 +00:00
|
|
|
-misc-no-recursion,
|
2020-11-05 10:47:07 +00:00
|
|
|
-misc-non-private-member-variables-in-classes,
|
|
|
|
-misc-static-assert,
|
|
|
|
-misc-unused-parameters,
|
2023-10-05 20:11:38 +00:00
|
|
|
-misc-use-anonymous-namespace,
|
2022-02-14 23:23:19 +00:00
|
|
|
modernize-avoid-bind,
|
|
|
|
modernize-concat-nested-namespaces,
|
2022-02-14 23:22:52 +00:00
|
|
|
modernize-deprecated-headers,
|
2022-02-14 23:23:19 +00:00
|
|
|
modernize-deprecated-ios-base-aliases,
|
2020-10-26 13:11:11 +00:00
|
|
|
modernize-loop-convert,
|
2022-02-14 23:05:46 +00:00
|
|
|
modernize-make-unique,
|
2022-02-14 23:09:48 +00:00
|
|
|
modernize-make-shared,
|
|
|
|
modernize-redundant-void-arg,
|
|
|
|
modernize-replace-auto-ptr,
|
|
|
|
modernize-replace-disallow-copy-and-assign-macro,
|
|
|
|
modernize-replace-random-shuffle,
|
|
|
|
modernize-shrink-to-fit,
|
2022-02-14 23:18:05 +00:00
|
|
|
modernize-unary-static-assert,
|
2022-02-14 23:12:52 +00:00
|
|
|
modernize-use-bool-literals,
|
2022-02-14 23:15:06 +00:00
|
|
|
modernize-use-emplace,
|
2022-02-14 23:17:57 +00:00
|
|
|
modernize-use-equals-default,
|
2022-02-14 23:19:41 +00:00
|
|
|
modernize-use-equals-delete,
|
2023-10-06 09:20:25 +00:00
|
|
|
modernize-use-override,
|
2022-02-14 23:23:19 +00:00
|
|
|
modernize-use-transparent-functors,
|
|
|
|
modernize-use-uncaught-exceptions,
|
2022-01-22 21:50:49 +00:00
|
|
|
readability-*,
|
|
|
|
-readability-braces-around-statements,
|
2022-01-23 17:56:37 +00:00
|
|
|
-readability-convert-member-functions-to-static,
|
|
|
|
-readability-else-after-return,
|
2022-01-22 21:50:49 +00:00
|
|
|
-readability-function-cognitive-complexity,
|
|
|
|
-readability-function-size,
|
|
|
|
-readability-identifier-length,
|
|
|
|
-readability-implicit-bool-conversion,
|
|
|
|
-readability-isolate-declaration,
|
|
|
|
-readability-magic-numbers,
|
|
|
|
-readability-named-parameter,
|
|
|
|
-readability-non-const-parameter,
|
2023-01-23 10:19:19 +00:00
|
|
|
-readability-simplify-boolean-expr,
|
2022-01-22 21:50:49 +00:00
|
|
|
-readability-suspicious-call-argument,
|
|
|
|
-readability-uppercase-literal-suffix,
|
2020-11-05 10:34:20 +00:00
|
|
|
performance-*,
|
2022-01-22 12:24:45 +00:00
|
|
|
-performance-no-int-to-ptr,
|
2022-05-26 10:18:56 +00:00
|
|
|
portability-*,
|
2024-03-25 02:02:49 +00:00
|
|
|
|
|
|
|
WarningsAsErrors:
|
|
|
|
readability-identifier-naming,
|
|
|
|
|
|
|
|
CheckOptions:
|
|
|
|
- key: readability-identifier-naming.LocalVariableCase
|
|
|
|
value: CamelCase
|
|
|
|
- key: readability-identifier-naming.StaticConstantCase
|
|
|
|
value: aNy_CasE
|
|
|
|
- key: readability-identifier-naming.StaticVariableCase
|
|
|
|
value: aNy_CasE
|
|
|
|
- key: readability-identifier-naming.LocalConstantCase
|
|
|
|
value: aNy_CasE
|
|
|
|
- key: readability-identifier-naming.LocalVariableIgnoredRegexp
|
2024-03-25 05:05:47 +00:00
|
|
|
value: '^(p|a|s_|FT_|TB_|s_|ul_|v|[xy]i$|[zijklxyhmrgbacwestnduvqf]$|[dmpwsitcf][xy]$|(ch|skel)[0-2]?$|it$|tw$|dt$|th$|ls$|func$|res$|shader$|len$|maxLength$|length$|offset$|offpos$|result$|bg$|sp$|url$|index$|ctxt$|key$|null$|logger$|LAST_MODIFIED$|teleNr$|target$|id$|hit$|hsl[0-2]?$|rgb[0-2]?$|dir$|tmp$|sub$|ret$|rendered$|(lower|upper)(16|26|24|32)|size$|isWeaponCollide$|zerochar$|dist$|sound$|match$|best_matches$|matches$|nohook$|btn$|savedLayers$|l[hw]$|evilz$|sec$|min$|to2$|delay$|mode$|maxModes$|numModes$|[xy]Fract$|[xy]Int$|imgg[xy]$|skip$|localPlayer$|fdratio$|[rgbat][0-2]$|[xy][0-3]$|x[rl]$).*'
|
2024-03-25 02:02:49 +00:00
|
|
|
|