mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 18:31:08 +01:00
Clean up remaining executable_semantics clang-tidy warnings (#906)
Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
committed by
GitHub
co-authored by
Geoff Romer
parent
79e3d284b4
commit
057b9fe253
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user