Skip to content

Commit

Permalink
Merge pull request #15265 from github/redsun82/def-to-non-header-incl…
Browse files Browse the repository at this point in the history
…ude-exceptions

C++: add `.def` to exceptions to AV rule 32
  • Loading branch information
redsun82 authored Jan 11, 2024
2 parents 51fe477 + 27160b8 commit 482b5f3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* The `cpp/include-non-header` style query will now ignore the `.def` extension for textual header inclusions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ from Include i, File f, string extension
where
f = i.getIncludedFile() and
extension = f.getExtension().toLowerCase() and
extension != "def" and
extension != "inc" and
extension != "inl" and
extension != "tcc" and
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "test.H"
#include "test.xpm"
#include "test2.c"
#include "test.H" // GOOD
#include "test.xpm" // GOOD
#include "test2.c" // BAD
#include "test.def" // GOOD
Empty file.

0 comments on commit 482b5f3

Please sign in to comment.