@@ -116,6 +116,18 @@ enum class ParenParseOption {
116
116
CastExpr // Also allow '(' type-name ')' <anything>
117
117
};
118
118
119
+ // / Describes the behavior that should be taken for an __if_exists
120
+ // / block.
121
+ enum class IfExistsBehavior {
122
+ // / Parse the block; this code is always used.
123
+ Parse,
124
+ // / Skip the block entirely; this code is never used.
125
+ Skip,
126
+ // / Parse the block as a dependent block, which may be used in
127
+ // / some template instantiations but not others.
128
+ Dependent
129
+ };
130
+
119
131
// / Parser - This implements a parser for the C family of languages. After
120
132
// / parsing units of the grammar, productions are invoked to handle whatever has
121
133
// / been read.
@@ -2225,18 +2237,6 @@ class Parser : public CodeCompletionHandler {
2225
2237
SourceLocation *TrailingElseLoc,
2226
2238
ParsedAttributes &Attrs);
2227
2239
2228
- // / Describes the behavior that should be taken for an __if_exists
2229
- // / block.
2230
- enum IfExistsBehavior {
2231
- // / Parse the block; this code is always used.
2232
- IEB_Parse,
2233
- // / Skip the block entirely; this code is never used.
2234
- IEB_Skip,
2235
- // / Parse the block as a dependent block, which may be used in
2236
- // / some template instantiations but not others.
2237
- IEB_Dependent
2238
- };
2239
-
2240
2240
// / Describes the condition of a Microsoft __if_exists or
2241
2241
// / __if_not_exists block.
2242
2242
struct IfExistsCondition {
0 commit comments