[all-commits] [llvm/llvm-project] 279b49: [include-cleaner] Always treat constructor calls a...

kadir çetinkaya via All-commits all-commits at lists.llvm.org
Thu Feb 23 01:01:41 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 279b4985ed4f62eb8e9a71e79379c2adfa8d8b99
      https://github.com/llvm/llvm-project/commit/279b4985ed4f62eb8e9a71e79379c2adfa8d8b99
  Author: Kadir Cetinkaya <kadircet at google.com>
  Date:   2023-02-23 (Thu, 23 Feb 2023)

  Changed paths:
    M clang-tools-extra/include-cleaner/lib/WalkAST.cpp
    M clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp

  Log Message:
  -----------
  [include-cleaner] Always treat constructor calls as implicit

Treating constructor calls when the type name isn't explicitly spelled
can cause spurious results, so turn them into implicit references.
This doesn't change the behaviour for constructor calls that explicitly spell
the type name, as we should see a reference through the typeloc.

Fixes https://github.com/llvm/llvm-project/issues/60812

Differential Revision: https://reviews.llvm.org/D144582




More information about the All-commits mailing list