clang 20.0.0git
Functions
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 <atomic>
#include <memory>
#include <string>

Go to the source code of this file.

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()

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

Definition at line 36 of file Stencil.cpp.

References Id, and Nodes.

Referenced by printNode().

◆ printNode()

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