File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1515
1616import Customizations
1717import semmle.code.cpp.File
18+ import semmle.code.cpp.PchFile
1819import semmle.code.cpp.Linkage
1920import semmle.code.cpp.Location
2021import semmle.code.cpp.Compilation
Original file line number Diff line number Diff line change 1+ /**
2+ * Provides the `PchFile` class representing precompiled header (PCH) files created and
3+ * used during the build process.
4+ */
5+
6+ import semmle.code.cpp.File
7+
8+ /**
9+ * A precompiled header (PCH) file created during the build process.
10+ */
11+ class PchFile extends @pch {
12+ string toString ( ) { result = "PCH for " + this .getHeaderFile ( ) }
13+
14+ /**
15+ * Gets the header file from with the PCH file was created.
16+ */
17+ File getHeaderFile ( ) { pch_creations ( this , _, result ) }
18+
19+ /**
20+ * Gets a source file that includes the PCH.
21+ */
22+ File getAUse ( ) { pch_uses ( this , _, result ) }
23+ }
You can’t perform that action at this time.
0 commit comments