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:
@@ -32,7 +32,7 @@ class CPLUSPLUS_EXPORT Document
|
||||
Document(const Document &other);
|
||||
void operator =(const Document &other);
|
||||
|
||||
Document(const QString &fileName);
|
||||
Document(const Utils::FilePath &fileName);
|
||||
|
||||
public:
|
||||
typedef QSharedPointer<Document> Ptr;
|
||||
@@ -113,7 +113,7 @@ public:
|
||||
|
||||
void check(CheckMode mode = FullCheck);
|
||||
|
||||
static Ptr create(const QString &fileName);
|
||||
static Ptr create(const Utils::FilePath &filePath);
|
||||
|
||||
class CPLUSPLUS_EXPORT DiagnosticMessage
|
||||
{
|
||||
@@ -406,7 +406,7 @@ public:
|
||||
int withDefinedMacrosFromDocumentUntilLine = -1) const;
|
||||
|
||||
Document::Ptr documentFromSource(const QByteArray &preprocessedDocument,
|
||||
const QString &fileName) const;
|
||||
const Utils::FilePath &filePath) const;
|
||||
|
||||
QSet<QString> allIncludesForDocument(const QString &fileName) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user