File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -3539,6 +3539,7 @@ class EnumDecl : public TagDecl {
3539
3539
// / negative enumerators of this enum. (see getNumNegativeBits)
3540
3540
void setNumNegativeBits (unsigned Num) { EnumDeclBits.NumNegativeBits = Num; }
3541
3541
3542
+ public:
3542
3543
// / True if this tag declaration is a scoped enumeration. Only
3543
3544
// / possible in C++11 mode.
3544
3545
void setScoped (bool Scoped = true ) { EnumDeclBits.IsScoped = Scoped; }
@@ -3555,6 +3556,7 @@ class EnumDecl : public TagDecl {
3555
3556
// / Microsoft-style enumeration with a fixed underlying type.
3556
3557
void setFixed (bool Fixed = true ) { EnumDeclBits.IsFixed = Fixed; }
3557
3558
3559
+ private:
3558
3560
// / True if a valid hash is stored in ODRHash.
3559
3561
bool hasODRHash () const { return EnumDeclBits.HasODRHash ; }
3560
3562
void setHasODRHash (bool Hash = true ) { EnumDeclBits.HasODRHash = Hash; }
Original file line number Diff line number Diff line change @@ -626,7 +626,16 @@ class alignas(8) Decl {
626
626
setModuleOwnershipKind (ModuleOwnershipKind::ModulePrivate);
627
627
}
628
628
629
- // / Set the owning module ID.
629
+ public:
630
+ // / Set the FromASTFile flag. This indicates that this declaration
631
+ // / was deserialized and not parsed from source code and enables
632
+ // / features such as module ownership information.
633
+ void setFromASTFile () {
634
+ FromASTFile = true ;
635
+ }
636
+
637
+ // / Set the owning module ID. This may only be called for
638
+ // / deserialized Decls.
630
639
void setOwningModuleID (unsigned ID) {
631
640
assert (isFromASTFile () && " Only works on a deserialized declaration" );
632
641
*((unsigned *)this - 2 ) = ID;
Original file line number Diff line number Diff line change @@ -2722,8 +2722,6 @@ class CXXConversionDecl : public CXXMethodDecl {
2722
2722
2723
2723
ExplicitSpecifier ExplicitSpec;
2724
2724
2725
- void setExplicitSpecifier (ExplicitSpecifier ES) { ExplicitSpec = ES; }
2726
-
2727
2725
public:
2728
2726
friend class ASTDeclReader ;
2729
2727
friend class ASTDeclWriter ;
@@ -2745,6 +2743,7 @@ class CXXConversionDecl : public CXXMethodDecl {
2745
2743
2746
2744
// / Return true if the declartion is already resolved to be explicit.
2747
2745
bool isExplicit () const { return getExplicitSpecifier ().isExplicit (); }
2746
+ void setExplicitSpecifier (ExplicitSpecifier ES) { ExplicitSpec = ES; }
2748
2747
2749
2748
// / Returns the type that this conversion function is converting to.
2750
2749
QualType getConversionType () const {
Original file line number Diff line number Diff line change @@ -1891,6 +1891,10 @@ class ClassTemplateSpecializationDecl
1891
1891
return *TemplateArgs;
1892
1892
}
1893
1893
1894
+ void setTemplateArgs (TemplateArgumentList *Args) {
1895
+ TemplateArgs = Args;
1896
+ }
1897
+
1894
1898
// / Determine the kind of specialization that this
1895
1899
// / declaration represents.
1896
1900
TemplateSpecializationKind getSpecializationKind () const {
You can’t perform that action at this time.
0 commit comments