mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Clean up more issues after running clang-format. (#310)
This commit is contained in:
@@ -62,9 +62,9 @@ struct InvalidDigit {
|
||||
static auto Format(const Substitutions& subst) -> std::string {
|
||||
return llvm::formatv("Invalid digit '{0}' in {1} numeric literal.",
|
||||
subst.digit,
|
||||
(subst.radix == 2 ? "binary"
|
||||
: subst.radix == 16 ? "hexadecimal"
|
||||
: "decimal"))
|
||||
(subst.radix == 2
|
||||
? "binary"
|
||||
: subst.radix == 16 ? "hexadecimal" : "decimal"))
|
||||
.str();
|
||||
}
|
||||
};
|
||||
@@ -127,9 +127,7 @@ struct UnrecognizedCharacters : SimpleDiagnostic<UnrecognizedCharacters> {
|
||||
|
||||
// TODO(zygoloid): Update this to match whatever we decide qualifies as
|
||||
// acceptable whitespace.
|
||||
static bool isSpace(char c) {
|
||||
return c == ' ' || c == '\n' || c == '\t';
|
||||
}
|
||||
static bool isSpace(char c) { return c == ' ' || c == '\n' || c == '\t'; }
|
||||
|
||||
static bool isLower(char c) { return 'a' <= c && c <= 'z'; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user