<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63711>63711</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Clang-Tidy.exe access violation
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          simonvnice
      </td>
    </tr>
</table>

<pre>
    Since upgrading to Visual Studio Enterprise 17.6.4, clang-tidy.exe has started to crash with access violation. Note the stl installed with 17.6.4 requires v15 or greater so an older (working version) cannot be used.

Example of crash:
... -p=C:\\src\\_git176094_CC\\CCTV\\\\build-tmp\\Win32\\...
Exception Code: 0xC0000005
#0 0x015a9710 C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\bin\clang-tidy.exe 0x7c9710
0x015A9710, C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\bin\clang-tidy.exe(0x0000000000DE0000) + 0x7C9710 byte(s)
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Microsoft.Cpp.ClangTidy.targets(228,5): error MSB6006: "clang-tidy.exe" exited with code -1073741819.
63>Done building project "....vcxproj" -- FAILED.

Example of requirement for v15 or greater:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.36.32532\include\yvals_core.h(829,1): error G04961F0B: static_assert failed "Error in C++ Standard Library usage." [clang-diagnostic-error]
_EMIT_STL_ERROR(STL1000, "Unexpected compiler version, expected Clang 15.0.0 or newer.");
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8ld-P4yYQx_8a8jIKwvj3Qx42JKlO2m2rS3p9jAieOLQEXMC57H9fYWdv71bq26nWygvjgfkw82UiQ9C9RVyRck3KzUKO8eL8KuirszerFS5Orntd7bVVCOPQe9lp20N08EWHURrYx7HTDrY2oh-8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