Skip to content

Commit 30c4dfe

Browse files
committed
Add exclusion check for header files in problems predicate
1 parent 7878aa6 commit 30c4dfe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cpp/common/src/codingstandards/cpp/rules/includeguardsnotused/IncludeGuardsNotUsed.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class BlockedIncludeGuard extends HeaderFile {
2424
}
2525

2626
query predicate problems(HeaderFile file, string message, HeaderFile other, string name) {
27+
not isExcluded(file, getQuery()) and
2728
not file instanceof CorrectIncludeGuard and
2829
if file instanceof BlockedIncludeGuard
2930
then

0 commit comments

Comments
 (0)