vscode: point IntelliSense at clang instead of MSVC #564

Manually merged
github merged 2 commits from gh-pr/564/head into gh-pr/564/base 2026-11-26 09:25:54 +00:00
Owner

@⁠psnwd on GitHub · 2026-09-11 16:46 UTC · original
psnwd:chore/vscode-intellisense-clang → main · +6 −4 · 1 files · 2 commits · merged 2026-09-17 07:38 UTC

KYTY_SYSV_ABI expands to attribute((sysv_abi)) with no MSVC fallback, which is correct for a project that rejects cl.exe at configure time. Nothing told the C/C++ extension that, so it fell back to windows-msvc-x64 and flagged every guest-facing function in the tree with "attribute is not a type name".

Set the IntelliSense mode, compiler path and C++ standard to match the compiler the build actually uses, and export a compile database for it to read.

Summary by CodeRabbit

  • Chores
    • Updated Visual Studio development environment settings for CMake.
    • Added default C/C++ IntelliSense configuration for Windows Clang x64, including C++20 support and compile commands integration.
    • Simplified environment path configuration.
**@⁠psnwd** on GitHub · 2026-09-11 16:46 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/564) `psnwd:chore/vscode-intellisense-clang` → `main` · +6 −4 · 1 files · 2 commits · merged 2026-09-17 07:38 UTC KYTY_SYSV_ABI expands to __attribute__((sysv_abi)) with no MSVC fallback, which is correct for a project that rejects cl.exe at configure time. Nothing told the C/C++ extension that, so it fell back to windows-msvc-x64 and flagged every guest-facing function in the tree with "__attribute__ is not a type name". Set the IntelliSense mode, compiler path and C++ standard to match the compiler the build actually uses, and export a compile database for it to read. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated Visual Studio development environment settings for CMake. - Added default C/C++ IntelliSense configuration for Windows Clang x64, including C++20 support and compile commands integration. - Simplified environment path configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
KYTY_SYSV_ABI expands to __attribute__((sysv_abi)) with no MSVC fallback,
which is correct for a project that rejects cl.exe at configure time. Nothing
told the C/C++ extension that, so it fell back to windows-msvc-x64 and
flagged every guest-facing function in the tree with "__attribute__ is not a
type name".

Set the IntelliSense mode, compiler path and C++ standard to match the
compiler the build actually uses, and export a compile database for it to
read.
The IntelliSense settings named a specific Visual Studio install, so the
compiler and Ninja only resolved on machines with VS 18 Community under
Program Files. Let CMake Tools source the developer environment instead,
which locates the toolchain through vswhere, and drop the explicit
compilerPath so cpptools takes the compiler from compile_commands.json.

Also point C_Cpp.default.compileCommands at the build directory this
workspace actually configures, and drop CMAKE_EXPORT_COMPILE_COMMANDS
because CMake Tools already exports the database by default.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:25:52 +00:00
github manually merged commit 3fd23a688f into gh-pr/564/base 2026-11-26 09:25:54 +00:00
Author
Owner

@⁠Nmzik on GitHub · 2026-09-13 08:30 UTC · original

@⁠psnwd all good except you hardcoded the path to VS

**@⁠Nmzik** on GitHub · 2026-09-13 08:30 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/564#issuecomment-5652224414) @⁠psnwd all good except you hardcoded the path to VS
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-13 12:56 UTC · original · edited 2026-09-13 13:02 UTC

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: ff0c8bdb-d6b6-4364-a8ec-13904e593b2b

📥 Commits

Reviewing files that changed from the base of the PR and between 2e315a3c62 and 3fd23a688f.

📒 Files selected for processing (1)
  • .vscode/settings.json

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The VS Code CMake settings now use the Visual Studio developer environment and configure C/C++ IntelliSense for windows-clang-x64, compile_commands.json, and c++20.

Changes

Windows CMake and IntelliSense configuration

Layer / File(s) Summary
Configure CMake and IntelliSense
.vscode/settings.json
CMake always uses the Visual Studio developer environment. The explicit PATH override is removed. C/C++ IntelliSense now uses windows-clang-x64, compile_commands.json, and c++20.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 3fd23

The updated VS Code settings align IntelliSense and CMake with the documented Windows clang-cl workflow. No merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: configuring VS Code IntelliSense to use Clang instead of MSVC.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-13 12:56 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/564#issuecomment-5653409833) · edited 2026-09-13 13:02 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/564#gh-light-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg" alt="Review Change Stack" width="202" height="32"></a><a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/564#gh-dark-mode-only"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg" alt="Review Change Stack" width="202" height="32"></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: defaults **Review profile**: CHILL **Plan**: Advanced **Run ID**: `ff0c8bdb-d6b6-4364-a8ec-13904e593b2b` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 2e315a3c62bf036c8225d5057ada1d70cd8063f1 and 3fd23a688fe892c4370dede34ed07127dd8c6e7d. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `.vscode/settings.json` </details> **Included review availability:** Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The VS Code CMake settings now use the Visual Studio developer environment and configure C/C++ IntelliSense for `windows-clang-x64`, `compile_commands.json`, and `c++20`. ### Changes **Windows CMake and IntelliSense configuration** |Layer / File(s)|Summary| |---|---| |**Configure CMake and IntelliSense** <br> `.vscode/settings.json`|CMake always uses the Visual Studio developer environment. The explicit `PATH` override is removed. C/C++ IntelliSense now uses `windows-clang-x64`, `compile_commands.json`, and `c++20`.| <!-- change_assessment_start --> **Priority:** ⬇️ Low **Estimated code review effort:** 1 (Trivial) | ~5 minutes <!-- change_assessment_commit:"3fd23a688fe892c4370dede34ed07127dd8c6e7d" --> **Change:** Bug fix <!-- change_assessment_end --> </details> <!-- walkthrough_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `3fd23` <!-- final_review_risk_coverage:{"sourceCommitId":"3fd23a688fe892c4370dede34ed07127dd8c6e7d","coveredCommitId":"3fd23a688fe892c4370dede34ed07127dd8c6e7d","kind":"reviewed"} --> The updated VS Code settings align IntelliSense and CMake with the documented Windows clang-cl workflow. No merge-blocking risk remains. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 5</summary> <details> <summary>✅ Passed checks (5 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. | | Title check | ✅ Passed | The title clearly and concisely describes the main change: configuring VS Code IntelliSense to use Clang instead of MSVC. | | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0… | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- finishing_touch_checkbox_start --> <details> <summary>✨ Finishing Touches</summary> <details> <summary>🧪 Generate unit tests (beta)</summary> - [ ] <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create PR with unit tests </details> </details> <!-- finishing_touch_checkbox_end --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=564)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.