[PATCH] D120140: [clang-format] Avoid inserting space after C++ casts.

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 22 13:44:35 PST 2022


curdeius requested review of this revision.
curdeius added a comment.

I took another approach to fix the problem found in polly tests.
I added CppCastLParen kind so as not to interfere with C-style casts.
I also added a test case taken from lib/Format that got misformatted by the previous version (`if (static_cast<int>(A) + B >= 0)\n  ;` got the spaces around `+` removed: `if (static_cast<int>(A)+B >= 0)\n  ;`).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120140/new/

https://reviews.llvm.org/D120140



More information about the cfe-commits mailing list