Skip to content

Commit

Permalink
Fixes github#824
Browse files Browse the repository at this point in the history
  • Loading branch information
rak3-sh committed Dec 17, 2024
1 parent 85036d5 commit 3342bb5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions change_notes/2024-12-17-fix-fp-824-a15-4-4
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- `A15-4-4` - `MissingNoExcept.ql`:
- Reduce false positives by not reporting on functions that have a noexcept specification with a complex expression.
3 changes: 3 additions & 0 deletions cpp/autosar/src/rules/A15-4-4/MissingNoExcept.ql
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ where
not isNoExceptTrue(f) and
// Not explicitly marked noexcept(false)
not isNoExceptExplicitlyFalse(f) and
// Not having a noexcept specification that
// could not be computed as true or false above.
not exists(f.getADeclarationEntry().getNoExceptExpr()) and
// Not compiler generated
not f.isCompilerGenerated() and
// The function is defined in this database
Expand Down

0 comments on commit 3342bb5

Please sign in to comment.