diff options
author | Martin Smith <martin.smith@digia.com> | 2014-08-04 14:26:04 +0200 |
---|---|---|
committer | Martin Smith <martin.smith@digia.com> | 2014-08-22 18:24:02 +0200 |
commit | f752a7ab6cb022c136f91d471616edda0c55a612 (patch) | |
tree | ae1a73bb645983a742fde702a05885d7f91b91b6 /src/tools/qdoc/atom.h | |
parent | af7f944dc507734d449355ee8e09674b2993349a (diff) |
qdoc: Report error in square bracket parameter
This update makes qdoc report an error, when it can't
recognize a parameter in square brackets.
Change-Id: I45d31ec875ac533736ee4a565ff3f217353068dd
Task-number: QTBUG-39221
Reviewed-by: Topi Reiniƶ <topi.reinio@digia.com>
Diffstat (limited to 'src/tools/qdoc/atom.h')
-rw-r--r-- | src/tools/qdoc/atom.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tools/qdoc/atom.h b/src/tools/qdoc/atom.h index 65ba2a9b5c..e4ef7e06a7 100644 --- a/src/tools/qdoc/atom.h +++ b/src/tools/qdoc/atom.h @@ -203,8 +203,10 @@ public: virtual bool specifiesDomain() const { return false; } virtual Tree* domain() const { return 0; } virtual Node::Type goal() const { return Node::NoType; } + virtual const QString& error() { return noError_; } protected: + static QString noError_; Atom* next_; Type type_; QStringList strs; @@ -223,11 +225,13 @@ class LinkAtom : public Atom virtual bool specifiesDomain() const { return (domain_ != 0); } virtual Tree* domain() const { return domain_; } virtual Node::Type goal() const { return goal_; } + virtual const QString& error() { return error_; } protected: Node::Genus genus_; Node::Type goal_; Tree* domain_; + QString error_; }; #define ATOM_FORMATTING_BOLD "bold" |