[PATCH] D76850: clang-format: Fix pointer alignment for overloaded operators (PR45107)

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 26 08:39:01 PDT 2020


krasimir accepted this revision.
krasimir added a comment.

I think this is an improvement. Accepting with a nit. Thank you!



================
Comment at: clang/lib/Format/TokenAnnotator.cpp:2806
+      if (Previous->is(tok::identifier) || Previous->isSimpleTypeSpecifier()) {
+        Previous = Previous->Previous;
+        continue;
----------------
Consider using `Previous->getPreviousNonComment()` here and below to jump over comments.


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

https://reviews.llvm.org/D76850





More information about the cfe-commits mailing list