clang  9.0.0
Classes | Namespaces | Functions
Stencil.h File Reference
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTTypeTraits.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/Refactoring/RangeSelector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Error.h"
#include <string>
#include <vector>
Include dependency graph for Stencil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clang::tooling::StencilPartInterface
 A stencil is represented as a sequence of "parts" that can each individually generate a code string based on a match result. More...
 
class  clang::tooling::StencilPart
 A copyable facade for a std::unique_ptr<StencilPartInterface>. More...
 
class  clang::tooling::Stencil
 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...
 

Namespaces

 clang
 Dataflow Directional Tag Classes.
 
 clang::tooling
 
 clang::tooling::stencil
 

Functions

bool clang::tooling::operator== (const Stencil &A, const Stencil &B)
 
bool clang::tooling::operator!= (const Stencil &A, const Stencil &B)
 
template<typename... Ts>
Stencil clang::tooling::stencil::cat (Ts &&... Parts)
 Convenience wrapper for Stencil::cat that can be imported with a using decl. More...
 
StencilPart clang::tooling::stencil::text (llvm::StringRef Text)
 
StencilPart clang::tooling::stencil::selection (RangeSelector Selector)
 
StencilPart clang::tooling::stencil::node (llvm::StringRef Id)
 
StencilPart clang::tooling::stencil::sNode (llvm::StringRef Id)
 Variant of node() that identifies the node as a statement, for purposes of deciding whether to include any trailing semicolon. More...
 
StencilPart clang::tooling::stencil::dPrint (llvm::StringRef Id)
 For debug use only; semantics are not guaranteed. More...