clang
9.0.0
|
#include "clang/Tooling/Refactoring/Transformer.h"
#include "clang/AST/Expr.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/Refactoring/AtomicChange.h"
#include "clang/Tooling/Refactoring/SourceCode.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include <deque>
#include <string>
#include <utility>
#include <vector>
Go to the source code of this file.
Typedefs | |
using | MatchResult = MatchFinder::MatchResult |
Functions | |
static bool | isOriginMacroBody (const clang::SourceManager &SM, clang::SourceLocation Loc) |
static bool | isBaseOf (ASTNodeKind A, ASTNodeKind B) |
static ASTNodeKind | findCommonKind (const SmallVectorImpl< RewriteRule::Case > &Cases) |
static std::vector< DynTypedMatcher > | taggedMatchers (StringRef TagBase, const SmallVectorImpl< RewriteRule::Case > &Cases) |
static DynTypedMatcher | joinCaseMatchers (const RewriteRule &Rule) |
using MatchResult = MatchFinder::MatchResult |
Definition at line 37 of file Transformer.cpp.
|
static |
Definition at line 125 of file Transformer.cpp.
References isBaseOf().
Referenced by joinCaseMatchers().
|
static |
Mimic the implicit conversions of Matcher<>.
Definition at line 113 of file Transformer.cpp.
References clang::ast_type_traits::ASTNodeKind::isBaseOf(), and clang::ast_type_traits::ASTNodeKind::isSame().
Referenced by findCommonKind(), clang::ast_type_traits::ASTNodeKind::hasPointerIdentity(), clang::ast_type_traits::DynTypedNode::DenseMapInfo::isEqual(), and clang::ast_type_traits::ASTNodeKind::isNone().
|
static |
Definition at line 57 of file Transformer.cpp.
References clang::SourceManager::getImmediateMacroCallerLoc(), clang::SourceManager::isMacroBodyExpansion(), and clang::SourceLocation::isMacroID().
Referenced by clang::tooling::detail::translateEdits().
|
static |
Definition at line 173 of file Transformer.cpp.
References clang::tooling::RewriteRule::Cases, findCommonKind(), and taggedMatchers().
Referenced by clang::tooling::detail::buildMatcher().
|
static |
Definition at line 148 of file Transformer.cpp.
Referenced by joinCaseMatchers().