-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prettify STL error output #2897
Prettify STL error output #2897
Conversation
Before: ``` PS ...\stl-tests> cl /Tc .\stl-warnings.cxx Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31517 for x64 Copyright (C) Microsoft Corporation. All rights reserved. stl-warnings.cxx ...\yvals_core.h(23): fatal error C1189: #error: STL1003: Unexpected compiler, expected C++ compiler. ``` After ``` PS ...\stl-tests> cl /Tc .\stl-warnings.cxx Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31517 for x64 Copyright (C) Microsoft Corporation. All rights reserved. stl-warnings.cxx ...\yvals_core.h(432): error STL1003: Unexpected compiler, expected C++ compiler. ...\yvals_core.h(432): error C2338: static_assert failed: 'Error in C++ Standard Library usage.' ```
Given that people generally seem happy with the idea of the changes, marking non-draft |
Need to merge |
1407b29
to
43c77f7
Compare
@strega-nil-ms @CaseyCarter I've pushed a correctness fix, message appearance fix, and completed workaround removal - please double-check 😸 |
Thanks @StephanTLavavej, looks good to me :) |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for improving how these errors are displayed! ✨ 🎉 😺 |
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com> Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com> Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
Fixes #2896
Before:
After