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);
|
CheckName(a);
|
||||||
popConstructNameIfPresent(a);
|
popConstructNameIfPresent(a);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename A> void popConstructNameIfPresent(const A &a) {
|
template<typename A> void popConstructNameIfPresent(const A &a) {
|
||||||
const auto &optionalName{std::get<0>(std::get<0>(a.t).statement.t)};
|
const auto &optionalName{std::get<0>(std::get<0>(a.t).statement.t)};
|
||||||
if (optionalName.has_value()) {
|
if (optionalName.has_value()) {
|
||||||
constructNames_.pop_back();
|
constructNames_.pop_back();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void popConstructNameIfPresent(const parser::BlockConstruct &blockConstruct) {
|
void popConstructNameIfPresent(const parser::BlockConstruct &blockConstruct) {
|
||||||
const auto &optionalName{
|
const auto &optionalName{
|
||||||
std::get<parser::Statement<parser::BlockStmt>>(blockConstruct.t)
|
std::get<parser::Statement<parser::BlockStmt>>(blockConstruct.t)
|
||||||
|
@ -532,9 +530,7 @@ private:
|
||||||
std::get<parser::Statement<parser::ElseStmt>>(
|
std::get<parser::Statement<parser::ElseStmt>>(
|
||||||
std::get<std::optional<parser::IfConstruct::ElseBlock>>(
|
std::get<std::optional<parser::IfConstruct::ElseBlock>>(
|
||||||
ifConstruct.t)
|
ifConstruct.t)
|
||||||
->t
|
->t)
|
||||||
|
|
||||||
)
|
|
||||||
.statement.v,
|
.statement.v,
|
||||||
constructName)) {
|
constructName)) {
|
||||||
errorHandler_.Say(currentPosition_,
|
errorHandler_.Say(currentPosition_,
|
||||||
|
|
Loading…
Reference in New Issue