clang
10.0.0git
|
This is the interface for minimizing header and source files to the minimum necessary preprocessor directives for evaluating includes. More...
#include "clang/Basic/SourceLocation.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
Go to the source code of this file.
Classes | |
struct | clang::minimize_source_to_dependency_directives::Token |
Represents a simplified token that's lexed as part of the source minimization. More... | |
struct | clang::minimize_source_to_dependency_directives::SkippedRange |
Simplified token range to track the range of a potentially skippable PP directive. More... | |
Namespaces | |
clang | |
Dataflow Directional Tag Classes. | |
clang::minimize_source_to_dependency_directives | |
Functions | |
bool | clang::minimize_source_to_dependency_directives::computeSkippedRanges (ArrayRef< Token > Input, llvm::SmallVectorImpl< SkippedRange > &Range) |
Computes the potential source ranges that can be skipped by the preprocessor when skipping a directive like if, #ifdef or #elsif. More... | |
bool | clang::minimizeSourceToDependencyDirectives (llvm::StringRef Input, llvm::SmallVectorImpl< char > &Output, llvm::SmallVectorImpl< minimize_source_to_dependency_directives::Token > &Tokens, DiagnosticsEngine *Diags=nullptr, SourceLocation InputSourceLoc=SourceLocation()) |
Minimize the input down to the preprocessor directives that might have an effect on the dependencies for a compilation unit. More... | |
This is the interface for minimizing header and source files to the minimum necessary preprocessor directives for evaluating includes.
It reduces the source down to #define, #include, #import, , and any conditional preprocessor logic that contains one of those.
Definition in file DependencyDirectivesSourceMinimizer.h.