[PATCH] D103678: [Format] Fix incorrect pointer/reference detection

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 4 04:47:33 PDT 2021


MyDeveloperDay added inline comments.


================
Comment at: clang/lib/Format/TokenAnnotator.cpp:243
+      bool OperatorCalledAsMemberFunction =
+          Prev->Previous && Prev->Previous->isOneOf(tok::period, tok::arrow);
+      Contexts.back().IsExpression = OperatorCalledAsMemberFunction;
----------------
feels like we are not testing this situation, please add those tests


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103678



More information about the cfe-commits mailing list