summaryrefslogtreecommitdiffstats
path: root/tools/qdoc3/cppcodeparser.h
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-11-05 13:09:16 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-11-11 12:47:34 (GMT)
commit385ef0b086d0736d1dd8ef03ced73c73e61dcb43 (patch)
tree98643160d26b38de4d491a1952f4722c64ffd978 /tools/qdoc3/cppcodeparser.h
parent3a492b3bcd3898335dd36b46906a5b9cce5120f3 (diff)
downloadQt-385ef0b086d0736d1dd8ef03ced73c73e61dcb43.zip
Qt-385ef0b086d0736d1dd8ef03ced73c73e61dcb43.tar.gz
Qt-385ef0b086d0736d1dd8ef03ced73c73e61dcb43.tar.bz2
qdoc3: Fixed a linking problem for qml methods.
Note the Invalid Syntax errors for some uses of \qmlmethod and \qmlsignal. A syntactically correct signature is now required as the argument.
Diffstat (limited to 'tools/qdoc3/cppcodeparser.h')
-rw-r--r--tools/qdoc3/cppcodeparser.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/qdoc3/cppcodeparser.h b/tools/qdoc3/cppcodeparser.h
index 233ac09..87c1b69 100644
--- a/tools/qdoc3/cppcodeparser.h
+++ b/tools/qdoc3/cppcodeparser.h
@@ -127,7 +127,9 @@ class CppCodeParser : public CodeParser
bool matchFunctionDecl(InnerNode *parent,
QStringList *parentPathPtr = 0,
FunctionNode **funcPtr = 0,
- const QString &templateStuff = QString());
+ const QString &templateStuff = QString(),
+ Node::Type type = Node::Function,
+ bool attached = false);
bool matchBaseSpecifier(ClassNode *classe, bool isClass);
bool matchBaseList(ClassNode *classe, bool isClass);
bool matchClassDecl(InnerNode *parent,
@@ -143,7 +145,15 @@ class CppCodeParser : public CodeParser
bool makeFunctionNode(const QString &synopsis,
QStringList *parentPathPtr,
FunctionNode **funcPtr,
- InnerNode *root = 0);
+ InnerNode *root = 0,
+ Node::Type type = Node::Function,
+ bool attached = false);
+ FunctionNode* makeFunctionNode(const Doc& doc,
+ const QString& sig,
+ InnerNode* parent,
+ Node::Type type,
+ bool attached,
+ QString qdoctag);
void parseQiteratorDotH(const Location &location, const QString &filePath);
void instantiateIteratorMacro(const QString &container,
const QString &includeFile,