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 9, 2024
1 parent 15088df commit b5c2806
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 34 deletions.
5 changes: 2 additions & 3 deletions analyzer/tests/functional/cmdline/test_cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ def test_checkers_guideline(self):
'--guideline', 'sei-cert']
_, out, _ = run_cmd(checkers_cmd)

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

checkers_cmd = [env.codechecker_cmd(), 'checkers',
'--guideline', 'sei-cert:mem35-c']
Expand All @@ -170,8 +170,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 b5c2806

Please sign in to comment.