File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -678,11 +678,8 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
678
678
CXXConversionDecl *ConversionDecl = dyn_cast<CXXConversionDecl>(D);
679
679
CXXDeductionGuideDecl *GuideDecl = dyn_cast<CXXDeductionGuideDecl>(D);
680
680
if (!Policy.SuppressSpecifiers ) {
681
- if (const char *Lang = tryGetUnbracedLinkageLanguage (D)) {
682
- // the "extern" specifier is implicit
683
- assert (D->getStorageClass () == SC_None);
681
+ if (const char *Lang = tryGetUnbracedLinkageLanguage (D))
684
682
Out << " extern \" " << Lang << " \" " ;
685
- }
686
683
switch (D->getStorageClass ()) {
687
684
case SC_None: break ;
688
685
case SC_Extern: Out << " extern " ; break ;
@@ -953,11 +950,8 @@ void DeclPrinter::VisitVarDecl(VarDecl *D) {
953
950
: D->getASTContext ().getUnqualifiedObjCPointerType (D->getType ());
954
951
955
952
if (!Policy.SuppressSpecifiers ) {
956
- if (const char *Lang = tryGetUnbracedLinkageLanguage (D)) {
957
- // the "extern" specifier is implicit
958
- assert (D->getStorageClass () == SC_None);
953
+ if (const char *Lang = tryGetUnbracedLinkageLanguage (D))
959
954
Out << " extern \" " << Lang << " \" " ;
960
- }
961
955
StorageClass SC = D->getStorageClass ();
962
956
if (SC != SC_None)
963
957
Out << VarDecl::getStorageClassSpecifierString (SC) << " " ;
You can’t perform that action at this time.
0 commit comments