Skip to content

Commit

Permalink
Updating clangsa sei cert mapping for clang 18
Browse files Browse the repository at this point in the history
- The association of SEI CERT C and C++ Coding Standard Rules
are updated for the Clang Static Analyzer version 18.
- All alpha checkers were removed from the SEI Cert profile
- All sei cert checkers were added to the security profile
  • Loading branch information
dkrupp committed May 8, 2024
1 parent 15088df commit 0331ecc
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 34 deletions.
4 changes: 1 addition & 3 deletions analyzer/tests/functional/cmdline/test_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ def test_checkers_guideline(self):
'--guideline', 'sei-cert']
_, out, _ = run_cmd(checkers_cmd)

self.assertNotIn('readability', out)
self.assertIn('cert-str34-c', out)

checkers_cmd = [env.codechecker_cmd(), 'checkers',
Expand All @@ -170,8 +169,7 @@ def test_checkers_guideline(self):

for checker in out:
self.assertTrue(checker['name'].endswith('sizeof-expression') or
checker['name'].endswith('SizeofPtr') or
checker['name'].endswith('CastSize') or
checker['name'].endswith('Malloc') or
checker['name'].endswith('MallocSizeof'))

checkers_cmd = [env.codechecker_cmd(), 'checkers', '--guideline']
Expand Down
Loading

0 comments on commit 0331ecc

Please sign in to comment.