Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 8.0.0-beta1, Qt Creator 8.0.0-beta2, Qt Creator 8.0.0-rc1
-
None
-
Windows:
Microsoft Visual C++ compiler 17.1.3241.318 (amd64)
CMake 3.22.1
No Qt version in the kit
stock clangd, background indexing disabled
-
-
0456643a86
Description
Sometimes clangd switches to the C mode in CMake C++ projects.
Steps to reproduce:
- clone git@github.com:absurdworlds/awlib.git
- configure project
- configure the project with -DAW_ENABLE_GRAPHICS_OFF
- open assert.h
- you should see following errors:
yvals_core.h:23:2: STL1003: Unexpected compiler, expected C++ compiler.
assert.h:20:14: Unknown type name 'namespace'