Skip to content

Commit c2d6d7e

Browse files
cleanup
1 parent 482e25e commit c2d6d7e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

clang/include/clang/Parse/Parser.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,8 +1548,7 @@ class Parser : public CodeCompletionHandler {
15481548
// 'instancetype'
15491549
DSC_condition, // condition declaration context
15501550
DSC_association, // A _Generic selection expression's type association
1551-
DSC_new, // C++ new expression
1552-
DSC_reflect_operator
1551+
DSC_new // C++ new expression
15531552
};
15541553

15551554
/// Is this a context in which we are parsing just a type-specifier (or
@@ -1563,7 +1562,6 @@ class Parser : public CodeCompletionHandler {
15631562
case DeclSpecContext::DSC_top_level:
15641563
case DeclSpecContext::DSC_objc_method_result:
15651564
case DeclSpecContext::DSC_condition:
1566-
case DeclSpecContext::DSC_reflect_operator:
15671565
return false;
15681566

15691567
case DeclSpecContext::DSC_template_type_arg:
@@ -1622,7 +1620,6 @@ class Parser : public CodeCompletionHandler {
16221620
case DeclSpecContext::DSC_conv_operator:
16231621
case DeclSpecContext::DSC_template_arg:
16241622
case DeclSpecContext::DSC_new:
1625-
case DeclSpecContext::DSC_reflect_operator:
16261623
return AllowDefiningTypeSpec::No;
16271624
}
16281625
llvm_unreachable("Missing DeclSpecContext case");
@@ -1647,7 +1644,6 @@ class Parser : public CodeCompletionHandler {
16471644
case DeclSpecContext::DSC_conv_operator:
16481645
case DeclSpecContext::DSC_template_arg:
16491646
case DeclSpecContext::DSC_new:
1650-
case DeclSpecContext::DSC_reflect_operator:
16511647

16521648
return false;
16531649
}
@@ -1668,7 +1664,6 @@ class Parser : public CodeCompletionHandler {
16681664
case DeclSpecContext::DSC_association:
16691665
case DeclSpecContext::DSC_conv_operator:
16701666
case DeclSpecContext::DSC_new:
1671-
case DeclSpecContext::DSC_reflect_operator:
16721667
return true;
16731668

16741669
case DeclSpecContext::DSC_objc_method_result:
@@ -1700,7 +1695,6 @@ class Parser : public CodeCompletionHandler {
17001695
case DeclSpecContext::DSC_template_arg:
17011696
case DeclSpecContext::DSC_conv_operator:
17021697
case DeclSpecContext::DSC_association:
1703-
case DeclSpecContext::DSC_reflect_operator:
17041698
return ImplicitTypenameContext::No;
17051699
}
17061700
llvm_unreachable("Missing DeclSpecContext case");

clang/include/clang/Sema/DeclSpec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1849,7 +1849,7 @@ enum class DeclaratorContext {
18491849
AliasDecl, // C++11 alias-declaration.
18501850
AliasTemplate, // C++11 alias-declaration template.
18511851
RequiresExpr, // C++2a requires-expression.
1852-
Association // C11 _Generic selection expression association.
1852+
Association // C11 _Generic selection expression association.
18531853
};
18541854

18551855
// Describes whether the current context is a context where an implicit

0 commit comments

Comments
 (0)