Back in D128714, we should have replaced the old rule about colons when
we added the new one. Because we didn't, all colons got mistaken as
case colons as long as the line began with case or default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Format/TokenAnnotator.cpp | ||
---|---|---|
4424 | Hmm.. this is going to impact others, did you make a change here before and break something for c++? or was this a bug in the C++ code, is there not a unit test for setting SpaceBeforeCaseColon? |
clang/lib/Format/TokenAnnotator.cpp | ||
---|---|---|
4424 | You can see that the previous rule already covers what this one covers. This rule doesn't change the behavior for C++. |
Hmm.. this is going to impact others, did you make a change here before and break something for c++? or was this a bug in the C++ code, is there not a unit test for setting SpaceBeforeCaseColon?