Clean up remaining executable_semantics clang-tidy warnings (#906)

Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
Jon Meow
2021-10-20 10:25:22 -07:00
committed by GitHub
co-authored by Geoff Romer
parent 79e3d284b4
commit 057b9fe253
10 changed files with 17 additions and 17 deletions
+1
View File
@@ -24,6 +24,7 @@ class BisonWrap {
}
// Support transparent conversion to the wrapped type.
// NOLINTNEXTLINE(google-explicit-constructor)
operator T() { return Release(); }
// Deliberately releases the contained value. Errors if not initialized.
@@ -44,10 +44,10 @@ class ParseAndLexContext {
} // namespace Carbon
// Gives flex the yylex prototype we want.
#define YY_DECL \
Carbon::Parser::symbol_type yylex(Carbon::Nonnull<Carbon::Arena*> arena, \
yyscan_t yyscanner, \
Carbon::ParseAndLexContext& context)
#define YY_DECL \
auto yylex(Carbon::Nonnull<Carbon::Arena*> arena, yyscan_t yyscanner, \
Carbon::ParseAndLexContext& context) \
-> Carbon::Parser::symbol_type
// Declares yylex for the parser's sake.
YY_DECL;