class Declaration
Declaration
class Declaration : public Tree { /* full declaration omitted */ };
Description
A declaration that can appear at the top-level. Note that this does *not* correspond 1-to-1 to clang::Decl. Syntax trees distinguish between top-level declarations (e.g. namespace definitions) and declarators (e.g. variables, typedefs, etc.). Declarators are stored inside SimpleDeclaration.
Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:354
Inherits from: Tree
Member Variables
Method Overview
- public Declaration(clang::syntax::NodeKind K)
- public static bool classof(const clang::syntax::Node * N)
Inherited from Tree:
- public classof
- public findChild
- public findChild
- public findFirstLeaf
- public findFirstLeaf
- public findLastLeaf
- public findLastLeaf
- public getChildren
- public getChildren
- public getFirstChild
- public getFirstChild
- public getLastChild
- public getLastChild
Inherited from Node:
- public assertInvariants
- public assertInvariantsRecursive
- public canModify
- public dump
- public dumpTokens
- public getKind
- public getNextSibling
- public getNextSibling
- public getParent
- public getParent
- public getPreviousSibling
- public getPreviousSibling
- public getRole
- public isDetached
- public isOriginal
Methods
¶Declaration(clang::syntax::NodeKind K)
Declaration(clang::syntax::NodeKind K)
Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:356
Parameters
- clang::syntax::NodeKind K
¶static bool classof(const clang::syntax::Node* N)
static bool classof(const clang::syntax::Node* N)
Declared at: clang/include/clang/Tooling/Syntax/Nodes.h:357
Parameters
- const clang::syntax::Node* N