- ОС -хост: Windows 10, удаленная ОС: Ubuntu 20.04
- Vscode. 1.12.27
- Компилятор: Clang 15 в соответствии с Apt.llvm.org/llvm.sh
alt alt at alt at alt it altined:
alt artice artice arte intrined. src = "https://i.sstatic.net/tbms6.png"/>
Если i f12 on #include я перейду в/usr/include/c ++/9/string_view , где я вижу, что это думает, что встроенный макрос. to c ++ 11:
/>
Код: Выделить всё
[10/3/2022, 9:57:47 PM] For C++ source files, the cppStandard was changed from "c++23" to "c++20" based on compiler args and querying compilerPath: "/usr/bin/clang"
(я установил конфигурацию Intellisense vscode «Стандарт C ++» в «C ++ 23», в то время как мой проект Cmake все еще говорил «C ++ 20».) PrettyPrint-Override ">
Код: Выделить всё
{
"configurations": [
{
"name": "Linux",
"intelliSenseMode": "linux-clang-x64",
"includePath": [],
"defines": [],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++20",
"configurationProvider": "ms-vscode.cmake-tools"
}
],
"version": 4
}
Я установил расширение clangd < /code>-Сервер языка Кланг-и отключил встроенный интеллект (
Код: Выделить всё
clangd
Подробнее здесь: https://stackoverflow.com/questions/739 ... s-evidence