ΒΆbool scanSourceForDependencyDirectives(
llvm::StringRef Input,
SmallVectorImpl<
dependency_directives_scan::Token>&
Tokens,
SmallVectorImpl<
dependency_directives_scan::Directive>&
Directives,
clang::DiagnosticsEngine* Diags = nullptr,
clang::SourceLocation InputSourceLoc =
clang::SourceLocation())
bool scanSourceForDependencyDirectives(
llvm::StringRef Input,
SmallVectorImpl<
dependency_directives_scan::Token>&
Tokens,
SmallVectorImpl<
dependency_directives_scan::Directive>&
Directives,
clang::DiagnosticsEngine* Diags = nullptr,
clang::SourceLocation InputSourceLoc =
clang::SourceLocation())
Description
Scan the input for the preprocessor directives that might have an effect on the dependencies for a compilation unit. This function ignores all non-preprocessor code and anything that can't affect what gets included.
Declared at: clang/include/clang/Lex/DependencyDirectivesScanner.h:113
Parameters
- llvm::StringRef Input
- SmallVectorImpl< dependency_directives_scan::Token>& Tokens
- SmallVectorImpl< dependency_directives_scan::Directive>& Directives
- clang::DiagnosticsEngine* Diags = nullptr
- clang::SourceLocation InputSourceLoc = clang::SourceLocation()
Returns
false on success, true on error. If the diagnostic engine is not null, an appropriate error is reported using the given input location with the offset that corresponds to the \p Input buffer offset.