Skip to content

Commit 3342bb5

Browse files
committed
Fixes github#824
1 parent 85036d5 commit 3342bb5

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- `A15-4-4` - `MissingNoExcept.ql`:
2+
- Reduce false positives by not reporting on functions that have a noexcept specification with a complex expression.

cpp/autosar/src/rules/A15-4-4/MissingNoExcept.ql

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ where
2828
not isNoExceptTrue(f) and
2929
// Not explicitly marked noexcept(false)
3030
not isNoExceptExplicitlyFalse(f) and
31+
// Not having a noexcept specification that
32+
// could not be computed as true or false above.
33+
not exists(f.getADeclarationEntry().getNoExceptExpr()) and
3134
// Not compiler generated
3235
not f.isCompilerGenerated() and
3336
// The function is defined in this database

0 commit comments

Comments
 (0)