File tree 2 files changed +7
-0
lines changed 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -680,6 +680,9 @@ class alignas(8) Decl {
680
680
// / Whether this declaration comes from explicit global module.
681
681
bool isFromExplicitGlobalModule () const ;
682
682
683
+ // / Whether this declaration comes from global module.
684
+ bool isFromGlobalModule () const ;
685
+
683
686
// / Whether this declaration comes from a named module.
684
687
bool isInNamedModule () const ;
685
688
Original file line number Diff line number Diff line change @@ -1161,6 +1161,10 @@ bool Decl::isFromExplicitGlobalModule() const {
1161
1161
return getOwningModule () && getOwningModule ()->isExplicitGlobalModule ();
1162
1162
}
1163
1163
1164
+ bool Decl::isFromGlobalModule () const {
1165
+ return getOwningModule () && getOwningModule ()->isGlobalModule ();
1166
+ }
1167
+
1164
1168
bool Decl::isInNamedModule () const {
1165
1169
return getOwningModule () && getOwningModule ()->isNamedModule ();
1166
1170
}
You can’t perform that action at this time.
0 commit comments