[PATCH] D154184: [clang-format] Correctly annotate */&/&& in operator function calls

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 18 03:00:18 PDT 2023


krasimir added a comment.

It looks like this causes a regression in the following example:

  % cat test.cc
  struct A {
    std::unique_ptr<B> operator()(const B& b) const;
  };
  % clang-format -style=google test.cc  # should be the same as the input
  struct A {
    std::unique_ptr<B> operator()(const B & b) const;
  };

@owenpan, I'm planning to temporarily revert this until you have a chance to look into this.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154184



More information about the cfe-commits mailing list