summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/location.h
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@digia.com>2013-04-29 10:00:45 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-30 12:45:30 +0200
commita2892ad1d7584de62a1356812a4f9348f37e1d29 (patch)
tree3ad89d0ac60f3120bba46f5b2d2a81152e351a0c /src/tools/qdoc/location.h
parent542e3be40d0323e239a2e6381e7fd60de9153a06 (diff)
qdoc: Config class keeps track of current path
The Config class is modified to build a single multimap containing a record for each variable found in each .qdocconf file. Each reacord contains not only the name and value of the variable, but also its location in the qdocconf file it was read from and the path to that file. This single multimap replaces 3 maps in the Config class. Task-number: QTBUG-30725 Change-Id: I049a69790f943b24c014a24b55b2b39725a1b56f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'src/tools/qdoc/location.h')
-rw-r--r--src/tools/qdoc/location.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/qdoc/location.h b/src/tools/qdoc/location.h
index 20ddfd076e..4604358fe5 100644
--- a/src/tools/qdoc/location.h
+++ b/src/tools/qdoc/location.h
@@ -81,7 +81,6 @@ public:
int depth() const { return stkDepth; }
const QString& filePath() const { return stkTop->filePath; }
QString fileName() const;
- QString canonicalRelativePath(const QString &path) const;
int lineNo() const { return stkTop->lineNo; }
int columnNo() const { return stkTop->columnNo; }
bool etc() const { return etcetera; }
@@ -101,6 +100,8 @@ public:
static void logToStdErr(const QString& message);
static void startLoggingProgress() { logProgress_ = true; }
static void stopLoggingProgress() { logProgress_ = false; }
+ static QString canonicalRelativePath(const QString &path);
+ static QString canonicalRelativePath(const QString &path, const QString &configDir);
private:
enum MessageType { Warning, Error };