Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/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.cpp34 syntax::Leaf::Leaf(syntax::TokenManager::Key K) : Node(NodeKind::Leaf), K(K) {} in Leaf()
36 syntax::Node::Node(NodeKind Kind) in Node()
400 case NodeKind::NestedNameSpecifier: in getDelimiterTokenKind()
402 case NodeKind::CallArguments: in getDelimiterTokenKind()
403 case NodeKind::ParameterDeclarationList: in getDelimiterTokenKind()
404 case NodeKind::DeclaratorList: in getDelimiterTokenKind()
414 case NodeKind::NestedNameSpecifier: in getTerminationKind()
416 case NodeKind::CallArguments: in getTerminationKind()
417 case NodeKind::ParameterDeclarationList: in getTerminationKind()
418 case NodeKind::DeclaratorList: in getTerminationKind()
[all …]
H A DBuildTree.cpp158 static syntax::NodeKind getOperatorNodeKind(const CXXOperatorCallExpr &E) { in getOperatorNodeKind()
191 return syntax::NodeKind::BinaryOperatorExpression; in getOperatorNodeKind()
194 return syntax::NodeKind::PrefixUnaryOperatorExpression; in getOperatorNodeKind()
200 return syntax::NodeKind::PrefixUnaryOperatorExpression; in getOperatorNodeKind()
202 return syntax::NodeKind::PostfixUnaryOperatorExpression; in getOperatorNodeKind()
213 return syntax::NodeKind::PrefixUnaryOperatorExpression; in getOperatorNodeKind()
215 return syntax::NodeKind::BinaryOperatorExpression; in getOperatorNodeKind()
219 return syntax::NodeKind::BinaryOperatorExpression; in getOperatorNodeKind()
228 return syntax::NodeKind::UnknownExpression; in getOperatorNodeKind()
230 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 <<()
/freebsd/contrib/llvm-project/llvm/include/llvm/Demangle/
H A DMicrosoftDemangleNodes.h227 enum class NodeKind { enum
277 explicit Node(NodeKind K) : Kind(K) {} in Node()
280 NodeKind kind() const { return Kind; } in kind()
287 NodeKind Kind;
318 explicit TypeNode(NodeKind K) : Node(K) {} in TypeNode()
329 return N->kind() >= NodeKind::TypeStart && N->kind() <= NodeKind::TypeEnd; in classof()
337 : TypeNode(NodeKind::PrimitiveType), PrimKind(K) {} in PrimitiveTypeNode()
343 return N->kind() == NodeKind::PrimitiveType; in classof()
350 explicit FunctionSignatureNode(NodeKind K) : TypeNode(K) {} in FunctionSignatureNode()
351 FunctionSignatureNode() : TypeNode(NodeKind::FunctionSignature) {} in FunctionSignatureNode()
[all …]
/freebsd/contrib/llvm-project/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);
/freebsd/contrib/llvm-project/lldb/include/lldb/ValueObject/
H A DDILAST.h20 enum class NodeKind { enum
51 ASTNode(uint32_t location, NodeKind kind) in ASTNode()
58 NodeKind GetKind() const { return m_kind; } in GetKind()
62 const NodeKind m_kind;
69 ErrorNode() : ASTNode(0, NodeKind::eErrorNode) {} in ErrorNode()
73 return node->GetKind() == NodeKind::eErrorNode; in classof()
80 : ASTNode(location, NodeKind::eIdentifierNode), m_name(std::move(name)) {} in IdentifierNode()
87 return node->GetKind() == NodeKind::eIdentifierNode; in classof()
98 : ASTNode(location, NodeKind::eMemberOfNode), m_base(std::move(base)), in MemberOfNode()
108 return node->GetKind() == NodeKind::eMemberOfNode; in classof()
[all …]
/freebsd/contrib/llvm-project/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
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSuffixTreeNode.h38 enum class NodeKind { ST_Leaf, ST_Internal }; enum
41 const NodeKind Kind;
63 NodeKind getKind() const { return Kind; } in getKind()
92 SuffixTreeNode(NodeKind Kind, unsigned StartIdx) in SuffixTreeNode()
131 return N->getKind() == NodeKind::ST_Internal; in classof()
155 : SuffixTreeNode(NodeKind::ST_Internal, StartIdx), EndIdx(EndIdx), in SuffixTreeInternalNode()
178 return N->getKind() == NodeKind::ST_Leaf; in classof()
190 : SuffixTreeNode(NodeKind::ST_Leaf, StartIdx), EndIdx(EndIdx) {} in SuffixTreeLeafNode()
H A DYAMLTraits.h44 enum class NodeKind : uint8_t { enum
555 using Signature_getKind = NodeKind (*)(const T &);
/freebsd/contrib/llvm-project/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.cpp487 using NodeKind = typename NodeType::NodeKind; in sortNodesTopologically() typedef
489 if (N->getKind() == NodeKind::PiBlock) { in sortNodesTopologically()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTwine.h84 enum NodeKind : unsigned char { enum
170 NodeKind LHSKind = EmptyKind;
173 NodeKind RHSKind = EmptyKind;
176 explicit Twine(NodeKind Kind) : LHSKind(Kind) { in Twine()
189 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine()
246 NodeKind getLHSKind() const { return LHSKind; } in getLHSKind()
249 NodeKind getRHSKind() const { return RHSKind; } in getRHSKind()
252 void printOneChild(raw_ostream &OS, Child Ptr, NodeKind Kind) const;
256 NodeKind Kind) const;
546 NodeKind NewLHSKind = TwineKind, NewRHSKind = TwineKind; in concat()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp25 return (Twine("Matcher<") + NodeKind.asStringRef() + ">").str(); in asString()
27 return NodeKind.asStringRef().str(); in asString()
49 if (!NodeKind.isBaseOf(To.NodeKind, &Distance)) in isConvertibleTo()
60 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind); in canConstructFrom()
61 return Matcher.canConvertTo(NodeKind); in canConstructFrom()
66 return Matcher.dynCastTo(NodeKind); in convertMatcher()
85 return DynTypedMatcher::constructVariadic(Op, NodeKind, DynMatchers); in constructVariadicOperator()
274 VariantValue::VariantValue(ASTNodeKind NodeKind) : Type(VT_Nothing) { in VariantValue() argument
275 setNodeKind(NodeKind); in VariantValue()
322 delete Value.NodeKind; in reset()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DDDG.h49 enum class NodeKind { enum
58 DDGNode(const NodeKind K) : Kind(K) {} in DDGNode()
76 NodeKind getKind() const { return Kind; } in getKind()
86 void setKind(NodeKind K) { Kind = K; } in setKind()
89 NodeKind Kind;
96 RootDDGNode() : DDGNode(NodeKind::Root) {} in RootDDGNode()
103 return N->getKind() == NodeKind::Root; in classof()
143 return N->getKind() == NodeKind::SingleInstruction || in classof()
144 N->getKind() == NodeKind::MultiInstruction; in classof()
152 ? NodeKind::SingleInstruction in appendInstructions()
[all …]
/freebsd/contrib/llvm-project/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()
/freebsd/contrib/llvm-project/llvm/lib/Demangle/
H A DMicrosoftDemangleNodes.cpp481 if (Pointee->kind() == NodeKind::FunctionSignature) { in outputPre()
495 if (Pointee->kind() == NodeKind::ArrayType) { in outputPre()
497 } else if (Pointee->kind() == NodeKind::FunctionSignature) { in outputPre()
530 if (Pointee->kind() == NodeKind::ArrayType || in outputPost()
531 Pointee->kind() == NodeKind::FunctionSignature) in outputPost()
560 assert(N->kind() == NodeKind::IntegerLiteral); in outputOneDimension()
H A DMicrosoftDemangle.cpp438 if (Symbol->kind() == NodeKind::VariableSymbol) { in demangleInitFiniStub()
766 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) { in demangleEncodedSymbol()
788 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) { in demangleDeclarator()
828 SymbolNode *S = Arena.alloc<SymbolNode>(NodeKind::Md5Symbol); in demangleMD5Name()
908 case NodeKind::PointerType: { in demangleVariableEncoding()
1052 if (Identifier->kind() == NodeKind::ConversionOperatorIdentifier || in demangleTemplateInstantiationName()
1053 Identifier->kind() == NodeKind::StructorIdentifier) { in demangleTemplateInstantiationName()
1549 if (Identifier->kind() == NodeKind::StructorIdentifier) { in demangleFullyQualifiedSymbolName()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DTwine.cpp60 NodeKind Kind) const { in printOneChild()
108 NodeKind Kind) const { in printOneChildRepr()
H A DYAMLTraits.cpp360 NodeKind Input::getNodeKind() { in getNodeKind()
362 return NodeKind::Scalar; in getNodeKind()
364 return NodeKind::Map; in getNodeKind()
366 return NodeKind::Sequence; in getNodeKind()
902 NodeKind Output::getNodeKind() { report_fatal_error("invalid call"); } in getNodeKind()
/freebsd/contrib/llvm-project/llvm/lib/ProfileData/
H A DItaniumManglingCanonicalizer.cpp19 using llvm::itanium_demangle::NodeKind;
57 profileCtor(ID, NodeKind<NodeT>::Kind, V...); in operator ()()
106 profileCtor(ID, NodeKind<T>::Kind, As...); in getOrCreateNode()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTTypeTraits.cpp218 OS << "Unable to print values of type " << NodeKind.asStringRef() << "\n"; in print()
234 OS << "Unable to dump values of type " << NodeKind.asStringRef() << "\n"; in dump()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp265 DynTypedMatcher DynTypedMatcher::trueMatcher(ASTNodeKind NodeKind) { in trueMatcher() argument
271 return DynTypedMatcher(NodeKind, NodeKind, Instance); in trueMatcher()

12