clang: include/clang/Tooling/Refactoring/RefactoringRuleContext.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_CLANG_TOOLING_REFACTORING_REFACTORINGRULECONTEXT_H
10#define LLVM_CLANG_TOOLING_REFACTORING_REFACTORINGRULECONTEXT_H
11
15
17
18class ASTContext;
19
20namespace tooling {
21
22
23
24
25
26
27
28
29
30
31
32
34public:
36
38
39
40
42
44
46
48 assert(AST && "no AST!");
49 return *AST;
50 }
51
53
54
55
56
59 }
60
63 }
64
66 ASTNodeSelection = std::move(Node);
67 }
68
69private:
70
71
73
74
76
77
79
81
82
83 std::unique_ptr ASTNodeSelection;
84};
85
86}
87}
88
89#endif
Defines the SourceManager interface.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
An allocator for DiagnosticStorage objects, which uses a small cache to objects, used to reduce mallo...
static llvm::Error create(SourceLocation Loc, PartialDiagnostic Diag)
Creates a new DiagnosticError that contains the given diagnostic at the given location.
Encodes a location in the source.
This class handles loading and caching of source files into memory.
A trivial tuple used to represent a source range.
The refactoring rule context stores all of the inputs that might be needed by a refactoring action ru...
RefactoringRuleContext(const SourceManager &SM)
llvm::Error createDiagnosticError(SourceLocation Loc, unsigned DiagID)
Creates an llvm::Error value that contains a diagnostic.
ASTContext & getASTContext() const
SourceRange getSelectionRange() const
Returns the current source selection range as set by the refactoring engine.
void setSelectionRange(SourceRange R)
llvm::Error createDiagnosticError(unsigned DiagID)
void setASTSelection(std::unique_ptr< SelectedASTNode > Node)
bool hasASTContext() const
void setASTContext(ASTContext &Context)
const SourceManager & getSources() const
The JSON file list parser is used to communicate input to InstallAPI.