forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.8'
Conflicts: tests/unit/unittest/unittest.pro Change-Id: I4f0ab05f96ee60900a3a35fad4c7331238367593
This commit is contained in:
@@ -101,7 +101,7 @@ namespace {
|
||||
|
||||
V2::SourceRangeContainer convertToContainer(const clang::ast_matchers::dynamic::SourceRange sourceRange)
|
||||
{
|
||||
return V2::SourceRangeContainer({1, 0},
|
||||
return V2::SourceRangeContainer(0,
|
||||
sourceRange.Start.Line,
|
||||
sourceRange.Start.Column,
|
||||
0,
|
||||
|
||||
@@ -58,7 +58,7 @@ private:
|
||||
|
||||
SymbolIndexer::SymbolIndexer(SymbolIndexerTaskQueueInterface &symbolIndexerTaskQueue,
|
||||
SymbolStorageInterface &symbolStorage,
|
||||
UsedMacroAndSourceStorageInterface &usedMacroAndSourceStorage,
|
||||
BuildDependenciesStorageInterface &usedMacroAndSourceStorage,
|
||||
ClangPathWatcherInterface &pathWatcher,
|
||||
FilePathCachingInterface &filePathCache,
|
||||
FileStatusCache &fileStatusCache,
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include "filestatuscache.h"
|
||||
#include "symbolindexertaskqueueinterface.h"
|
||||
#include "symbolstorageinterface.h"
|
||||
#include "usedmacroandsourcestorageinterface.h"
|
||||
#include "builddependenciesstorageinterface.h"
|
||||
#include "clangpathwatcher.h"
|
||||
|
||||
#include <projectpartcontainerv2.h>
|
||||
@@ -43,7 +43,7 @@ class SymbolIndexer final : public ClangPathWatcherNotifier
|
||||
public:
|
||||
SymbolIndexer(SymbolIndexerTaskQueueInterface &symbolIndexerTaskQueue,
|
||||
SymbolStorageInterface &symbolStorage,
|
||||
UsedMacroAndSourceStorageInterface &usedMacroAndSourceStorage,
|
||||
BuildDependenciesStorageInterface &usedMacroAndSourceStorage,
|
||||
ClangPathWatcherInterface &pathWatcher,
|
||||
FilePathCachingInterface &filePathCache,
|
||||
FileStatusCache &fileStatusCache,
|
||||
@@ -73,7 +73,7 @@ public:
|
||||
private:
|
||||
SymbolIndexerTaskQueueInterface &m_symbolIndexerTaskQueue;
|
||||
SymbolStorageInterface &m_symbolStorage;
|
||||
UsedMacroAndSourceStorageInterface &m_usedMacroAndSourceStorage;
|
||||
BuildDependenciesStorageInterface &m_usedMacroAndSourceStorage;
|
||||
ClangPathWatcherInterface &m_pathWatcher;
|
||||
FilePathCachingInterface &m_filePathCache;
|
||||
FileStatusCache &m_fileStatusCache;
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "taskscheduler.h"
|
||||
#include "symbolstorage.h"
|
||||
|
||||
#include <usedmacroandsourcestorage.h>
|
||||
#include <builddependenciesstorage.h>
|
||||
|
||||
#include <refactoringdatabaseinitializer.h>
|
||||
#include <filepathcachingfwd.h>
|
||||
@@ -75,7 +75,7 @@ private:
|
||||
class SymbolIndexing final : public SymbolIndexingInterface
|
||||
{
|
||||
public:
|
||||
using UsedMacroAndSourceStorage = ClangBackEnd::UsedMacroAndSourceStorage<Sqlite::Database>;
|
||||
using BuildDependenciesStorage = ClangBackEnd::BuildDependenciesStorage<Sqlite::Database>;
|
||||
using SymbolStorage = ClangBackEnd::SymbolStorage<Sqlite::Database>;
|
||||
SymbolIndexing(Sqlite::Database &database,
|
||||
FilePathCachingInterface &filePathCache,
|
||||
@@ -114,7 +114,7 @@ public:
|
||||
private:
|
||||
using SymbolIndexerTaskScheduler = TaskScheduler<SymbolsCollectorManager, SymbolIndexerTask::Callable>;
|
||||
FilePathCachingInterface &m_filePathCache;
|
||||
UsedMacroAndSourceStorage m_usedMacroAndSourceStorage;
|
||||
BuildDependenciesStorage m_usedMacroAndSourceStorage;
|
||||
SymbolStorage m_symbolStorage;
|
||||
ClangPathWatcher<QFileSystemWatcher, QTimer> m_sourceWatcher{m_filePathCache};
|
||||
FileStatusCache m_fileStatusCache{m_filePathCache};
|
||||
|
||||
@@ -42,6 +42,11 @@ public:
|
||||
filePathId(filePathId)
|
||||
{}
|
||||
|
||||
UsedMacro(Utils::SmallStringView macroName, int filePathId)
|
||||
: macroName(macroName),
|
||||
filePathId(filePathId)
|
||||
{}
|
||||
|
||||
friend bool operator<(const UsedMacro &first, const UsedMacro &second)
|
||||
{
|
||||
return std::tie(first.filePathId, first.macroName)
|
||||
|
||||
Reference in New Issue
Block a user