forked from qt-creator/qt-creator
CppEditor: Proliferate FilePath use
This includes one functional change: It drops some cleaning of the path used to create the CppDocument, which is now assumed to be done on the caller side. Change-Id: I5e2a182028e4d5b56282ad85f4a5c665f081754f Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -2010,7 +2010,7 @@ bool InternalCppCompletionAssistProcessor::completeConstructorOrFunction(const Q
|
||||
bs.LA(startToken - lineStartToken);
|
||||
QString possibleDecl = bs.mid(lineStartToken).trimmed().append(QLatin1String("();"));
|
||||
|
||||
Document::Ptr doc = Document::create(QLatin1String("<completion>"));
|
||||
Document::Ptr doc = Document::create(Utils::FilePath::fromPathPart(u"<completion>"));
|
||||
doc->setUtf8Source(possibleDecl.toUtf8());
|
||||
if (doc->parse(Document::ParseDeclaration)) {
|
||||
doc->check();
|
||||
|
||||
Reference in New Issue
Block a user