clang
9.0.0
|
#include "clang/Tooling/Refactoring/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/Lex/Lexer.h"
#include "clang/Tooling/Refactoring/SourceCode.h"
#include "llvm/Support/Errc.h"
#include <atomic>
#include <memory>
#include <string>
Go to the source code of this file.
Classes | |
class | StencilPartImpl< T > |
Functions | |
template<typename D > | |
const D * | down_cast (const StencilPartInterface *P) |
static llvm::Expected< ast_type_traits::DynTypedNode > | getNode (const ast_matchers::BoundNodes &Nodes, StringRef Id) |
bool | isEqualData (const RawTextData &A, const RawTextData &B) |
bool | isEqualData (const DebugPrintNodeOpData &A, const DebugPrintNodeOpData &B) |
bool | isEqualData (const SelectorOpData &, const SelectorOpData &) |
Error | evalData (const RawTextData &Data, const MatchFinder::MatchResult &, std::string *Result) |
Error | evalData (const DebugPrintNodeOpData &Data, const MatchFinder::MatchResult &Match, std::string *Result) |
Error | evalData (const SelectorOpData &Data, const MatchFinder::MatchResult &Match, std::string *Result) |
const D* down_cast | ( | const StencilPartInterface * | P | ) |
Definition at line 30 of file Stencil.cpp.
References P, and clang::tooling::StencilPartInterface::typeId().
Error evalData | ( | const RawTextData & | Data, |
const MatchFinder::MatchResult & | , | ||
std::string * | Result | ||
) |
Definition at line 81 of file Stencil.cpp.
Referenced by StencilPartImpl< T >::eval().
Error evalData | ( | const DebugPrintNodeOpData & | Data, |
const MatchFinder::MatchResult & | Match, | ||
std::string * | Result | ||
) |
Definition at line 87 of file Stencil.cpp.
References clang::ast_matchers::MatchFinder::MatchResult::Context, clang::ASTContext::getLangOpts(), getNode(), and clang::ast_matchers::MatchFinder::MatchResult::Nodes.
Error evalData | ( | const SelectorOpData & | Data, |
const MatchFinder::MatchResult & | Match, | ||
std::string * | Result | ||
) |
Definition at line 99 of file Stencil.cpp.
References clang::ast_matchers::MatchFinder::MatchResult::Context, and clang::tooling::getText().
|
static |
Definition at line 37 of file Stencil.cpp.
References clang::ast_matchers::BoundNodes::getMap(), and Text.
Referenced by evalData().
bool isEqualData | ( | const RawTextData & | A, |
const RawTextData & | B | ||
) |
Definition at line 66 of file Stencil.cpp.
Referenced by StencilPartImpl< T >::isEqual().
bool isEqualData | ( | const DebugPrintNodeOpData & | A, |
const DebugPrintNodeOpData & | B | ||
) |
Definition at line 70 of file Stencil.cpp.
bool isEqualData | ( | const SelectorOpData & | , |
const SelectorOpData & | |||
) |
Definition at line 75 of file Stencil.cpp.