[all-commits] [llvm/llvm-project] dce5bb: [clang-format] Correctly annotate UDLs as Overload...

Emilia Dreamer via All-commits all-commits at lists.llvm.org
Tue Oct 25 10:12:47 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dce5bb9a6f89b18366c6f27aeb435a6e48e85639
      https://github.com/llvm/llvm-project/commit/dce5bb9a6f89b18366c6f27aeb435a6e48e85639
  Author: Emilia Dreamer <emilia at rymiel.space>
  Date:   2022-10-25 (Tue, 25 Oct 2022)

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

  Log Message:
  -----------
  [clang-format] Correctly annotate UDLs as OverloadedOperator

While the opening parenthesis of an user-defined literal operator was
correctly annotated as OverloadedOperatorLParen, the "" and its suffix
wasn't annotated as OverloadedOperator.

Fixes https://github.com/llvm/llvm-project/issues/58035

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




More information about the All-commits mailing list