Open whypet opened 1 year ago
Hi @whypet . Thanks for reporting this. I've opened an internal bug against VS, as this issue also occurs in VS and is in IntelliSense code that is shared with VS. (ID 1908009).
@whypet Also, FYI, this line in your configuration appears to be invalid:
"configurationProvider": "ms-vscode.cpptools"
This field is for specifying the ID of a custom configuration provider, such as CMake Tools and Makefile Tools. I don't think having an incorrect value here is going to hurt, but I'd suggest removing it, just in case.
Hey, thanks for the heads-up, I'll remove that line from my configurations. I remember thinking it was needed because I was using CMake Tools and ended up having issues with it not giving IntelliSense some information like include directories, so I tried to do it manually.
CMake Tools will only provide information for headers if you list the headers in your add_executable
/add_library
invocations. Otherwise, you can get the information transitively by opening a source file that includes that header.
I see, thanks. Maybe I was facing these issues because I use target_sources
to list all source and header files instead but I'm not sure, I'm a bit new to CMake as a whole.
Environment
Bug Summary and Steps to Reproduce
Bug Summary: When using IntelliSense mode clang-x64, IntelliSense doesn't recognize Microsoft integer suffixes (which are used in the Windows SDK), however it works when using IntelliSense mode msvc-x64. Despite that, these suffixes compile on Clang.
Steps to reproduce:
or
clang main.c -Weverything -o main.exe
Expected behavior: Shouldn't display any error, or perhaps an error about compiler portability that explicitly states it's a Microsoft extension.
Configuration and Logs
c_cpp_properties.json:
Logs:
Other Extensions
Same behavior when the only enabled extension is C/C++.
Additional context