forked from OSchip/llvm-project
[flang] Reformat and add comment
Original-commit: flang-compiler/f18@524f224adc Reviewed-on: https://github.com/flang-compiler/f18/pull/218 Tree-same-pre-rewrite: false
This commit is contained in:
parent
6778aa5c4f
commit
ed23707231
|
@ -262,9 +262,7 @@ public:
|
|||
protected:
|
||||
void PushScope();
|
||||
void PopScope();
|
||||
void ClearScopes() {
|
||||
implicitRules_.reset(nullptr);
|
||||
}
|
||||
void ClearScopes() { implicitRules_.reset(nullptr); }
|
||||
|
||||
private:
|
||||
// implicit rules in effect for current scope
|
||||
|
@ -327,7 +325,7 @@ public:
|
|||
void PushScope(Scope &scope);
|
||||
void PopScope();
|
||||
void ClearScopes() {
|
||||
PopScope();
|
||||
PopScope(); // trigger ConvertToObjectEntity calls
|
||||
currScope_ = &context().globalScope();
|
||||
ImplicitRulesVisitor::ClearScopes();
|
||||
}
|
||||
|
@ -1516,9 +1514,7 @@ bool ModuleVisitor::Pre(const parser::Submodule &x) {
|
|||
MakeSymbol(name, symbol.get<ModuleDetails>());
|
||||
return true;
|
||||
}
|
||||
void ModuleVisitor::Post(const parser::Submodule &) {
|
||||
ClearScopes();
|
||||
}
|
||||
void ModuleVisitor::Post(const parser::Submodule &) { ClearScopes(); }
|
||||
|
||||
bool ModuleVisitor::Pre(const parser::Module &x) {
|
||||
// Make a symbol and push a scope for this module
|
||||
|
|
Loading…
Reference in New Issue