@@ -3872,7 +3872,7 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
38723872 bool IsFinalSpelledSealed = false ;
38733873 bool IsAbstract = false ;
38743874 SourceLocation TriviallyRelocatable;
3875- SourceLocation Replacable ;
3875+ SourceLocation Replaceable ;
38763876
38773877 // Parse the optional 'final' keyword.
38783878 if (getLangOpts ().CPlusPlus && Tok.is (tok::identifier)) {
@@ -3889,19 +3889,19 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
38893889 ParseCXX2CTriviallyRelocatableSpecifier (TriviallyRelocatable);
38903890 }
38913891 continue ;
3892- } else if (isCXX2CReplaceableKeyword (Tok)) {
3893- if (Replacable.isValid ()) {
3892+ }
3893+ if (isCXX2CReplaceableKeyword (Tok)) {
3894+ if (Replaceable.isValid ()) {
38943895 auto Skipped = Tok;
38953896 ConsumeToken ();
38963897 Diag (Skipped, diag::err_duplicate_class_relocation_specifier)
3897- << /* replaceable*/ 1 << Replacable ;
3898+ << /* replaceable*/ 1 << Replaceable ;
38983899 } else {
3899- ParseCXX2CReplaceableSpecifier (Replacable );
3900+ ParseCXX2CReplaceableSpecifier (Replaceable );
39003901 }
39013902 continue ;
3902- } else {
3903- break ;
39043903 }
3904+ break ;
39053905 }
39063906 if (isCXX11FinalKeyword ()) {
39073907 if (FinalLoc.isValid ()) {
@@ -3939,7 +3939,7 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
39393939 Diag (FinalLoc, diag::ext_warn_gnu_final);
39403940 }
39413941 assert ((FinalLoc.isValid () || AbstractLoc.isValid () ||
3942- TriviallyRelocatable.isValid () || Replacable .isValid ()) &&
3942+ TriviallyRelocatable.isValid () || Replaceable .isValid ()) &&
39433943 " not a class definition" );
39443944
39453945 // Parse any C++11 attributes after 'final' keyword.
@@ -4014,7 +4014,7 @@ void Parser::ParseCXXMemberSpecification(SourceLocation RecordLoc,
40144014 if (TagDecl)
40154015 Actions.ActOnStartCXXMemberDeclarations (
40164016 getCurScope (), TagDecl, FinalLoc, IsFinalSpelledSealed, IsAbstract,
4017- TriviallyRelocatable, Replacable , T.getOpenLocation ());
4017+ TriviallyRelocatable, Replaceable , T.getOpenLocation ());
40184018
40194019 // C++ 11p3: Members of a class defined with the keyword class are private
40204020 // by default. Members of a class defined with the keywords struct or union
0 commit comments