identifier "false" is undefined #11718
-
I have Clang 16 installed and I can compile my code just fine, but intellisense says that my booleans are undefined. {
"configurations": [
{
"name": "Linux",
"includePath": ["/usr/lib/clang/16/**", "${workspaceFolder}/**"],
"defines": [],
"compilerPath": "/sbin/clang-16",
"intelliSenseMode": "linux-clang-x64",
"cStandard": "c23",
"cppStandard": "c++23"
}
],
"version": 4
} Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
It is not recommended to add the system include path to your In the case where you're seeing this error could you run the "C/C++: Log Diagnostics" command when the affected file is visible in the editor and share the output with us? |
Beta Was this translation helpful? Give feedback.
-
Related on Stack Overflow: VS Code's C/C++ extension says the C23 true and false keywords are unidentified. |
Beta Was this translation helpful? Give feedback.
Ah, ok. You're using C. Support for
true
andfalse
in the C23 spec has not yet been implemented by the language server. Lists of supported features per standard are linked from here: https://www.edg.com/c/features. This specific one is on row 44 of the spreadsheet for C23 feature tracking.