[PATCH] D127873: [clang-format] Fix misplacemnt of `*` in declaration of pointer to struct
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 20 02:13:43 PDT 2022
HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:2328
+ }
+
if (PrevToken->Tok.isLiteral() ||
----------------
MyDeveloperDay wrote:
> Thank you I wish more of the clauses were commented like this
+1
================
Comment at: clang/unittests/Format/FormatTest.cpp:10439
+ Style);
+ verifyFormat("union {\n"
+ "}* ptr;",
----------------
Bonus points for the union. It often gets forgotten.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127873/new/
https://reviews.llvm.org/D127873
More information about the cfe-commits
mailing list