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

12

/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/
H A DSynthesis.cpp62 // Allocates the concrete syntax `Tree` according to its `NodeKind`.
63 syntax::Tree *allocateTree(syntax::Arena &A, syntax::NodeKind Kind) {
65 case syntax::NodeKind::Leaf:
68 case syntax::NodeKind::TranslationUnit:
70 case syntax::NodeKind::UnknownExpression:
72 case syntax::NodeKind::ParenExpression:
74 case syntax::NodeKind::ThisExpression:
76 case syntax::NodeKind::IntegerLiteralExpression:
78 case syntax::NodeKind::CharacterLiteralExpression:
80 case syntax::NodeKind
[all...]
H A DTree.cpp51 syntax::Leaf::Leaf(const syntax::Token *Tok) : Node(NodeKind::Leaf), Tok(Tok) {
55 syntax::Node::Node(NodeKind Kind)
430 case NodeKind::NestedNameSpecifier:
432 case NodeKind::CallArguments:
433 case NodeKind::ParameterDeclarationList:
434 case NodeKind::DeclaratorList:
444 case NodeKind::NestedNameSpecifier:
446 case NodeKind::CallArguments:
447 case NodeKind::ParameterDeclarationList:
448 case NodeKind
[all...]
H A DBuildTree.cpp164 static syntax::NodeKind getOperatorNodeKind(const CXXOperatorCallExpr &E) {
197 return syntax::NodeKind::BinaryOperatorExpression;
200 return syntax::NodeKind::PrefixUnaryOperatorExpression;
206 return syntax::NodeKind::PrefixUnaryOperatorExpression;
208 return syntax::NodeKind::PostfixUnaryOperatorExpression;
219 return syntax::NodeKind::PrefixUnaryOperatorExpression;
221 return syntax::NodeKind::BinaryOperatorExpression;
225 return syntax::NodeKind::BinaryOperatorExpression;
234 return syntax::NodeKind::UnknownExpression;
236 return syntax::NodeKind
[all...]
H A DNodes.cpp13 raw_ostream &syntax::operator<<(raw_ostream &OS, NodeKind K) {
16 case NodeKind::Kind: \
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Tooling/Syntax/
H A DNodes.h37 enum class NodeKind : uint16_t { class in namespace:clang::syntax
42 raw_ostream &operator<<(raw_ostream &OS, NodeKind K);
123 NestedNameSpecifier() : List(NodeKind::NestedNameSpecifier) {}
134 UnqualifiedId() : Tree(NodeKind::UnqualifiedId) {}
142 UnknownExpression() : Expression(NodeKind::UnknownExpression) {}
153 CallArguments() : List(NodeKind::CallArguments) {}
162 UnaryOperatorExpression(NodeKind K) : Expression(K) {}
180 : UnaryOperatorExpression(NodeKind::PrefixUnaryOperatorExpression) {}
192 : UnaryOperatorExpression(NodeKind::PostfixUnaryOperatorExpression) {}
205 BinaryOperatorExpression() : Expression(NodeKind
[all...]
H A DBuildTree.h39 /// Creates the concrete syntax node according to the specified `NodeKind` `K`.
44 syntax::NodeKind K);
H A DTree.h75 enum class NodeKind : uint16_t; class in namespace:clang::syntax
84 Node(NodeKind Kind);
96 NodeKind getKind() const { return static_cast<NodeKind>(Kind); }
/netbsd-current/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)) {
396 get(ASTNodeKind NodeKind, const void *Storage) argument
401 getUnchecked(ASTNodeKind NodeKind, const void *Storage) argument
416 get(ASTNodeKind NodeKind, const void *Storage) argument
421 getUnchecked(ASTNodeKind NodeKind, const void *Storage) argument
436 get(ASTNodeKind NodeKind, const void *Storage) argument
441 getUnchecked(ASTNodeKind NodeKind, const void *Storage) argument
453 ASTNodeKind NodeKind; member in class:clang::DynTypedNode
531 get(ASTNodeKind NodeKind, const char Storage[]) argument
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Demangle/
H A DMicrosoftDemangleNodes.h225 enum class NodeKind { class
258 explicit Node(NodeKind K) : Kind(K) {}
261 NodeKind kind() const { return Kind; }
268 NodeKind Kind;
300 explicit TypeNode(NodeKind K) : Node(K) {}
315 : TypeNode(NodeKind::PrimitiveType), PrimKind(K) {}
324 explicit FunctionSignatureNode(NodeKind K) : TypeNode(K) {}
325 FunctionSignatureNode() : TypeNode(NodeKind::FunctionSignature) {}
356 explicit IdentifierNode(NodeKind K) : Node(K) {}
365 VcallThunkIdentifierNode() : IdentifierNode(NodeKind
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h59 return NodeKind;
63 return NodeKind;
77 return NodeKind < Other.NodeKind;
85 ArgKind(Kind K, ASTNodeKind NK) : K(K), NodeKind(NK) {}
87 ASTNodeKind NodeKind; member in class:clang::ast_matchers::dynamic::ArgKind
109 MatcherOps(ASTNodeKind NodeKind) : NodeKind(NodeKind) {} argument
126 ASTNodeKind NodeKind; member in class:clang::ast_matchers::dynamic::VariantMatcher::MatcherOps
348 ASTNodeKind *NodeKind; member in union:clang::ast_matchers::dynamic::VariantValue::AllValues
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DDDG.cpp59 raw_ostream &llvm::operator<<(raw_ostream &OS, const DDGNode::NodeKind K) {
62 case DDGNode::NodeKind::SingleInstruction:
65 case DDGNode::NodeKind::MultiInstruction:
68 case DDGNode::NodeKind::PiBlock:
71 case DDGNode::NodeKind::Root:
74 case DDGNode::NodeKind::Unknown:
109 : DDGNode(NodeKind::SingleInstruction), InstList() {
116 assert(((getKind() == NodeKind::SingleInstruction && InstList.size() == 1) ||
117 (getKind() == NodeKind::MultiInstruction && InstList.size() > 1)) &&
123 assert(((getKind() == NodeKind
[all...]
H A DDependenceGraphBuilder.cpp488 using NodeKind = typename NodeType::NodeKind;
490 if (N->getKind() == NodeKind::PiBlock) {
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DTwine.h81 /// NodeKind - Represent the type of an argument.
82 enum NodeKind : unsigned char {
162 /// LHSKind - The NodeKind of the left hand side, \see getLHSKind().
163 NodeKind LHSKind = EmptyKind;
165 /// RHSKind - The NodeKind of the right hand side, \see getRHSKind().
166 NodeKind RHSKind = EmptyKind;
169 explicit Twine(NodeKind Kind) : LHSKind(Kind) {
182 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind)
238 /// Get the NodeKind o
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp25 return (Twine("Matcher<") + NodeKind.asStringRef() + ">").str();
27 return NodeKind.asStringRef().str();
49 if (!NodeKind.isBaseOf(To.NodeKind, &Distance))
60 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind);
61 return Matcher.canConvertTo(NodeKind);
66 return Matcher.dynCastTo(NodeKind);
85 return DynTypedMatcher::constructVariadic(Op, NodeKind, DynMatchers);
274 VariantValue::VariantValue(ASTNodeKind NodeKind) : Type(VT_Nothing) { argument
275 setNodeKind(NodeKind);
[all...]
H A DMarshallers.h355 for (const ASTNodeKind &NodeKind : RetKinds) {
356 if (ArgKind::MakeMatcherArg(NodeKind).isConvertibleTo(
359 *LeastDerivedKind = NodeKind;
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DDDG.h46 enum class NodeKind { class in class:llvm::DDGNode
55 DDGNode(const NodeKind K) : DDGNodeBase(), Kind(K) {}
73 NodeKind getKind() const { return Kind; }
83 void setKind(NodeKind K) { Kind = K; }
86 NodeKind Kind;
93 RootDDGNode() : DDGNode(NodeKind::Root) {}
100 return N->getKind() == NodeKind::Root;
144 return N->getKind() == NodeKind::SingleInstruction ||
145 N->getKind() == NodeKind::MultiInstruction;
153 ? NodeKind
[all...]
/netbsd-current/external/apache2/llvm/dist/llvm/lib/BinaryFormat/
H A DMsgPackDocumentYAML.cpp149 static NodeKind getKind(const DocNode &N) {
152 return NodeKind::Map;
154 return NodeKind::Sequence;
156 return NodeKind::Scalar;
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/
H A DTwine.cpp58 NodeKind Kind) const {
108 NodeKind Kind) const {
H A DItaniumManglingCanonicalizer.cpp19 using llvm::itanium_demangle::NodeKind;
56 profileCtor(ID, NodeKind<NodeT>::Kind, V...);
105 profileCtor(ID, NodeKind<T>::Kind, As...);
H A DYAMLTraits.cpp366 NodeKind Input::getNodeKind() {
368 return NodeKind::Scalar;
370 return NodeKind::Map;
372 return NodeKind::Sequence;
860 NodeKind Output::getNodeKind() { report_fatal_error("invalid call"); }
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Demangle/
H A DMicrosoftDemangleNodes.cpp478 if (Pointee->kind() == NodeKind::FunctionSignature) {
492 if (Pointee->kind() == NodeKind::ArrayType) {
494 } else if (Pointee->kind() == NodeKind::FunctionSignature) {
524 if (Pointee->kind() == NodeKind::ArrayType ||
525 Pointee->kind() == NodeKind::FunctionSignature)
554 assert(N->kind() == NodeKind::IntegerLiteral);
H A DMicrosoftDemangle.cpp397 if (Symbol->kind() == NodeKind::VariableSymbol) {
721 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) {
743 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) {
780 SymbolNode *S = Arena.alloc<SymbolNode>(NodeKind::Md5Symbol);
855 case NodeKind::PointerType: {
1003 if (Identifier->kind() == NodeKind::ConversionOperatorIdentifier ||
1004 Identifier->kind() == NodeKind::StructorIdentifier) {
1500 if (Identifier->kind() == NodeKind::StructorIdentifier) {
/netbsd-current/external/apache2/llvm/dist/clang/lib/AST/
H A DASTTypeTraits.cpp166 OS << "Unable to print values of type " << NodeKind.asStringRef() << "\n";
178 OS << "Unable to dump values of type " << NodeKind.asStringRef() << "\n";
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Support/
H A DYAMLTraits.h43 enum class NodeKind : uint8_t { class in namespace:llvm::yaml
289 /// static NodeKind getKind(const MyPoly &poly) {
301 // static NodeKind getKind(const T &poly);
530 using Signature_getKind = NodeKind (*)(const T &);
792 virtual NodeKind getNodeKind() = 0;
1099 case NodeKind::Scalar:
1101 case NodeKind::Map:
1103 case NodeKind::Sequence:
1419 NodeKind getNodeKind() override;
1575 NodeKind getNodeKin
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp266 DynTypedMatcher DynTypedMatcher::trueMatcher(ASTNodeKind NodeKind) { argument
272 return DynTypedMatcher(NodeKind, NodeKind, Instance);

Completed in 471 milliseconds

12