summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/location.h
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@digia.com>2015-05-27 14:24:26 +0200
committerMartin Smith <martin.smith@digia.com>2015-06-09 10:10:23 +0000
commit0ec550c748748fcc94008bc2555482bd614251dc (patch)
treee11b382d9331fb30b901108e1935d1e4bd03c1c1 /src/tools/qdoc/location.h
parentd12b09edd867648f19764f097bcc7247404b823b (diff)
qdoc: Always try to use the declaration location
qdoc now always tries to use an element's declaration location for the "location," "filepath," and "lineno" attributes in the index file, when it makes sense to use the declaration location. That's pretty much everything in C++. qdoc records both the declaration location and the definition location in the element's tree node. When it writes the element to the index file, it asks for the declaration location. Change-Id: I2d169a0f028bb0d46717e6f822dacc6dd20673b2 Task-number: QTBUG-46034 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com> Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/tools/qdoc/location.h')
-rw-r--r--src/tools/qdoc/location.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/qdoc/location.h b/src/tools/qdoc/location.h
index 5250e27a47..ade7a1518a 100644
--- a/src/tools/qdoc/location.h
+++ b/src/tools/qdoc/location.h
@@ -72,6 +72,7 @@ public:
int depth() const { return stkDepth; }
const QString& filePath() const { return stkTop->filePath; }
QString fileName() const;
+ QString fileSuffix() const;
int lineNo() const { return stkTop->lineNo; }
int columnNo() const { return stkTop->columnNo; }
bool etc() const { return etcetera; }