Commit d8ba9fa9 authored by Marco Bubke's avatar Marco Bubke

Clang: Check in translation unit if the file exists

We get in crashes in clang if we not check if the file exists.

Change-Id: I78a20507db6403247c02f8c1e69cd872e3e8f774
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 08041bd5
......@@ -132,6 +132,7 @@ CXIndex TranslationUnit::index() const
CXTranslationUnit TranslationUnit::cxTranslationUnit() const
{
checkIfNull();
checkIfFileExists();
removeTranslationUnitIfProjectPartWasChanged();
createTranslationUnitIfNeeded();
reparseTranslationUnitIfFilesAreChanged();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment