[PATCH] D132762: [clang-format] Allow `throw` to be a keyword in front of casts

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 29 14:15:25 PDT 2022


MyDeveloperDay added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:10961
   verifyFormat("return (my_int)aaa;");
+  verifyFormat("throw (my_int)aaa;");
   verifyFormat("#define x ((int)-1)");
----------------
Can we add a test that covers the setting of SpaceAfterCStyleCast with throw? and SpacesInCStyleCastParentheses for completeness


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132762



More information about the cfe-commits mailing list