-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorclang-formatconfirmedVerified by a second partyVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]
Description
@HazardyKnusperkeks, I got some requires
-related crashes when formatting .cpp
files under clang/test/
. Below is one (which I reduced to the bare minimum) of them:
$ cat .clang-format
BasedOnStyle: LLVM
$ clang-format --version
clang-format version 15.0.0 (https://github.com/llvm/llvm-project 77e60bc42c48e16d646488d43210b1630cd4db49)
$ clang-format
#if 0
#else
foo();
#endif
bar(requires);
Assertion failed: (RequiresToken->getType() == TT_Unknown), function parseRequiresExpression, file UnwrappedLineParser.cpp, line 3022.
...
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorclang-formatconfirmedVerified by a second partyVerified by a second partycrashPrefer [crash-on-valid] or [crash-on-invalid]Prefer [crash-on-valid] or [crash-on-invalid]