Skip to content

Commit 6a48f42

Browse files
committed
Declarations1: fix 21-2 and DCL37-C to only look at user files
1 parent 5b025ba commit 6a48f42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/common/src/codingstandards/cpp/rules/declaredareservedidentifier/DeclaredAReservedIdentifier.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Query getQuery() { result instanceof DeclaredAReservedIdentifierSharedQuery }
1414

1515
query predicate problems(Element m, string message) {
1616
not isExcluded(m, getQuery()) and
17+
exists(m.getFile().getRelativePath()) and
1718
exists(string name |
1819
(
1920
m.(Macro).hasName(name) or

0 commit comments

Comments
 (0)