[all-commits] [llvm/llvm-project] e9c8d4: [clang-tidy] `misc-unused-using-decls`: add correc...

Baranov Victor via All-commits all-commits at lists.llvm.org
Sun Mar 2 21:14:48 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e9c8d42b895fe4934a149478788fa020bd69f7bf
      https://github.com/llvm/llvm-project/commit/e9c8d42b895fe4934a149478788fa020bd69f7bf
  Author: Baranov Victor <70346889+vbvictor at users.noreply.github.com>
  Date:   2025-03-03 (Mon, 03 Mar 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/misc/unused-using-decls.cpp

  Log Message:
  -----------
  [clang-tidy] `misc-unused-using-decls`: add correct handling of `operator""` with template parametes (#129392)

Fixes false-positives when operator"" has template paremetes, e.g.
```cpp
template <char... Ts>
int operator""_r() {
    return {};
}
```
Closes https://github.com/llvm/llvm-project/issues/53444.

---------

Co-authored-by: Congcong Cai <congcongcai0907 at 163.com>



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