clang
9.0.0
|
A sequence of code fragments, references to parameters and code-generation operations that together can be evaluated to (a fragment of) source code, given a match result. More...
#include "clang/Tooling/Refactoring/Stencil.h"
Public Member Functions | |
Stencil ()=default | |
void | append (Stencil OtherStencil) |
Appends data from a OtherStencil to this stencil. More... | |
llvm::Expected< std::string > | eval (const ast_matchers::MatchFinder::MatchResult &Match) const |
llvm::Expected< std::string > | operator() (const ast_matchers::MatchFinder::MatchResult &Result) const |
Static Public Member Functions | |
template<typename... Ts> | |
static Stencil | cat (Ts &&... Parts) |
Composes a stencil from a series of parts. More... | |
Friends | |
bool | operator== (const Stencil &A, const Stencil &B) |
A sequence of code fragments, references to parameters and code-generation operations that together can be evaluated to (a fragment of) source code, given a match result.
|
default |
void Stencil::append | ( | Stencil | OtherStencil | ) |
Appends data from a OtherStencil
to this stencil.
Definition at line 151 of file Stencil.cpp.
|
inlinestatic |
Composes a stencil from a series of parts.
Definition at line 100 of file Stencil.h.
Referenced by clang::tooling::stencil::cat().
llvm::Expected< std::string > Stencil::eval | ( | const ast_matchers::MatchFinder::MatchResult & | Match | ) | const |
Definition at line 157 of file Stencil.cpp.
References clang::tooling::stencil::text(), and Text.
|
inline |
Definition at line 118 of file Stencil.h.
References clang::tooling::StencilPartInterface::eval(), clang::tooling::operator==(), and Text.