[PATCH] D152443: Add operator style options to clang-format

MyDeveloperDay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 12 00:22:03 PDT 2023


MyDeveloperDay added a comment.

did you cover the case where I have a namespaced, static

  foo::Bar->operator==()
  foo::Bar->m_oper->operator==()
  foo::Bar->m_oper.operator==()
  foo::Bar.operator==()



================
Comment at: clang/lib/Format/TokenAnnotator.cpp:4207-4210
+        if (!Token->hasWhitespaceBefore()) { // Skip until we reach whitespace
+          Token = Token->Previous;
+          continue;
+        }
----------------
I don't quite understand what case needs this?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D152443



More information about the cfe-commits mailing list