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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks. I was surprised to see that some standard library symbols are treated as builtin symbols.
I think the current approach is better (e.g. clangd's hover on __builtin_popcount() will not give some arbitrary header providers).
clang-tools-extra/include-cleaner/lib/FindHeaders.cpp | ||
---|---|---|
169 | I think it would be clearer if we move this FIXME after the following if branch. |
I think it would be clearer if we move this FIXME after the following if branch.