clang: include/clang/Tooling/Transformer/SourceCode.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13#ifndef LLVM_CLANG_TOOLING_TRANSFORMER_SOURCECODE_H
14#define LLVM_CLANG_TOOLING_TRANSFORMER_SOURCECODE_H
15
19#include
20
22namespace tooling {
23
24
25
28 ASTContext &Context);
29
30
31
32
33template
37 Next, Context);
38}
39
40
41
42
43
44
45
46
47
48
50
51
53
54
55template
58 Context);
59}
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83template
87}
88
89
90
93
94
95
96
98 bool AllowSystemHeaders);
99
100
101
102
103
104
105
106
107
108
109
110
111
112std::optional
115 bool IncludeMacroExpansion = true);
116inline std::optional
118 bool IncludeMacroExpansion = true) {
120 Context.getLangOpts(), IncludeMacroExpansion);
121}
122
123
124
125
126
127
128
129
130
131
135 bool IncludeMacroExpansion);
136inline std::optional
138 bool IncludeMacroExpansion) {
139 return getFileRange(EditRange, Context.getSourceManager(),
140 Context.getLangOpts(), IncludeMacroExpansion);
141}
142
143}
144}
145#endif
Defines the clang::ASTContext interface.
Defines the clang::SourceLocation class and associated facilities.
Defines the clang::TokenKind enum and support functions.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Represents a character-granular source range.
static CharSourceRange getTokenRange(SourceRange R)
Decl - This represents one declaration (or definition), e.g.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
This class handles loading and caching of source files into memory.
TokenKind
Provides a simple uniform namespace for tokens from all C languages.
The JSON file list parser is used to communicate input to InstallAPI.
const FunctionProtoType * T