Skip to content

Enable /diagnostics:caret for MSVC - #397

Merged
texus merged 1 commit into
texus:1.xfrom
jjuhl:1.x
Sep 23, 2026
Merged

texus merged 1 commit into
texus:1.xfrom
jjuhl:1.x

Conversation

@jjuhl

@jjuhl jjuhl commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

MS documentation can (currently) be found here:
https://learn.microsoft.com/en-us/cpp/build/reference/diagnostics-compiler-diagnostic-options?view=msvc-170

In short, this makes the Microsoft compiler place a caret ("^") under an error message that points to where (what column) in the reported line the error was encountered.
This is super helpful, so let's enable it. It also makes the MS compilers error output match closer with what GCC and Clang do, so when switching compilers your error output stays roughly the same - which is nice.

MS documentation can (currently) be found here:
  https://learn.microsoft.com/en-us/cpp/build/reference/diagnostics-compiler-diagnostic-options?view=msvc-170

In short, this makes the Microsoft compiler place a caret ("^") under
an error message that points to where (what column) in the reported
line the error was encountered.
This is super helpful, so let's enable it. It also makes the MS
compilers error output match closer with what GCC and Clang do, so
when switching compilers your error output stays roughly the same -
which is nice.
@texus
texus merged commit 66b56b0 into texus:1.x Sep 23, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants