I’m running https://github.com/LeeTeng2001/metal-cpp-cmake in VS Code with the CMake extension. It builds targets just fine, but intellisense has over a hundred errors across my files. One example:
a class-qualified name is not allowed C/C++ (754)
on line:
using NS::StringEncoding::UTF8StringEncoding;
Here is my c_cpp_properties.json
:
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-arm64",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
Can anyone give instructions on how to open this project and get intellisense to work correctly?
7