Caphyon / clang-power-tools

Bringing clang-tidy magic to Visual Studio C++ developers.
http://www.clangpowertools.com
Apache License 2.0
472 stars 57 forks source link

Index was out of range error when using CMake project #1363

Open aoqia194 opened 2 weeks ago

aoqia194 commented 2 weeks ago

When using any CMake project, running clang-tidy will cause the following error: image

The following settings were used with clang-power-tools' clang-tidy feature: image

Using different clang-tidy checks (or even none) did not resolve this issue. Nor did using a custom header filter, or custom executable to my local install of LLVM's clang-tidy. The format feature in clang-power-tools (using clang-format) is unaffected by this bug and is not reproducable.

clang-power-tools version: 2024.4.1 - installed via Visual Studio's Manage Extensions feature. LLVM version(s): 18.1.6 (installed locally), 14.0.6 (installed via LLVM tab in extension) Visual Studio version: Visual Studio Community 2022 [build 17.10.2]

EDIT: Typo