[all-commits] [llvm/llvm-project] 8ea94b: [clang-tidy] Improved modernize-use-using by fixin...

Félix-Antoine Constantin via All-commits all-commits at lists.llvm.org
Tue Mar 26 12:39:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ea94b614bd8ac74802867588129bcfd0a326620
      https://github.com/llvm/llvm-project/commit/8ea94b614bd8ac74802867588129bcfd0a326620
  Author: Félix-Antoine Constantin <60141446+felix642 at users.noreply.github.com>
  Date:   2024-03-26 (Tue, 26 Mar 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseUsingCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-using.cpp

  Log Message:
  -----------
  [clang-tidy] Improved modernize-use-using by fixing a false-negative (#82947)

The check needs a parent decl to match but if the typedef is in a
function, the parent is a declStmt which is not a decl by itself.
Improved the matcher to match on either a decl or a declstmt and extract
the decl from the stmt in the latter case.

Fixes #72179



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