Module AutogeneratedFile

Import path

semmle.code.cpp.AutogeneratedFile

Imports

Predicates

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.

isAutogeneratedComment

Holds if c is a comment which is usually seen in autogenerated files. For example, comments containing ‘autogenerated’ or ‘generated by’.

Classes

AutogeneratedFile

Holds if the file is probably an autogenerated file.