@@ -116,6 +116,18 @@ enum class ParenParseOption {
116116 CastExpr // Also allow '(' type-name ')' <anything>
117117};
118118
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+
119131// / Parser - This implements a parser for the C family of languages. After
120132// / parsing units of the grammar, productions are invoked to handle whatever has
121133// / been read.
@@ -2225,18 +2237,6 @@ class Parser : public CodeCompletionHandler {
22252237 SourceLocation *TrailingElseLoc,
22262238 ParsedAttributes &Attrs);
22272239
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-
22402240 // / Describes the condition of a Microsoft __if_exists or
22412241 // / __if_not_exists block.
22422242 struct IfExistsCondition {
0 commit comments