[all-commits] [llvm/llvm-project] 873308: [Format] Fix incorrect pointer/reference detection

Yilong Guo via All-commits all-commits at lists.llvm.org
Thu Jun 17 01:35:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 873308fd8c96a54f0024251425daac1b78f70119
      https://github.com/llvm/llvm-project/commit/873308fd8c96a54f0024251425daac1b78f70119
  Author: Yilong Guo <yilong.guo at intel.com>
  Date:   2021-06-17 (Thu, 17 Jun 2021)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/unittests/Format/FormatTest.cpp

  Log Message:
  -----------
  [Format] Fix incorrect pointer/reference detection

https://llvm.org/PR50568

When an overloaded operator is called, its argument must be an
expression.

Before:
    void f() { a.operator()(a *a); }

After:
    void f() { a.operator()(a * a); }

Reviewed By: HazardyKnusperkeks, curdeius, MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D103678




More information about the All-commits mailing list