Home
last modified time | relevance | path

Searched refs:NodeKind (Results 1 – 25 of 31) sorted by relevance

12

/openbsd-src/gnu/llvm/clang/lib/Tooling/Syntax/
H A DSynthesis.cpp70 syntax::Tree *allocateTree(syntax::Arena &A, syntax::NodeKind Kind) { in allocateTree()
72 case syntax::NodeKind::Leaf: in allocateTree()
75 case syntax::NodeKind::TranslationUnit: in allocateTree()
77 case syntax::NodeKind::UnknownExpression: in allocateTree()
79 case syntax::NodeKind::ParenExpression: in allocateTree()
81 case syntax::NodeKind::ThisExpression: in allocateTree()
83 case syntax::NodeKind::IntegerLiteralExpression: in allocateTree()
85 case syntax::NodeKind::CharacterLiteralExpression: in allocateTree()
87 case syntax::NodeKind::FloatingLiteralExpression: in allocateTree()
89 case syntax::NodeKind::StringLiteralExpression: in allocateTree()
[all …]
H A DTree.cpp35 syntax::Leaf::Leaf(syntax::TokenManager::Key K) : Node(NodeKind::Leaf), K(K) {} in Leaf()
37 syntax::Node::Node(NodeKind Kind) in Node()
401 case NodeKind::NestedNameSpecifier: in getDelimiterTokenKind()
403 case NodeKind::CallArguments: in getDelimiterTokenKind()
404 case NodeKind::ParameterDeclarationList: in getDelimiterTokenKind()
405 case NodeKind::DeclaratorList: in getDelimiterTokenKind()
415 case NodeKind::NestedNameSpecifier: in getTerminationKind()
417 case NodeKind::CallArguments: in getTerminationKind()
418 case NodeKind::ParameterDeclarationList: in getTerminationKind()
419 case NodeKind::DeclaratorList: in getTerminationKind()
[all …]
H A DBuildTree.cpp164 static syntax::NodeKind getOperatorNodeKind(const CXXOperatorCallExpr &E) { in getOperatorNodeKind()
197 return syntax::NodeKind::BinaryOperatorExpression; in getOperatorNodeKind()
200 return syntax::NodeKind::PrefixUnaryOperatorExpression; in getOperatorNodeKind()
206 return syntax::NodeKind::PrefixUnaryOperatorExpression; in getOperatorNodeKind()
208 return syntax::NodeKind::PostfixUnaryOperatorExpression; in getOperatorNodeKind()
219 return syntax::NodeKind::PrefixUnaryOperatorExpression; in getOperatorNodeKind()
221 return syntax::NodeKind::BinaryOperatorExpression; in getOperatorNodeKind()
225 return syntax::NodeKind::BinaryOperatorExpression; in getOperatorNodeKind()
234 return syntax::NodeKind::UnknownExpression; in getOperatorNodeKind()
236 return syntax::NodeKind::CallExpression; in getOperatorNodeKind()
[all …]
H A DNodes.cpp13 raw_ostream &syntax::operator<<(raw_ostream &OS, NodeKind K) { in operator <<()
16 case NodeKind::Kind: \ in operator <<()
/openbsd-src/gnu/llvm/clang/include/clang/Tooling/Syntax/
H A DNodes.h32 enum class NodeKind : uint16_t { enum
37 raw_ostream &operator<<(raw_ostream &OS, NodeKind K);
118 NestedNameSpecifier() : List(NodeKind::NestedNameSpecifier) {} in NestedNameSpecifier()
129 UnqualifiedId() : Tree(NodeKind::UnqualifiedId) {} in UnqualifiedId()
137 UnknownExpression() : Expression(NodeKind::UnknownExpression) {} in UnknownExpression()
148 CallArguments() : List(NodeKind::CallArguments) {} in CallArguments()
157 UnaryOperatorExpression(NodeKind K) : Expression(K) {} in UnaryOperatorExpression()
175 : UnaryOperatorExpression(NodeKind::PrefixUnaryOperatorExpression) {} in PrefixUnaryOperatorExpression()
187 : UnaryOperatorExpression(NodeKind::PostfixUnaryOperatorExpression) {} in PostfixUnaryOperatorExpression()
200 BinaryOperatorExpression() : Expression(NodeKind::BinaryOperatorExpression) {} in BinaryOperatorExpression()
[all …]
H A DTree.h49 enum class NodeKind : uint16_t;
58 Node(NodeKind Kind);
70 NodeKind getKind() const { return static_cast<NodeKind>(Kind); } in getKind()
H A DBuildTree.h47 syntax::NodeKind K);
/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DASTTypeTraits.h269 return BaseConverter<T>::get(NodeKind, &Storage);
277 return BaseConverter<T>::getUnchecked(NodeKind, &Storage);
280 ASTNodeKind getNodeKind() const { return NodeKind; }
288 return NodeKind.hasPointerIdentity()
310 if (!NodeKind.isSame(Other.NodeKind))
311 return NodeKind < Other.NodeKind;
313 if (ASTNodeKind::getFromNodeKind<QualType>().isSame(NodeKind))
317 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isBaseOf(NodeKind)) {
327 NodeKind)) {
342 if (!NodeKind.isSame(Other.NodeKind))
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Demangle/
H A DMicrosoftDemangleNodes.h226 enum class NodeKind { enum
259 explicit Node(NodeKind K) : Kind(K) {} in Node()
262 NodeKind kind() const { return Kind; } in kind()
269 NodeKind Kind;
299 explicit TypeNode(NodeKind K) : Node(K) {} in TypeNode()
314 : TypeNode(NodeKind::PrimitiveType), PrimKind(K) {} in PrimitiveTypeNode()
323 explicit FunctionSignatureNode(NodeKind K) : TypeNode(K) {} in FunctionSignatureNode()
324 FunctionSignatureNode() : TypeNode(NodeKind::FunctionSignature) {} in FunctionSignatureNode()
355 explicit IdentifierNode(NodeKind K) : Node(K) {} in IdentifierNode()
364 VcallThunkIdentifierNode() : IdentifierNode(NodeKind::VcallThunkIdentifier) {} in VcallThunkIdentifierNode()
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h59 return NodeKind; in getMatcherKind()
63 return NodeKind; in getNodeKind()
77 return NodeKind < Other.NodeKind;
85 ArgKind(Kind K, ASTNodeKind NK) : K(K), NodeKind(NK) {} in ArgKind()
87 ASTNodeKind NodeKind; variable
109 MatcherOps(ASTNodeKind NodeKind) : NodeKind(NodeKind) {} in MatcherOps() argument
126 ASTNodeKind NodeKind;
267 VariantValue(ASTNodeKind NodeKind);
299 void setNodeKind(ASTNodeKind NodeKind);
348 ASTNodeKind *NodeKind; member
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DDDG.cpp58 raw_ostream &llvm::operator<<(raw_ostream &OS, const DDGNode::NodeKind K) { in operator <<()
61 case DDGNode::NodeKind::SingleInstruction: in operator <<()
64 case DDGNode::NodeKind::MultiInstruction: in operator <<()
67 case DDGNode::NodeKind::PiBlock: in operator <<()
70 case DDGNode::NodeKind::Root: in operator <<()
73 case DDGNode::NodeKind::Unknown: in operator <<()
108 : DDGNode(NodeKind::SingleInstruction) { in SimpleDDGNode()
115 assert(((getKind() == NodeKind::SingleInstruction && InstList.size() == 1) || in SimpleDDGNode()
116 (getKind() == NodeKind::MultiInstruction && InstList.size() > 1)) && in SimpleDDGNode()
122 assert(((getKind() == NodeKind::SingleInstruction && InstList.size() == 1) || in SimpleDDGNode()
[all …]
H A DDependenceGraphBuilder.cpp489 using NodeKind = typename NodeType::NodeKind; in sortNodesTopologically() typedef
491 if (N->getKind() == NodeKind::PiBlock) { in sortNodesTopologically()
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DTwine.h83 enum NodeKind : unsigned char { enum
165 NodeKind LHSKind = EmptyKind;
168 NodeKind RHSKind = EmptyKind;
171 explicit Twine(NodeKind Kind) : LHSKind(Kind) { in Twine()
184 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine()
241 NodeKind getLHSKind() const { return LHSKind; } in getLHSKind()
244 NodeKind getRHSKind() const { return RHSKind; } in getRHSKind()
247 void printOneChild(raw_ostream &OS, Child Ptr, NodeKind Kind) const;
251 NodeKind Kind) const;
522 NodeKind NewLHSKind = TwineKind, NewRHSKind = TwineKind; in concat()
/openbsd-src/gnu/llvm/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp26 return (Twine("Matcher<") + NodeKind.asStringRef() + ">").str(); in asString()
28 return NodeKind.asStringRef().str(); in asString()
50 if (!NodeKind.isBaseOf(To.NodeKind, &Distance)) in isConvertibleTo()
61 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind); in canConstructFrom()
62 return Matcher.canConvertTo(NodeKind); in canConstructFrom()
67 return Matcher.dynCastTo(NodeKind); in convertMatcher()
86 return DynTypedMatcher::constructVariadic(Op, NodeKind, DynMatchers); in constructVariadicOperator()
275 VariantValue::VariantValue(ASTNodeKind NodeKind) : Type(VT_Nothing) { in VariantValue() argument
276 setNodeKind(NodeKind); in VariantValue()
323 delete Value.NodeKind; in reset()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DDDG.h48 enum class NodeKind { enum
57 DDGNode(const NodeKind K) : Kind(K) {} in DDGNode()
75 NodeKind getKind() const { return Kind; } in getKind()
85 void setKind(NodeKind K) { Kind = K; } in setKind()
88 NodeKind Kind;
95 RootDDGNode() : DDGNode(NodeKind::Root) {} in RootDDGNode()
102 return N->getKind() == NodeKind::Root; in classof()
142 return N->getKind() == NodeKind::SingleInstruction || in classof()
143 N->getKind() == NodeKind::MultiInstruction; in classof()
151 ? NodeKind::SingleInstruction in appendInstructions()
[all …]
/openbsd-src/gnu/llvm/llvm/lib/BinaryFormat/
H A DMsgPackDocumentYAML.cpp148 static NodeKind getKind(const DocNode &N) { in getKind()
151 return NodeKind::Map; in getKind()
153 return NodeKind::Sequence; in getKind()
155 return NodeKind::Scalar; in getKind()
/openbsd-src/gnu/llvm/llvm/lib/Demangle/
H A DMicrosoftDemangleNodes.cpp479 if (Pointee->kind() == NodeKind::FunctionSignature) { in outputPre()
493 if (Pointee->kind() == NodeKind::ArrayType) { in outputPre()
495 } else if (Pointee->kind() == NodeKind::FunctionSignature) { in outputPre()
525 if (Pointee->kind() == NodeKind::ArrayType || in outputPost()
526 Pointee->kind() == NodeKind::FunctionSignature) in outputPost()
555 assert(N->kind() == NodeKind::IntegerLiteral); in outputOneDimension()
H A DMicrosoftDemangle.cpp400 if (Symbol->kind() == NodeKind::VariableSymbol) { in demangleInitFiniStub()
724 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) { in demangleEncodedSymbol()
746 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) { in demangleDeclarator()
783 SymbolNode *S = Arena.alloc<SymbolNode>(NodeKind::Md5Symbol); in demangleMD5Name()
862 case NodeKind::PointerType: { in demangleVariableEncoding()
1004 if (Identifier->kind() == NodeKind::ConversionOperatorIdentifier || in demangleTemplateInstantiationName()
1005 Identifier->kind() == NodeKind::StructorIdentifier) { in demangleTemplateInstantiationName()
1489 if (Identifier->kind() == NodeKind::StructorIdentifier) { in demangleFullyQualifiedSymbolName()
/openbsd-src/gnu/llvm/llvm/lib/Support/
H A DTwine.cpp58 NodeKind Kind) const { in printOneChild()
105 NodeKind Kind) const { in printOneChildRepr()
H A DItaniumManglingCanonicalizer.cpp19 using llvm::itanium_demangle::NodeKind;
55 profileCtor(ID, NodeKind<NodeT>::Kind, V...); in operator ()()
104 profileCtor(ID, NodeKind<T>::Kind, As...); in getOrCreateNode()
H A DYAMLTraits.cpp365 NodeKind Input::getNodeKind() { in getNodeKind()
367 return NodeKind::Scalar; in getNodeKind()
369 return NodeKind::Map; in getNodeKind()
371 return NodeKind::Sequence; in getNodeKind()
862 NodeKind Output::getNodeKind() { report_fatal_error("invalid call"); } in getNodeKind()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DASTTypeTraits.cpp201 OS << "Unable to print values of type " << NodeKind.asStringRef() << "\n"; in print()
213 OS << "Unable to dump values of type " << NodeKind.asStringRef() << "\n"; in dump()
/openbsd-src/gnu/llvm/llvm/include/llvm/Support/
H A DYAMLTraits.h42 enum class NodeKind : uint8_t { enum
555 using Signature_getKind = NodeKind (*)(const T &);
/openbsd-src/gnu/llvm/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp266 DynTypedMatcher DynTypedMatcher::trueMatcher(ASTNodeKind NodeKind) { in trueMatcher() argument
272 return DynTypedMatcher(NodeKind, NodeKind, Instance); in trueMatcher()
/openbsd-src/gnu/llvm/libcxxabi/src/
H A Dcxa_demangle.cpp259 fprintf(stderr, "%s(", itanium_demangle::NodeKind<NodeT>::name()); in operator ()()

12