forked from qt-creator/qt-creator
Clang: Remove some needless bools
Change-Id: Ia845c803fce85ad0e29e2cf6b64820b86599bac6 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -122,7 +122,7 @@ void TranslationUnitUpdater::createTranslationUnitIfNeeded()
|
||||
|
||||
if (parseWasSuccessful()) {
|
||||
updateIncludeFilePaths();
|
||||
updateLastProjectPartChangeTimePoint();
|
||||
m_out.parseTimePoint = std::chrono::steady_clock::now();
|
||||
} else {
|
||||
qWarning() << "Parsing" << m_in.filePath << "failed:"
|
||||
<< errorCodeToText(m_parseErrorCode);
|
||||
@@ -151,7 +151,7 @@ void TranslationUnitUpdater::reparse()
|
||||
if (reparseWasSuccessful()) {
|
||||
updateIncludeFilePaths();
|
||||
|
||||
m_out.reparsed = true;
|
||||
m_out.reparseTimePoint = std::chrono::steady_clock::now();
|
||||
m_out.needsToBeReparsedChangeTimePoint = m_in.needsToBeReparsedChangeTimePoint;
|
||||
} else {
|
||||
qWarning() << "Reparsing" << m_in.filePath << "failed:" << m_reparseErrorCode;
|
||||
@@ -185,12 +185,6 @@ void TranslationUnitUpdater::createIndexIfNeeded()
|
||||
}
|
||||
}
|
||||
|
||||
void TranslationUnitUpdater::updateLastProjectPartChangeTimePoint()
|
||||
{
|
||||
m_out.parseTimePointIsSet = true;
|
||||
m_out.parseTimePoint = std::chrono::steady_clock::now();
|
||||
}
|
||||
|
||||
void TranslationUnitUpdater::includeCallback(CXFile included_file,
|
||||
CXSourceLocation *,
|
||||
unsigned, CXClientData clientData)
|
||||
|
||||
Reference in New Issue
Block a user