summaryrefslogtreecommitdiffstats
path: root/src/qdoc/cppcodeparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/cppcodeparser.h')
-rw-r--r--src/qdoc/cppcodeparser.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/qdoc/cppcodeparser.h b/src/qdoc/cppcodeparser.h
index d6b1cead0..41607434f 100644
--- a/src/qdoc/cppcodeparser.h
+++ b/src/qdoc/cppcodeparser.h
@@ -41,26 +41,30 @@ class CppCodeParser : public CodeParser
{
Q_DECLARE_TR_FUNCTIONS(QDoc::CppCodeParser)
- struct ExtraFuncData {
+ struct ExtraFuncData
+ {
Aggregate *root; // Used as the parent.
Node::NodeType type; // The node type: Function, etc.
bool isAttached; // If true, the method is attached.
- bool isMacro; // If true, we are parsing a macro signature.
- ExtraFuncData() : root(nullptr), type(Node::Function), isAttached(false), isMacro(false) { }
+ bool isMacro; // If true, we are parsing a macro signature.
+ ExtraFuncData() : root(nullptr), type(Node::Function), isAttached(false), isMacro(false) {}
ExtraFuncData(Aggregate *r, Node::NodeType t, bool a)
- : root(r), type(t), isAttached(a), isMacro(false) { }
+ : root(r), type(t), isAttached(a), isMacro(false)
+ {
+ }
};
public:
CppCodeParser();
- void initializeParser(const Config &config) override;
+ void initializeParser() override;
void terminateParser() override;
QString language() override { return QStringLiteral("Cpp"); }
QStringList headerFileNameFilter() override;
QStringList sourceFileNameFilter() override;
FunctionNode *parseMacroArg(const Location &location, const QString &macroArg);
- FunctionNode *parseOtherFuncArg(const QString &topic, const Location &location, const QString &funcArg);
+ FunctionNode *parseOtherFuncArg(const QString &topic, const Location &location,
+ const QString &funcArg);
static bool isJSMethodTopic(const QString &t);
static bool isQMLMethodTopic(const QString &t);
static bool isJSPropertyTopic(const QString &t);
@@ -69,17 +73,13 @@ public:
protected:
static const QSet<QString> &topicCommands();
static const QSet<QString> &metaCommands();
- virtual Node *processTopicCommand(const Doc &doc,
- const QString &command,
+ virtual Node *processTopicCommand(const Doc &doc, const QString &command,
const ArgLocPair &arg);
void processQmlProperties(const Doc &doc, NodeList &nodes, DocList &docs);
- bool splitQmlPropertyArg(const QString &arg,
- QString &type,
- QString &module,
- QString &element,
- QString &name,
- const Location &location);
- void processMetaCommand(const Doc &doc, const QString &command, const ArgLocPair &argLocPair, Node *node);
+ bool splitQmlPropertyArg(const QString &arg, QString &type, QString &module, QString &element,
+ QString &name, const Location &location);
+ void processMetaCommand(const Doc &doc, const QString &command, const ArgLocPair &argLocPair,
+ Node *node);
void processMetaCommands(const Doc &doc, Node *node);
void processMetaCommands(NodeList &nodes, DocList &docs);
void processTopicArgs(const Doc &doc, const QString &topic, NodeList &nodes, DocList &docs);
@@ -89,7 +89,7 @@ private:
void setExampleFileLists(PageNode *pn);
protected:
- typedef bool (Node::*NodeTypeTestFunc) () const;
+ typedef bool (Node::*NodeTypeTestFunc)() const;
QMap<QString, NodeTypeTestFunc> nodeTypeTestFuncMap_;
QMap<QString, Node::NodeType> nodeTypeMap_;