Skip to content

Commit

Permalink
Merge pull request #2640 from guwirth/llvm-19.0.0-support
Browse files Browse the repository at this point in the history
LLVM 19 support
  • Loading branch information
guwirth authored Feb 24, 2024
2 parents e462e92 + ea53ced commit e2c2814
Show file tree
Hide file tree
Showing 7 changed files with 11,922 additions and 7,489 deletions.
60 changes: 60 additions & 0 deletions cxx-sensors/src/main/resources/clangsa.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ Follow these steps to make your custom rules available in SonarQube:
</rule>
<!-- C and C++ rules for Clang Static Analyzer. https://clang-analyzer.llvm.org/
Rules list was generated based on clang version 16.0.0 (https://github.com/llvm/llvm-project.git 61be261549243deed84b1fae11195f76f1769584) -->
<rule>
<key>core.BitwiseShift</key>
<name>core.BitwiseShift</name>
<description>
<![CDATA[
<p>Finds cases where bitwise shift operation causes undefined behaviour.
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/available_checks.html" target="_blank">Available Checkers</a></p>
]]> </description>
<type>BUG</type>
<tag>core</tag>
</rule>
<rule>
<key>core.CallAndMessage</key>
<name>core.CallAndMessage</name>
Expand Down Expand Up @@ -345,6 +357,18 @@ Rules list was generated based on clang version 16.0.0 (https://github.com/llvm/
<type>BUG</type>
<tag>nullability</tag>
</rule>
<rule>
<key>optin.core.EnumCastOutOfRange</key>
<name>optin.core.EnumCastOutOfRange</name>
<description>
<![CDATA[
<p>Check integer to enumeration casts for out of range values
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/available_checks.html" target="_blank">Available Checkers</a></p>
]]> </description>
<type>BUG</type>
<tag>optin</tag>
</rule>
<rule>
<key>optin.cplusplus.UninitializedObject</key>
<name>optin.cplusplus.UninitializedObject</name>
Expand Down Expand Up @@ -807,6 +831,18 @@ Rules list was generated based on clang version 16.0.0 (https://github.com/llvm/
<description>
<![CDATA[
<p>Warn on using a floating point value as a loop counter (CERT: FLP30-C, FLP30-CPP)
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/available_checks.html" target="_blank">Available Checkers</a></p>
]]> </description>
<type>BUG</type>
<tag>security</tag>
</rule>
<rule>
<key>security.cert.env.InvalidPtr</key>
<name>security.cert.env.InvalidPtr</name>
<description>
<![CDATA[
<p>Finds usages of possibly invalidated pointers
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/available_checks.html" target="_blank">Available Checkers</a></p>
]]> </description>
Expand Down Expand Up @@ -975,6 +1011,18 @@ Rules list was generated based on clang version 16.0.0 (https://github.com/llvm/
<description>
<![CDATA[
<p>Check calls to various UNIX/Posix functions
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/available_checks.html" target="_blank">Available Checkers</a></p>
]]> </description>
<type>BUG</type>
<tag>unix</tag>
</rule>
<rule>
<key>unix.Errno</key>
<name>unix.Errno</name>
<description>
<![CDATA[
<p>Check for improper use of 'errno'
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/available_checks.html" target="_blank">Available Checkers</a></p>
]]> </description>
Expand Down Expand Up @@ -1011,6 +1059,18 @@ Rules list was generated based on clang version 16.0.0 (https://github.com/llvm/
<description>
<![CDATA[
<p>Check for mismatched deallocators.
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/available_checks.html" target="_blank">Available Checkers</a></p>
]]> </description>
<type>BUG</type>
<tag>unix</tag>
</rule>
<rule>
<key>unix.StdCLibraryFunctions</key>
<name>unix.StdCLibraryFunctions</name>
<description>
<![CDATA[
<p>Check for invalid arguments of C standard library functions, and apply relations between arguments and return value
</p>
<h2>References</h2> <p><a href="https://clang-analyzer.llvm.org/available_checks.html" target="_blank">Available Checkers</a></p>
]]> </description>
Expand Down
Loading

0 comments on commit e2c2814

Please sign in to comment.