CodeQL library for C/C++
Search

Module AutogeneratedFile

Provides a class and predicate for recognizing files that are likely to have been generated automatically.

Import path

import semmle.code.cpp.AutogeneratedFile

Imports

Comments

Provides classes representing C and C++ comments.

File

Provides classes representing files and folders.

Preprocessor

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.

Classes

AutogeneratedFile

Holds if the file is probably an autogenerated file.