mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 12:12:40 +00:00
clang-tidy with readability checks (#1148)
This commit is contained in:
1 parent
9e7a965057
commit
f9014a6d10
18 files changed
+68
-56
No files matched your search
@@ -106,7 +106,7 @@ class TokenizedBuffer::Lexer {
|
||||
// Consumes (and discard) a valid token to construct a result
|
||||
// indicating a token has been produced. Relies on implicit conversions.
|
||||
// NOLINTNEXTLINE(google-explicit-constructor)
|
||||
LexResult(Token) : LexResult(true) {}
|
||||
LexResult(Token /*discarded_token*/) : LexResult(true) {}
|
||||
|
||||
// Returns a result indicating no token was produced.
|
||||
static auto NoMatch() -> LexResult { return LexResult(false); }
|
||||
|
||||
Reference in new issue
Block a user