Commit 88b167c5 authored by Marco Bubke's avatar Marco Bubke
Browse files

Clang: Fix premature reparsing

cxTranslationUnit() is starting a reparsing if it is needed so in the best
case it is useless. But it can be maybe harmful if the translation unit
isn't already created.

Change-Id: Ie733edac58ab8f7eccb1611ca1554209f8aa8718
Reviewed-by: default avatarNikolai Kosjar <>
parent 150af7af
......@@ -198,8 +198,6 @@ bool TranslationUnit::hasNewDiagnostics() const
DiagnosticSet TranslationUnit::diagnostics() const
d->hasNewDiagnostics = false;
return DiagnosticSet(clang_getDiagnosticSetFromTU(cxTranslationUnit()));
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