clang 22.0.0git
Stencil.cpp File Reference
#include "clang/Tooling/Transformer/Stencil.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/ASTTypeTraits.h"
#include "clang/AST/Expr.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/Transformer/SourceCode.h"
#include "clang/Tooling/Transformer/SourceCodeBuilders.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include <memory>
#include <string>

Go to the source code of this file.

Classes

class  Expected< T >

Functions

static llvm::Expected< DynTypedNodegetNode (const BoundNodes &Nodes, StringRef Id)
static Error printNode (StringRef Id, const MatchFinder::MatchResult &Match, std::string *Result)

Function Documentation

◆ getNode()

llvm::Expected< DynTypedNode > getNode ( const BoundNodes & Nodes,
StringRef Id )
static

Definition at line 35 of file Stencil.cpp.

References clang::ast_matchers::BoundNodes::getMap().

Referenced by printNode().

◆ printNode()

Error printNode ( StringRef Id,
const MatchFinder::MatchResult & Match,
std::string * Result )
static

Definition at line 45 of file Stencil.cpp.

References clang::Error, getNode(), and clang::Match.