Home
last modified time | relevance | path

Searched refs:ASTNode (Results 1 – 21 of 21) sorted by relevance

/openbsd-src/gnu/llvm/clang/utils/TableGen/
H A DASTTableGen.cpp25 if (auto node = getAs<ASTNode>()) { in getName()
95 using ChildMap = std::multimap<ASTNode, ASTNode>;
97 static void visitASTNodeRecursive(ASTNode node, ASTNode base, in visitASTNodeRecursive()
99 ASTNodeHierarchyVisitor<ASTNode> visit) { in visitASTNodeRecursive()
110 ASTNodeHierarchyVisitor<ASTNode> visit) { in visitHierarchy()
122 ASTNode root; in visitHierarchy()
123 for (ASTNode node : nodes) { in visitHierarchy()
136 visitASTNodeRecursive(root, ASTNode(), hierarchy, visit); in visitHierarchy()
141 ASTNodeHierarchyVisitor<ASTNode> visit) { in visitASTNodeHierarchyImpl()
H A DClangASTNodesEmitter.cpp33 typedef std::multimap<ASTNode, ASTNode> ChildMap;
37 ASTNode Root;
61 std::string baseName(ASTNode node) { in baseName()
70 std::pair<ASTNode, ASTNode> EmitNode(raw_ostream& OS, ASTNode Base);
87 std::pair<ASTNode, ASTNode> ClangASTNodesEmitter::EmitNode(raw_ostream &OS, in EmitNode()
88 ASTNode Base) { in EmitNode()
94 ASTNode First, Last; in EmitNode()
99 ASTNode Child = i->second; in EmitNode()
H A DASTTableGen.h158 class ASTNode : public HasProperties {
160 ASTNode(llvm::Record *record = nullptr) : HasProperties(record) {} in HasProperties()
167 ASTNode getBase() const { in getBase()
181 class DeclNode : public ASTNode {
183 DeclNode(llvm::Record *record = nullptr) : ASTNode(record) {} in ASTNode() function
187 DeclNode getBase() const { return DeclNode(ASTNode::getBase().getRecord()); } in getBase()
203 class TypeNode : public ASTNode {
205 TypeNode(llvm::Record *record = nullptr) : ASTNode(record) {} in ASTNode() function
209 TypeNode getBase() const { return TypeNode(ASTNode::getBase().getRecord()); } in getBase()
225 class StmtNode : public ASTNode {
[all …]
H A DClangASTPropertiesEmitter.cpp215 if (ASTNode base = derivedNode.getAs<ASTNode>()) { in visitAllNodesWithInfo()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/WebKit/
H A DASTUtils.h65 template <typename T> std::string safeGetName(const T *ASTNode) { in safeGetName() argument
66 const auto *const ND = llvm::dyn_cast_or_null<clang::NamedDecl>(ASTNode); in safeGetName()
/openbsd-src/gnu/llvm/clang/tools/libclang/
H A DCXComment.h33 Result.ASTNode = C; in createCXComment()
39 return static_cast<const comments::Comment *>(CXC.ASTNode); in getASTNode()
H A DCXIndexDataConsumer.cpp164 SourceLocation Loc, ASTNodeInfo ASTNode) { in handleDeclOccurrence() argument
172 if (auto *ObjCID = dyn_cast_or_null<ObjCInterfaceDecl>(ASTNode.OrigD)) { in handleDeclOccurrence()
180 if (auto *ObjCPD = dyn_cast_or_null<ObjCProtocolDecl>(ASTNode.OrigD)) { in handleDeclOccurrence()
196 if (ASTNode.OrigE) { in handleDeclOccurrence()
197 Cursor = cxcursor::MakeCXCursor(ASTNode.OrigE, in handleDeclOccurrence()
198 cast<Decl>(ASTNode.ContainerDC), in handleDeclOccurrence()
201 if (ASTNode.OrigD) { in handleDeclOccurrence()
202 if (auto *OrigND = dyn_cast<NamedDecl>(ASTNode.OrigD)) in handleDeclOccurrence()
205 Cursor = MakeCXCursor(ASTNode.OrigD, CXTU); in handleDeclOccurrence()
211 dyn_cast_or_null<NamedDecl>(ASTNode.Parent), in handleDeclOccurrence()
[all …]
H A DCXIndexDataConsumer.h437 SourceLocation Loc, ASTNodeInfo ASTNode) override;
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DCommentNodes.td1 include "clang/Basic/ASTNode.td"
3 class CommentNode<CommentNode base, bit abstract = 0> : ASTNode {
H A DASTNode.td5 class ASTNode : HasProperties;
H A DDeclNodes.td1 include "clang/Basic/ASTNode.td"
4 : ASTNode, AttrSubject {
H A DTypeNodes.td1 include "clang/Basic/ASTNode.td"
3 class TypeNode<TypeNode base, bit abstract = 0> : ASTNode {
H A DStmtNodes.td1 include "clang/Basic/ASTNode.td"
3 class StmtNode<StmtNode base, bit abstract = 0> : ASTNode, AttrSubject {
H A DAttr.td558 bit ASTNode = 1;
658 let ASTNode = 0;
1355 let ASTNode = 0;
1418 let ASTNode = 0;
1730 let ASTNode = 0;
1738 let ASTNode = 0;
1748 let ASTNode = 0;
2403 let ASTNode = 0;
2923 let ASTNode = 0;
2939 let ASTNode = 0;
[all …]
/openbsd-src/gnu/llvm/clang/lib/Tooling/ASTDiff/
H A DASTDiff.cpp196 template <class T> std::tuple<NodeId, NodeId> PreTraverse(T *ASTNode) { in PreTraverse()
202 N.ASTNode = DynTypedNode::create(*ASTNode); in PreTraverse()
203 assert(!N.ASTNode.getNodeKind().isNone() && in PreTraverse()
413 const DynTypedNode &DTN = N.ASTNode; in getNodeValue()
686 ASTNodeKind Node::getType() const { return ASTNode.getNodeKind(); } in getType()
691 if (auto *ND = ASTNode.get<NamedDecl>()) { in getQualifiedIdentifier()
699 if (auto *ND = ASTNode.get<NamedDecl>()) { in getIdentifier()
995 SourceRange Range = N.ASTNode.getSourceRange(); in getSourceRangeOffsets()
999 if (auto *ThisExpr = N.ASTNode.get<CXXThisExpr>()) { in getSourceRangeOffsets()
/openbsd-src/gnu/llvm/clang/include/clang/Index/
H A DIndexDataConsumer.h44 SourceLocation Loc, ASTNodeInfo ASTNode) { in handleDeclOccurrence() argument
/openbsd-src/gnu/llvm/clang/include/clang/Tooling/ASTDiff/
H A DASTDiff.h41 DynTypedNode ASTNode; member
/openbsd-src/gnu/llvm/clang/include/clang-c/
H A DDocumentation.h38 const void *ASTNode; member
/openbsd-src/gnu/llvm/clang/tools/c-index-test/
H A Dcore_main.cpp106 SourceLocation Loc, ASTNodeInfo ASTNode) override { in handleDeclOccurrence() argument
/openbsd-src/gnu/llvm/llvm/docs/TableGen/
H A DBackEnds.rst267 declarations for any attribute in ``Attr.td`` that has not set ``ASTNode = 0``.
283 definitions for any attribute in ``Attr.td`` that has not set ``ASTNode = 0``.
/openbsd-src/gnu/llvm/clang/docs/
H A DInternalsManual.rst2997 Attributes that do not require an AST node should set the ``ASTNode`` field to