[PATCH] D153798: [clang-format] Correctly annotate operator free function call

Yilong Guo via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 27 02:39:07 PDT 2023


Nuullll accepted this revision.
Nuullll added a comment.
This revision is now accepted and ready to land.

Thanks, LGTM!



================
Comment at: clang/lib/Format/TokenAnnotator.cpp:316
+      // line can't be a declaration.
       bool OperatorCalledAsMemberFunction =
+          (Prev->Previous &&
----------------
minor. Probably better to rename it to something like `IsOperatorCallSite`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153798



More information about the cfe-commits mailing list