Files
codeql/cpp/ql/test/library-tests/preprocessor/linedirective/linedirective.ql
2018-08-02 17:53:23 +01:00

8 lines
301 B
Plaintext

import cpp
from Element e, string comment
where (e instanceof Include or e instanceof DeclarationEntry or e instanceof Macro)
and (e.getFile().toString() != "")
and if exists(((Include)e).getIncludedFile()) then comment = ((Include)e).getIncludedFile().toString() else comment = ""
select e, comment