Switch clang-format pre-commit to get 13.0.0 (#1066)

Also enable gh action, I'm expecting that to work now.
This commit is contained in:
Jon Meow
2022-02-08 17:42:12 -08:00
committed by GitHub
parent b5dc35e2b8
commit 58104dc364
3 changed files with 8 additions and 8 deletions
+3 -4
View File
@@ -804,10 +804,9 @@ auto ParseTree::Parser::ParseBraceExpression() -> llvm::Optional<Node> {
}
// Work out the kind of this element
Kind elem_kind =
(NextTokenIs(TokenKind::Equal())
? Value
: NextTokenIs(TokenKind::Colon()) ? Type : Unknown);
Kind elem_kind = (NextTokenIs(TokenKind::Equal()) ? Value
: NextTokenIs(TokenKind::Colon()) ? Type
: Unknown);
if (elem_kind == Unknown || (kind != Unknown && elem_kind != kind)) {
return diagnose_invalid_syntax();
}