mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
C++: Extend the files test to cover the issue with XMLParent.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
| c.c | library-tests/files/c.c | CFile, MetricFile | C | | |
|
||||
| files1.cpp | library-tests/files/files1.cpp | CppFile, MetricFile | C++ | swap | t |
|
||||
| files1.h | library-tests/files/files1.h | HeaderFile, MetricFile | | swap | |
|
||||
| files2.cpp | library-tests/files/files2.cpp | CppFile, MetricFile | C++ | g | x, y |
|
||||
| c.c | library-tests/files/c.c | CFile, MetricFile | C, XMLParent | | |
|
||||
| files1.cpp | library-tests/files/files1.cpp | CppFile, MetricFile | C++, XMLParent | swap | t |
|
||||
| files1.h | library-tests/files/files1.h | HeaderFile, MetricFile | XMLParent | swap | |
|
||||
| files2.cpp | library-tests/files/files2.cpp | CppFile, MetricFile | C++, XMLParent | g | x, y |
|
||||
|
||||
@@ -6,6 +6,9 @@ string describe(File f) {
|
||||
or
|
||||
f.compiledAsCpp() and
|
||||
result = "C++"
|
||||
or
|
||||
f instanceof XMLParent and
|
||||
result = "XMLParent" // regression tests a bug in the constructor of XMLParent
|
||||
}
|
||||
|
||||
from File f
|
||||
|
||||
Reference in New Issue
Block a user