forked from OSchip/llvm-project
[flang] Fix a couple other spots clang-format missed
Original-commit: flang-compiler/f18@1a4b12e1b2 Reviewed-on: https://github.com/flang-compiler/f18/pull/170 Tree-same-pre-rewrite: false
This commit is contained in:
parent
51a48e542a
commit
facd02405f
|
@ -401,14 +401,12 @@ private:
|
|||
CheckName(a);
|
||||
popConstructNameIfPresent(a);
|
||||
}
|
||||
|
||||
template<typename A> void popConstructNameIfPresent(const A &a) {
|
||||
const auto &optionalName{std::get<0>(std::get<0>(a.t).statement.t)};
|
||||
if (optionalName.has_value()) {
|
||||
constructNames_.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
void popConstructNameIfPresent(const parser::BlockConstruct &blockConstruct) {
|
||||
const auto &optionalName{
|
||||
std::get<parser::Statement<parser::BlockStmt>>(blockConstruct.t)
|
||||
|
@ -532,9 +530,7 @@ private:
|
|||
std::get<parser::Statement<parser::ElseStmt>>(
|
||||
std::get<std::optional<parser::IfConstruct::ElseBlock>>(
|
||||
ifConstruct.t)
|
||||
->t
|
||||
|
||||
)
|
||||
->t)
|
||||
.statement.v,
|
||||
constructName)) {
|
||||
errorHandler_.Say(currentPosition_,
|
||||
|
|
Loading…
Reference in New Issue