ΒΆvoid addInclude(
    clang::transformer::RewriteRuleBase& Rule,
    llvm::StringRef Header,
    clang::transformer::IncludeFormat Format =
        IncludeFormat::Quoted)

Description

For every case in Rule, adds an include directive for the given header. The common use is assumed to be a rule with only one case. For example, to replace a function call and add headers corresponding to the new code, one could write:

Declared at: clang/include/clang/Tooling/Transformer/RewriteRule.h:364

Parameters

clang::transformer::RewriteRuleBase& Rule
llvm::StringRef Header
clang::transformer::IncludeFormat Format = IncludeFormat::Quoted