diff --git a/flang/lib/common/format.h b/flang/lib/common/format.h index 8404c1f6c876..4ae76094a252 100644 --- a/flang/lib/common/format.h +++ b/flang/lib/common/format.h @@ -393,7 +393,7 @@ template void FormatValidator::check_r(bool allowed) { ReportError("'%s' edit descriptor repeat specifier must be positive", knrToken_); // C1304 } -}; +} // Return the predicate "w value is present" to control further processing. template bool FormatValidator::check_w() { @@ -411,7 +411,7 @@ template bool FormatValidator::check_w() { ReportWarning("Expected '%s' edit descriptor 'w' value"); // C1306 } return false; -}; +} template void FormatValidator::check_m() { if (token_.kind() != TokenKind::Point) { @@ -427,7 +427,7 @@ template void FormatValidator::check_m() { ReportError("'%s' edit descriptor 'm' value is greater than 'w' value"); } NextToken(); -}; +} // Return the predicate "d value is present" to control further processing. template bool FormatValidator::check_d() { @@ -442,7 +442,7 @@ template bool FormatValidator::check_d() { } NextToken(); return true; -}; +} template void FormatValidator::check_e() { if (token_.kind() != TokenKind::E) { @@ -454,7 +454,7 @@ template void FormatValidator::check_e() { return; } NextToken(); -}; +} template bool FormatValidator::Check() { if (!*format_) {