forked from qt-creator/qt-creator
CppTools: Make use of QLoggingCategory
...for document processing and highlighting. Change-Id: I31d42a5a5010260643ec76688080fd14a486f7e3 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -52,7 +52,6 @@
|
||||
using namespace CppTools;
|
||||
using namespace CppTools::Internal;
|
||||
|
||||
static const bool DumpFileNameWhileParsing = qgetenv("QTC_DUMP_FILENAME_WHILE_PARSING") == "1";
|
||||
static const bool FindErrorsIndexing = qgetenv("QTC_FIND_ERRORS_INDEXING") == "1";
|
||||
|
||||
namespace {
|
||||
@@ -60,12 +59,8 @@ namespace {
|
||||
class ParseParams
|
||||
{
|
||||
public:
|
||||
ParseParams()
|
||||
: dumpFileNameWhileParsing(DumpFileNameWhileParsing)
|
||||
, revision(0)
|
||||
{}
|
||||
ParseParams() : revision(0) {}
|
||||
|
||||
int dumpFileNameWhileParsing;
|
||||
int revision;
|
||||
ProjectPart::HeaderPaths headerPaths;
|
||||
WorkingCopy workingCopy;
|
||||
@@ -192,12 +187,10 @@ void indexFindErrors(QFutureInterface<void> &future, const ParseParams params)
|
||||
void index(QFutureInterface<void> &future, const ParseParams params)
|
||||
{
|
||||
QScopedPointer<CppSourceProcessor> sourceProcessor(CppModelManager::createSourceProcessor());
|
||||
sourceProcessor->setDumpFileNameWhileParsing(params.dumpFileNameWhileParsing);
|
||||
sourceProcessor->setRevision(params.revision);
|
||||
sourceProcessor->setHeaderPaths(params.headerPaths);
|
||||
sourceProcessor->setWorkingCopy(params.workingCopy);
|
||||
|
||||
|
||||
QStringList sources;
|
||||
QStringList headers;
|
||||
classifyFiles(params.sourceFiles, &headers, &sources);
|
||||
|
||||
Reference in New Issue
Block a user