forked from qt-creator/qt-creator
Clang: Extract long clock/time_point references
Change-Id: If2790263e9a314f27762c57cf6bf4ef67f93a84b Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
#include <QSet>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
|
||||
class Utf8String;
|
||||
@@ -52,8 +51,6 @@ class ProjectPart;
|
||||
class FileContainer;
|
||||
class Documents;
|
||||
|
||||
using time_point = std::chrono::steady_clock::time_point;
|
||||
|
||||
class Document
|
||||
{
|
||||
public:
|
||||
@@ -87,7 +84,7 @@ public:
|
||||
|
||||
Utf8String projectPartId() const;
|
||||
const ProjectPart &projectPart() const;
|
||||
const time_point lastProjectPartChangeTimePoint() const;
|
||||
const TimePoint lastProjectPartChangeTimePoint() const;
|
||||
bool isProjectPartOutdated() const;
|
||||
|
||||
uint documentRevision() const;
|
||||
@@ -116,7 +113,7 @@ public: // for tests
|
||||
const QSet<Utf8String> dependedFilePaths() const;
|
||||
TranslationUnitUpdater createUpdater() const;
|
||||
void setHasParseOrReparseFailed(bool hasFailed);
|
||||
time_point isNeededReparseChangeTimePoint() const;
|
||||
TimePoint isNeededReparseChangeTimePoint() const;
|
||||
|
||||
private:
|
||||
void setDirty();
|
||||
|
||||
Reference in New Issue
Block a user