Skip to content

未指定 -s 时自动在 build/ 文件夹查找 sln 文件。解析 cpp 标准,未指定 cpp 标准时默认 cpp20。默认配置从 Debug|Win32 改为 Debug|x64。添加 go-releaser 自动发布。#4

Open
hatrd wants to merge 6 commits intopaopaol:masterfrom
hatrd:master

Conversation

@hatrd
Copy link
Copy Markdown

@hatrd hatrd commented Mar 2, 2025

写挺杂的,或许上游有用呢。

hatrd and others added 6 commits March 2, 2025 13:53
- 在 ClCompile 结构体中新增 LanguageStandard 和 ConformanceMode 字段
- 修改 FindConfig 方法以返回 C++ 标准信息
- 添加 getCppStandardFlag 函数,将 Visual Studio 的语言标准映射到 clang-cl 的标准选项
- 更新 CompileCommandsJson 方法,在编译命令中添加 C++ 标准选项
- 将 C++ 标准选项从 "-std=c++*" 修改为 "/std:c++*"
- 适配 clang-cl.exe 编译器的参数格式
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.

1 participant