[all-commits] [llvm/llvm-project] 5d95d2: [clang-tidy] Fix support for typedefs in readabili...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Wed Sep 20 12:30:08 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d95d27e50c1f5ce4803039d942ff3c25401c77f
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-09-20 (Wed, 20 Sep 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming.cpp

  Log Message:
  [clang-tidy] Fix support for typedefs in readability-identifier-naming (#66835)

Typedef rename were not properly handled when typedef were used behind
pointer, or as a part of function type. Additionally because entire
function were passed as an source-range, when function started with
macro, such change were not marked for a fix.

Removed workaround and used proper TypedefTypeLoc instead.

Fixes #55156, #54699

More information about the All-commits mailing list