[all-commits] [llvm/llvm-project] 99abda: Revert "[clang-format] Annotate ::operator and Foo...

PiJoules via All-commits all-commits at lists.llvm.org
Wed Oct 22 11:00:48 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99abda7b02c9d6ba8b996867d2de624815ace1ce
      https://github.com/llvm/llvm-project/commit/99abda7b02c9d6ba8b996867d2de624815ace1ce
  Author: PiJoules <6019989+PiJoules at users.noreply.github.com>
  Date:   2025-10-22 (Wed, 22 Oct 2025)

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

  Log Message:
  -----------
  Revert "[clang-format] Annotate ::operator and Foo::operator correctly" (#164670)

Reverts llvm/llvm-project#164048

This led to a regression in clang-format where a space gets added in
between the parameter type and `&`. For example, this

```
::test_anonymous::FunctionApplication& ::test_anonymous::FunctionApplication::operator=(const ::test_anonymous::FunctionApplication& other) noexcept {
```

becomes

```
::test_anonymous::FunctionApplication& ::test_anonymous::FunctionApplication::operator=(const ::test_anonymous::FunctionApplication & other) noexcept {
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list