Open AlseinX opened 5 months ago
I found that the problem comes from this signature:
template <unsigned int SIZE>
inline auto fill(char (&dst)[SIZE], std::convertible_to<std::string_view> auto &&src) -> void
When I move std::convertible_to<std::string_view> auto
to a template parameter:
template <unsigned int SIZE, std::convertible_to<std::string_view> T>
inline auto fill(char (&dst)[SIZE], T &&src) -> void
The errors disappeared
Environment
Bug Summary and Steps to Reproduce
Bug Summary: Including the following head file makes IntelliSense (default engine) totally broken, reporting a lot of unknown identifier and syntax errors(like missing ';'). The C/C++ extension is configured with cmake configuration provider, with all
compile_commands.json
correctly generated and all header files found. The configured compiler is Clang/Clang++ 18.1.4.Steps to reproduce:
#include
this header into my.cpp
fileC_Cpp.intelliSenseMemoryLimit
andintelliSenseCacheSize
to a large enough number, kill the remote SSH host, and reload the VSCode.Expected behavior: No error or warnings, as it builds with no errors or warnings.
Configuration and Logs
C/C++: Log Diagnostics
language server log