clang
9.0.0
|
A stencil is represented as a sequence of "parts" that can each individually generate a code string based on a match result. More...
#include "clang/Tooling/Refactoring/Stencil.h"
Public Member Functions | |
virtual | ~StencilPartInterface ()=default |
virtual llvm::Error | eval (const ast_matchers::MatchFinder::MatchResult &Match, std::string *Result) const =0 |
Evaluates this part to a string and appends it to Result . More... | |
virtual bool | isEqual (const StencilPartInterface &other) const =0 |
const void * | typeId () const |
Protected Member Functions | |
StencilPartInterface (const void *DerivedId) | |
StencilPartInterface (const StencilPartInterface &)=default | |
StencilPartInterface & | operator= (const StencilPartInterface &)=default |
Protected Attributes | |
const void * | TypeId |
Unique identifier of the concrete type of this instance. More... | |
A stencil is represented as a sequence of "parts" that can each individually generate a code string based on a match result.
The different kinds of parts include (raw) text, references to bound nodes and assorted operations on bound nodes.
Users can create custom Stencil operations by implementing this interface.
|
virtualdefault |
|
inlineprotected |
Definition at line 55 of file Stencil.h.
References operator=().
|
protecteddefault |
|
pure virtual |
Evaluates this part to a string and appends it to Result
.
Result
is undefined in the case of an error.
Referenced by clang::tooling::Stencil::operator()().
|
pure virtual |
Implemented in StencilPartImpl< T >.
|
protecteddefault |
Referenced by StencilPartInterface().
|
inline |
|
protected |