[all-commits] [llvm/llvm-project] 3402b7: [include-cleaner] Only ignore builtins without a h...
kadir çetinkaya via All-commits
all-commits at lists.llvm.org
Tue Apr 4 04:34:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3402b77db3ee83f0c576988631afa12cfba61285
https://github.com/llvm/llvm-project/commit/3402b77db3ee83f0c576988631afa12cfba61285
Author: Kadir Cetinkaya <kadircet at google.com>
Date: 2023-04-04 (Tue, 04 Apr 2023)
Changed paths:
M clang-tools-extra/include-cleaner/lib/FindHeaders.cpp
M clang-tools-extra/include-cleaner/lib/WalkAST.cpp
M clang-tools-extra/include-cleaner/unittests/AnalysisTest.cpp
M clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp
Log Message:
-----------
[include-cleaner] Only ignore builtins without a header
Certain standard library functions (e.g. std::move) are also implemented
as builtins. This patch moves filtering logic to the symbol->header
mapping phase to rather generate these references without any providers
only when we don't have a mapping.
That way we can also map them to header names mentioned in the builtin
mappings.
Differential Revision: https://reviews.llvm.org/D147449
More information about the All-commits
mailing list