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:
@@ -26,6 +26,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "clangbackend_global.h"
|
||||
#include "clangclock.h"
|
||||
|
||||
#include <utf8string.h>
|
||||
|
||||
@@ -33,12 +34,8 @@
|
||||
|
||||
#include <QList>
|
||||
|
||||
#include <chrono>
|
||||
|
||||
namespace ClangBackEnd {
|
||||
|
||||
using time_point = std::chrono::steady_clock::time_point;
|
||||
|
||||
class TranslationUnit;
|
||||
|
||||
class TranslationUnits
|
||||
@@ -55,7 +52,7 @@ public:
|
||||
CXTranslationUnit cxTranslationUnit = nullptr;
|
||||
CXIndex cxIndex = nullptr;
|
||||
|
||||
time_point parseTimePoint;
|
||||
TimePoint parseTimePoint;
|
||||
};
|
||||
|
||||
public:
|
||||
@@ -64,7 +61,7 @@ public:
|
||||
|
||||
TranslationUnit createAndAppend();
|
||||
TranslationUnit get(PreferredTranslationUnit type = PreferredTranslationUnit::RecentlyParsed);
|
||||
void updateParseTimePoint(const Utf8String &translationUnitId, time_point timePoint);
|
||||
void updateParseTimePoint(const Utf8String &translationUnitId, TimePoint timePoint);
|
||||
|
||||
private:
|
||||
bool areAllTranslationUnitsParsed() const;
|
||||
|
||||
Reference in New Issue
Block a user