@@ -399,7 +399,7 @@ class DeclSpec {
399399 LLVM_PREFERRED_TYPE (bool )
400400 unsigned FS_noreturn_specified : 1 ;
401401 LLVM_PREFERRED_TYPE (bool )
402- unsigned export_specified : 1 ;
402+ unsigned ExportSpecified : 1 ; // z/OS extension
403403
404404 // friend-specifier
405405 LLVM_PREFERRED_TYPE (bool )
@@ -446,7 +446,7 @@ class DeclSpec {
446446 SourceLocation FS_forceinlineLoc;
447447 SourceLocation FriendLoc, ModulePrivateLoc, ConstexprLoc;
448448 SourceLocation TQ_pipeLoc;
449- SourceLocation exportLoc ;
449+ SourceLocation ExportLoc ;
450450
451451 WrittenBuiltinSpecs writtenBS;
452452 void SaveWrittenBuiltinSpecs ();
@@ -495,7 +495,7 @@ class DeclSpec {
495495 TypeSpecPipe(false ), TypeSpecSat(false ), ConstrainedAuto(false ),
496496 TypeQualifiers(TQ_unspecified), FS_inline_specified(false ),
497497 FS_forceinline_specified(false ), FS_virtual_specified(false ),
498- FS_noreturn_specified(false ), export_specified (false ),
498+ FS_noreturn_specified(false ), ExportSpecified (false ),
499499 FriendSpecifiedFirst(false ), ConstexprSpecifier(static_cast <unsigned >(
500500 ConstexprSpecKind::Unspecified)),
501501 Attrs(attrFactory), writtenBS(), ObjCQualifiers(nullptr ) {}
@@ -664,8 +664,8 @@ class DeclSpec {
664664 bool isNoreturnSpecified () const { return FS_noreturn_specified; }
665665 SourceLocation getNoreturnSpecLoc () const { return FS_noreturnLoc; }
666666
667- bool isExportSpecified () const { return export_specified ; }
668- SourceLocation getExportSpecLoc () const { return exportLoc ; }
667+ bool isExportSpecified () const { return ExportSpecified ; }
668+ SourceLocation getExportSpecLoc () const { return ExportLoc ; }
669669
670670 void ClearFunctionSpecs () {
671671 FS_inline_specified = false ;
@@ -1964,9 +1964,9 @@ class Declarator {
19641964 LLVM_PREFERRED_TYPE (bool )
19651965 unsigned InlineStorageUsed : 1 ;
19661966
1967- // / Indicates whether this is set as _Export
1967+ // / Indicates whether this is set as _Export.
19681968 LLVM_PREFERRED_TYPE (bool )
1969- unsigned ExportSpecified : 1 ;
1969+ unsigned ExportSpecified : 1 ; // z/OS extension
19701970
19711971 // / Indicates whether this declarator has an initializer.
19721972 LLVM_PREFERRED_TYPE (bool )
@@ -2014,7 +2014,7 @@ class Declarator {
20142014 // / this declarator as a parameter pack.
20152015 SourceLocation EllipsisLoc;
20162016
2017- // / The source location of the _Export keyword on this declarator
2017+ // / The source location of the _Export keyword on this declarator.
20182018 SourceLocation ExportLoc;
20192019
20202020 Expr *PackIndexingExpr;
@@ -2126,13 +2126,13 @@ class Declarator {
21262126 Range.setEnd (SR.getEnd ());
21272127 }
21282128
2129- // / Set this declarator as _Export
2129+ // / Set this declarator as _Export.
21302130 void SetExport (SourceLocation Loc) {
21312131 ExportSpecified = true ;
21322132 ExportLoc = Loc;
21332133 }
21342134
2135- // / Whether this declarator is marked as _Export
2135+ // / Whether this declarator is marked as _Export.
21362136 bool IsExport () const { return ExportSpecified; }
21372137
21382138 // / Get the location of the _Export keyword
@@ -2157,6 +2157,7 @@ class Declarator {
21572157 ExportSpecified = false ;
21582158 CommaLoc = SourceLocation ();
21592159 EllipsisLoc = SourceLocation ();
2160+ ExportLoc = SourceLocation ();
21602161 PackIndexingExpr = nullptr ;
21612162 }
21622163
0 commit comments