clang 20.0.0git
|
#include "clang/Tooling/Transformer/RangeSelector.h"
#include "clang/AST/Expr.h"
#include "clang/AST/TypeLoc.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Lex/Lexer.h"
#include "clang/Tooling/Transformer/SourceCode.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include <string>
#include <utility>
#include <vector>
Go to the source code of this file.
Typedefs | |
using | MatchResult = MatchFinder::MatchResult |
Functions | |
static Error | invalidArgumentError (Twine Message) |
static Error | typeError (StringRef ID, const ASTNodeKind &Kind) |
static Error | typeError (StringRef ID, const ASTNodeKind &Kind, Twine ExpectedType) |
static Error | missingPropertyError (StringRef ID, Twine Description, StringRef Property) |
static Expected< DynTypedNode > | getNode (const ast_matchers::BoundNodes &Nodes, StringRef ID) |
static SourceLocation | findPreviousTokenStart (SourceLocation Start, const SourceManager &SM, const LangOptions &LangOpts) |
static SourceLocation | findPreviousTokenKind (SourceLocation Start, const SourceManager &SM, const LangOptions &LangOpts, tok::TokenKind TK) |
using MatchResult = MatchFinder::MatchResult |
Definition at line 30 of file RangeSelector.cpp.
|
static |
Definition at line 79 of file RangeSelector.cpp.
References findPreviousTokenStart(), clang::Lexer::getRawToken(), clang::SourceLocation::isInvalid(), clang::SourceLocation::isMacroID(), SM, and clang::T.
|
static |
Definition at line 64 of file RangeSelector.cpp.
References clang::Lexer::GetBeginningOfToken(), clang::SourceLocation::getLocWithOffset(), clang::SourceLocation::isInvalid(), clang::SourceLocation::isMacroID(), and SM.
Referenced by findPreviousTokenKind().
|
static |
Definition at line 54 of file RangeSelector.cpp.
References invalidArgumentError(), and Nodes.
Referenced by clang::transformer::member(), clang::transformer::name(), clang::transformer::node(), and clang::transformer::statement().
|
static |
Definition at line 32 of file RangeSelector.cpp.
Referenced by clang::transformer::after(), clang::transformer::enclose(), getNode(), missingPropertyError(), and typeError().
|
static |
Definition at line 48 of file RangeSelector.cpp.
References invalidArgumentError(), and clang::Property.
Referenced by clang::transformer::name().
|
static |
Definition at line 36 of file RangeSelector.cpp.
References invalidArgumentError().
Referenced by clang::transformer::member(), and clang::transformer::name().
|
static |
Definition at line 41 of file RangeSelector.cpp.
References invalidArgumentError().