CodeQL library for C/C++
codeql/cpp-all 0.9.2 ( changelog , source )
Search

Predicate hasPragmaDifferentFile

Holds if the file contains #line pragmas that refer to a different file. For example, in parser.c a pragma #line 1 "parser.rl". Such pragmas usually indicate that the file was automatically generated.

Import path

import semmle.code.cpp.AutogeneratedFile
predicate hasPragmaDifferentFile ( File f )