ΒΆinline clang::transformer::ASTEdit addInclude(
llvm::StringRef Header,
clang::transformer::IncludeFormat Format =
IncludeFormat::Quoted)
inline clang::transformer::ASTEdit addInclude(
llvm::StringRef Header,
clang::transformer::IncludeFormat Format =
IncludeFormat::Quoted)
Description
Adds an include directive for the given header to the file associated with `RootID`. If `RootID` matches inside a macro expansion, will add the directive to the file in which the macro was expanded (as opposed to the file in which the macro is defined).
Declared at: clang/include/clang/Tooling/Transformer/RewriteRule.h:221
Parameters
- llvm::StringRef Header
- clang::transformer::IncludeFormat Format = IncludeFormat::Quoted