Skip to content

Commit 270df94

Browse files
committed
C++: add .def to exceptions to AV rule 32
This is used as textual includes in several projects for macro metaprogramming, for example in `llvm-project` and in `swift` (and since some time in our internal codebase as well).
1 parent 0bc1463 commit 270df94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cpp/ql/src/jsf/4.06 Pre-Processing Directives/AV Rule 32.ql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ from Include i, File f, string extension
1818
where
1919
f = i.getIncludedFile() and
2020
extension = f.getExtension().toLowerCase() and
21+
extension != "def" and
2122
extension != "inc" and
2223
extension != "inl" and
2324
extension != "tcc" and

0 commit comments

Comments
 (0)