Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 3.3.0-beta1
-
None
-
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.