add _ENFORCE_ONLY_CORE_HEADERS#2068
Conversation
|
We are using lit to run the test. Did you try a |
no. Can I have 2 failing tests in 1 folder? One for _FORBID_ALL_STL_HEADERS, one for _ENFORCE_ONLY_CORE_HEADERS? |
|
I do not know, but you can always just add two folders i guess |
Co-authored-by: Michael Schellenberger Costa <mschellenbergercosta@gmail.com>
tests/std/tests/GH_000311_enforce_core_headers/test.compile.cpp
Outdated
Show resolved
Hide resolved
|
No. It doesn't work. When I have |
|
We need to verify that all non-core headers include Line 9 in bd7adb4 |
|
We made a decision on #311 in the weekly maintainer meeting - let's keep |
Co-authored-by: Adam Bucior <35536269+AdamBucior@users.noreply.github.com>
tests/std/tests/GH_000311_enforce_core_headers/test.compile.pass.cpp
Outdated
Show resolved
Hide resolved
|
Thanks! (And apologies for the extreme delay here. 🙀) I've pushed changes to use the new STL error message machinery, to perform this check for only real compilers (non-compiler tools have "preprocessors" with sometimes questionable behavior), and to fuse the test coverage into the pre-existing test for core headers where this makes perfect sense. Users will see: |
|
I'm speculatively mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
|
Thanks for making it easier for users to limit themselves to the core subset! 🎯 ✅ 🎉 |
Fixes #311
These are probably terrible error messages.
Feel free to suggest a better :)
As far as I remember, I already asked. But I still want to clarify. We can't create a failing test. They are only available in the LLVM test suite, right?