Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3: Somewhat important
-
Resolution: Done
-
Affects Version/s: Qt Creator 3.3.0-beta1
-
Fix Version/s: Qt Creator 3.3.0-rc1
-
Component/s: C/C++/Obj-C++ Support
-
Labels:None
-
Environment:Linux
Description
- Open a project (under git)
- Do git log, show a change
- Open another project
- Note warning: SOFT ASSERT: "!filePath.isEmpty()" in file cppmodelmanager.cpp, line 696
Looking at the code, it seems that the function CppModelManager::updateVisibleEditorDocuments() unconditionally passes all of these files to the CPP preprocessor? - Shouldn't it use C/C++ files only - IIRC the code has mime type checks in other places.
Potentially related: Working on Windows on the qtwebview project, I noticed:
[1304] SOFT ASSERT: "d->m_cppEditors.value(filePath, 0) == 0" in file .\cppmodelmanager.cpp, line 476 [1304] SOFT ASSERT: "d->m_cppEditors.value(filePath, 0)" in file .\cppmodelmanager.cpp, line 489
But I don't remember doing git log/show there.