diff options
Diffstat (limited to 'src/tools/qdoc/doc.cpp')
-rw-r--r-- | src/tools/qdoc/doc.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tools/qdoc/doc.cpp b/src/tools/qdoc/doc.cpp index 15d194e0afa..268c20d690a 100644 --- a/src/tools/qdoc/doc.cpp +++ b/src/tools/qdoc/doc.cpp @@ -1626,6 +1626,9 @@ void DocParser::parse(const QString& source, priv->text.stripFirstAtom(); } +/*! + Returns the current location. + */ Location &DocParser::location() { while (!openedInputs.isEmpty() && openedInputs.top() <= pos) { @@ -2868,6 +2871,23 @@ const Location &Doc::location() const return priv == 0 ? dummy : priv->start_loc; } +/*! + Returns the starting location of a qdoc comment. + */ +const Location& Doc::startLocation() const +{ + return location(); +} + +/*! + Returns the ending location of a qdoc comment. + */ +const Location& Doc::endLocation() const +{ + static const Location dummy; + return priv == 0 ? dummy : priv->end_loc; +} + const QString &Doc::source() const { static QString null; |