Skip to content
Snippets Groups Projects
Commit 4bc62569 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

cleanup

parent fd62025d
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,6 @@
#include <AST.h>
#include <TranslationUnit.h>
#include <cplusplus/FastPreprocessor.h>
#include <QtCore/QDir>
#include <QtCore/QPointer>
#include <QtCore/QtConcurrentRun>
......@@ -175,12 +173,8 @@ static void semanticSearch_helper(QFutureInterface<Core::Utils::FileSearchResult
continue;
const QString contents = QTextStream(&file).readAll(); // ### FIXME
FastPreprocessor r(snapshot);
const QByteArray source = r.run(fileName, contents.toUtf8());
Document::Ptr newDoc = Document::create(fileName);
newDoc->setSource(source);
const QByteArray source = snapshot.preprocessedCode(contents.toUtf8(), fileName);
Document::Ptr newDoc = snapshot.documentFromSource(source, fileName);
newDoc->parse();
if (SemanticSearch *search = factory->create(future, newDoc, snapshot)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment