Skip to content

Commit

Permalink
update rules from LLVM tools
Browse files Browse the repository at this point in the history
* tag: llvmorg-14-init-8123-ga875e6e1225a
* new clang tidy rules:
  * altera-id-dependent-backward-branch
  * bugprone-easily-swappable-parameters
  * bugprone-implicit-widening-of-multiplication-result
  * bugprone-suspicious-memory-comparison
  * bugprone-unhandled-exception-at-new
  * cert-exp42-c
  * cert-flp37-c
  * cppcoreguidelines-virtual-class-destructor
  * readability-data-pointer
  * readability-identifier-length
  * readability-suspicious-call-argument
* new clang diagnostic rules:
  * clang-diagnostic-aix-compat
  * clang-diagnostic-argument-undefined-behaviour
  * clang-diagnostic-attribute-warning
  * clang-diagnostic-bitwise-instead-of-logical
  * clang-diagnostic-cast-function-type
  * clang-diagnostic-cxx-attribute-extension
  * clang-diagnostic-delimited-escape-sequence-extension
  * clang-diagnostic-deprecated-altivec-src-compat
  * clang-diagnostic-deprecated-copy-with-dtor
  * clang-diagnostic-deprecated-copy-with-user-provided-copy
  * clang-diagnostic-deprecated-copy-with-user-provided-dtor
  * clang-diagnostic-deprecated-pragma
  * clang-diagnostic-final-macro
  * clang-diagnostic-frame-larger-than
  * clang-diagnostic-gpu-maybe-wrong-side
  * clang-diagnostic-ignored-availability-without-sdk-settings
  * clang-diagnostic-ignored-reference-qualifiers
  * clang-diagnostic-interrupt-service-routine
  * clang-diagnostic-linker-warnings
  * clang-diagnostic-microsoft-abstract
  * clang-diagnostic-module-lock
  * clang-diagnostic-null-pointer-subtraction
  * clang-diagnostic-openmp-51-extensions
  * clang-diagnostic-pedantic-macros
  * clang-diagnostic-pre-openmp-51-compat
  * clang-diagnostic-redundant-consteval-if
  * clang-diagnostic-reserved-identifier
  * clang-diagnostic-reserved-macro-identifier
  * clang-diagnostic-restrict-expansion
  * clang-diagnostic-search-path-usage
  * clang-diagnostic-tautological-unsigned-char-zero-compare
  * clang-diagnostic-unreachable-code-fallthrough
  * clang-diagnostic-unused-but-set-parameter
  * clang-diagnostic-unused-but-set-variable
* new clang-sa rules:
  * cplusplus.StringChecker
  • Loading branch information
guwirth committed Oct 30, 2021
1 parent fed5f63 commit 89ca492
Show file tree
Hide file tree
Showing 6 changed files with 2,418 additions and 651 deletions.
15 changes: 15 additions & 0 deletions cxx-sensors/src/main/resources/clangsa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,21 @@ Rules list was generated based on clang version 11.0.1 -->
<description>
<![CDATA[
<p>Check pure virtual function calls during construction/destruction
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/" target="_blank">clang-analyzer.llvm.org</a></p>
]]> </description>
<severity>MAJOR</severity>
<type>BUG</type>
<remediationFunction>LINEAR</remediationFunction>
<remediationFunctionGapMultiplier>5min</remediationFunctionGapMultiplier>
<tag>cplusplus</tag>
</rule>
<rule>
<key>cplusplus.StringChecker</key>
<name>cplusplus.StringChecker</name>
<description>
<![CDATA[
<p>Checks C++ std::string bugs
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/" target="_blank">clang-analyzer.llvm.org</a></p>
]]> </description>
Expand Down
Loading

0 comments on commit 89ca492

Please sign in to comment.