[all-commits] [llvm/llvm-project] f9a307: [clang-tidy] Fix some false negatives in `readabil...

Victor Chernyakin via All-commits all-commits at lists.llvm.org
Fri Dec 12 03:46:50 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f9a3076180bfa1ebffd518971eefd30939a5ced6
      https://github.com/llvm/llvm-project/commit/f9a3076180bfa1ebffd518971eefd30939a5ced6
  Author: Victor Chernyakin <chernyakin.victor.j at outlook.com>
  Date:   2025-12-12 (Fri, 12 Dec 2025)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/RedundantTypenameCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability/redundant-typename.cpp

  Log Message:
  -----------
  [clang-tidy] Fix some false negatives in `readability-redundant-typename` (#171947)

#169166 reported some false positives in this check. They stemmed from
the fact that it assumed `TypedefTypeLoc`s and `TagTypeLoc`s couldn't be
dependent. Turns out, this incorrect assumption leads to some false
*negatives* as well: https://godbolt.org/z/K6EvfrE6a. This PR fixes
those.



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