microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.51k stars 1.55k forks source link

#include errors detected #11073

Closed MKHen closed 7 months ago

MKHen commented 1 year ago

Environment

Bug Summary and Steps to Reproduce

Bug Summary:

I am getting the following errors in VSCode on Windows using MSYS2/clang64 compiler:

#include errors detected. Consider updating your compile_commands.json or includePath. IntelliSense features for this translation unit (D:\xxx\xxx.cpp) will be provided by the Tag Parser.C/C++(1696)

and

cannot open source file "cstddef" (dependency of "D:\xxx\gtest\gtest.h")C/C++(1696) when using MSYS2 clang64 environment.

Additionally cstlib, iostream, ... aren't found as well.

Using MSYS2 mingw64 (clang or gcc) everything is working.

Part of my cmake-kits.json

{
"name": "MSYS2 clang64",
"compilers": {
    "C": "C:\\msys64\\clang64\\bin\\clang.exe",
    "CXX": "C:\\msys64\\clang64\\bin\\clang++.exe"
},
"environmentVariables": {
    "CMT_MINGW_PATH": "C:\\msys64\\clang64\\bin"
}

Steps to reproduce: Here a test code can be found which reproduces the behavior when compiling.

Expected behavior: All the includes should be found.

Configuration and Logs

Logs:
-------- Diagnostics - 6/12/2023, 6:43:33 AM
Version: 1.15.4
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "d:\\VSCode_test/**"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "compilerPath": "C:\\msys64\\mingw64\\bin\\gcc.exe",
    "cStandard": "gnu17",
    "cppStandard": "gnu++17",
    "intelliSenseMode": "windows-gcc-x64",
    "configurationProvider": "ms-vscode.cmake-tools",
    "compileCommands": "d:\\VSCode_test/${variant:buildType}/compile_commands.json",
    "compilerPathIsExplicit": true,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": true,
    "compilerPathInCppPropertiesJson": "C:\\msys64\\mingw64\\bin\\gcc.exe",
    "compileCommandsInCppPropertiesJson": "${config:cmake.buildDirectory}/compile_commands.json",
    "configurationProviderInCppPropertiesJson": "ms-vscode.cmake-tools",
    "mergeConfigurations": false,
    "browse": {
        "path": [
            "${workspaceFolder}/**"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Custom browse configuration: 
{
    "browsePath": [
        "d:/vscode_test/src"
    ],
    "compilerPath": "c:/msys64/clang64/bin/clang++.exe",
    "compilerArgs": [],
    "compilerFragments": [
        "-fms-extensions -Wno-address-of-temporary -g -std=gnu++17",
        "-DDUMMY",
        "-std=c++17",
        "-pthread",
        "-fpermissive"
    ]
}
Custom configurations:
[ D:\VSCode_test\src\main.cpp ]
{
    "includePath": [
        "d:/vscode_test/src"
    ],
    "defines": [],
    "compilerPath": "c:/msys64/clang64/bin/clang++.exe",
    "compilerArgs": [],
    "compilerFragments": [
        "-fms-extensions -Wno-address-of-temporary -g -std=gnu++17",
        "-DDUMMY",
        "-std=c++17",
        "-pthread",
        "-fpermissive"
    ]
}
Translation Unit Mappings:
[ D:\VSCode_test\src\main.cpp ]:
    D:\VSCode_test\src\main.cpp
Translation Unit Configurations:
[ D:\VSCode_test\src\main.cpp ]:
    Process ID: 19832
    Memory Usage: 50 MB
    Compiler Path: C:\msys64\clang64\bin\clang++.exe
    Includes:
        D:\VSCode_test\src
        C:\msys64\clang64\lib\clang\16\include
        C:\msys64\mingw64\include
    Defines:
        DUMMY
    Standard Version: c++17
    IntelliSense Mode: windows-clang-x64
    Other Flags:
        --clang
        --clang_version=160004
        --ms_extensions
Total Memory Usage: 50 MB
Browse Paths from compile_commands.json, from workspace folder: D:\VSCode_test
    D:\VSCode_test\src

------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 9095

Other Extensions

No response

Additional context

No response

Colengms commented 1 year ago

Hi @MKHen . It looks like you've indicated both a configurationProvider and compileCommands. Generally, you would only want to specify one of these. I'd suggest removing the compileCommands field.

From your Log Diagnostics output, I see that main.cpp received a custom configuration from the provider. It appears that the C/C++ extension was able to query the compiler in that configuration (C:\msys64\clang64\bin\clang++.exe), and determined the following system include paths:

C:\msys64\clang64\lib\clang\16\include
C:\msys64\mingw64\include

However, your setup appears to big significantly different from mine. When I install the mingw-w64-x86_64-clang package into MSYS64, I see that the path to clang++.exe is C:\msys64\mingw64\bin\clang++.exe, not c:/msys64/clang64/bin/clang++.exe. So, it's unclear to me how your system is configured. In my case, I see all fo the following include paths:

C:\msys64\mingw64\include\c++\13.1.0
C:\msys64\mingw64\include\c++\13.1.0\x86_64-w64-mingw32
C:\msys64\mingw64\include\c++\13.1.0\backward
C:\msys64\mingw64\lib\clang\16\include
C:\msys64\mingw64\include

Could you clarify what package you used to install clang into MSYS?

Also, could you enable "C_Cpp.loggingLevel": "Debug" and provide the output from your C/C++ output log, leading up to the repro? That should indicate the command line used to query the compiler for system includes. For example, in my case it was:

C:\msys64\mingw64\bin\clang++.exe -fms-extensions -Wno-address-of-temporary -g -std=gnu++17 -std=c++17 -pthread -fpermissive -m64 -Wp,-v -fno-blocks -E -dM -x c++ nul

This how the system include paths are determined. It would seem that this is failing for some reason, in your setup.

MKHen commented 1 year ago

Hi @Colengms. Thank you for having a look on my issue.

For the MSYS2 installation you have to choose the clang64 environment. I think this will be the correct one.

See here the output I get:

$ clang -v clang version 16.0.4 Target: x86_64-w64-windows-gnu Thread model: posix InstalledDir: C:/msys64/clang64/bin

when using MSYS MinGW Clang x64 bash.

I hope the explanation is correct. It is still a bit wired.

Now to the logs. From C/C++ Configuration Warnings I get: "d:\VSCode_test/${variant:buildType}/compile_commands.json" could not be parsed. 'includePath' from c_cpp_properties.json in folder 'VSCODE_TEST' will be used instead.

C/C++ tells me

LSP: cpptools/fileDeleted: file:///d%3A/VSCode_test/bin-clang64 Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp Error squiggle count: 3 Update IntelliSense time (sec): 0.264 LSP: cpptools/getSemanticTokens: file:///d%3A/VSCode_test/src/main.cpp (id: 13) LSP: cpptools/getFoldingRanges: file:///d%3A/VSCode_test/src/main.cpp (id: 14) LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64 LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1 LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/query LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/query/client-vscode LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/query/client-vscode/query.json Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp Database safe to open LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4 LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CMakeSystem.cmake LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeConfigureLog.yaml LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/pkgRedirects Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CompilerIdC LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CompilerIdC/CMakeCCompilerId.c LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CompilerIdC/tmp tag parsing file: D:\VSCode_test\bin-clang64\CMakeFiles\3.26.4\CompilerIdC\CMakeCCompilerId.c Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CompilerIdC/a.exe Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CMakeCCompiler.cmake LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CompilerIdCXX LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CompilerIdCXX/CMakeCXXCompilerId.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CompilerIdCXX/tmp tag parsing file: D:\VSCode_test\bin-clang64\CMakeFiles\3.26.4\CompilerIdCXX\CMakeCXXCompilerId.cpp Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CompilerIdCXX/a.exe Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CMakeCXXCompiler.cmake Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp Error squiggle count: 3 Update IntelliSense time (sec): 1.831 LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CMakeRCCompiler.cmake Checking for syntax errors: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeFiles LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeFiles/pkgRedirects LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeLists.txt LSP: cpptools/getSemanticTokens: file:///d%3A/VSCode_test/src/main.cpp (id: 15) LSP: cpptools/getFoldingRanges: file:///d%3A/VSCode_test/src/main.cpp (id: 16) Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeCache.txt LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeFiles/TargetDirectories.txt LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeFiles/cmTC_d7be8.dir LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeFiles/cmake.check_cache LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeFiles/rules.ninja LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/build.ninja LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/cmTC_d7be8_loc LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/cmake_install.cmake Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/.ninja_deps LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/.ninja_log LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/CMakeFiles/cmTC_d7be8.dir/CMakeCCompilerABI.c.obj Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi/libcmTC_d7be8.a LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CMakeDetermineCompilerABI_C.bin LSP: cpptools/fileDeleted: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-ld97xi Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81 LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeFiles LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeFiles/pkgRedirects LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeLists.txt Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeCache.txt LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeFiles/TargetDirectories.txt LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeFiles/cmTC_68826.dir LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeFiles/cmake.check_cache LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeFiles/rules.ninja LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/build.ninja LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/cmTC_68826_loc LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/cmake_install.cmake Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/.ninja_deps LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/.ninja_log LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/CMakeFiles/cmTC_68826.dir/CMakeCXXCompilerABI.cpp.obj Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81/libcmTC_68826.a Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeCache.txt LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/3.26.4/CMakeDetermineCompilerABI_CXX.bin LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/TargetDirectories.txt LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/VSCode-Test.dir LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/VSCode-Test.dir/src LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/cmake.check_cache LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/rules.ninja LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/build.ninja LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/cmake_install.cmake LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/compile_commands.json LSP: cpptools/fileDeleted: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/CMakeScratch/TryCompile-1heg81 LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/cache-v2-ae585a4e660aba74c810.json LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/cmakeFiles-v1-336d27f02fc20ead15b2.json LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/codemodel-v2-7400e03ff2deb6c13f59.json LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/directory-.-Debug-d0094a50bb2071803777.json LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/index-2023-06-13T05-47-49-0238.json LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/target-VSCode-Test-Debug-1e401514f3541582c7f2.json LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/toolchains-v1-483139f1c203791bef62.json Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp Custom browse configuration received: { "browsePath": [ "d:/vscode_test/src" ], "compilerPath": "c:/msys64/clang64/bin/clang++.exe", "compilerArgs": [], "compilerFragments": [ "-fms-extensions -Wno-address-of-temporary -g -std=gnu++17", "-DDUMMY", "-std=c++17", "-pthread", "-fpermissive" ] } LSP: cpptools/clearCustomConfigurations LSP: cpptools/queryTranslationUnitSource: file:///d%3A/VSCode_test/src/main.cpp (id: 17) LSP: cpptools/runCodeAnalysis LSP: cpptools/didChangeCustomBrowseConfiguration Checking for syntax errors: D:\VSCode_test\src\main.cpp Custom configurations received: uri: file:///d%3A/VSCode_test/src/main.cpp config: { "includePath": [ "d:/vscode_test/src" ], "defines": [], "compilerPath": "c:/msys64/clang64/bin/clang++.exe", "compilerArgs": [], "compilerFragments": [ "-fms-extensions -Wno-address-of-temporary -g -std=gnu++17", "-DDUMMY", "-std=c++17", "-pthread", "-fpermissive" ] } Shutting down IntelliSense server: D:\VSCode_test\src\main.cpp LSP: cpptools/didChangeCustomConfiguration LSP: cpptools/resumeParsing LSP: cpptools/queryTranslationUnitSource: file:///d%3A/VSCODE_TEST/SRC/MAIN.CPP (id: 18) LSP: cpptools/finishedRequestCustomConfig: D:\VSCODE_TEST\SRC\MAIN.CPP c:\Users\user.vscode\extensions\ms-vscode.cpptools-1.15.4-win32-x64/bin/../LLVM/bin/clang-tidy.exe --header-filter=(D:/VSCode_test|D:\VSCode_test) --export-fixes=C:\Users\user\AppData\Local\Temp{8774660182297671845}\fixes31712.yaml --quiet --use-color=false D:/VSCode_test/src/main.cpp

-std=c++17 -xc++ -Wno-pragma-pack -Wno-pragma-once-outside-header -DDUMMY -D_NATIVE_WCHAR_T_DEFINED=1 -D_WCHAR_T_DEFINED=1 -D_WIN32=1 -D_WIN64=1 -DATOMIC_ACQUIRE=2 -DATOMIC_ACQ_REL=4 -DATOMIC_CONSUME=1 -DATOMIC_RELAXED=0 -DATOMIC_RELEASE=3 -DATOMIC_SEQ_CST=5 -DBIGGEST_ALIGNMENT=16 -DBITINT_MAXWIDTH=8388608 -DBOOL_WIDTH=8 -DBYTE_ORDER=ORDER_LITTLE_ENDIAN -DCHAR16_TYPE=unsigned short -DCHAR32_TYPE=unsigned int -DCHAR_BIT=8 -DCLANG_ATOMIC_BOOL_LOCK_FREE=2 -DCLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 -DCLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 -DCLANG_ATOMIC_CHAR_LOCK_FREE=2 -DCLANG_ATOMIC_INT_LOCK_FREE=2 -DCLANG_ATOMIC_LLONG_LOCK_FREE=2 -DCLANG_ATOMIC_LONG_LOCK_FREE=2 -DCLANG_ATOMIC_POINTER_LOCK_FREE=2 -DCLANG_ATOMIC_SHORT_LOCK_FREE=2 -D__CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 -DCONSTANT_CFSTRINGS=1 -DDBL_DECIMAL_DIG=17 -DDBL_DENORM_MIN=4.9406564584124654e-324 -DDBL_DIG=15 -DDBL_EPSILON=2.2204460492503131e-16 -DDBL_HAS_DENORM=1 -DDBL_HAS_INFINITY=1 -DDBL_HAS_QUIET_NAN=1 -DDBL_MANT_DIG=53 -DDBL_MAX_10_EXP=308 -DDBL_MAX_EXP=1024 -DDBL_MAX=1.7976931348623157e+308 -DDBL_MIN_10_EXP=(-307) -DDBL_MIN_EXP=(-1021) -DDBL_MIN=2.2250738585072014e-308 -DDECIMAL_DIG=LDBL_DECIMAL_DIG -DDEPRECATED=1 -DEXCEPTIONS=1 -DFINITE_MATH_ONLY=0 -DFLT16_DECIMAL_DIG=5 -DFLT16_DENORM_MIN=5.9604644775390625e-8F16 -DFLT16_DIG=3 -DFLT16_EPSILON=9.765625e-4F16 -DFLT16_HAS_DENORM=1 -DFLT16_HAS_INFINITY=1 -DFLT16_HAS_QUIET_NAN=1 -DFLT16_MANT_DIG=11 -DFLT16_MAX_10_EXP=4 -DFLT16_MAX_EXP=16 -DFLT16_MAX=6.5504e+4F16 -DFLT16_MIN_10_EXP=(-4) -DFLT16_MIN_EXP=(-13) -DFLT16_MIN=6.103515625e-5F16 -DFLT_DECIMAL_DIG=9 -DFLT_DENORM_MIN=1.40129846e-45F -DFLT_DIG=6 -DFLT_EPSILON=1.19209290e-7F -DFLT_HAS_DENORM=1 -DFLT_HAS_INFINITY=1 -DFLT_HAS_QUIET_NAN=1 -DFLT_MANT_DIG=24 -DFLT_MAX_10_EXP=38 -DFLT_MAX_EXP=128 -DFLT_MAX=3.40282347e+38F -DFLT_MIN_10_EXP=(-37) -DFLT_MIN_EXP=(-125) -DFLT_MIN=1.17549435e-38F -DFLT_RADIX=2 -DFXSR=1 -DGCC_ASM_FLAG_OUTPUTS=1 -DGCC_ATOMIC_BOOL_LOCK_FREE=2 -DGCC_ATOMIC_CHAR16_T_LOCK_FREE=2 -D__GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 -DGCC_ATOMIC_CHAR_LOCK_FREE=2 -DGCC_ATOMIC_INT_LOCK_FREE=2 -DGCC_ATOMIC_LLONG_LOCK_FREE=2 -DGCC_ATOMIC_LONG_LOCK_FREE=2 -DGCC_ATOMIC_POINTER_LOCK_FREE=2 -DGCC_ATOMIC_SHORT_LOCK_FREE=2 -DGCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 -DGCC_ATOMIC_WCHAR_T_LOCK_FREE=2 -DGCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 -DGCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 -DGCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 -DGCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 -DGNUC_GNU_INLINE=1 -DGNUG=4 -DGXX_ABI_VERSION=1002 -DGXX_EXPERIMENTAL_CXX0X=1 -DGXX_RTTI=1 -DGXX_WEAK=1 -DINT16_C_SUFFIX= -DINT16_FMTd="hd" -DINT16_FMTi="hi" -DINT16_MAX=32767 -DINT16_TYPE=short -DINT32_C_SUFFIX= -DINT32_FMTd="d" -DINT32_FMTi="i" -DINT32_MAX=2147483647 -DINT32_TYPE=int -DINT64_C_SUFFIX=LL -DINT64_FMTd="lld" -DINT64_FMTi="lli" -DINT64_MAX=9223372036854775807LL -DINT64_TYPE=long long int -DINT8_C_SUFFIX= -DINT8_FMTd="hhd" -DINT8_FMTi="hhi" -DINT8_MAX=127 -DINT8_TYPE=signed char -DINTMAX_C_SUFFIX=LL -DINTMAX_FMTd="lld" -DINTMAX_FMTi="lli" -DINTMAX_MAX=9223372036854775807LL -DINTMAX_TYPE=long long int -DINTMAX_WIDTH=64 -DINTPTR_FMTd="lld" -DINTPTR_FMTi="lli" -DINTPTR_MAX=9223372036854775807LL -DINTPTR_TYPE=long long int -DINTPTR_WIDTH=64 -DINT_FAST16_FMTd="hd" -DINT_FAST16_FMTi="hi" -DINT_FAST16_MAX=32767 -DINT_FAST16_TYPE=short -DINT_FAST16_WIDTH=16 -DINT_FAST32_FMTd="d" -DINT_FAST32_FMTi="i" -DINT_FAST32_MAX=2147483647 -DINT_FAST32_TYPE=int -DINT_FAST32_WIDTH=32 -DINT_FAST64_FMTd="lld" -DINT_FAST64_FMTi="lli" -DINT_FAST64_MAX=9223372036854775807LL -DINT_FAST64_TYPE=long long int -DINT_FAST64_WIDTH=64 -DINT_FAST8_FMTd="hhd" -DINT_FAST8_FMTi="hhi" -DINT_FAST8_MAX=127 -DINT_FAST8_TYPE=signed char -DINT_FAST8_WIDTH=8 -DINT_LEAST16_FMTd="hd" -DINT_LEAST16_FMTi="hi" -DINT_LEAST16_MAX=32767 -DINT_LEAST16_TYPE=short -DINT_LEAST16_WIDTH=16 -DINT_LEAST32_FMTd="d" -DINT_LEAST32_FMTi="i" -DINT_LEAST32_MAX=2147483647 -DINT_LEAST32_TYPE=int -DINT_LEAST32_WIDTH=32 -DINT_LEAST64_FMTd="lld" -DINT_LEAST64_FMTi="lli" -DINT_LEAST64_MAX=9223372036854775807LL -DINT_LEAST64_TYPE=long long int -DINT_LEAST64_WIDTH=64 -DINT_LEAST8_FMTd="hhd" -DINT_LEAST8_FMTi="hhi" -DINT_LEAST8_MAX=127 -DINT_LEAST8_TYPE=signed char -DINT_LEAST8_WIDTH=8 -DINT_MAX=2147483647 -DINT_WIDTH=32 -DLDBL_DECIMAL_DIG=21 -DLDBL_DENORM_MIN=3.64519953188247460253e-4951L -DLDBL_DIG=18 -DLDBL_EPSILON=1.08420217248550443401e-19L -DLDBL_HAS_DENORM=1 -DLDBL_HAS_INFINITY=1 -DLDBL_HAS_QUIET_NAN=1 -DLDBL_MANT_DIG=64 -DLDBL_MAX_10_EXP=4932 -DLDBL_MAX_EXP=16384 -DLDBL_MAX=1.18973149535723176502e+4932L -DLDBL_MIN_10_EXP=(-4931) -DLDBL_MIN_EXP=(-16381) -DLDBL_MIN=3.36210314311209350626e-4932L -DLITTLE_ENDIAN=1 -DLLONG_WIDTH=64 -DLONG_LONG_MAX=9223372036854775807LL -DLONG_MAX=2147483647L -DLONG_WIDTH=32 -DMINGW32=1 -DMINGW64=1 -DMMX=1 -DMSVCRT=1 -DNO_INLINE=1 -DNO_MATH_INLINES=1 -DOBJC_BOOL_IS_BOOL=0 -D__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 -DOPENCL_MEMORY_SCOPE_DEVICE=2 -DOPENCL_MEMORY_SCOPE_SUB_GROUP=4 -DOPENCL_MEMORY_SCOPE_WORK_GROUP=1 -DOPENCL_MEMORY_SCOPE_WORK_ITEM=0 -DORDER_BIG_ENDIAN=4321 -DORDER_LITTLE_ENDIAN=1234 -DORDER_PDP_ENDIAN=3412 -DPIC=2 -DPOINTER_WIDTH=64 -DPRAGMA_REDEFINE_EXTNAME=1 -DPTRDIFF_FMTd="lld" -DPTRDIFF_FMTi="lli" -DPTRDIFF_MAX=9223372036854775807LL -DPTRDIFF_TYPE=long long int -DPTRDIFF_WIDTH=64 -DREGISTER_PREFIX= -DSCHAR_MAX=127 -DSEG_FS=1 -DSEG_GS=1 -DSEH=1 -DSHRT_MAX=32767 -DSHRT_WIDTH=16 -DSIG_ATOMIC_MAX=2147483647 -DSIG_ATOMIC_WIDTH=32 -DSIZEOF_DOUBLE=8 -DSIZEOF_FLOAT128=16 -DSIZEOF_FLOAT=4 -DSIZEOF_INT128=16 -DSIZEOF_INT=4 -DSIZEOF_LONG_DOUBLE=16 -DSIZEOF_LONG_LONG=8 -DSIZEOF_LONG=4 -DSIZEOF_POINTER=8 -DSIZEOF_PTRDIFF_T=8 -DSIZEOF_SHORT=2 -DSIZEOF_SIZE_T=8 -DSIZEOF_WCHAR_T=2 -DSIZEOF_WINT_T=2 -DSIZE_FMTX="llX" -DSIZE_FMTo="llo" -DSIZE_FMTu="llu" -DSIZE_FMTx="llx" -DSIZE_MAX=18446744073709551615ULL -DSIZE_TYPE=long long unsigned int -DSIZE_WIDTH=64 -DSTDCPP_DEFAULT_NEW_ALIGNMENT=16ULL -DSTDCPP_THREADS=1 -DSTDC_HOSTED=1 -DSTDC_UTF_16=1 -DSTDC_UTF_32=1 -DSTDC=1 -DSTRICT_ANSI=1 -DUINT16_C_SUFFIX= -DUINT16_FMTX="hX" -DUINT16_FMTo="ho" -DUINT16_FMTu="hu" -DUINT16_FMTx="hx" -DUINT16_MAX=65535 -DUINT16_TYPE=unsigned short -DUINT32_C_SUFFIX=U -DUINT32_FMTX="X" -DUINT32_FMTo="o" -DUINT32_FMTu="u" -DUINT32_FMTx="x" -DUINT32_MAX=4294967295U -DUINT32_TYPE=unsigned int -DUINT64_C_SUFFIX=ULL -DUINT64_FMTX="llX" -DUINT64_FMTo="llo" -DUINT64_FMTu="llu" -DUINT64_FMTx="llx" -DUINT64_MAX=18446744073709551615ULL -DUINT64_TYPE=long long unsigned int -DUINT8_C_SUFFIX= -DUINT8_FMTX="hhX" -DUINT8_FMTo="hho" -DUINT8_FMTu="hhu" -DUINT8_FMTx="hhx" -DUINT8_MAX=255 -DUINT8_TYPE=unsigned char -DUINTMAX_C_SUFFIX=ULL -DUINTMAX_FMTX="llX" -DUINTMAX_FMTo="llo" -DUINTMAX_FMTu="llu" -DUINTMAX_FMTx="llx" -DUINTMAX_MAX=18446744073709551615ULL -DUINTMAX_TYPE=long long unsigned int -DUINTMAX_WIDTH=64 -DUINTPTR_FMTX="llX" -DUINTPTR_FMTo="llo" -DUINTPTR_FMTu="llu" -DUINTPTR_FMTx="llx" -DUINTPTR_MAX=18446744073709551615ULL -DUINTPTR_TYPE=long long unsigned int -DUINTPTR_WIDTH=64 -DUINT_FAST16_FMTX="hX" -DUINT_FAST16_FMTo="ho" -DUINT_FAST16_FMTu="hu" -DUINT_FAST16_FMTx="hx" -DUINT_FAST16_MAX=65535 -DUINT_FAST16_TYPE=unsigned short -DUINT_FAST32_FMTX="X" -DUINT_FAST32_FMTo="o" -DUINT_FAST32_FMTu="u" -DUINT_FAST32_FMTx="x" -DUINT_FAST32_MAX=4294967295U -DUINT_FAST32_TYPE=unsigned int -DUINT_FAST64_FMTX="llX" -DUINT_FAST64_FMTo="llo" -DUINT_FAST64_FMTu="llu" -DUINT_FAST64_FMTx="llx" -DUINT_FAST64_MAX=18446744073709551615ULL -DUINT_FAST64_TYPE=long long unsigned int -DUINT_FAST8_FMTX="hhX" -DUINT_FAST8_FMTo="hho" -DUINT_FAST8_FMTu="hhu" -DUINT_FAST8_FMTx="hhx" -DUINT_FAST8_MAX=255 -DUINT_FAST8_TYPE=unsigned char -DUINT_LEAST16_FMTX="hX" -DUINT_LEAST16_FMTo="ho" -DUINT_LEAST16_FMTu="hu" -DUINT_LEAST16_FMTx="hx" -DUINT_LEAST16_MAX=65535 -DUINT_LEAST16_TYPE=unsigned short -DUINT_LEAST32_FMTX="X" -DUINT_LEAST32_FMTo="o" -DUINT_LEAST32_FMTu="u" -DUINT_LEAST32_FMTx="x" -DUINT_LEAST32_MAX=4294967295U -DUINT_LEAST32_TYPE=unsigned int -DUINT_LEAST64_FMTX="llX" -DUINT_LEAST64_FMTo="llo" -DUINT_LEAST64_FMTu="llu" -DUINT_LEAST64_FMTx="llx" -DUINT_LEAST64_MAX=18446744073709551615ULL -DUINT_LEAST64_TYPE=long long unsigned int -DUINT_LEAST8_FMTX="hhX" -DUINT_LEAST8_FMTo="hho" -DUINT_LEAST8_FMTu="hhu" -DUINT_LEAST8_FMTx="hhx" -DUINT_LEAST8_MAX=255 -DUINT_LEAST8_TYPE=unsigned char -DUSER_LABEL_PREFIX= -DWCHAR_MAX=65535 -DWCHAR_TYPE=unsigned short -DWCHAR_UNSIGNED=1 -DWCHAR_WIDTH=16 -DWIN32=1 -DWIN32=1 -DWIN64=1 -DWIN64=1 -DWINNT=1 -DWINNT=1 -D__WINT_MAX=65535 -DWINT_TYPE=unsigned short -DWINT_UNSIGNED=1 -DWINT_WIDTH=16 -Damd64=1 -Damd64=1 -Dclang=1 -Dclang_literal_encoding="UTF-8" -D__clang_major=16 -Dclang_minor=0 -Dclang_patchlevel=4 -Dclang_version="16.0.4 " -Dclang_wide_literal_encoding="UTF-16" -Dcode_model_small=1 -Dcplusplus=201703L -Dcpp_aggregate_bases=201603L -Dcpp_aggregate_nsdmi=201304L -Dcpp_alias_templates=200704L -Dcpp_aligned_new=201606L -Dcpp_attributes=200809L -Dcpp_binary_literals=201304L -Dcpp_capture_star_this=201603L -Dcpp_constexpr=201603L -D__cpp_constexpr_in_decltype=201711L -Dcpp_decltype=200707L -Dcpp_decltype_auto=201304L -Dcpp_deduction_guides=201703L -Dcpp_delegating_constructors=200604L -Dcpp_digit_separators=201309L -Dcpp_enumerator_attributes=201411L -Dcpp_exceptions=199711L -Dcpp_fold_expressions=201603L -Dcpp_generic_lambdas=201304L -Dcpp_guaranteed_copy_elision=201606L -Dcpp_hex_float=201603L -Dcpp_if_constexpr=201606L -D__cpp_impl_destroying_delete=201806L -Dcpp_inheriting_constructors=201511L -Dcpp_init_captures=201304L -Dcpp_initializer_lists=200806L -Dcpp_inline_variables=201606L -Dcpp_lambdas=200907L -Dcpp_named_character_escapes=202207L -Dcpp_namespace_attributes=201411L -Dcpp_nested_namespace_definitions=201411L -Dcpp_noexcept_function_type=201510L -Dcpp_nontype_template_args=201411L -Dcpp_nontype_template_parameter_auto=201606L -Dcpp_nsdmi=200809L -Dcpp_range_based_for=201603L -Dcpp_raw_strings=200710L -Dcpp_ref_qualifiers=200710L -Dcpp_return_type_deduction=201304L -D__cpp_rtti=199711L -Dcpp_rvalue_references=200610L -Dcpp_static_assert=201411L -Dcpp_static_call_operator=202207L -Dcpp_structured_bindings=201606L -Dcpp_template_auto=201606L -Dcpp_threadsafe_static_init=200806L -Dcpp_unicode_characters=200704L -Dcpp_unicode_literals=200710L -D__cpp_user_defined_literals=200809L -Dcpp_variable_templates=201304L -Dcpp_variadic_templates=200704L -Dcpp_variadic_using=201611L -Ddeclspec=declspec -Dk8=1 -Dk8=1 -Dllvm=1 -Dpic=2 -Dprivate_extern=extern -Dseg_fs=attribute((address_space(257))) -Dseg_gs=attribute((address_space(256))) -Dtune_k8=1 -Dx86_64=1 -Dx86_64=1 -ID:/VSCode_test/src -isystemC:/msys64/clang64/lib/clang/16/include -isystemC:/msys64/mingw64/include sending compilation args for D:\VSCode_test\src\main.cpp include: D:\VSCODE_TEST\SRC include: C:\MSYS64\CLANG64\LIB\CLANG\16\INCLUDE include: C:\MSYS64\MINGW64\INCLUDE define: _NATIVE_WCHAR_T_DEFINED=1 define: _WCHAR_T_DEFINED=1 define: _WIN32=1 define: _WIN64=1 define: ATOMIC_ACQUIRE=2 define: ATOMIC_ACQ_REL=4 define: ATOMIC_CONSUME=1 define: __ATOMIC_RELAXED=0 define: ATOMIC_RELEASE=3 define: ATOMIC_SEQ_CST=5 define: BIGGEST_ALIGNMENT=16 define: BITINT_MAXWIDTH=8388608 define: BOOL_WIDTH=8 define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: CHAR16_TYPE=unsigned short define: CHAR32_TYPE=unsigned int define: CHAR_BIT=8 define: CLANG_ATOMIC_BOOL_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR_LOCK_FREE=2 define: CLANG_ATOMIC_INT_LOCK_FREE=2 define: CLANG_ATOMIC_LLONG_LOCK_FREE=2 define: CLANG_ATOMIC_LONG_LOCK_FREE=2 define: CLANG_ATOMIC_POINTER_LOCK_FREE=2 define: CLANG_ATOMIC_SHORT_LOCK_FREE=2 define: CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 define: CONSTANT_CFSTRINGS=1 define: DBL_DECIMAL_DIG=17 define: DBL_DENORM_MIN=4.9406564584124654e-324 define: DBL_DIG=15 define: DBL_EPSILON=2.2204460492503131e-16 define: DBL_HAS_DENORM=1 define: DBL_HAS_INFINITY=1 define: DBL_HAS_QUIET_NAN=1 define: DBL_MANT_DIG=53 define: DBL_MAX_10_EXP=308 define: DBL_MAX_EXP=1024 define: DBL_MAX=1.7976931348623157e+308 define: DBL_MIN_10_EXP=(-307) define: DBL_MIN_EXP=(-1021) define: DBL_MIN=2.2250738585072014e-308 define: DECIMAL_DIG=LDBL_DECIMAL_DIG define: DEPRECATED=1 define: EXCEPTIONS=1 define: FINITE_MATH_ONLY=0 define: FLT16_DECIMAL_DIG=5 define: FLT16_DENORM_MIN=5.9604644775390625e-8F16 define: FLT16_DIG=3 define: FLT16_EPSILON=9.765625e-4F16 define: FLT16_HAS_DENORM=1 define: FLT16_HAS_INFINITY=1 define: FLT16_HAS_QUIET_NAN=1 define: FLT16_MANT_DIG=11 define: FLT16_MAX_10_EXP=4 define: FLT16_MAX_EXP=16 define: FLT16_MAX=6.5504e+4F16 define: FLT16_MIN_10_EXP=(-4) define: FLT16_MIN_EXP=(-13) define: FLT16_MIN=6.103515625e-5F16 define: FLT_DECIMAL_DIG=9 define: FLT_DENORM_MIN=1.40129846e-45F define: FLT_DIG=6 define: FLT_EPSILON=1.19209290e-7F define: FLT_HAS_DENORM=1 define: FLT_HAS_INFINITY=1 define: FLT_HAS_QUIET_NAN=1 define: FLT_MANT_DIG=24 define: FLT_MAX_10_EXP=38 define: FLT_MAX_EXP=128 define: FLT_MAX=3.40282347e+38F define: FLT_MIN_10_EXP=(-37) define: FLT_MIN_EXP=(-125) define: FLT_MIN=1.17549435e-38F define: FLT_RADIX=2 define: FXSR=1 define: GCC_ASM_FLAG_OUTPUTS=1 define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_ATOMIC_INT_LOCK_FREE=2 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: GNUC_GNU_INLINE=1 define: GNUC_MINOR=2 define: GNUC_PATCHLEVEL=1 define: GNUC=4 define: GNUG=4 define: GXX_ABI_VERSION=1002 define: GXX_EXPERIMENTAL_CXX0X=1 define: GXX_RTTI=1 define: __GXX_WEAK=1 define: INT16_C_SUFFIX= define: INT16_FMTd="hd" define: INT16_FMTi="hi" define: INT16_MAX=32767 define: INT16_TYPE=short define: INT32_C_SUFFIX= define: INT32_FMTd="d" define: INT32_FMTi="i" define: INT32_MAX=2147483647 define: INT32_TYPE=int define: INT64_C_SUFFIX=LL define: INT64_FMTd="lld" define: INT64_FMTi="lli" define: INT64_MAX=9223372036854775807LL define: INT64_TYPE=long long int define: INT8_C_SUFFIX= define: INT8_FMTd="hhd" define: INT8_FMTi="hhi" define: INT8_MAX=127 define: INT8_TYPE=signed char define: INTMAX_C_SUFFIX=LL define: INTMAX_FMTd="lld" define: INTMAX_FMTi="lli" define: INTMAX_MAX=9223372036854775807LL define: INTMAX_TYPE=long long int define: INTMAX_WIDTH=64 define: INTPTR_FMTd="lld" define: INTPTR_FMTi="lli" define: INTPTR_MAX=9223372036854775807LL define: INTPTR_TYPE=long long int define: INTPTR_WIDTH=64 define: INT_FAST16_FMTd="hd" define: INT_FAST16_FMTi="hi" define: INT_FAST16_MAX=32767 define: INT_FAST16_TYPE=short define: INT_FAST16_WIDTH=16 define: INT_FAST32_FMTd="d" define: INT_FAST32_FMTi="i" define: INT_FAST32_MAX=2147483647 define: INT_FAST32_TYPE=int define: INT_FAST32_WIDTH=32 define: INT_FAST64_FMTd="lld" define: INT_FAST64_FMTi="lli" define: INT_FAST64_MAX=9223372036854775807LL define: INT_FAST64_TYPE=long long int define: INT_FAST64_WIDTH=64 define: INT_FAST8_FMTd="hhd" define: INT_FAST8_FMTi="hhi" define: INT_FAST8_MAX=127 define: INT_FAST8_TYPE=signed char define: INT_FAST8_WIDTH=8 define: INT_LEAST16_FMTd="hd" define: INT_LEAST16_FMTi="hi" define: INT_LEAST16_MAX=32767 define: INT_LEAST16_TYPE=short define: INT_LEAST16_WIDTH=16 define: INT_LEAST32_FMTd="d" define: INT_LEAST32_FMTi="i" define: INT_LEAST32_MAX=2147483647 define: INT_LEAST32_TYPE=int define: INT_LEAST32_WIDTH=32 define: INT_LEAST64_FMTd="lld" define: INT_LEAST64_FMTi="lli" define: INT_LEAST64_MAX=9223372036854775807LL define: INT_LEAST64_TYPE=long long int define: INT_LEAST64_WIDTH=64 define: INT_LEAST8_FMTd="hhd" define: INT_LEAST8_FMTi="hhi" define: INT_LEAST8_MAX=127 define: INT_LEAST8_TYPE=signed char define: INT_LEAST8_WIDTH=8 define: INT_MAX=2147483647 define: INT_WIDTH=32 define: LDBL_DECIMAL_DIG=21 define: LDBL_DENORM_MIN=3.64519953188247460253e-4951L define: LDBL_DIG=18 define: LDBL_EPSILON=1.08420217248550443401e-19L define: LDBL_HAS_DENORM=1 define: LDBL_HAS_INFINITY=1 define: LDBL_HAS_QUIET_NAN=1 define: LDBL_MANT_DIG=64 define: LDBL_MAX_10_EXP=4932 define: LDBL_MAX_EXP=16384 define: LDBL_MAX=1.18973149535723176502e+4932L define: LDBL_MIN_10_EXP=(-4931) define: LDBL_MIN_EXP=(-16381) define: LDBL_MIN=3.36210314311209350626e-4932L define: LITTLE_ENDIAN=1 define: LLONG_WIDTH=64 define: LONG_LONG_MAX=9223372036854775807LL define: LONG_MAX=2147483647L define: LONG_WIDTH=32 define: MINGW32=1 define: MINGW64=1 define: MMX=1 define: MSVCRT=1 define: NO_INLINE=1 define: NO_MATH_INLINES=1 define: OBJC_BOOL_IS_BOOL=0 define: OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 define: __OPENCL_MEMORY_SCOPE_DEVICE=2 define: OPENCL_MEMORY_SCOPE_SUB_GROUP=4 define: OPENCL_MEMORY_SCOPE_WORK_GROUP=1 define: OPENCL_MEMORY_SCOPE_WORK_ITEM=0 define: ORDER_BIG_ENDIAN=4321 define: ORDER_LITTLE_ENDIAN=1234 define: ORDER_PDP_ENDIAN=3412 define: PIC=2 define: POINTER_WIDTH=64 define: PRAGMA_REDEFINE_EXTNAME=1 define: __PTRDIFF_FMTd="lld" define: PTRDIFF_FMTi="lli" define: PTRDIFF_MAX=9223372036854775807LL define: PTRDIFF_TYPE=long long int define: PTRDIFF_WIDTH=64 define: REGISTER_PREFIX= define: SCHAR_MAX=127 define: SEG_FS=1 define: __SEG_GS=1 define: SEH=1 define: SHRT_MAX=32767 define: SHRT_WIDTH=16 define: SIG_ATOMIC_MAX=2147483647 define: SIG_ATOMIC_WIDTH=32 define: SIZEOF_DOUBLE=8 define: SIZEOF_FLOAT128=16 define: SIZEOF_FLOAT=4 define: SIZEOF_INT128=16 define: SIZEOF_INT=4 define: SIZEOF_LONG_DOUBLE=16 define: SIZEOF_LONG_LONG=8 define: SIZEOF_LONG=4 define: SIZEOF_POINTER=8 define: SIZEOF_PTRDIFF_T=8 define: SIZEOF_SHORT=2 define: SIZEOF_SIZE_T=8 define: SIZEOF_WCHAR_T=2 define: SIZEOF_WINT_T=2 define: SIZE_FMTX="llX" define: SIZE_FMTo="llo" define: SIZE_FMTu="llu" define: SIZE_FMTx="llx" define: SIZE_MAX=18446744073709551615ULL define: SIZE_TYPE=long long unsigned int define: SIZE_WIDTH=64 define: SSE2_MATH=1 define: SSE2=1 define: SSE_MATH=1 define: SSE=1 define: STDCPP_DEFAULT_NEW_ALIGNMENT=16ULL define: STDCPP_THREADS=1 define: STDC_HOSTED=1 define: STDC_UTF_16=1 define: STDC_UTF_32=1 define: STDC=1 define: STRICT_ANSI=1 define: UINT16_C_SUFFIX= define: UINT16_FMTX="hX" define: UINT16_FMTo="ho" define: UINT16_FMTu="hu" define: UINT16_FMTx="hx" define: UINT16_MAX=65535 define: UINT16_TYPE=unsigned short define: UINT32_C_SUFFIX=U define: UINT32_FMTX="X" define: UINT32_FMTo="o" define: UINT32_FMTu="u" define: UINT32_FMTx="x" define: UINT32_MAX=4294967295U define: UINT32_TYPE=unsigned int define: UINT64_C_SUFFIX=ULL define: UINT64_FMTX="llX" define: UINT64_FMTo="llo" define: UINT64_FMTu="llu" define: UINT64_FMTx="llx" define: UINT64_MAX=18446744073709551615ULL define: UINT64_TYPE=long long unsigned int define: UINT8_C_SUFFIX= define: UINT8_FMTX="hhX" define: UINT8_FMTo="hho" define: UINT8_FMTu="hhu" define: UINT8_FMTx="hhx" define: UINT8_MAX=255 define: UINT8_TYPE=unsigned char define: UINTMAX_C_SUFFIX=ULL define: UINTMAX_FMTX="llX" define: UINTMAX_FMTo="llo" define: UINTMAX_FMTu="llu" define: UINTMAX_FMTx="llx" define: UINTMAX_MAX=18446744073709551615ULL define: UINTMAX_TYPE=long long unsigned int define: UINTMAX_WIDTH=64 define: UINTPTR_FMTX="llX" define: UINTPTR_FMTo="llo" define: UINTPTR_FMTu="llu" define: UINTPTR_FMTx="llx" define: UINTPTR_MAX=18446744073709551615ULL define: UINTPTR_TYPE=long long unsigned int define: UINTPTR_WIDTH=64 define: UINT_FAST16_FMTX="hX" define: UINT_FAST16_FMTo="ho" define: UINT_FAST16_FMTu="hu" define: UINT_FAST16_FMTx="hx" define: UINT_FAST16_MAX=65535 define: UINT_FAST16_TYPE=unsigned short define: UINT_FAST32_FMTX="X" define: UINT_FAST32_FMTo="o" define: UINT_FAST32_FMTu="u" define: UINT_FAST32_FMTx="x" define: UINT_FAST32_MAX=4294967295U define: UINT_FAST32_TYPE=unsigned int define: UINT_FAST64_FMTX="llX" define: UINT_FAST64_FMTo="llo" define: UINT_FAST64_FMTu="llu" define: UINT_FAST64_FMTx="llx" define: UINT_FAST64_MAX=18446744073709551615ULL define: UINT_FAST64_TYPE=long long unsigned int define: UINT_FAST8_FMTX="hhX" define: UINT_FAST8_FMTo="hho" define: UINT_FAST8_FMTu="hhu" define: UINT_FAST8_FMTx="hhx" define: UINT_FAST8_MAX=255 define: UINT_FAST8_TYPE=unsigned char define: UINT_LEAST16_FMTX="hX" define: UINT_LEAST16_FMTo="ho" define: UINT_LEAST16_FMTu="hu" define: UINT_LEAST16_FMTx="hx" define: UINT_LEAST16_MAX=65535 define: UINT_LEAST16_TYPE=unsigned short define: UINT_LEAST32_FMTX="X" define: UINT_LEAST32_FMTo="o" define: UINT_LEAST32_FMTu="u" define: UINT_LEAST32_FMTx="x" define: UINT_LEAST32_MAX=4294967295U define: UINT_LEAST32_TYPE=unsigned int define: UINT_LEAST64_FMTX="llX" define: UINT_LEAST64_FMTo="llo" define: UINT_LEAST64_FMTu="llu" define: UINT_LEAST64_FMTx="llx" define: UINT_LEAST64_MAX=18446744073709551615ULL define: UINT_LEAST64_TYPE=long long unsigned int define: UINT_LEAST8_FMTX="hhX" define: UINT_LEAST8_FMTo="hho" define: UINT_LEAST8_FMTu="hhu" define: UINT_LEAST8_FMTx="hhx" define: UINT_LEAST8_MAX=255 define: UINT_LEAST8_TYPE=unsigned char define: USER_LABEL_PREFIX= define: VERSION="Clang 16.0.4" define: WCHAR_MAX=65535 define: WCHAR_TYPE=unsigned short define: WCHAR_UNSIGNED=1 define: WCHAR_WIDTH=16 define: WIN32=1 define: WIN32=1 define: WIN64=1 define: WIN64=1 define: WINNT=1 define: WINNT=1 define: WINT_MAX=65535 define: WINT_TYPE=unsigned short define: WINT_UNSIGNED=1 define: WINT_WIDTH=16 define: amd64=1 define: amd64=1 define: clang=1 define: clang_literal_encoding="UTF-8" define: clang_major=16 define: clang_minor=0 define: clang_patchlevel=4 define: clang_version="16.0.4 " define: clang_wide_literal_encoding="UTF-16" define: code_model_small=1 define: cplusplus=201703L define: declspec=declspec define: k8=1 define: k8=1 define: llvm=1 define: pic=2 define: private_extern=extern define: seg_fs=attribute((address_space(257))) define: seg_gs=attribute((address_space(256))) define: tune_k8=1 define: x86_64=1 define: __x86_64__=1 define: DUMMY other: --clang other: --clang_version=160004 other: --ms_extensions stdver: c++17 intelliSenseMode: windows-clang-x64 Checking for syntax errors: D:\VSCode_test\src\main.cpp Shutting down IntelliSense server: D:\VSCode_test\src\main.cpp Error while processing D:\VSCode_test\src\main.cpp. D:\VSCode_test\src\main.cpp:3:10: error: 'cstdlib' file not found [clang-diagnostic-error]

include

     ^~~~~~~~~

sending compilation args for D:\VSCode_test\src\main.cpp include: D:\VSCODE_TEST\SRC include: C:\MSYS64\CLANG64\LIB\CLANG\16\INCLUDE include: C:\MSYS64\MINGW64\INCLUDE define: _NATIVE_WCHAR_T_DEFINED=1 define: _WCHAR_T_DEFINED=1 define: _WIN32=1 define: _WIN64=1 define: ATOMIC_ACQUIRE=2 define: ATOMIC_ACQ_REL=4 define: ATOMIC_CONSUME=1 define: ATOMIC_RELAXED=0 define: ATOMIC_RELEASE=3 define: ATOMIC_SEQ_CST=5 define: BIGGEST_ALIGNMENT=16 define: BITINT_MAXWIDTH=8388608 define: BOOL_WIDTH=8 define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: CHAR16_TYPE=unsigned short define: CHAR32_TYPE=unsigned int define: CHAR_BIT=8 define: CLANG_ATOMIC_BOOL_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR_LOCK_FREE=2 define: CLANG_ATOMIC_INT_LOCK_FREE=2 define: CLANG_ATOMIC_LLONG_LOCK_FREE=2 define: CLANG_ATOMIC_LONG_LOCK_FREE=2 define: CLANG_ATOMIC_POINTER_LOCK_FREE=2 define: CLANG_ATOMIC_SHORT_LOCK_FREE=2 define: __CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 define: CONSTANT_CFSTRINGS=1 define: DBL_DECIMAL_DIG=17 define: DBL_DENORM_MIN=4.9406564584124654e-324 define: DBL_DIG=15 define: DBL_EPSILON=2.2204460492503131e-16 define: DBL_HAS_DENORM=1 define: DBL_HAS_INFINITY=1 define: DBL_HAS_QUIET_NAN=1 define: DBL_MANT_DIG=53 define: DBL_MAX_10_EXP=308 define: DBL_MAX_EXP=1024 define: DBL_MAX=1.7976931348623157e+308 define: DBL_MIN_10_EXP=(-307) define: DBL_MIN_EXP=(-1021) define: DBL_MIN=2.2250738585072014e-308 define: DECIMAL_DIG=LDBL_DECIMAL_DIG define: DEPRECATED=1 define: EXCEPTIONS=1 define: FINITE_MATH_ONLY=0 define: FLT16_DECIMAL_DIG=5 define: FLT16_DENORM_MIN=5.9604644775390625e-8F16 define: FLT16_DIG=3 define: FLT16_EPSILON=9.765625e-4F16 define: FLT16_HAS_DENORM=1 define: FLT16_HAS_INFINITY=1 define: FLT16_HAS_QUIET_NAN=1 define: FLT16_MANT_DIG=11 define: FLT16_MAX_10_EXP=4 define: FLT16_MAX_EXP=16 define: FLT16_MAX=6.5504e+4F16 define: FLT16_MIN_10_EXP=(-4) define: FLT16_MIN_EXP=(-13) define: FLT16_MIN=6.103515625e-5F16 define: FLT_DECIMAL_DIG=9 define: FLT_DENORM_MIN=1.40129846e-45F define: FLT_DIG=6 define: FLT_EPSILON=1.19209290e-7F define: FLT_HAS_DENORM=1 define: FLT_HAS_INFINITY=1 define: FLT_HAS_QUIET_NAN=1 define: FLT_MANT_DIG=24 define: FLT_MAX_10_EXP=38 define: FLT_MAX_EXP=128 define: FLT_MAX=3.40282347e+38F define: FLT_MIN_10_EXP=(-37) define: FLT_MIN_EXP=(-125) define: FLT_MIN=1.17549435e-38F define: FLT_RADIX=2 define: FXSR=1 define: GCC_ASM_FLAG_OUTPUTS=1 define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_ATOMIC_INT_LOCK_FREE=2 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: GNUC_GNU_INLINE=1 define: __GNUC_MINOR=2 define: GNUC_PATCHLEVEL=1 define: GNUC=4 define: GNUG=4 define: GXX_ABI_VERSION=1002 define: GXX_EXPERIMENTAL_CXX0X=1 define: __GXX_RTTI=1 define: GXX_WEAK=1 define: INT16_C_SUFFIX= define: INT16_FMTd="hd" define: INT16_FMTi="hi" define: INT16_MAX=32767 define: INT16_TYPE=short define: INT32_C_SUFFIX= define: INT32_FMTd="d" define: INT32_FMTi="i" define: INT32_MAX=2147483647 define: INT32_TYPE=int define: INT64_C_SUFFIX=LL define: INT64_FMTd="lld" define: INT64_FMTi="lli" define: INT64_MAX=9223372036854775807LL define: INT64_TYPE=long long int define: INT8_C_SUFFIX= define: INT8_FMTd="hhd" define: INT8_FMTi="hhi" define: INT8_MAX=127 define: INT8_TYPE=signed char define: INTMAX_C_SUFFIX=LL define: INTMAX_FMTd="lld" define: INTMAX_FMTi="lli" define: INTMAX_MAX=9223372036854775807LL define: INTMAX_TYPE=long long int define: INTMAX_WIDTH=64 define: INTPTR_FMTd="lld" define: INTPTR_FMTi="lli" define: INTPTR_MAX=9223372036854775807LL define: INTPTR_TYPE=long long int define: INTPTR_WIDTH=64 define: INT_FAST16_FMTd="hd" define: INT_FAST16_FMTi="hi" define: INT_FAST16_MAX=32767 define: INT_FAST16_TYPE=short define: INT_FAST16_WIDTH=16 define: INT_FAST32_FMTd="d" define: INT_FAST32_FMTi="i" define: INT_FAST32_MAX=2147483647 define: INT_FAST32_TYPE=int define: INT_FAST32_WIDTH=32 define: INT_FAST64_FMTd="lld" define: INT_FAST64_FMTi="lli" define: INT_FAST64_MAX=9223372036854775807LL define: INT_FAST64_TYPE=long long int define: INT_FAST64_WIDTH=64 define: INT_FAST8_FMTd="hhd" define: INT_FAST8_FMTi="hhi" define: INT_FAST8_MAX=127 define: INT_FAST8_TYPE=signed char define: INT_FAST8_WIDTH=8 define: INT_LEAST16_FMTd="hd" define: INT_LEAST16_FMTi="hi" define: INT_LEAST16_MAX=32767 define: INT_LEAST16_TYPE=short define: INT_LEAST16_WIDTH=16 define: INT_LEAST32_FMTd="d" define: INT_LEAST32_FMTi="i" define: INT_LEAST32_MAX=2147483647 define: INT_LEAST32_TYPE=int define: INT_LEAST32_WIDTH=32 define: INT_LEAST64_FMTd="lld" define: INT_LEAST64_FMTi="lli" define: INT_LEAST64_MAX=9223372036854775807LL define: INT_LEAST64_TYPE=long long int define: INT_LEAST64_WIDTH=64 define: INT_LEAST8_FMTd="hhd" define: INT_LEAST8_FMTi="hhi" define: INT_LEAST8_MAX=127 define: INT_LEAST8_TYPE=signed char define: INT_LEAST8_WIDTH=8 define: INT_MAX=2147483647 define: INT_WIDTH=32 define: LDBL_DECIMAL_DIG=21 define: LDBL_DENORM_MIN=3.64519953188247460253e-4951L define: LDBL_DIG=18 define: LDBL_EPSILON=1.08420217248550443401e-19L define: LDBL_HAS_DENORM=1 define: LDBL_HAS_INFINITY=1 define: LDBL_HAS_QUIET_NAN=1 define: LDBL_MANT_DIG=64 define: LDBL_MAX_10_EXP=4932 define: LDBL_MAX_EXP=16384 define: LDBL_MAX=1.18973149535723176502e+4932L define: LDBL_MIN_10_EXP=(-4931) define: LDBL_MIN_EXP=(-16381) define: LDBL_MIN=3.36210314311209350626e-4932L define: LITTLE_ENDIAN=1 define: LLONG_WIDTH=64 define: LONG_LONG_MAX=9223372036854775807LL define: LONG_MAX=2147483647L define: LONG_WIDTH=32 define: MINGW32=1 define: MINGW64=1 define: MMX=1 define: MSVCRT=1 define: NO_INLINE=1 define: NO_MATH_INLINES=1 define: OBJC_BOOL_IS_BOOL=0 define: __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 define: OPENCL_MEMORY_SCOPE_DEVICE=2 define: OPENCL_MEMORY_SCOPE_SUB_GROUP=4 define: OPENCL_MEMORY_SCOPE_WORK_GROUP=1 define: OPENCL_MEMORY_SCOPE_WORK_ITEM=0 define: ORDER_BIG_ENDIAN=4321 define: ORDER_LITTLE_ENDIAN=1234 define: ORDER_PDP_ENDIAN=3412 define: PIC=2 define: POINTER_WIDTH=64 define: PRAGMA_REDEFINE_EXTNAME=1 define: PTRDIFF_FMTd="lld" define: PTRDIFF_FMTi="lli" define: PTRDIFF_MAX=9223372036854775807LL define: PTRDIFF_TYPE=long long int define: PTRDIFF_WIDTH=64 define: REGISTER_PREFIX= define: SCHAR_MAX=127 define: SEG_FS=1 define: SEG_GS=1 define: SEH=1 define: SHRT_MAX=32767 define: SHRT_WIDTH=16 define: SIG_ATOMIC_MAX=2147483647 define: SIG_ATOMIC_WIDTH=32 define: SIZEOF_DOUBLE=8 define: SIZEOF_FLOAT128=16 define: SIZEOF_FLOAT=4 define: SIZEOF_INT128=16 define: SIZEOF_INT=4 define: SIZEOF_LONG_DOUBLE=16 define: SIZEOF_LONG_LONG=8 define: SIZEOF_LONG=4 define: SIZEOF_POINTER=8 define: SIZEOF_PTRDIFF_T=8 define: SIZEOF_SHORT=2 define: SIZEOF_SIZE_T=8 define: SIZEOF_WCHAR_T=2 define: SIZEOF_WINT_T=2 define: SIZE_FMTX="llX" define: SIZE_FMTo="llo" define: SIZE_FMTu="llu" define: SIZE_FMTx="llx" define: SIZE_MAX=18446744073709551615ULL define: SIZE_TYPE=long long unsigned int define: SIZE_WIDTH=64 define: SSE2_MATH=1 define: SSE2=1 define: SSE_MATH=1 define: SSE=1 define: STDCPP_DEFAULT_NEW_ALIGNMENT=16ULL define: STDCPP_THREADS=1 define: STDC_HOSTED=1 define: STDC_UTF_16=1 define: STDC_UTF_32=1 define: STDC=1 define: STRICT_ANSI=1 define: UINT16_C_SUFFIX= define: UINT16_FMTX="hX" define: UINT16_FMTo="ho" define: UINT16_FMTu="hu" define: UINT16_FMTx="hx" define: UINT16_MAX=65535 define: UINT16_TYPE=unsigned short define: UINT32_C_SUFFIX=U define: UINT32_FMTX="X" define: UINT32_FMTo="o" define: UINT32_FMTu="u" define: UINT32_FMTx="x" define: UINT32_MAX=4294967295U define: UINT32_TYPE=unsigned int define: UINT64_C_SUFFIX=ULL define: UINT64_FMTX="llX" define: UINT64_FMTo="llo" define: UINT64_FMTu="llu" define: UINT64_FMTx="llx" define: UINT64_MAX=18446744073709551615ULL define: UINT64_TYPE=long long unsigned int define: UINT8_C_SUFFIX= define: UINT8_FMTX="hhX" define: UINT8_FMTo="hho" define: UINT8_FMTu="hhu" define: UINT8_FMTx="hhx" define: UINT8_MAX=255 define: UINT8_TYPE=unsigned char define: UINTMAX_C_SUFFIX=ULL define: UINTMAX_FMTX="llX" define: UINTMAX_FMTo="llo" define: UINTMAX_FMTu="llu" define: UINTMAX_FMTx="llx" define: UINTMAX_MAX=18446744073709551615ULL define: UINTMAX_TYPE=long long unsigned int define: UINTMAX_WIDTH=64 define: UINTPTR_FMTX="llX" define: UINTPTR_FMTo="llo" define: UINTPTR_FMTu="llu" define: UINTPTR_FMTx="llx" define: UINTPTR_MAX=18446744073709551615ULL define: UINTPTR_TYPE=long long unsigned int define: UINTPTR_WIDTH=64 define: UINT_FAST16_FMTX="hX" define: UINT_FAST16_FMTo="ho" define: UINT_FAST16_FMTu="hu" define: UINT_FAST16_FMTx="hx" define: UINT_FAST16_MAX=65535 define: UINT_FAST16_TYPE=unsigned short define: UINT_FAST32_FMTX="X" define: UINT_FAST32_FMTo="o" define: UINT_FAST32_FMTu="u" define: UINT_FAST32_FMTx="x" define: UINT_FAST32_MAX=4294967295U define: UINT_FAST32_TYPE=unsigned int define: UINT_FAST64_FMTX="llX" define: UINT_FAST64_FMTo="llo" define: UINT_FAST64_FMTu="llu" define: UINT_FAST64_FMTx="llx" define: UINT_FAST64_MAX=18446744073709551615ULL define: UINT_FAST64_TYPE=long long unsigned int define: UINT_FAST8_FMTX="hhX" define: UINT_FAST8_FMTo="hho" define: UINT_FAST8_FMTu="hhu" define: UINT_FAST8_FMTx="hhx" define: UINT_FAST8_MAX=255 define: UINT_FAST8_TYPE=unsigned char define: UINT_LEAST16_FMTX="hX" define: UINT_LEAST16_FMTo="ho" define: UINT_LEAST16_FMTu="hu" define: UINT_LEAST16_FMTx="hx" define: UINT_LEAST16_MAX=65535 define: UINT_LEAST16_TYPE=unsigned short define: UINT_LEAST32_FMTX="X" define: UINT_LEAST32_FMTo="o" define: UINT_LEAST32_FMTu="u" define: UINT_LEAST32_FMTx="x" define: UINT_LEAST32_MAX=4294967295U define: UINT_LEAST32_TYPE=unsigned int define: UINT_LEAST64_FMTX="llX" define: UINT_LEAST64_FMTo="llo" define: UINT_LEAST64_FMTu="llu" define: UINT_LEAST64_FMTx="llx" define: UINT_LEAST64_MAX=18446744073709551615ULL define: UINT_LEAST64_TYPE=long long unsigned int define: UINT_LEAST8_FMTX="hhX" define: UINT_LEAST8_FMTo="hho" define: UINT_LEAST8_FMTu="hhu" define: UINT_LEAST8_FMTx="hhx" define: UINT_LEAST8_MAX=255 define: UINT_LEAST8_TYPE=unsigned char define: USER_LABEL_PREFIX= define: VERSION="Clang 16.0.4" define: WCHAR_MAX=65535 define: WCHAR_TYPE=unsigned short define: WCHAR_UNSIGNED=1 define: WCHAR_WIDTH=16 define: WIN32=1 define: WIN32=1 define: WIN64=1 define: WIN64=1 define: WINNT=1 define: WINNT=1 define: __WINT_MAX=65535 define: WINT_TYPE=unsigned short define: WINT_UNSIGNED=1 define: WINT_WIDTH=16 define: amd64=1 define: amd64=1 define: clang=1 define: clang_literal_encoding="UTF-8" define: __clang_major=16 define: clang_minor=0 define: clang_patchlevel=4 define: clang_version="16.0.4 " define: clang_wide_literal_encoding="UTF-16" define: code_model_small=1 define: cplusplus=201703L define: declspec=declspec define: k8=1 define: k8=1 define: llvm=1 define: pic=2 define: private_extern=extern define: seg_fs=attribute((address_space(257))) define: __seg_gs=attribute((address_space(256))) define: __tune_k8=1 define: x86_64=1 define: __x86_64=1 define: DUMMY other: --clang other: --clang_version=160004 other: --ms_extensions stdver: c++17 intelliSenseMode: windows-clang-x64 Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp Error squiggle count: 3 Tag Parser will be used for IntelliSense operations in: file:///D%3A/VSCode_test/src/main.cpp Update IntelliSense time (sec): 3.208 LSP: cpptools/getSemanticTokens: file:///d%3A/VSCode_test/src/main.cpp (id: 19) LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/VSCode-Test.dir/src/main-045d61f4.obj.tmp LSP: cpptools/getFoldingRanges: file:///d%3A/VSCode_test/src/main.cpp (id: 20) LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/VSCode-Test.dir/src/main.obj.d LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.ninja_deps LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.ninja_log Checking for syntax errors: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/VSCode-Test.dir/src/main.obj Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileDeleted: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/VSCode-Test.dir/src/main.obj.d LSP: cpptools/fileDeleted: file:///d%3A/VSCode_test/bin-clang64/CMakeFiles/VSCode-Test.dir/src/main-045d61f4.obj.tmp Checking for syntax errors: D:\VSCode_test\src\main.cpp Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/VSCode-Test.exe Custom browse configuration received: { "browsePath": [ "d:/vscode_test/src" ], "compilerPath": "c:/msys64/clang64/bin/clang++.exe", "compilerArgs": [], "compilerFragments": [ "-fms-extensions -Wno-address-of-temporary -g -std=gnu++17", "-DDUMMY", "-std=c++17", "-pthread", "-fpermissive" ] } LSP: cpptools/clearCustomConfigurations LSP: cpptools/queryTranslationUnitSource: file:///d%3A/VSCode_test/src/main.cpp (id: 21) LSP: cpptools/runCodeAnalysis LSP: cpptools/didChangeCustomBrowseConfiguration Checking for syntax errors: D:\VSCode_test\src\main.cpp Shutting down IntelliSense server: D:\VSCode_test\src\main.cpp Custom configurations received: uri: file:///d%3A/VSCode_test/src/main.cpp config: { "includePath": [ "d:/vscode_test/src" ], "defines": [], "compilerPath": "c:/msys64/clang64/bin/clang++.exe", "compilerArgs": [], "compilerFragments": [ "-fms-extensions -Wno-address-of-temporary -g -std=gnu++17", "-DDUMMY", "-std=c++17", "-pthread", "-fpermissive" ] } LSP: cpptools/didChangeCustomConfiguration LSP: cpptools/resumeParsing LSP: cpptools/queryTranslationUnitSource: file:///d%3A/VSCODE_TEST/SRC/MAIN.CPP (id: 22) LSP: cpptools/finishedRequestCustomConfig: D:\VSCODE_TEST\SRC\MAIN.CPP c:\Users\user.vscode\extensions\ms-vscode.cpptools-1.15.4-win32-x64/bin/../LLVM/bin/clang-tidy.exe --header-filter=(D:/VSCode_test|D:\VSCode_test) --export-fixes=C:\Users\user\AppData\Local\Temp{8774660182297671845}\fixes25892.yaml --quiet --use-color=false D:/VSCode_test/src/main.cpp

-std=c++17 -xc++ -Wno-pragma-pack -Wno-pragma-once-outside-header -DDUMMY -D_NATIVE_WCHAR_T_DEFINED=1 -D_WCHAR_T_DEFINED=1 -D_WIN32=1 -D_WIN64=1 -DATOMIC_ACQUIRE=2 -DATOMIC_ACQ_REL=4 -DATOMIC_CONSUME=1 -DATOMIC_RELAXED=0 -DATOMIC_RELEASE=3 -DATOMIC_SEQ_CST=5 -DBIGGEST_ALIGNMENT=16 -DBITINT_MAXWIDTH=8388608 -DBOOL_WIDTH=8 -DBYTE_ORDER=ORDER_LITTLE_ENDIAN -DCHAR16_TYPE=unsigned short -DCHAR32_TYPE=unsigned int -DCHAR_BIT=8 -DCLANG_ATOMIC_BOOL_LOCK_FREE=2 -DCLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 -DCLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 -DCLANG_ATOMIC_CHAR_LOCK_FREE=2 -DCLANG_ATOMIC_INT_LOCK_FREE=2 -DCLANG_ATOMIC_LLONG_LOCK_FREE=2 -DCLANG_ATOMIC_LONG_LOCK_FREE=2 -DCLANG_ATOMIC_POINTER_LOCK_FREE=2 -DCLANG_ATOMIC_SHORT_LOCK_FREE=2 -D__CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 -DCONSTANT_CFSTRINGS=1 -DDBL_DECIMAL_DIG=17 -DDBL_DENORM_MIN=4.9406564584124654e-324 -DDBL_DIG=15 -DDBL_EPSILON=2.2204460492503131e-16 -DDBL_HAS_DENORM=1 -DDBL_HAS_INFINITY=1 -DDBL_HAS_QUIET_NAN=1 -DDBL_MANT_DIG=53 -DDBL_MAX_10_EXP=308 -DDBL_MAX_EXP=1024 -DDBL_MAX=1.7976931348623157e+308 -DDBL_MIN_10_EXP=(-307) -DDBL_MIN_EXP=(-1021) -DDBL_MIN=2.2250738585072014e-308 -DDECIMAL_DIG=LDBL_DECIMAL_DIG -DDEPRECATED=1 -DEXCEPTIONS=1 -DFINITE_MATH_ONLY=0 -DFLT16_DECIMAL_DIG=5 -DFLT16_DENORM_MIN=5.9604644775390625e-8F16 -DFLT16_DIG=3 -DFLT16_EPSILON=9.765625e-4F16 -DFLT16_HAS_DENORM=1 -DFLT16_HAS_INFINITY=1 -DFLT16_HAS_QUIET_NAN=1 -DFLT16_MANT_DIG=11 -DFLT16_MAX_10_EXP=4 -DFLT16_MAX_EXP=16 -DFLT16_MAX=6.5504e+4F16 -DFLT16_MIN_10_EXP=(-4) -DFLT16_MIN_EXP=(-13) -DFLT16_MIN=6.103515625e-5F16 -DFLT_DECIMAL_DIG=9 -DFLT_DENORM_MIN=1.40129846e-45F -DFLT_DIG=6 -DFLT_EPSILON=1.19209290e-7F -DFLT_HAS_DENORM=1 -DFLT_HAS_INFINITY=1 -DFLT_HAS_QUIET_NAN=1 -DFLT_MANT_DIG=24 -DFLT_MAX_10_EXP=38 -DFLT_MAX_EXP=128 -DFLT_MAX=3.40282347e+38F -DFLT_MIN_10_EXP=(-37) -DFLT_MIN_EXP=(-125) -DFLT_MIN=1.17549435e-38F -DFLT_RADIX=2 -DFXSR=1 -DGCC_ASM_FLAG_OUTPUTS=1 -DGCC_ATOMIC_BOOL_LOCK_FREE=2 -DGCC_ATOMIC_CHAR16_T_LOCK_FREE=2 -D__GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 -DGCC_ATOMIC_CHAR_LOCK_FREE=2 -DGCC_ATOMIC_INT_LOCK_FREE=2 -DGCC_ATOMIC_LLONG_LOCK_FREE=2 -DGCC_ATOMIC_LONG_LOCK_FREE=2 -DGCC_ATOMIC_POINTER_LOCK_FREE=2 -DGCC_ATOMIC_SHORT_LOCK_FREE=2 -DGCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 -DGCC_ATOMIC_WCHAR_T_LOCK_FREE=2 -DGCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 -DGCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 -DGCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 -DGCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 -DGNUC_GNU_INLINE=1 -DGNUG=4 -DGXX_ABI_VERSION=1002 -DGXX_EXPERIMENTAL_CXX0X=1 -DGXX_RTTI=1 -DGXX_WEAK=1 -DINT16_C_SUFFIX= -DINT16_FMTd="hd" -DINT16_FMTi="hi" -DINT16_MAX=32767 -DINT16_TYPE=short -DINT32_C_SUFFIX= -DINT32_FMTd="d" -DINT32_FMTi="i" -DINT32_MAX=2147483647 -DINT32_TYPE=int -DINT64_C_SUFFIX=LL -DINT64_FMTd="lld" -DINT64_FMTi="lli" -DINT64_MAX=9223372036854775807LL -DINT64_TYPE=long long int -DINT8_C_SUFFIX= -DINT8_FMTd="hhd" -DINT8_FMTi="hhi" -DINT8_MAX=127 -DINT8_TYPE=signed char -DINTMAX_C_SUFFIX=LL -DINTMAX_FMTd="lld" -DINTMAX_FMTi="lli" -DINTMAX_MAX=9223372036854775807LL -DINTMAX_TYPE=long long int -DINTMAX_WIDTH=64 -DINTPTR_FMTd="lld" -DINTPTR_FMTi="lli" -DINTPTR_MAX=9223372036854775807LL -DINTPTR_TYPE=long long int -DINTPTR_WIDTH=64 -DINT_FAST16_FMTd="hd" -DINT_FAST16_FMTi="hi" -DINT_FAST16_MAX=32767 -DINT_FAST16_TYPE=short -DINT_FAST16_WIDTH=16 -DINT_FAST32_FMTd="d" -DINT_FAST32_FMTi="i" -DINT_FAST32_MAX=2147483647 -DINT_FAST32_TYPE=int -DINT_FAST32_WIDTH=32 -DINT_FAST64_FMTd="lld" -DINT_FAST64_FMTi="lli" -DINT_FAST64_MAX=9223372036854775807LL -DINT_FAST64_TYPE=long long int -DINT_FAST64_WIDTH=64 -DINT_FAST8_FMTd="hhd" -DINT_FAST8_FMTi="hhi" -DINT_FAST8_MAX=127 -DINT_FAST8_TYPE=signed char -DINT_FAST8_WIDTH=8 -DINT_LEAST16_FMTd="hd" -DINT_LEAST16_FMTi="hi" -DINT_LEAST16_MAX=32767 -DINT_LEAST16_TYPE=short -DINT_LEAST16_WIDTH=16 -DINT_LEAST32_FMTd="d" -DINT_LEAST32_FMTi="i" -DINT_LEAST32_MAX=2147483647 -DINT_LEAST32_TYPE=int -DINT_LEAST32_WIDTH=32 -DINT_LEAST64_FMTd="lld" -DINT_LEAST64_FMTi="lli" -DINT_LEAST64_MAX=9223372036854775807LL -DINT_LEAST64_TYPE=long long int -DINT_LEAST64_WIDTH=64 -DINT_LEAST8_FMTd="hhd" -DINT_LEAST8_FMTi="hhi" -DINT_LEAST8_MAX=127 -DINT_LEAST8_TYPE=signed char -DINT_LEAST8_WIDTH=8 -DINT_MAX=2147483647 -DINT_WIDTH=32 -DLDBL_DECIMAL_DIG=21 -DLDBL_DENORM_MIN=3.64519953188247460253e-4951L -DLDBL_DIG=18 -DLDBL_EPSILON=1.08420217248550443401e-19L -DLDBL_HAS_DENORM=1 -DLDBL_HAS_INFINITY=1 -DLDBL_HAS_QUIET_NAN=1 -DLDBL_MANT_DIG=64 -DLDBL_MAX_10_EXP=4932 -DLDBL_MAX_EXP=16384 -DLDBL_MAX=1.18973149535723176502e+4932L -DLDBL_MIN_10_EXP=(-4931) -DLDBL_MIN_EXP=(-16381) -DLDBL_MIN=3.36210314311209350626e-4932L -DLITTLE_ENDIAN=1 -DLLONG_WIDTH=64 -DLONG_LONG_MAX=9223372036854775807LL -DLONG_MAX=2147483647L -DLONG_WIDTH=32 -DMINGW32=1 -DMINGW64=1 -DMMX=1 -DMSVCRT=1 -DNO_INLINE=1 -DNO_MATH_INLINES=1 -DOBJC_BOOL_IS_BOOL=0 -D__OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 -DOPENCL_MEMORY_SCOPE_DEVICE=2 -DOPENCL_MEMORY_SCOPE_SUB_GROUP=4 -DOPENCL_MEMORY_SCOPE_WORK_GROUP=1 -DOPENCL_MEMORY_SCOPE_WORK_ITEM=0 -DORDER_BIG_ENDIAN=4321 -DORDER_LITTLE_ENDIAN=1234 -DORDER_PDP_ENDIAN=3412 -DPIC=2 -DPOINTER_WIDTH=64 -DPRAGMA_REDEFINE_EXTNAME=1 -DPTRDIFF_FMTd="lld" -DPTRDIFF_FMTi="lli" -DPTRDIFF_MAX=9223372036854775807LL -DPTRDIFF_TYPE=long long int -DPTRDIFF_WIDTH=64 -DREGISTER_PREFIX= -DSCHAR_MAX=127 -DSEG_FS=1 -DSEG_GS=1 -DSEH=1 -DSHRT_MAX=32767 -DSHRT_WIDTH=16 -DSIG_ATOMIC_MAX=2147483647 -DSIG_ATOMIC_WIDTH=32 -DSIZEOF_DOUBLE=8 -DSIZEOF_FLOAT128=16 -DSIZEOF_FLOAT=4 -DSIZEOF_INT128=16 -DSIZEOF_INT=4 -DSIZEOF_LONG_DOUBLE=16 -DSIZEOF_LONG_LONG=8 -DSIZEOF_LONG=4 -DSIZEOF_POINTER=8 -DSIZEOF_PTRDIFF_T=8 -DSIZEOF_SHORT=2 -DSIZEOF_SIZE_T=8 -DSIZEOF_WCHAR_T=2 -DSIZEOF_WINT_T=2 -DSIZE_FMTX="llX" -DSIZE_FMTo="llo" -DSIZE_FMTu="llu" -DSIZE_FMTx="llx" -DSIZE_MAX=18446744073709551615ULL -DSIZE_TYPE=long long unsigned int -DSIZE_WIDTH=64 -DSTDCPP_DEFAULT_NEW_ALIGNMENT=16ULL -DSTDCPP_THREADS=1 -DSTDC_HOSTED=1 -DSTDC_UTF_16=1 -DSTDC_UTF_32=1 -DSTDC=1 -DSTRICT_ANSI=1 -DUINT16_C_SUFFIX= -DUINT16_FMTX="hX" -DUINT16_FMTo="ho" -DUINT16_FMTu="hu" -DUINT16_FMTx="hx" -DUINT16_MAX=65535 -DUINT16_TYPE=unsigned short -DUINT32_C_SUFFIX=U -DUINT32_FMTX="X" -DUINT32_FMTo="o" -DUINT32_FMTu="u" -DUINT32_FMTx="x" -DUINT32_MAX=4294967295U -DUINT32_TYPE=unsigned int -DUINT64_C_SUFFIX=ULL -DUINT64_FMTX="llX" -DUINT64_FMTo="llo" -DUINT64_FMTu="llu" -DUINT64_FMTx="llx" -DUINT64_MAX=18446744073709551615ULL -DUINT64_TYPE=long long unsigned int -DUINT8_C_SUFFIX= -DUINT8_FMTX="hhX" -DUINT8_FMTo="hho" -DUINT8_FMTu="hhu" -DUINT8_FMTx="hhx" -DUINT8_MAX=255 -DUINT8_TYPE=unsigned char -DUINTMAX_C_SUFFIX=ULL -DUINTMAX_FMTX="llX" -DUINTMAX_FMTo="llo" -DUINTMAX_FMTu="llu" -DUINTMAX_FMTx="llx" -DUINTMAX_MAX=18446744073709551615ULL -DUINTMAX_TYPE=long long unsigned int -DUINTMAX_WIDTH=64 -DUINTPTR_FMTX="llX" -DUINTPTR_FMTo="llo" -DUINTPTR_FMTu="llu" -DUINTPTR_FMTx="llx" -DUINTPTR_MAX=18446744073709551615ULL -DUINTPTR_TYPE=long long unsigned int -DUINTPTR_WIDTH=64 -DUINT_FAST16_FMTX="hX" -DUINT_FAST16_FMTo="ho" -DUINT_FAST16_FMTu="hu" -DUINT_FAST16_FMTx="hx" -DUINT_FAST16_MAX=65535 -DUINT_FAST16_TYPE=unsigned short -DUINT_FAST32_FMTX="X" -DUINT_FAST32_FMTo="o" -DUINT_FAST32_FMTu="u" -DUINT_FAST32_FMTx="x" -DUINT_FAST32_MAX=4294967295U -DUINT_FAST32_TYPE=unsigned int -DUINT_FAST64_FMTX="llX" -DUINT_FAST64_FMTo="llo" -DUINT_FAST64_FMTu="llu" -DUINT_FAST64_FMTx="llx" -DUINT_FAST64_MAX=18446744073709551615ULL -DUINT_FAST64_TYPE=long long unsigned int -DUINT_FAST8_FMTX="hhX" -DUINT_FAST8_FMTo="hho" -DUINT_FAST8_FMTu="hhu" -DUINT_FAST8_FMTx="hhx" -DUINT_FAST8_MAX=255 -DUINT_FAST8_TYPE=unsigned char -DUINT_LEAST16_FMTX="hX" -DUINT_LEAST16_FMTo="ho" -DUINT_LEAST16_FMTu="hu" -DUINT_LEAST16_FMTx="hx" -DUINT_LEAST16_MAX=65535 -DUINT_LEAST16_TYPE=unsigned short -DUINT_LEAST32_FMTX="X" -DUINT_LEAST32_FMTo="o" -DUINT_LEAST32_FMTu="u" -DUINT_LEAST32_FMTx="x" -DUINT_LEAST32_MAX=4294967295U -DUINT_LEAST32_TYPE=unsigned int -DUINT_LEAST64_FMTX="llX" -DUINT_LEAST64_FMTo="llo" -DUINT_LEAST64_FMTu="llu" -DUINT_LEAST64_FMTx="llx" -DUINT_LEAST64_MAX=18446744073709551615ULL -DUINT_LEAST64_TYPE=long long unsigned int -DUINT_LEAST8_FMTX="hhX" -DUINT_LEAST8_FMTo="hho" -DUINT_LEAST8_FMTu="hhu" -DUINT_LEAST8_FMTx="hhx" -DUINT_LEAST8_MAX=255 -DUINT_LEAST8_TYPE=unsigned char -DUSER_LABEL_PREFIX= -DWCHAR_MAX=65535 -DWCHAR_TYPE=unsigned short -DWCHAR_UNSIGNED=1 -DWCHAR_WIDTH=16 -DWIN32=1 -DWIN32=1 -DWIN64=1 -DWIN64=1 -DWINNT=1 -DWINNT=1 -D__WINT_MAX=65535 -DWINT_TYPE=unsigned short -DWINT_UNSIGNED=1 -DWINT_WIDTH=16 -Damd64=1 -Damd64=1 -Dclang=1 -Dclang_literal_encoding="UTF-8" -D__clang_major=16 -Dclang_minor=0 -Dclang_patchlevel=4 -Dclang_version="16.0.4 " -Dclang_wide_literal_encoding="UTF-16" -Dcode_model_small=1 -Dcplusplus=201703L -Dcpp_aggregate_bases=201603L -Dcpp_aggregate_nsdmi=201304L -Dcpp_alias_templates=200704L -Dcpp_aligned_new=201606L -Dcpp_attributes=200809L -Dcpp_binary_literals=201304L -Dcpp_capture_star_this=201603L -Dcpp_constexpr=201603L -D__cpp_constexpr_in_decltype=201711L -Dcpp_decltype=200707L -Dcpp_decltype_auto=201304L -Dcpp_deduction_guides=201703L -Dcpp_delegating_constructors=200604L -Dcpp_digit_separators=201309L -Dcpp_enumerator_attributes=201411L -Dcpp_exceptions=199711L -Dcpp_fold_expressions=201603L -Dcpp_generic_lambdas=201304L -Dcpp_guaranteed_copy_elision=201606L -Dcpp_hex_float=201603L -Dcpp_if_constexpr=201606L -D__cpp_impl_destroying_delete=201806L -Dcpp_inheriting_constructors=201511L -Dcpp_init_captures=201304L -Dcpp_initializer_lists=200806L -Dcpp_inline_variables=201606L -Dcpp_lambdas=200907L -Dcpp_named_character_escapes=202207L -Dcpp_namespace_attributes=201411L -Dcpp_nested_namespace_definitions=201411L -Dcpp_noexcept_function_type=201510L -Dcpp_nontype_template_args=201411L -Dcpp_nontype_template_parameter_auto=201606L -Dcpp_nsdmi=200809L -Dcpp_range_based_for=201603L -Dcpp_raw_strings=200710L -Dcpp_ref_qualifiers=200710L -Dcpp_return_type_deduction=201304L -D__cpp_rtti=199711L -Dcpp_rvalue_references=200610L -Dcpp_static_assert=201411L -Dcpp_static_call_operator=202207L -Dcpp_structured_bindings=201606L -Dcpp_template_auto=201606L -Dcpp_threadsafe_static_init=200806L -Dcpp_unicode_characters=200704L -Dcpp_unicode_literals=200710L -D__cpp_user_defined_literals=200809L -Dcpp_variable_templates=201304L -Dcpp_variadic_templates=200704L -Dcpp_variadic_using=201611L -Ddeclspec=declspec -Dk8=1 -Dk8=1 -Dllvm=1 -Dpic=2 -Dprivate_extern=extern -Dseg_fs=attribute((address_space(257))) -Dseg_gs=attribute((address_space(256))) -Dtune_k8=1 -Dx86_64=1 -Dx86_64=1 -ID:/VSCode_test/src -isystemC:/msys64/clang64/lib/clang/16/include -isystemC:/msys64/mingw64/include sending compilation args for D:\VSCode_test\src\main.cpp include: D:\VSCODE_TEST\SRC include: C:\MSYS64\CLANG64\LIB\CLANG\16\INCLUDE include: C:\MSYS64\MINGW64\INCLUDE define: _NATIVE_WCHAR_T_DEFINED=1 define: _WCHAR_T_DEFINED=1 define: _WIN32=1 define: _WIN64=1 define: ATOMIC_ACQUIRE=2 define: ATOMIC_ACQ_REL=4 define: ATOMIC_CONSUME=1 define: __ATOMIC_RELAXED=0 define: ATOMIC_RELEASE=3 define: ATOMIC_SEQ_CST=5 define: BIGGEST_ALIGNMENT=16 define: BITINT_MAXWIDTH=8388608 define: BOOL_WIDTH=8 define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: CHAR16_TYPE=unsigned short define: CHAR32_TYPE=unsigned int define: CHAR_BIT=8 define: CLANG_ATOMIC_BOOL_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR_LOCK_FREE=2 define: CLANG_ATOMIC_INT_LOCK_FREE=2 define: CLANG_ATOMIC_LLONG_LOCK_FREE=2 define: CLANG_ATOMIC_LONG_LOCK_FREE=2 define: CLANG_ATOMIC_POINTER_LOCK_FREE=2 define: CLANG_ATOMIC_SHORT_LOCK_FREE=2 define: CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 define: CONSTANT_CFSTRINGS=1 define: DBL_DECIMAL_DIG=17 define: DBL_DENORM_MIN=4.9406564584124654e-324 define: DBL_DIG=15 define: DBL_EPSILON=2.2204460492503131e-16 define: DBL_HAS_DENORM=1 define: DBL_HAS_INFINITY=1 define: DBL_HAS_QUIET_NAN=1 define: DBL_MANT_DIG=53 define: DBL_MAX_10_EXP=308 define: DBL_MAX_EXP=1024 define: DBL_MAX=1.7976931348623157e+308 define: DBL_MIN_10_EXP=(-307) define: DBL_MIN_EXP=(-1021) define: DBL_MIN=2.2250738585072014e-308 define: DECIMAL_DIG=LDBL_DECIMAL_DIG define: DEPRECATED=1 define: EXCEPTIONS=1 define: FINITE_MATH_ONLY=0 define: FLT16_DECIMAL_DIG=5 define: FLT16_DENORM_MIN=5.9604644775390625e-8F16 define: FLT16_DIG=3 define: FLT16_EPSILON=9.765625e-4F16 define: FLT16_HAS_DENORM=1 define: FLT16_HAS_INFINITY=1 define: FLT16_HAS_QUIET_NAN=1 define: FLT16_MANT_DIG=11 define: FLT16_MAX_10_EXP=4 define: FLT16_MAX_EXP=16 define: FLT16_MAX=6.5504e+4F16 define: FLT16_MIN_10_EXP=(-4) define: FLT16_MIN_EXP=(-13) define: FLT16_MIN=6.103515625e-5F16 define: FLT_DECIMAL_DIG=9 define: FLT_DENORM_MIN=1.40129846e-45F define: FLT_DIG=6 define: FLT_EPSILON=1.19209290e-7F define: FLT_HAS_DENORM=1 define: FLT_HAS_INFINITY=1 define: FLT_HAS_QUIET_NAN=1 define: FLT_MANT_DIG=24 define: FLT_MAX_10_EXP=38 define: FLT_MAX_EXP=128 define: FLT_MAX=3.40282347e+38F define: FLT_MIN_10_EXP=(-37) define: FLT_MIN_EXP=(-125) define: FLT_MIN=1.17549435e-38F define: FLT_RADIX=2 define: FXSR=1 define: GCC_ASM_FLAG_OUTPUTS=1 define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_ATOMIC_INT_LOCK_FREE=2 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: GNUC_GNU_INLINE=1 define: GNUC_MINOR=2 define: GNUC_PATCHLEVEL=1 define: GNUC=4 define: GNUG=4 define: GXX_ABI_VERSION=1002 define: GXX_EXPERIMENTAL_CXX0X=1 define: GXX_RTTI=1 define: __GXX_WEAK=1 define: INT16_C_SUFFIX= define: INT16_FMTd="hd" define: INT16_FMTi="hi" define: INT16_MAX=32767 define: INT16_TYPE=short define: INT32_C_SUFFIX= define: INT32_FMTd="d" define: INT32_FMTi="i" define: INT32_MAX=2147483647 define: INT32_TYPE=int define: INT64_C_SUFFIX=LL define: INT64_FMTd="lld" define: INT64_FMTi="lli" define: INT64_MAX=9223372036854775807LL define: INT64_TYPE=long long int define: INT8_C_SUFFIX= define: INT8_FMTd="hhd" define: INT8_FMTi="hhi" define: INT8_MAX=127 define: INT8_TYPE=signed char define: INTMAX_C_SUFFIX=LL define: INTMAX_FMTd="lld" define: INTMAX_FMTi="lli" define: INTMAX_MAX=9223372036854775807LL define: INTMAX_TYPE=long long int define: INTMAX_WIDTH=64 define: INTPTR_FMTd="lld" define: INTPTR_FMTi="lli" define: INTPTR_MAX=9223372036854775807LL define: INTPTR_TYPE=long long int define: INTPTR_WIDTH=64 define: INT_FAST16_FMTd="hd" define: INT_FAST16_FMTi="hi" define: INT_FAST16_MAX=32767 define: INT_FAST16_TYPE=short define: INT_FAST16_WIDTH=16 define: INT_FAST32_FMTd="d" define: INT_FAST32_FMTi="i" define: INT_FAST32_MAX=2147483647 define: INT_FAST32_TYPE=int define: INT_FAST32_WIDTH=32 define: INT_FAST64_FMTd="lld" define: INT_FAST64_FMTi="lli" define: INT_FAST64_MAX=9223372036854775807LL define: INT_FAST64_TYPE=long long int define: INT_FAST64_WIDTH=64 define: INT_FAST8_FMTd="hhd" define: INT_FAST8_FMTi="hhi" define: INT_FAST8_MAX=127 define: INT_FAST8_TYPE=signed char define: INT_FAST8_WIDTH=8 define: INT_LEAST16_FMTd="hd" define: INT_LEAST16_FMTi="hi" define: INT_LEAST16_MAX=32767 define: INT_LEAST16_TYPE=short define: INT_LEAST16_WIDTH=16 define: INT_LEAST32_FMTd="d" define: INT_LEAST32_FMTi="i" define: INT_LEAST32_MAX=2147483647 define: INT_LEAST32_TYPE=int define: INT_LEAST32_WIDTH=32 define: INT_LEAST64_FMTd="lld" define: INT_LEAST64_FMTi="lli" define: INT_LEAST64_MAX=9223372036854775807LL define: INT_LEAST64_TYPE=long long int define: INT_LEAST64_WIDTH=64 define: INT_LEAST8_FMTd="hhd" define: INT_LEAST8_FMTi="hhi" define: INT_LEAST8_MAX=127 define: INT_LEAST8_TYPE=signed char define: INT_LEAST8_WIDTH=8 define: INT_MAX=2147483647 define: INT_WIDTH=32 define: LDBL_DECIMAL_DIG=21 define: LDBL_DENORM_MIN=3.64519953188247460253e-4951L define: LDBL_DIG=18 define: LDBL_EPSILON=1.08420217248550443401e-19L define: LDBL_HAS_DENORM=1 define: LDBL_HAS_INFINITY=1 define: LDBL_HAS_QUIET_NAN=1 define: LDBL_MANT_DIG=64 define: LDBL_MAX_10_EXP=4932 define: LDBL_MAX_EXP=16384 define: LDBL_MAX=1.18973149535723176502e+4932L define: LDBL_MIN_10_EXP=(-4931) define: LDBL_MIN_EXP=(-16381) define: LDBL_MIN=3.36210314311209350626e-4932L define: LITTLE_ENDIAN=1 define: LLONG_WIDTH=64 define: LONG_LONG_MAX=9223372036854775807LL define: LONG_MAX=2147483647L define: LONG_WIDTH=32 define: MINGW32=1 define: MINGW64=1 define: MMX=1 define: MSVCRT=1 define: NO_INLINE=1 define: NO_MATH_INLINES=1 define: OBJC_BOOL_IS_BOOL=0 define: OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 define: __OPENCL_MEMORY_SCOPE_DEVICE=2 define: OPENCL_MEMORY_SCOPE_SUB_GROUP=4 define: OPENCL_MEMORY_SCOPE_WORK_GROUP=1 define: OPENCL_MEMORY_SCOPE_WORK_ITEM=0 define: ORDER_BIG_ENDIAN=4321 define: ORDER_LITTLE_ENDIAN=1234 define: ORDER_PDP_ENDIAN=3412 define: PIC=2 define: POINTER_WIDTH=64 define: PRAGMA_REDEFINE_EXTNAME=1 define: __PTRDIFF_FMTd="lld" define: PTRDIFF_FMTi="lli" define: PTRDIFF_MAX=9223372036854775807LL define: PTRDIFF_TYPE=long long int define: PTRDIFF_WIDTH=64 define: REGISTER_PREFIX= define: SCHAR_MAX=127 define: SEG_FS=1 define: __SEG_GS=1 define: SEH=1 define: SHRT_MAX=32767 define: SHRT_WIDTH=16 define: SIG_ATOMIC_MAX=2147483647 define: SIG_ATOMIC_WIDTH=32 define: SIZEOF_DOUBLE=8 define: SIZEOF_FLOAT128=16 define: SIZEOF_FLOAT=4 define: SIZEOF_INT128=16 define: SIZEOF_INT=4 define: SIZEOF_LONG_DOUBLE=16 define: SIZEOF_LONG_LONG=8 define: SIZEOF_LONG=4 define: SIZEOF_POINTER=8 define: SIZEOF_PTRDIFF_T=8 define: SIZEOF_SHORT=2 define: SIZEOF_SIZE_T=8 define: SIZEOF_WCHAR_T=2 define: SIZEOF_WINT_T=2 define: SIZE_FMTX="llX" define: SIZE_FMTo="llo" define: SIZE_FMTu="llu" define: SIZE_FMTx="llx" define: SIZE_MAX=18446744073709551615ULL define: SIZE_TYPE=long long unsigned int define: SIZE_WIDTH=64 define: SSE2_MATH=1 define: SSE2=1 define: SSE_MATH=1 define: SSE=1 define: STDCPP_DEFAULT_NEW_ALIGNMENT=16ULL define: STDCPP_THREADS=1 define: STDC_HOSTED=1 define: STDC_UTF_16=1 define: STDC_UTF_32=1 define: STDC=1 define: STRICT_ANSI=1 define: UINT16_C_SUFFIX= define: UINT16_FMTX="hX" define: UINT16_FMTo="ho" define: UINT16_FMTu="hu" define: UINT16_FMTx="hx" define: UINT16_MAX=65535 define: UINT16_TYPE=unsigned short define: UINT32_C_SUFFIX=U define: UINT32_FMTX="X" define: UINT32_FMTo="o" define: UINT32_FMTu="u" define: UINT32_FMTx="x" define: UINT32_MAX=4294967295U define: UINT32_TYPE=unsigned int define: UINT64_C_SUFFIX=ULL define: UINT64_FMTX="llX" define: UINT64_FMTo="llo" define: UINT64_FMTu="llu" define: UINT64_FMTx="llx" define: UINT64_MAX=18446744073709551615ULL define: UINT64_TYPE=long long unsigned int define: UINT8_C_SUFFIX= define: UINT8_FMTX="hhX" define: UINT8_FMTo="hho" define: UINT8_FMTu="hhu" define: UINT8_FMTx="hhx" define: UINT8_MAX=255 define: UINT8_TYPE=unsigned char define: UINTMAX_C_SUFFIX=ULL define: UINTMAX_FMTX="llX" define: UINTMAX_FMTo="llo" define: UINTMAX_FMTu="llu" define: UINTMAX_FMTx="llx" define: UINTMAX_MAX=18446744073709551615ULL define: UINTMAX_TYPE=long long unsigned int define: UINTMAX_WIDTH=64 define: UINTPTR_FMTX="llX" define: UINTPTR_FMTo="llo" define: UINTPTR_FMTu="llu" define: UINTPTR_FMTx="llx" define: UINTPTR_MAX=18446744073709551615ULL define: UINTPTR_TYPE=long long unsigned int define: UINTPTR_WIDTH=64 define: UINT_FAST16_FMTX="hX" define: UINT_FAST16_FMTo="ho" define: UINT_FAST16_FMTu="hu" define: UINT_FAST16_FMTx="hx" define: UINT_FAST16_MAX=65535 define: UINT_FAST16_TYPE=unsigned short define: UINT_FAST32_FMTX="X" define: UINT_FAST32_FMTo="o" define: UINT_FAST32_FMTu="u" define: UINT_FAST32_FMTx="x" define: UINT_FAST32_MAX=4294967295U define: UINT_FAST32_TYPE=unsigned int define: UINT_FAST64_FMTX="llX" define: UINT_FAST64_FMTo="llo" define: UINT_FAST64_FMTu="llu" define: UINT_FAST64_FMTx="llx" define: UINT_FAST64_MAX=18446744073709551615ULL define: UINT_FAST64_TYPE=long long unsigned int define: UINT_FAST8_FMTX="hhX" define: UINT_FAST8_FMTo="hho" define: UINT_FAST8_FMTu="hhu" define: UINT_FAST8_FMTx="hhx" define: UINT_FAST8_MAX=255 define: UINT_FAST8_TYPE=unsigned char define: UINT_LEAST16_FMTX="hX" define: UINT_LEAST16_FMTo="ho" define: UINT_LEAST16_FMTu="hu" define: UINT_LEAST16_FMTx="hx" define: UINT_LEAST16_MAX=65535 define: UINT_LEAST16_TYPE=unsigned short define: UINT_LEAST32_FMTX="X" define: UINT_LEAST32_FMTo="o" define: UINT_LEAST32_FMTu="u" define: UINT_LEAST32_FMTx="x" define: UINT_LEAST32_MAX=4294967295U define: UINT_LEAST32_TYPE=unsigned int define: UINT_LEAST64_FMTX="llX" define: UINT_LEAST64_FMTo="llo" define: UINT_LEAST64_FMTu="llu" define: UINT_LEAST64_FMTx="llx" define: UINT_LEAST64_MAX=18446744073709551615ULL define: UINT_LEAST64_TYPE=long long unsigned int define: UINT_LEAST8_FMTX="hhX" define: UINT_LEAST8_FMTo="hho" define: UINT_LEAST8_FMTu="hhu" define: UINT_LEAST8_FMTx="hhx" define: UINT_LEAST8_MAX=255 define: UINT_LEAST8_TYPE=unsigned char define: USER_LABEL_PREFIX= define: VERSION="Clang 16.0.4" define: WCHAR_MAX=65535 define: WCHAR_TYPE=unsigned short define: WCHAR_UNSIGNED=1 define: WCHAR_WIDTH=16 define: WIN32=1 define: WIN32=1 define: WIN64=1 define: WIN64=1 define: WINNT=1 define: WINNT=1 define: WINT_MAX=65535 define: WINT_TYPE=unsigned short define: WINT_UNSIGNED=1 define: WINT_WIDTH=16 define: amd64=1 define: amd64=1 define: clang=1 define: clang_literal_encoding="UTF-8" define: clang_major=16 define: clang_minor=0 define: clang_patchlevel=4 define: clang_version="16.0.4 " define: clang_wide_literal_encoding="UTF-16" define: code_model_small=1 define: cplusplus=201703L define: declspec=declspec define: k8=1 define: k8=1 define: llvm=1 define: pic=2 define: private_extern=extern define: seg_fs=attribute((address_space(257))) define: seg_gs=attribute((address_space(256))) define: tune_k8=1 define: x86_64=1 define: __x86_64__=1 define: DUMMY other: --clang other: --clang_version=160004 other: --ms_extensions stdver: c++17 intelliSenseMode: windows-clang-x64 Checking for syntax errors: D:\VSCode_test\src\main.cpp Shutting down IntelliSense server: D:\VSCode_test\src\main.cpp Error while processing D:\VSCode_test\src\main.cpp. D:\VSCode_test\src\main.cpp:3:10: error: 'cstdlib' file not found [clang-diagnostic-error]

include

     ^~~~~~~~~

sending compilation args for D:\VSCode_test\src\main.cpp include: D:\VSCODE_TEST\SRC include: C:\MSYS64\CLANG64\LIB\CLANG\16\INCLUDE include: C:\MSYS64\MINGW64\INCLUDE define: _NATIVE_WCHAR_T_DEFINED=1 define: _WCHAR_T_DEFINED=1 define: _WIN32=1 define: _WIN64=1 define: ATOMIC_ACQUIRE=2 define: ATOMIC_ACQ_REL=4 define: ATOMIC_CONSUME=1 define: ATOMIC_RELAXED=0 define: ATOMIC_RELEASE=3 define: ATOMIC_SEQ_CST=5 define: BIGGEST_ALIGNMENT=16 define: BITINT_MAXWIDTH=8388608 define: BOOL_WIDTH=8 define: BYTE_ORDER=ORDER_LITTLE_ENDIAN define: CHAR16_TYPE=unsigned short define: CHAR32_TYPE=unsigned int define: CHAR_BIT=8 define: CLANG_ATOMIC_BOOL_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR16_T_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR32_T_LOCK_FREE=2 define: CLANG_ATOMIC_CHAR_LOCK_FREE=2 define: CLANG_ATOMIC_INT_LOCK_FREE=2 define: CLANG_ATOMIC_LLONG_LOCK_FREE=2 define: CLANG_ATOMIC_LONG_LOCK_FREE=2 define: CLANG_ATOMIC_POINTER_LOCK_FREE=2 define: CLANG_ATOMIC_SHORT_LOCK_FREE=2 define: __CLANG_ATOMIC_WCHAR_T_LOCK_FREE=2 define: CONSTANT_CFSTRINGS=1 define: DBL_DECIMAL_DIG=17 define: DBL_DENORM_MIN=4.9406564584124654e-324 define: DBL_DIG=15 define: DBL_EPSILON=2.2204460492503131e-16 define: DBL_HAS_DENORM=1 define: DBL_HAS_INFINITY=1 define: DBL_HAS_QUIET_NAN=1 define: DBL_MANT_DIG=53 define: DBL_MAX_10_EXP=308 define: DBL_MAX_EXP=1024 define: DBL_MAX=1.7976931348623157e+308 define: DBL_MIN_10_EXP=(-307) define: DBL_MIN_EXP=(-1021) define: DBL_MIN=2.2250738585072014e-308 define: DECIMAL_DIG=LDBL_DECIMAL_DIG define: DEPRECATED=1 define: EXCEPTIONS=1 define: FINITE_MATH_ONLY=0 define: FLT16_DECIMAL_DIG=5 define: FLT16_DENORM_MIN=5.9604644775390625e-8F16 define: FLT16_DIG=3 define: FLT16_EPSILON=9.765625e-4F16 define: FLT16_HAS_DENORM=1 define: FLT16_HAS_INFINITY=1 define: FLT16_HAS_QUIET_NAN=1 define: FLT16_MANT_DIG=11 define: FLT16_MAX_10_EXP=4 define: FLT16_MAX_EXP=16 define: FLT16_MAX=6.5504e+4F16 define: FLT16_MIN_10_EXP=(-4) define: FLT16_MIN_EXP=(-13) define: FLT16_MIN=6.103515625e-5F16 define: FLT_DECIMAL_DIG=9 define: FLT_DENORM_MIN=1.40129846e-45F define: FLT_DIG=6 define: FLT_EPSILON=1.19209290e-7F define: FLT_HAS_DENORM=1 define: FLT_HAS_INFINITY=1 define: FLT_HAS_QUIET_NAN=1 define: FLT_MANT_DIG=24 define: FLT_MAX_10_EXP=38 define: FLT_MAX_EXP=128 define: FLT_MAX=3.40282347e+38F define: FLT_MIN_10_EXP=(-37) define: FLT_MIN_EXP=(-125) define: FLT_MIN=1.17549435e-38F define: FLT_RADIX=2 define: FXSR=1 define: GCC_ASM_FLAG_OUTPUTS=1 define: GCC_ATOMIC_BOOL_LOCK_FREE=2 define: GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: GCC_ATOMIC_CHAR_LOCK_FREE=2 define: GCC_ATOMIC_INT_LOCK_FREE=2 define: GCC_ATOMIC_LLONG_LOCK_FREE=2 define: GCC_ATOMIC_LONG_LOCK_FREE=2 define: GCC_ATOMIC_POINTER_LOCK_FREE=2 define: GCC_ATOMIC_SHORT_LOCK_FREE=2 define: GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: GNUC_GNU_INLINE=1 define: __GNUC_MINOR=2 define: GNUC_PATCHLEVEL=1 define: GNUC=4 define: GNUG=4 define: GXX_ABI_VERSION=1002 define: GXX_EXPERIMENTAL_CXX0X=1 define: __GXX_RTTI=1 define: GXX_WEAK=1 define: INT16_C_SUFFIX= define: INT16_FMTd="hd" define: INT16_FMTi="hi" define: INT16_MAX=32767 define: INT16_TYPE=short define: INT32_C_SUFFIX= define: INT32_FMTd="d" define: INT32_FMTi="i" define: INT32_MAX=2147483647 define: INT32_TYPE=int define: INT64_C_SUFFIX=LL define: INT64_FMTd="lld" define: INT64_FMTi="lli" define: INT64_MAX=9223372036854775807LL define: INT64_TYPE=long long int define: INT8_C_SUFFIX= define: INT8_FMTd="hhd" define: INT8_FMTi="hhi" define: INT8_MAX=127 define: INT8_TYPE=signed char define: INTMAX_C_SUFFIX=LL define: INTMAX_FMTd="lld" define: INTMAX_FMTi="lli" define: INTMAX_MAX=9223372036854775807LL define: INTMAX_TYPE=long long int define: INTMAX_WIDTH=64 define: INTPTR_FMTd="lld" define: INTPTR_FMTi="lli" define: INTPTR_MAX=9223372036854775807LL define: INTPTR_TYPE=long long int define: INTPTR_WIDTH=64 define: INT_FAST16_FMTd="hd" define: INT_FAST16_FMTi="hi" define: INT_FAST16_MAX=32767 define: INT_FAST16_TYPE=short define: INT_FAST16_WIDTH=16 define: INT_FAST32_FMTd="d" define: INT_FAST32_FMTi="i" define: INT_FAST32_MAX=2147483647 define: INT_FAST32_TYPE=int define: INT_FAST32_WIDTH=32 define: INT_FAST64_FMTd="lld" define: INT_FAST64_FMTi="lli" define: INT_FAST64_MAX=9223372036854775807LL define: INT_FAST64_TYPE=long long int define: INT_FAST64_WIDTH=64 define: INT_FAST8_FMTd="hhd" define: INT_FAST8_FMTi="hhi" define: INT_FAST8_MAX=127 define: INT_FAST8_TYPE=signed char define: INT_FAST8_WIDTH=8 define: INT_LEAST16_FMTd="hd" define: INT_LEAST16_FMTi="hi" define: INT_LEAST16_MAX=32767 define: INT_LEAST16_TYPE=short define: INT_LEAST16_WIDTH=16 define: INT_LEAST32_FMTd="d" define: INT_LEAST32_FMTi="i" define: INT_LEAST32_MAX=2147483647 define: INT_LEAST32_TYPE=int define: INT_LEAST32_WIDTH=32 define: INT_LEAST64_FMTd="lld" define: INT_LEAST64_FMTi="lli" define: INT_LEAST64_MAX=9223372036854775807LL define: INT_LEAST64_TYPE=long long int define: INT_LEAST64_WIDTH=64 define: INT_LEAST8_FMTd="hhd" define: INT_LEAST8_FMTi="hhi" define: INT_LEAST8_MAX=127 define: INT_LEAST8_TYPE=signed char define: INT_LEAST8_WIDTH=8 define: INT_MAX=2147483647 define: INT_WIDTH=32 define: LDBL_DECIMAL_DIG=21 define: LDBL_DENORM_MIN=3.64519953188247460253e-4951L define: LDBL_DIG=18 define: LDBL_EPSILON=1.08420217248550443401e-19L define: LDBL_HAS_DENORM=1 define: LDBL_HAS_INFINITY=1 define: LDBL_HAS_QUIET_NAN=1 define: LDBL_MANT_DIG=64 define: LDBL_MAX_10_EXP=4932 define: LDBL_MAX_EXP=16384 define: LDBL_MAX=1.18973149535723176502e+4932L define: LDBL_MIN_10_EXP=(-4931) define: LDBL_MIN_EXP=(-16381) define: LDBL_MIN=3.36210314311209350626e-4932L define: LITTLE_ENDIAN=1 define: LLONG_WIDTH=64 define: LONG_LONG_MAX=9223372036854775807LL define: LONG_MAX=2147483647L define: LONG_WIDTH=32 define: MINGW32=1 define: MINGW64=1 define: MMX=1 define: MSVCRT=1 define: NO_INLINE=1 define: NO_MATH_INLINES=1 define: OBJC_BOOL_IS_BOOL=0 define: __OPENCL_MEMORY_SCOPE_ALL_SVM_DEVICES=3 define: OPENCL_MEMORY_SCOPE_DEVICE=2 define: OPENCL_MEMORY_SCOPE_SUB_GROUP=4 define: OPENCL_MEMORY_SCOPE_WORK_GROUP=1 define: OPENCL_MEMORY_SCOPE_WORK_ITEM=0 define: ORDER_BIG_ENDIAN=4321 define: ORDER_LITTLE_ENDIAN=1234 define: ORDER_PDP_ENDIAN=3412 define: PIC=2 define: POINTER_WIDTH=64 define: PRAGMA_REDEFINE_EXTNAME=1 define: PTRDIFF_FMTd="lld" define: PTRDIFF_FMTi="lli" define: PTRDIFF_MAX=9223372036854775807LL define: PTRDIFF_TYPE=long long int define: PTRDIFF_WIDTH=64 define: REGISTER_PREFIX= define: SCHAR_MAX=127 define: SEG_FS=1 define: SEG_GS=1 define: SEH=1 define: SHRT_MAX=32767 define: SHRT_WIDTH=16 define: SIG_ATOMIC_MAX=2147483647 define: SIG_ATOMIC_WIDTH=32 define: SIZEOF_DOUBLE=8 define: SIZEOF_FLOAT128=16 define: SIZEOF_FLOAT=4 define: SIZEOF_INT128=16 define: SIZEOF_INT=4 define: SIZEOF_LONG_DOUBLE=16 define: SIZEOF_LONG_LONG=8 define: SIZEOF_LONG=4 define: SIZEOF_POINTER=8 define: SIZEOF_PTRDIFF_T=8 define: SIZEOF_SHORT=2 define: SIZEOF_SIZE_T=8 define: SIZEOF_WCHAR_T=2 define: SIZEOF_WINT_T=2 define: SIZE_FMTX="llX" define: SIZE_FMTo="llo" define: SIZE_FMTu="llu" define: SIZE_FMTx="llx" define: SIZE_MAX=18446744073709551615ULL define: SIZE_TYPE=long long unsigned int define: SIZE_WIDTH=64 define: SSE2_MATH=1 define: SSE2=1 define: SSE_MATH=1 define: SSE=1 define: STDCPP_DEFAULT_NEW_ALIGNMENT=16ULL define: STDCPP_THREADS=1 define: STDC_HOSTED=1 define: STDC_UTF_16=1 define: STDC_UTF_32=1 define: STDC=1 define: STRICT_ANSI=1 define: UINT16_C_SUFFIX= define: UINT16_FMTX="hX" define: UINT16_FMTo="ho" define: UINT16_FMTu="hu" define: UINT16_FMTx="hx" define: UINT16_MAX=65535 define: UINT16_TYPE=unsigned short define: UINT32_C_SUFFIX=U define: UINT32_FMTX="X" define: UINT32_FMTo="o" define: UINT32_FMTu="u" define: UINT32_FMTx="x" define: UINT32_MAX=4294967295U define: UINT32_TYPE=unsigned int define: UINT64_C_SUFFIX=ULL define: UINT64_FMTX="llX" define: UINT64_FMTo="llo" define: UINT64_FMTu="llu" define: UINT64_FMTx="llx" define: UINT64_MAX=18446744073709551615ULL define: UINT64_TYPE=long long unsigned int define: UINT8_C_SUFFIX= define: UINT8_FMTX="hhX" define: UINT8_FMTo="hho" define: UINT8_FMTu="hhu" define: UINT8_FMTx="hhx" define: UINT8_MAX=255 define: UINT8_TYPE=unsigned char define: UINTMAX_C_SUFFIX=ULL define: UINTMAX_FMTX="llX" define: UINTMAX_FMTo="llo" define: UINTMAX_FMTu="llu" define: UINTMAX_FMTx="llx" define: UINTMAX_MAX=18446744073709551615ULL define: UINTMAX_TYPE=long long unsigned int define: UINTMAX_WIDTH=64 define: UINTPTR_FMTX="llX" define: UINTPTR_FMTo="llo" define: UINTPTR_FMTu="llu" define: UINTPTR_FMTx="llx" define: UINTPTR_MAX=18446744073709551615ULL define: UINTPTR_TYPE=long long unsigned int define: UINTPTR_WIDTH=64 define: UINT_FAST16_FMTX="hX" define: UINT_FAST16_FMTo="ho" define: UINT_FAST16_FMTu="hu" define: UINT_FAST16_FMTx="hx" define: UINT_FAST16_MAX=65535 define: UINT_FAST16_TYPE=unsigned short define: UINT_FAST32_FMTX="X" define: UINT_FAST32_FMTo="o" define: UINT_FAST32_FMTu="u" define: UINT_FAST32_FMTx="x" define: UINT_FAST32_MAX=4294967295U define: UINT_FAST32_TYPE=unsigned int define: UINT_FAST64_FMTX="llX" define: UINT_FAST64_FMTo="llo" define: UINT_FAST64_FMTu="llu" define: UINT_FAST64_FMTx="llx" define: UINT_FAST64_MAX=18446744073709551615ULL define: UINT_FAST64_TYPE=long long unsigned int define: UINT_FAST8_FMTX="hhX" define: UINT_FAST8_FMTo="hho" define: UINT_FAST8_FMTu="hhu" define: UINT_FAST8_FMTx="hhx" define: UINT_FAST8_MAX=255 define: UINT_FAST8_TYPE=unsigned char define: UINT_LEAST16_FMTX="hX" define: UINT_LEAST16_FMTo="ho" define: UINT_LEAST16_FMTu="hu" define: UINT_LEAST16_FMTx="hx" define: UINT_LEAST16_MAX=65535 define: UINT_LEAST16_TYPE=unsigned short define: UINT_LEAST32_FMTX="X" define: UINT_LEAST32_FMTo="o" define: UINT_LEAST32_FMTu="u" define: UINT_LEAST32_FMTx="x" define: UINT_LEAST32_MAX=4294967295U define: UINT_LEAST32_TYPE=unsigned int define: UINT_LEAST64_FMTX="llX" define: UINT_LEAST64_FMTo="llo" define: UINT_LEAST64_FMTu="llu" define: UINT_LEAST64_FMTx="llx" define: UINT_LEAST64_MAX=18446744073709551615ULL define: UINT_LEAST64_TYPE=long long unsigned int define: UINT_LEAST8_FMTX="hhX" define: UINT_LEAST8_FMTo="hho" define: UINT_LEAST8_FMTu="hhu" define: UINT_LEAST8_FMTx="hhx" define: UINT_LEAST8_MAX=255 define: UINT_LEAST8_TYPE=unsigned char define: USER_LABEL_PREFIX= define: VERSION="Clang 16.0.4" define: WCHAR_MAX=65535 define: WCHAR_TYPE=unsigned short define: WCHAR_UNSIGNED=1 define: WCHAR_WIDTH=16 define: WIN32=1 define: WIN32=1 define: WIN64=1 define: WIN64=1 define: WINNT=1 define: WINNT=1 define: __WINT_MAX=65535 define: WINT_TYPE=unsigned short define: WINT_UNSIGNED=1 define: WINT_WIDTH=16 define: amd64=1 define: amd64=1 define: clang=1 define: clang_literal_encoding="UTF-8" define: __clang_major=16 define: clang_minor=0 define: clang_patchlevel=4 define: clang_version="16.0.4 " define: clang_wide_literal_encoding="UTF-16" define: code_model_small=1 define: cplusplus=201703L define: declspec=declspec define: k8=1 define: k8=1 define: llvm=1 define: pic=2 define: private_extern=extern define: seg_fs=attribute((address_space(257))) define: __seg_gs=attribute((address_space(256))) define: __tune_k8=1 define: x86_64=1 define: __x86_64=1 define: DUMMY other: --clang other: --clang_version=160004 other: --ms_extensions stdver: c++17 intelliSenseMode: windows-clang-x64 Queueing IntelliSense update for files in translation unit of: D:\VSCode_test\src\main.cpp Error squiggle count: 3 Tag Parser will be used for IntelliSense operations in: file:///D%3A/VSCode_test/src/main.cpp Update IntelliSense time (sec): 1.097 LSP: cpptools/getSemanticTokens: file:///d%3A/VSCode_test/src/main.cpp (id: 23) LSP: cpptools/getFoldingRanges: file:///d%3A/VSCode_test/src/main.cpp (id: 24) LSP: cpptools/textEditorSelectionChange LSP: cpptools/activeDocumentChange: file:///d%3A/VSCode_test/src/main.cpp

MKHen commented 1 year ago

Sorry for the long post. The site refused to upload any log-file I've created.

Colengms commented 1 year ago

Hi @MKHen . I'm not able to repro, I believe using the same clang++.exe.

Could you try running the following command line:

c:/msys64/clang64/bin/clang++.exe -std=c++17 -m64 -Wp,-v -fno-blocks -E -dM -x c++ nul

I'm interested specifically in the list of system include directories it specifies near the beginning. (The issue you are seeing does not appear to be related to defines).

In my case, I get:

 c:/msys64/clang64/include/c++/v1
 c:/msys64/clang64/lib/clang/16/include
 c:/msys64/clang64/include

But you seem to be missing:

 c:/msys64/clang64/include/c++/v1

However, I do not see the command line used to query the compiler in the portion of the log you provided. Could you provide the command lines from your log, that invoke the compiler? These would be more likely near the start of the log, before logging any defines. The long list of defines implies that it is querying the compiler (for them correctly), but we're looking for why it's missing the header path that refers to the C++ headers.

MKHen commented 1 year ago

Hey, when using c:/msys64/clang64/bin/clang++.exe -std=c++17 -m64 -Wp,-v -fno-blocks -E -dM -x c++ nul in MSYS2 MinGW Clanc x64 bash I get the following:

clang -cc1 version 16.0.4 based upon LLVM 16.0.4 default target x86_64-w64-windows-gnu ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/include/c++/v1" ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/include" ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/usr/include"

include "..." search starts here:

include <...> search starts here:

C:/msys64/clang64/include/c++/v1 C:/msys64/clang64/lib/clang/16/include C:/msys64/clang64/include End of search list.

When the configuration is performed by CMAKE maybe the following lines are intersting:

[proc] Executing command: C:\msys64\mingw64\bin\cmake.EXE --no-warn-unused-cli -Dgtest_disable_pthreads:STRING=ON -DCOMPILER:STRING=clang -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\msys64\clang64\bin\clang.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\msys64\clang64\bin\clang++.exe -SD:/VSCode_test -Bd:/VSCode_test/bin-clang64 -G Ninja [cmake] Not searching for unused variables given on the command line.

and a build in verbose gives the following:

[main] Building folder: VSCode_test [build] Starting build [proc] Executing command: C:\msys64\mingw64\bin\cmake.EXE --build d:/VSCode_test/bin-clang64 --config Debug --target all -- [build] [1/2 50% :: 0.952] Building CXX object CMakeFiles/VSCode-Test.dir/src/main.obj [build] clang version 16.0.4 [build] Target: x86_64-w64-windows-gnu [build] Thread model: posix [build] InstalledDir: C:/msys64/clang64/bin [build] (in-process) [build] "C:/msys64/clang64/bin/clang++.exe" -cc1 -triple x86_64-w64-windows-gnu -emit-obj -mrelax-all -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name main.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -mms-bitfields -funwind-tables=2 -target-cpu x86-64 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -debug-info-kind=constructor -dwarf-version=4 -debugger-tuning=gdb -v -fcoverage-compilation-dir=D:/VSCode_test/bin-clang64 -resource-dir C:/msys64/clang64/lib/clang/16 -dependency-file "CMakeFiles\VSCode-Test.dir\src\main.obj.d" -MT CMakeFiles/VSCode-Test.dir/src/main.obj -sys-header-deps -I D:/VSCode_test/src -D DUMMY -internal-isystem C:/msys64/clang64/x86_64-w64-mingw32/include/c++/v1 -internal-isystem C:/msys64/clang64/include/c++/v1 -internal-isystem C:/msys64/clang64/lib/clang/16/include -internal-isystem C:/msys64/clang64/x86_64-w64-mingw32/include -internal-isystem C:/msys64/clang64/x86_64-w64-mingw32/usr/include -internal-isystem C:/msys64/clang64/include -Wno-address-of-temporary -std=c++17 -fdeprecated-macro -fdebug-compilation-dir=D:/VSCode_test/bin-clang64 -ferror-limit 19 -pthread -fno-use-cxa-atexit -fms-extensions -fgnuc-version=4.2.1 -fcxx-exceptions -fexceptions -exception-model=seh -faddrsig -o CMakeFiles/VSCode-Test.dir/src/main.obj -x c++ D:/VSCode_test/src/main.cpp [build] clang -cc1 version 16.0.4 based upon LLVM 16.0.4 default target x86_64-w64-windows-gnu [build] ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/include/c++/v1" [build] ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/include" [build] ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/usr/include" [build] #include "..." search starts here: [build] #include <...> search starts here: [build] D:/VSCode_test/src [build] C:/msys64/clang64/include/c++/v1 [build] C:/msys64/clang64/lib/clang/16/include [build] C:/msys64/clang64/include [build] End of search list. [build] [2/2 100% :: 1.313] Linking CXX executable VSCode-Test.exe [driver] Build completed: 00:00:01.523 [build] Build finished with exit code 0

But just to remember. I am able to build without any problems. It even runs :). The tool just complains about the includes.

sean-mcmanus commented 1 year ago

@MKHen We still need Could you provide the command lines from your log, that invoke the compiler? -- that is in the C/C++ logging with C_Cpp.loggingLevel set to "Debug".

MKHen commented 1 year ago

I posted it about 5 days ago above your comment. Are they not sufficient?

bobbrow commented 1 year ago

We're looking for the lines in the log that looks something like this (except with clang instead of g++):

Compiler query command line: C:/msys64/mingw64/bin/g++.exe -std=c++17 -m64 -Wp,-v -E -dM -x c++ nul

MKHen commented 1 year ago

Ok. Another attempt. What about this:

Discovering files... LSP: cpptools/didChangeCustomBrowseConfiguration Processing folder (recursive): C:/MSYS64/MINGW64/INCLUDE/ Compiler query command line: C:\msys64\mingw64\bin\gcc.exe -std=c17 -m64 -Wp,-v -E -dM -x c nul Attempting to get defaults from C compiler in "compilerPath" property: 'C:\msys64\mingw64\bin\gcc.exe' Querying compiler for default C++ language standard using command line: c:/msys64/clang64/bin/clang++.exe -x c++ -E -dM nul LSP: cpptools/didChangeCppProperties (id: 3) LSP: cpptools/didChangeSettings LSP: cpptools/didChangeSettings LSP: cpptools/didChangeSettings LSP: cpptools/didChangeSettings LSP: textDocument/didChange: file:///d%3A/VSCode_test/src/main.cpp LSP: cpptools/textEditorSelectionChange LSP: textDocument/didChange: file:///d%3A/VSCode_test/src/main.cpp LSP: cpptools/textEditorSelectionChange LSP: cpptools/clearCustomConfigurations LSP: textDocument/didOpen: file:///d%3A/VSCode_test/src/main.cpp LSP: cpptools/textEditorSelectionChange LSP: cpptools/getInlayHints: file:///d%3A/VSCode_test/src/main.cpp (id: 4) LSP: cpptools/getDocumentSymbols: file:///d%3A/VSCode_test/src/main.cpp (id: 5) LSP: cpptools/getCodeActions: file:///d%3A/VSCode_test/src/main.cpp (id: 6) LSP: cpptools/getDocumentSymbols: file:///d%3A/VSCode_test/src/main.cpp (id: 7) LSP: cpptools/activeDocumentChange: file:///d%3A/VSCode_test/src/main.cpp LSP: cpptools/getSemanticTokens: file:///d%3A/VSCode_test/src/main.cpp (id: 8) LSP: cpptools/getFoldingRanges: file:///d%3A/VSCode_test/src/main.cpp (id: 9) LSP: cpptools/getCodeActions: file:///d%3A/VSCode_test/src/main.cpp (id: 10) LSP: cpptools/getDocumentSymbols: file:///d%3A/VSCode_test/src/main.cpp (id: 11) LSP: cpptools/activeDocumentChange: file:///d%3A/VSCode_test/src/main.cpp LSP: $/cancelRequest (cpptools/getDocumentSymbols, id: 5) LSP: $/cancelRequest (cpptools/getCodeActions, id: 6) LSP: $/cancelRequest (cpptools/getDocumentSymbols, id: 7) LSP: textDocument/didSave: file:///d%3A/VSCode_test/src/main.cpp LSP: cpptools/fileChanged: file:///d%3A/VSCode_test/src/main.cpp Processing folder (recursive): C:/MSYS64/MINGW64/LIB/GCC/X86_64-W64-MINGW32/13.1.0/INCLUDE/ LSP: cpptools/fileChanged: file:///d%3A/VSCode_test/src/main.cpp Processing folder (recursive): C:/MSYS64/MINGW64/LIB/GCC/X86_64-W64-MINGW32/13.1.0/INCLUDE-FIXED/ Processing folder (recursive): D:/VSCODE_TEST/ Discovering files: 9053 file(s) processed Custom configuration provider 'CMake Tools' registered LSP: cpptools/didChangeCppProperties (id: 12) LSP: cpptools/pauseParsing LSP: cpptools/clearCustomConfigurations LSP: cpptools/queryTranslationUnitSource: file:///d%3A/VSCode_test/src/main.cpp (id: 13) LSP: cpptools/didChangeCustomBrowseConfiguration LSP: $/cancelRequest (cpptools/getInlayHints, id: 4) Detected language standard version: c++17 Querying compiler's default target using command line: "c:/msys64/clang64/bin/clang++.exe" -dumpmachine 234 file(s) removed from database Done discovering files. Populating include completion cache. Parsing remaining files... tag parsing file: D:\VSCode_test\bin-clang64\CMakeFiles\3.26.4\CompilerIdC\CMakeCCompilerId.c LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/CMakeCache.txt.tmpf34f6 Compiler returned default target value: x86_64-w64-windows-gnu Compiler query command line: c:/msys64/clang64/bin/clang++.exe -fms-extensions -Wno-address-of-temporary -g -std=gnu++17 -std=c++17 -v -pthread -fpermissive -m64 -Wp,-v -fno-blocks -E -dM -x c++ nul tag parsing file: D:\VSCode_test\bin-clang64\CMakeFiles\3.26.4\CompilerIdCXX\CMakeCXXCompilerId.cpp tag parsing file: D:\VSCode_test\src\main.cpp tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\limits.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\syslimits.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\mm_malloc.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\stddef.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\stdint-gcc.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\stdint.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\emmintrin.h LSP: cpptools/fileCreated: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/index-2023-06-21T04-27-06-0760.json LSP: cpptools/fileDeleted: file:///d%3A/VSCode_test/bin-clang64/CMakeCache.txt.tmpf34f6 LSP: cpptools/fileDeleted: file:///d%3A/VSCode_test/bin-clang64/.cmake/api/v1/reply/index-2023-06-15T04-41-09-0799.json tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\pmmintrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\xmmintrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\omp.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\mwaitintrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\mmintrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\stdarg.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\x86intrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\x86gprintrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\immintrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\mm3dnow.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\fma4intrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\xopintrin.h tag parsing file: C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include\float.h Attempting to get defaults from C++ compiler in "compilerPath" property: 'c:/msys64/clang64/bin/clang++.exe' Folder: C:/MSYS64/CLANG64/LIB/CLANG/16/INCLUDE/ will be indexed Folder: C:/MSYS64/MINGW64/INCLUDE/ will be indexed Folder: D:/VSCODE_TEST/SRC/ will be indexed Aborting tag parse at root

Colengms commented 1 year ago

Hi @MKHen . The compiler query command line you're getting appears to be:

c:/msys64/clang64/bin/clang++.exe -fms-extensions -Wno-address-of-temporary -g -std=gnu++17 -std=c++17 -v -pthread -fpermissive -m64 -Wp,-v -fno-blocks -E -dM -x c++ nul

It's a little odd that there are 2 conflicting instances of -std. That's coming from CMake, so would appear to be related to your CMakeLists.txt. I don't think that would cause a problem. It should use the last one.

Using that command line, I get:

#include "..." search starts here:
#include <...> search starts here:
 c:/msys64/clang64/include/c++/v1
 c:/msys64/clang64/lib/clang/16/include
 c:/msys64/clang64/include
End of search list.

Could you confirm whether you see the same output when you run that command directly on a command prompt?

Could you also confirm if the folder c:/msys64/clang64/include/c++/v1 exists on disk?

If the answers to both of those questions are Yes, then I'm not sure why you're not seeing this path used by IntelliSense. Would it be possible to isolate this repro into a zip file or GitHub repo, so we might use that to repro and investigate further?

MKHen commented 1 year ago

Hey. If I run the line c:/msys64/clang64/bin/clang++.exe -std=c++17 -m64 -Wp,-v -fno-blocks -E -dM -x c++ nul I get

clang -cc1 version 16.0.4 based upon LLVM 16.0.4 default target x86_64-w64-windows-gnu
ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/include/c++/v1"
ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/include"
ignoring nonexistent directory "C:/msys64/clang64/x86_64-w64-mingw32/usr/include"
#include "..." search starts here:
#include <...> search starts here:
 C:/msys64/clang64/include/c++/v1
 C:/msys64/clang64/lib/clang/16/include
 C:/msys64/clang64/include
End of search list.

I can vonfirm that C:\msys64\clang64\include\c++\v1 exists and is full with the std includes.

The sources are already in this discussion and can be found here or in the first post.

Colengms commented 1 year ago

Hi @MKHen . Using version 1.16.3, the specific version of clang you linked to, the code from the link you specified, and adding the following kit to CMake Tools (v1.14.33) :

  {
    "name": "Test MSYS64 clang",
    "compilers": {
      "C": "C:\\msys64\\mingw64\\bin\\clang.exe",
      "CXX": "C:\\msys64\\mingw64\\bin\\clang++.exe"
    },
    "isTrusted": true
  }

I do not repro an issue. I see the following configuration for main.cpp:

-------- Diagnostics - 6/26/2023, 5:25:56 PM
Version: 1.16.3
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "z:\\repos\\VSCode_test/**"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "compilerPath": "C:\\msys64\\mingw64\\bin\\gcc.exe",
    "cStandard": "gnu17",
    "cppStandard": "gnu++17",
    "intelliSenseMode": "windows-gcc-x64",
    "configurationProvider": "ms-vscode.cmake-tools",
    "compileCommands": "z:\\repos\\VSCode_test/${variant:buildType}/compile_commands.json",
    "compilerPathIsExplicit": true,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": true,
    "compilerPathInCppPropertiesJson": "C:\\msys64\\mingw64\\bin\\gcc.exe",
    "compileCommandsInCppPropertiesJson": "${config:cmake.buildDirectory}/compile_commands.json",
    "configurationProviderInCppPropertiesJson": "ms-vscode.cmake-tools",
    "mergeConfigurations": false,
    "browse": {
        "path": [
            "${workspaceFolder}/**"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Custom browse configuration: 
{
    "browsePath": [
        "z:/repos/vscode_test/src"
    ],
    "compilerPath": "c:/msys64/mingw64/bin/g++.exe",
    "compilerArgs": [],
    "compilerFragments": [
        "--coverage -g -std=gnu++17",
        "-DDUMMY",
        "-std=c++17",
        "-pthread",
        "-fpermissive"
    ]
}
Custom configurations:
[ Z:\repos\VSCode_test\src\main.cpp ]
{
    "includePath": [
        "z:/repos/vscode_test/src"
    ],
    "defines": [],
    "compilerPath": "c:/msys64/mingw64/bin/g++.exe",
    "compilerArgs": [],
    "compilerFragments": [
        "--coverage -g -std=gnu++17",
        "-DDUMMY",
        "-std=c++17",
        "-pthread",
        "-fpermissive"
    ]
}
cpptools version (native): 1.16.3.0
Translation Unit Mappings:
[ Z:\repos\VSCode_test\src\main.cpp ]:
    Z:\repos\VSCode_test\src\main.cpp
Translation Unit Configurations:
[ Z:\repos\VSCode_test\src\main.cpp ]:
    Process ID: 44084
    Memory Usage: 123 MB
    Compiler Path: C:\msys64\mingw64\bin\g++.exe
    Includes:
        Z:\repos\VSCode_test\src
        C:\msys64\mingw64\include\c++\13.1.0
        C:\msys64\mingw64\include\c++\13.1.0\x86_64-w64-mingw32
        C:\msys64\mingw64\include\c++\13.1.0\backward
        C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include
        C:\msys64\mingw64\include
        C:\msys64\mingw64\lib\gcc\x86_64-w64-mingw32\13.1.0\include-fixed
    Defines:
        DUMMY
    Standard Version: c++17
    IntelliSense Mode: windows-gcc-x64
    Other Flags:
        --g++
        --gnu_version=130100
Total Memory Usage: 123 MB
Browse Paths from compile_commands.json, from workspace folder: Z:\repos\VSCode_test
    Z:\repos\VSCode_test\src

------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 5563

With the same workspace folder, and these versions of extensions, are you still reproducing the issue? If so, can you confirm on a clean secondary machine whether this issue repros for you there?

Is there anything special about the file system on which C:\msys64\mingw64\include\c++ resides? Perhaps something local to your system might explain why this directory is not being found programmatically as expected?

MKHen commented 1 year ago

Hi @Colengms ,

it seems that you've configured the wrong compiler. Please have just a look on my first post in section Configuration and Logs. There the path is referred to "compilerPath": "c:/msys64/clang64/bin/clang++.exe", for the compiler. This path is essential for me (because of the clang64 distribution has the asan lib). With the settings you posted everything is working fine. I used mingw (clang & gcc) for long time and all paths are resolved.

Colengms commented 1 year ago

Hi @MKHen . Sorry for the confusion. Updating the kit to use the correct path, I see that the CMakeLists.txt you provided reassign the compiler to g++ regardless of the CMake Tools kit that I select. By commenting out the following section:

# Select a compiler by parameter from calling script (-DCOMPILER:STRING=clang)
SET(COMPILER "gcc" CACHE STRING "Set the used compiler from external")
if (${COMPILER} MATCHES "gcc")
    set(CMAKE_C_COMPILER gcc)
    set(CMAKE_CXX_COMPILER g++)
elseif (${COMPILER} MATCHES "clang")
    SET(CMAKE_C_COMPILER clang)
    SET(CMAKE_CXX_COMPILER clang++)
endif ()

I get the following working configuration:

-------- Diagnostics - 6/27/2023, 1:12:59 PM
Version: 1.16.3
Current Configuration:
{
    "name": "Win32",
    "includePath": [
        "z:\\repos\\VSCode_test/**"
    ],
    "defines": [
        "_DEBUG",
        "UNICODE",
        "_UNICODE"
    ],
    "compilerPath": "C:\\msys64\\mingw64\\bin\\gcc.exe",
    "cStandard": "gnu17",
    "cppStandard": "gnu++17",
    "intelliSenseMode": "windows-gcc-x64",
    "configurationProvider": "ms-vscode.cmake-tools",
    "compileCommands": "z:\\repos\\VSCode_test/${variant:buildType}/compile_commands.json",
    "compilerPathIsExplicit": true,
    "cStandardIsExplicit": true,
    "cppStandardIsExplicit": true,
    "intelliSenseModeIsExplicit": true,
    "compilerPathInCppPropertiesJson": "C:\\msys64\\mingw64\\bin\\gcc.exe",
    "compileCommandsInCppPropertiesJson": "${config:cmake.buildDirectory}/compile_commands.json",
    "configurationProviderInCppPropertiesJson": "ms-vscode.cmake-tools",
    "mergeConfigurations": false,
    "browse": {
        "path": [
            "${workspaceFolder}/**"
        ],
        "limitSymbolsToIncludedHeaders": true
    }
}
Custom browse configuration: 
{
    "browsePath": [
        "z:/repos/vscode_test/src"
    ],
    "compilerPath": "c:/msys64/clang64/bin/clang++.exe",
    "compilerArgs": [],
    "compilerFragments": [
        "--coverage -g -std=gnu++17",
        "-DDUMMY",
        "-std=c++17",
        "-pthread",
        "-fpermissive"
    ]
}
Custom configurations:
[ Z:\repos\VSCode_test\src\main.cpp ]
{
    "includePath": [
        "z:/repos/vscode_test/src"
    ],
    "defines": [],
    "compilerPath": "c:/msys64/clang64/bin/clang++.exe",
    "compilerArgs": [],
    "compilerFragments": [
        "--coverage -g -std=gnu++17",
        "-DDUMMY",
        "-std=c++17",
        "-pthread",
        "-fpermissive"
    ]
}
cpptools version (native): 1.16.3.0
Translation Unit Mappings:
[ Z:\repos\VSCode_test\src\main.cpp ]:
    Z:\repos\VSCode_test\src\main.cpp
Translation Unit Configurations:
[ Z:\repos\VSCode_test\src\main.cpp ]:
    Process ID: 48164
    Memory Usage: 220 MB
    Compiler Path: C:\msys64\clang64\bin\clang++.exe
    Includes:
        Z:\repos\VSCode_test\src
        C:\msys64\clang64\include\c++\v1
        C:\msys64\clang64\lib\clang\16\include
        C:\msys64\clang64\include
    Defines:
        DUMMY
    Standard Version: c++17
    IntelliSense Mode: windows-clang-x64
    Other Flags:
        --clang
        --clang_version=160004
Total Memory Usage: 220 MB
Browse Paths from compile_commands.json, from workspace folder: Z:\repos\VSCode_test
    Z:\repos\VSCode_test\src

------- Workspace parsing diagnostics -------
Number of files discovered (not excluded): 5637

So, I'm unable to repro using the isolated repro you provided. The questions from my last message still apply:

With the same workspace folder, and these versions of extensions, are you still reproducing the issue? If so, can you confirm on a clean secondary machine whether this issue repros for you there?

Is there anything special about the file system on which C:\msys64\clang64\include\c++\v1 resides? Perhaps something local to your system might explain why this directory is not being found programmatically as expected?

MKHen commented 1 year ago

I'm on it. But so far the second machine refused to compile.

MKHen commented 1 year ago

Hey, I've used another Windows machine to reproduce the behaviour. It is just like on the first one. I can compile and run the code using the clang64 toolchain but the std includes aren't found by IntelliSense. I think the compiler is using the correct includes.

For getting it runnable I had to install Ninja in the clang64 environment as well.#

Is there anything I can do to see where IntellisSense is looking for the includes?

Colengms commented 1 year ago

Hi @MKHen. Just to confirm, is the specific issue here only that the c:/msys64/clang64/include/c++/v1 path is missing from the TU (from the Log Diagnostics output) despite being returned when manually querying the compiler using the command-line in your log? (c:/msys64/clang64/bin/clang++.exe -fms-extensions -Wno-address-of-temporary -g -std=gnu++17 -std=c++17 -v -pthread -fpermissive -m64 -Wp,-v -fno-blocks -E -dM -x c++ nul) And this is leading to system headers not being locatable, causing squiggles.

I just tried freshly extracting the zip you provided, commenting out the section of your CMakeLists.txt that would set the compiler, and using CMake Tools to configure the project using the following compiler kit:

  {
    "name": "MSYS64 clang",
    "compilers": {
      "C": "c:/msys64/clang64/bin/clang++.exe",
      "CXX": "c:/msys64/clang64/bin/clang++.exe"
    },
    "isTrusted": true
  }

I always able to quickly configure the project and get no squiggles in main.cpp. The Log Diagnostics output displays the include directory (C:\msys64\clang64\include\c++\v1) that was not appearing for you.

Since the zip file you provided does not reproduce the issue for me, I'm not sure how to investigate this. Is there anything special you are doing when you set up your repro that wasn't mentioned? Perhaps you have set other settings that might influence this, such as having specified a files.exclude or C_Cpp.files.exclude that excludes that particular directory or one of its parents?

Could you provide a list of all C_Cpp settings you have set, and any other settings that might be relevant?

MKHen commented 1 year ago

You are right @Colengms. The path c:/msys64/clang64/include/c++/v1 where the missing headers are seems not in the search path of Intellisense and therefore I've get an include error. Building is still working.

Can I manually add a search path to IntelliSense? I didn't found the corresponding setting so far. include_directories(C://msys64//clang64/include//c++//v1) in CmakeLists.txt isn't working as well.

Here is another bunch of settings but I think they are all clear: { "workbench.colorTheme": "Visual Studio Dark - C++", "terminal.integrated.profiles.windows": { "PowerShell": { "source": "PowerShell", "icon": "terminal-powershell" }, "Command Prompt": { "path": [ "${env:windir}\Sysnative\cmd.exe", "${env:windir}\System32\cmd.exe" ], "args": [], "icon": "terminal-cmd" }, "Git Bash": { "source": "Git Bash" }, "MSYS2": { "path": "C:\msys64\usr\bin\bash.exe", "args": [ "--login", "-i" ], "env": { "MSYSTEM": "MINGW64", "CHEREINVOKING": "1" } } }, "security.workspace.trust.untrustedFiles": "open", "cortex-debug.armToolchainPath": "C:\gcc-arm-none-eabi-10.3-2021.10\bin", "search.exclude": { "**/Debug": true }, "cmake.configureOnOpen": true, "cmake.configureSettings": {}, "C_Cpp.inlayHints.autoDeclarationTypes.showOnLeft": true, "outline.collapseItems": "alwaysCollapse", "explorer.confirmDelete": false, "C_Cpp.codeAnalysis.clangTidy.enabled": true, "C_Cpp.intelliSenseEngineFallback": "enabled", "[python]": { "editor.formatOnType": true }, "git.openRepositoryInParentFolders": "always", "git.autofetch": true, "terminal.integrated.defaultProfile.osx": "", "search.collapseResults": "alwaysCollapse", "cSpell.userWords": [ "Atherm", "Bootloader", "Cntrl" ], "git.confirmSync": false, "[jsonc]": { "editor.defaultFormatter": "vscode.json-language-features" }, "errorLens.lintFilePaths": { "eslint": [ "/*.eslintrc.{js,cjs,yaml,yml,json}", "*/package.json" ], "Stylelint": [ "/*.stylelintrc", "/*.stylelintrc.{cjs,js,json,yaml,yml}", "*/stylelint.config.{cjs,js}", "/*package.json" ] }, "errorLens.excludeBySource": [ "shellcheck(SC1017)", "shellcheck(SC2086)" ], "editor.detectIndentation": false, "cmake.additionalCompilerSearchDirs": [ "C:/msys64/mingw32/bin", "C:/msys64/clang32/bin", "C:/msys64/clang64/bin", "C:/msys64/clangarm64/bin", "C:/msys64/ucrt64/bin" ], "MATLAB.installPath": "C:\Program Files\MATLAB\R2022a", "editor.unicodeHighlight.nonBasicASCII": false, "editor.unicodeHighlight.ambiguousCharacters": false, "editor.unicodeHighlight.invisibleCharacters": false, "cmake.useProjectStatusView": false, "C_Cpp.loggingLevel": "Debug", "cortex-debug.gdbPath.windows": "", "debug.autoExpandLazyVariables": true, "compareFolders.diffLayout": "compared <> local", "compareFolders.ignoreFileNameCase": false, "compareFolders.useDiffMerge": true, "C_Cpp.files.exclude": {

    "**/.vscode": true,
    "**/.vs": true
},

}

github-actions[bot] commented 1 year ago

Hey @Colengms, this issue might need further attention.

@MKHen, you can help us out by closing this issue if the problem no longer exists, or adding more information.

MKHen commented 12 months ago

Sadly the problem is not solved for me. It is hard to provide additional information. I played around with several settings and even manipulating some derived files but nothing worked.

github-actions[bot] commented 9 months ago

Hey @Colengms, this issue might need further attention.

@MKHen, you can help us out by closing this issue if the problem no longer exists, or adding more information.

github-actions[bot] commented 7 months ago

This issue has been closed because it needs more information and has not had recent activity.