clang  14.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/ASTMatchers/ASTMatchers.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>
Include dependency graph for Stencil.cpp:

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)
 
static bool isSmartPointerType (QualType Ty, ASTContext &Context)
 
static const ExprisSmartDereference (const Expr &E, ASTContext &Context)
 

Function Documentation

◆ getNode()

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

Definition at line 37 of file Stencil.cpp.

References Id, and Nodes.

Referenced by printNode().

◆ isSmartDereference()

static const Expr* isSmartDereference ( const Expr E,
ASTContext Context 
)
static

◆ isSmartPointerType()

static bool isSmartPointerType ( QualType  Ty,
ASTContext Context 
)
static

◆ printNode()

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