clang 20.0.0git
|
This is the interface for scanning header and source files to get the minimum necessary preprocessor directives for evaluating includes. More...
Go to the source code of this file.
Classes | |
struct | clang::dependency_directives_scan::Token |
Token lexed as part of dependency directive scanning. More... | |
struct | clang::dependency_directives_scan::Directive |
Represents a directive that's lexed as part of the dependency directives scanning. More... | |
Namespaces | |
namespace | clang |
The JSON file list parser is used to communicate input to InstallAPI. | |
namespace | clang::tok |
namespace | clang::dependency_directives_scan |
Functions | |
bool | clang::scanSourceForDependencyDirectives (StringRef Input, SmallVectorImpl< dependency_directives_scan::Token > &Tokens, SmallVectorImpl< dependency_directives_scan::Directive > &Directives, DiagnosticsEngine *Diags=nullptr, SourceLocation InputSourceLoc=SourceLocation()) |
Scan the input for the preprocessor directives that might have an effect on the dependencies for a compilation unit. | |
void | clang::printDependencyDirectivesAsSource (StringRef Source, ArrayRef< dependency_directives_scan::Directive > Directives, llvm::raw_ostream &OS) |
Print the previously scanned dependency directives as minimized source text. | |
This is the interface for scanning header and source files to get the minimum necessary preprocessor directives for evaluating includes.
It reduces the source down to #define, #include, #import, @import, and any conditional preprocessor logic that contains one of those.
Definition in file DependencyDirectivesScanner.h.