Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Yeah, I should have put that in the commit message, right? ;)
Maybe I would have discovered the bug myself, but this is from GitHub.
clang/lib/Format/UnwrappedLineParser.cpp | ||
---|---|---|
3019–3020 | I was under the impression that exchange was C++17. If I'd known that it's 14 and I can use it, I'd done that in the first place. | |
3102 | Can do. I'm just thinking if there is ever a change to what to do, not just nextToken(), I would have to change it only at 2 not 3 places. But probably that will never happen. |
Just put Fixes https://github.com/llvm/llvm-project/issues/123456. in the description please so that the issues gets automatically closed when this patch lands.
Nit: For this pattern, consider bool LambdaThisTimeAllowed = std::exchange(LambdaNextTimeAllowed, false);