Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/
H A DSynthesis.cpp63 syntax::Tree *allocateTree(syntax::Arena &A, syntax::NodeKind Kind) { in allocateTree()
65 case syntax::NodeKind::Leaf: in allocateTree()
68 case syntax::NodeKind::TranslationUnit: in allocateTree()
70 case syntax::NodeKind::UnknownExpression: in allocateTree()
72 case syntax::NodeKind::ParenExpression: in allocateTree()
74 case syntax::NodeKind::ThisExpression: in allocateTree()
76 case syntax::NodeKind::IntegerLiteralExpression: in allocateTree()
78 case syntax::NodeKind::CharacterLiteralExpression: in allocateTree()
80 case syntax::NodeKind::FloatingLiteralExpression: in allocateTree()
82 case syntax::NodeKind::StringLiteralExpression: in allocateTree()
[all …]
H A DTree.cpp51 syntax::Leaf::Leaf(const syntax::Token *Tok) : Node(NodeKind::Leaf), Tok(Tok) { in Leaf()
55 syntax::Node::Node(NodeKind Kind) in Node()
430 case NodeKind::NestedNameSpecifier: in getDelimiterTokenKind()
432 case NodeKind::CallArguments: in getDelimiterTokenKind()
433 case NodeKind::ParameterDeclarationList: in getDelimiterTokenKind()
434 case NodeKind::DeclaratorList: in getDelimiterTokenKind()
444 case NodeKind::NestedNameSpecifier: in getTerminationKind()
446 case NodeKind::CallArguments: in getTerminationKind()
447 case NodeKind::ParameterDeclarationList: in getTerminationKind()
448 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 <<()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Syntax/
H A DNodes.h37 enum class NodeKind : uint16_t { enum
42 raw_ostream &operator<<(raw_ostream &OS, NodeKind K);
123 NestedNameSpecifier() : List(NodeKind::NestedNameSpecifier) {} in NestedNameSpecifier()
134 UnqualifiedId() : Tree(NodeKind::UnqualifiedId) {} in UnqualifiedId()
142 UnknownExpression() : Expression(NodeKind::UnknownExpression) {} in UnknownExpression()
153 CallArguments() : List(NodeKind::CallArguments) {} in CallArguments()
162 UnaryOperatorExpression(NodeKind K) : Expression(K) {} in UnaryOperatorExpression()
180 : UnaryOperatorExpression(NodeKind::PrefixUnaryOperatorExpression) {} in PrefixUnaryOperatorExpression()
192 : UnaryOperatorExpression(NodeKind::PostfixUnaryOperatorExpression) {} in PostfixUnaryOperatorExpression()
205 BinaryOperatorExpression() : Expression(NodeKind::BinaryOperatorExpression) {} in BinaryOperatorExpression()
[all …]
H A DTree.h75 enum class NodeKind : uint16_t;
84 Node(NodeKind Kind);
96 NodeKind getKind() const { return static_cast<NodeKind>(Kind); } in getKind()
H A DBuildTree.h44 syntax::NodeKind K);
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DASTTypeTraits.h254 return BaseConverter<T>::get(NodeKind, &Storage);
262 return BaseConverter<T>::getUnchecked(NodeKind, &Storage);
265 ASTNodeKind getNodeKind() const { return NodeKind; }
273 return NodeKind.hasPointerIdentity()
295 if (!NodeKind.isSame(Other.NodeKind))
296 return NodeKind < Other.NodeKind;
298 if (ASTNodeKind::getFromNodeKind<QualType>().isSame(NodeKind))
302 if (ASTNodeKind::getFromNodeKind<TypeLoc>().isSame(NodeKind)) {
312 NodeKind)) {
327 if (!NodeKind.isSame(Other.NodeKind))
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Demangle/
H A DMicrosoftDemangleNodes.h225 enum class NodeKind { enum
258 explicit Node(NodeKind K) : Kind(K) {} in Node()
261 NodeKind kind() const { return Kind; } in kind()
268 NodeKind Kind;
300 explicit TypeNode(NodeKind K) : Node(K) {} in TypeNode()
315 : TypeNode(NodeKind::PrimitiveType), PrimKind(K) {} in PrimitiveTypeNode()
324 explicit FunctionSignatureNode(NodeKind K) : TypeNode(K) {} in FunctionSignatureNode()
325 FunctionSignatureNode() : TypeNode(NodeKind::FunctionSignature) {} in FunctionSignatureNode()
356 explicit IdentifierNode(NodeKind K) : Node(K) {} in IdentifierNode()
365 VcallThunkIdentifierNode() : IdentifierNode(NodeKind::VcallThunkIdentifier) {} in VcallThunkIdentifierNode()
[all …]
/netbsd-src/external/apache2/llvm/dist/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
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DDDG.cpp59 raw_ostream &llvm::operator<<(raw_ostream &OS, const DDGNode::NodeKind K) { in operator <<()
62 case DDGNode::NodeKind::SingleInstruction: in operator <<()
65 case DDGNode::NodeKind::MultiInstruction: in operator <<()
68 case DDGNode::NodeKind::PiBlock: in operator <<()
71 case DDGNode::NodeKind::Root: in operator <<()
74 case DDGNode::NodeKind::Unknown: in operator <<()
109 : DDGNode(NodeKind::SingleInstruction), InstList() { in SimpleDDGNode()
116 assert(((getKind() == NodeKind::SingleInstruction && InstList.size() == 1) || in SimpleDDGNode()
117 (getKind() == NodeKind::MultiInstruction && InstList.size() > 1)) && in SimpleDDGNode()
123 assert(((getKind() == NodeKind::SingleInstruction && InstList.size() == 1) || in SimpleDDGNode()
[all …]
H A DDependenceGraphBuilder.cpp488 using NodeKind = typename NodeType::NodeKind; in sortNodesTopologically() typedef
490 if (N->getKind() == NodeKind::PiBlock) { in sortNodesTopologically()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DTwine.h82 enum NodeKind : unsigned char { enum
163 NodeKind LHSKind = EmptyKind;
166 NodeKind RHSKind = EmptyKind;
169 explicit Twine(NodeKind Kind) : LHSKind(Kind) { in Twine()
182 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine()
239 NodeKind getLHSKind() const { return LHSKind; } in getLHSKind()
242 NodeKind getRHSKind() const { return RHSKind; } in getRHSKind()
245 void printOneChild(raw_ostream &OS, Child Ptr, NodeKind Kind) const;
249 NodeKind Kind) const;
504 NodeKind NewLHSKind = TwineKind, NewRHSKind = TwineKind; in concat()
/netbsd-src/external/apache2/llvm/dist/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 …]
H A DMarshallers.h355 for (const ASTNodeKind &NodeKind : RetKinds) {
356 if (ArgKind::MakeMatcherArg(NodeKind).isConvertibleTo(
359 *LeastDerivedKind = NodeKind;
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DDDG.h46 enum class NodeKind { enum
55 DDGNode(const NodeKind K) : DDGNodeBase(), Kind(K) {} in DDGNode()
73 NodeKind getKind() const { return Kind; } in getKind()
83 void setKind(NodeKind K) { Kind = K; } in setKind()
86 NodeKind Kind;
93 RootDDGNode() : DDGNode(NodeKind::Root) {} in RootDDGNode()
100 return N->getKind() == NodeKind::Root; in classof()
144 return N->getKind() == NodeKind::SingleInstruction || in classof()
145 N->getKind() == NodeKind::MultiInstruction; in classof()
153 ? NodeKind::SingleInstruction in appendInstructions()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/BinaryFormat/
H A DMsgPackDocumentYAML.cpp149 static NodeKind getKind(const DocNode &N) { in getKind()
152 return NodeKind::Map; in getKind()
154 return NodeKind::Sequence; in getKind()
156 return NodeKind::Scalar; in getKind()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Demangle/
H A DMicrosoftDemangleNodes.cpp478 if (Pointee->kind() == NodeKind::FunctionSignature) { in outputPre()
492 if (Pointee->kind() == NodeKind::ArrayType) { in outputPre()
494 } else if (Pointee->kind() == NodeKind::FunctionSignature) { in outputPre()
524 if (Pointee->kind() == NodeKind::ArrayType || in outputPost()
525 Pointee->kind() == NodeKind::FunctionSignature) in outputPost()
554 assert(N->kind() == NodeKind::IntegerLiteral); in outputOneDimension()
H A DMicrosoftDemangle.cpp397 if (Symbol->kind() == NodeKind::VariableSymbol) { in demangleInitFiniStub()
721 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) { in demangleEncodedSymbol()
743 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) { in demangleDeclarator()
780 SymbolNode *S = Arena.alloc<SymbolNode>(NodeKind::Md5Symbol); in demangleMD5Name()
855 case NodeKind::PointerType: { in demangleVariableEncoding()
1003 if (Identifier->kind() == NodeKind::ConversionOperatorIdentifier || in demangleTemplateInstantiationName()
1004 Identifier->kind() == NodeKind::StructorIdentifier) { in demangleTemplateInstantiationName()
1500 if (Identifier->kind() == NodeKind::StructorIdentifier) { in demangleFullyQualifiedSymbolName()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DItaniumManglingCanonicalizer.cpp19 using llvm::itanium_demangle::NodeKind;
56 profileCtor(ID, NodeKind<NodeT>::Kind, V...); in operator ()()
105 profileCtor(ID, NodeKind<T>::Kind, As...); in getOrCreateNode()
H A DTwine.cpp58 NodeKind Kind) const { in printOneChild()
108 NodeKind Kind) const { in printOneChildRepr()
H A DYAMLTraits.cpp366 NodeKind Input::getNodeKind() { in getNodeKind()
368 return NodeKind::Scalar; in getNodeKind()
370 return NodeKind::Map; in getNodeKind()
372 return NodeKind::Sequence; in getNodeKind()
860 NodeKind Output::getNodeKind() { report_fatal_error("invalid call"); } in getNodeKind()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DASTTypeTraits.cpp166 OS << "Unable to print values of type " << NodeKind.asStringRef() << "\n"; in print()
178 OS << "Unable to dump values of type " << NodeKind.asStringRef() << "\n"; in dump()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DYAMLTraits.h43 enum class NodeKind : uint8_t { enum
530 using Signature_getKind = NodeKind (*)(const T &);
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp266 DynTypedMatcher DynTypedMatcher::trueMatcher(ASTNodeKind NodeKind) { in trueMatcher() argument
272 return DynTypedMatcher(NodeKind, NodeKind, Instance); in trueMatcher()

12