This was discovered while working on modules. They can't export
declarations with internal linkage.
Details
Details
- Reviewers
philnik - Group Reviewers
Restricted Project - Commits
- rGd5442761f944: [libc++][ranges] Fixes as_rvalue's linkage.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Maybe we could add a clang-tidy check to make sure all variables in the std::ranges::__cpo namespace are marked inline?
Comment Actions
Thanks for the review!
That would be an extremely narrow check. I don't think that's too useful, especially since several similar issues were found be module tests. This tests validates the declarations in the headers and compares them in the modules. This is a useful test by itself and catches this error too.