Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cppcodeparser.cpp File Reference

(16239de726990428d39055cbc4c55dc65e5b15c2)

#include "cppcodeparser.h"
#include "access.h"
#include "classnode.h"
#include "clangcodeparser.h"
#include "collectionnode.h"
#include "comparisoncategory.h"
#include "config.h"
#include "examplenode.h"
#include "externalpagenode.h"
#include "functionnode.h"
#include "generator.h"
#include "headernode.h"
#include "namespacenode.h"
#include "qdocdatabase.h"
#include "qmltypenode.h"
#include "qmlpropertynode.h"
#include "sharedcommentnode.h"
#include <QtCore/qdebug.h>
#include <QtCore/qmap.h>
#include <algorithm>
+ Include dependency graph for cppcodeparser.cpp:

Go to the source code of this file.

Typedefs

typedef bool(Node::* NodeTypeTestFunc) () const
 

Functions

static void checkModuleInclusion (Node *n)
 For each node that is part of C++ API and produces a documentation page, this function ensures that the node belongs to a module.
 

Variables

static QT_BEGIN_NAMESPACE const QMap< QString, Node::NodeTypes_nodeTypeMap
 
static const QMap< QString, NodeTypeTestFuncs_nodeTypeTestFuncMap
 

Typedef Documentation

◆ NodeTypeTestFunc

typedef bool(Node::* NodeTypeTestFunc)() const

Definition at line 44 of file cppcodeparser.cpp.

Function Documentation

◆ checkModuleInclusion()

static void checkModuleInclusion ( Node * n)
static

For each node that is part of C++ API and produces a documentation page, this function ensures that the node belongs to a module.

Definition at line 944 of file cppcodeparser.cpp.

References Node< _Tp >::Class, Node< _Tp >::doc(), Node< _Tp >::HeaderFile, Node< _Tp >::isInAPI(), Doc::location(), Node< _Tp >::Namespace, Node< _Tp >::nodeType(), QDocDatabase::qdocDB(), Node< _Tp >::Struct, and Node< _Tp >::Union.

+ Here is the call graph for this function:

Variable Documentation

◆ s_nodeTypeMap

static QT_BEGIN_NAMESPACE const QMap< QString, Node::NodeType > s_nodeTypeMap
static
Initial value:
{
}
@ Variable
Definition node.h:69
@ Struct
Definition node.h:58
@ Typedef
Definition node.h:66
@ TypeAlias
Definition node.h:67
@ Union
Definition node.h:59
@ Enum
Definition node.h:62
@ Namespace
Definition node.h:56
@ Property
Definition node.h:68
@ Class
Definition node.h:57
#define COMMAND_ENUM
Definition codeparser.h:23
#define COMMAND_STRUCT
Definition codeparser.h:74
#define COMMAND_PROPERTY
Definition codeparser.h:47
#define COMMAND_CLASS
Definition codeparser.h:14
#define COMMAND_NAMESPACE
Definition codeparser.h:38
#define COMMAND_UNION
Definition codeparser.h:83
#define COMMAND_VARIABLE
Definition codeparser.h:81
#define COMMAND_TYPEDEF
Definition codeparser.h:80
#define COMMAND_TYPEALIAS
Definition codeparser.h:79

Definition at line 36 of file cppcodeparser.cpp.

◆ s_nodeTypeTestFuncMap

static const QMap< QString, NodeTypeTestFunc > s_nodeTypeTestFuncMap
static
Initial value:
{
}
bool isNamespace() const
Returns true if the node type is Namespace.
Definition node.h:143
bool isTypedef() const
Returns true if the node type is Typedef.
Definition node.h:160
bool isEnumType() const
Returns true if the node type is Enum.
Definition node.h:132
bool isStruct() const
Returns true if the node type is Struct.
Definition node.h:157
bool isVariable() const
Returns true if the node type is Variable.
Definition node.h:165
bool isProperty() const
Returns true if the node type is Property.
Definition node.h:147
bool isTypeAlias() const
Returns true if the node type is Typedef.
Definition node.h:159
virtual bool isClassNode() const
Returns true if this is an instance of ClassNode.
Definition node.h:177
bool isUnion() const
Returns true if the node type is Union.
Definition node.h:164

Definition at line 45 of file cppcodeparser.cpp.