If using SSH remote, specify OS of remote machine:
Bug Summary and Steps to Reproduce
Bug Summary:
#include <CoreFoundation/CFString.h> works fine. Also #if __has_include(<unistd.h>) works well.
But #if __has_include(<CoreFoundation/CFString.h>) does not.
Steps to reproduce:
Set "cppStandard": "c++17"
Put the code below:
#if !__has_include(<CoreFoundation/CFString.h>)
#error CFString.h not found!
#endif
See error on vscode editor pane.
Expected behavior:
No error shows.
Actual behavior:
VS Code shows the error. But it compiles with Xcode clang++ successfully.
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
#include <CoreFoundation/CFString.h>
works fine. Also#if __has_include(<unistd.h>)
works well. But#if __has_include(<CoreFoundation/CFString.h>)
does not.Steps to reproduce:
Expected behavior:
No error shows.
Actual behavior:
VS Code shows the error. But it compiles with Xcode clang++ successfully.
Configuration and Logs
c_cpp_properties.json
Diagnostics log:
Other Extensions
No response
Additional context
example code:
main.cc
command: