[all-commits] [llvm/llvm-project] cc2ff0: [clang-format] Correctly annotate overloaded opera...

Owen via All-commits all-commits at lists.llvm.org
Sat Jul 15 11:03:05 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc2ff02eadede988ab890b2d0f428bd1531a3803
      https://github.com/llvm/llvm-project/commit/cc2ff02eadede988ab890b2d0f428bd1531a3803
  Author: Owen Pan <owenpiano at gmail.com>
  Date:   2023-07-15 (Sat, 15 Jul 2023)

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

  Log Message:
  -----------
  [clang-format] Correctly annotate overloaded operator function name

The operator keyword preceded by a template closer should be annotated as
TT_FunctionDeclarationName.

Fixes #63879.

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




More information about the All-commits mailing list