Clang wants to enable this flag by default, but libc++ isn't working with it yet.
Details
- Reviewers
ldionne Mordante var-const EricWF - Group Reviewers
Restricted Project Restricted Project - Commits
- rGe65cd4ce832b: [libc++] Enable -Wunused-template
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
libcxx/include/__algorithm/make_projected.h | ||
---|---|---|
63–76 | Those are templates, so they are implicitly inline. I would suggest not marking them at all. | |
89 | Here too. | |
libcxx/include/__memory/shared_ptr.h | ||
436–439 | Here too. | |
libcxx/include/__type_traits/is_nothrow_convertible.h | ||
30–33 | Here too. | |
libcxx/src/filesystem/filesystem_common.h | ||
51 | Which functions in this file trigger the warning? |
libcxx/src/filesystem/filesystem_common.h | ||
---|---|---|
51 | I don't know exactly, but this has to be cleaned up anyways. Currently, everything in this file is inside an anonymous namespace and marked static. I don't know why it's this way, but I don't think there is a good reason for it. |
How is libc++ not working with it yet a blocker for them? We disable warnings in our headers except outside of our build?
Those are templates, so they are implicitly inline. I would suggest not marking them at all.