clang  10.0.0svn
Typedefs | Functions
RangeSelector.cpp File Reference
#include "clang/Tooling/Transformer/RangeSelector.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 "llvm/ADT/StringRef.h"
#include "llvm/Support/Errc.h"
#include "llvm/Support/Error.h"
#include <string>
#include <utility>
#include <vector>
Include dependency graph for RangeSelector.cpp:

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< DynTypedNodegetNode (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)
 
static SourceLocation findOpenParen (const CallExpr &E, const SourceManager &SM, const LangOptions &LangOpts)
 

Typedef Documentation

◆ MatchResult

Definition at line 31 of file RangeSelector.cpp.

Function Documentation

◆ findOpenParen()

static SourceLocation findOpenParen ( const CallExpr E,
const SourceManager SM,
const LangOptions LangOpts 
)
static

◆ findPreviousTokenKind()

static SourceLocation findPreviousTokenKind ( SourceLocation  Start,
const SourceManager SM,
const LangOptions LangOpts,
tok::TokenKind  TK 
)
static

◆ findPreviousTokenStart()

static SourceLocation findPreviousTokenStart ( SourceLocation  Start,
const SourceManager SM,
const LangOptions LangOpts 
)
static

◆ getNode()

static Expected<DynTypedNode> getNode ( const ast_matchers::BoundNodes Nodes,
StringRef  ID 
)
static

◆ invalidArgumentError()

static Error invalidArgumentError ( Twine  Message)
static

◆ missingPropertyError()

static Error missingPropertyError ( StringRef  ID,
Twine  Description,
StringRef  Property 
)
static

Definition at line 49 of file RangeSelector.cpp.

References invalidArgumentError().

Referenced by clang::transformer::name().

◆ typeError() [1/2]

static Error typeError ( StringRef  ID,
const ASTNodeKind Kind 
)
static

◆ typeError() [2/2]

static Error typeError ( StringRef  ID,
const ASTNodeKind Kind,
Twine  ExpectedType 
)
static