Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DSynthesis.cpp72 case syntax::NodeKind::Leaf: in allocateTree()
75 case syntax::NodeKind::TranslationUnit: in allocateTree()
79 case syntax::NodeKind::ParenExpression: in allocateTree()
81 case syntax::NodeKind::ThisExpression: in allocateTree()
109 case syntax::NodeKind::UnqualifiedId: in allocateTree()
111 case syntax::NodeKind::IdExpression: in allocateTree()
123 case syntax::NodeKind::CaseStatement: in allocateTree()
127 case syntax::NodeKind::IfStatement: in allocateTree()
129 case syntax::NodeKind::ForStatement: in allocateTree()
179 case syntax::NodeKind::MemberPointer: in allocateTree()
[all …]
H A DTree.cpp37 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()
419 case NodeKind::DeclaratorList: in getTerminationKind()
429 case NodeKind::NestedNameSpecifier: in canBeEmpty()
431 case NodeKind::CallArguments: in canBeEmpty()
[all …]
H A DBuildTree.cpp197 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()
956 return syntax::NodeKind::GlobalNameSpecifier; in getNameSpecifierKind()
986 case syntax::NodeKind::GlobalNameSpecifier: in buildNameSpecifier()
988 case syntax::NodeKind::IdentifierNameSpecifier: { in buildNameSpecifier()
1006 case syntax::NodeKind::DecltypeNameSpecifier: { in buildNameSpecifier()
1272 case syntax::NodeKind::BinaryOperatorExpression: in WalkUpFromCXXOperatorCallExpr()
1296 case syntax::NodeKind::CallExpression: { in WalkUpFromCXXOperatorCallExpr()
[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/clang/include/clang/Tooling/Syntax/
H A DNodes.h32 enum class NodeKind : uint16_t { enum
37 raw_ostream &operator<<(raw_ostream &OS, NodeKind K);
129 UnqualifiedId() : Tree(NodeKind::UnqualifiedId) {} in UnqualifiedId()
148 CallArguments() : List(NodeKind::CallArguments) {} in CallArguments()
211 Statement(NodeKind K) : Tree(K) {} in Statement()
269 IfStatement() : Statement(NodeKind::IfStatement) {} in IfStatement()
356 Declaration(NodeKind K) : Tree(K) {} in Declaration()
395 DeclaratorList() : List(NodeKind::DeclaratorList) {} in DeclaratorList()
488 Declarator(NodeKind K) : Tree(K) {} in Declarator()
574 MemberPointer() : Tree(NodeKind::MemberPointer) {} in MemberPointer()
[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/clang/include/clang/AST/
H A DASTTypeTraits.h278 return BaseConverter<T>::get(NodeKind, &Storage);
297 return NodeKind.hasPointerIdentity()
319 if (!NodeKind.isSame(Other.NodeKind))
320 return NodeKind < Other.NodeKind;
336 NodeKind)) {
351 if (!NodeKind.isSame(Other.NodeKind))
394 Val.NodeKind)) {
422 return &getUnchecked(NodeKind, Storage);
442 return &getUnchecked(NodeKind, Storage);
485 return &getUnchecked(NodeKind, Storage);
[all …]
/freebsd/contrib/llvm-project/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;
298 explicit TypeNode(NodeKind K) : Node(K) {} in TypeNode()
354 explicit IdentifierNode(NodeKind K) : Node(K) {} in IdentifierNode()
484 ArrayTypeNode() : TypeNode(NodeKind::ArrayType) {} in ArrayTypeNode()
505 CustomTypeNode() : TypeNode(NodeKind::Custom) {} in CustomTypeNode()
514 NodeArrayNode() : Node(NodeKind::NodeArray) {} in NodeArrayNode()
576 explicit SymbolNode(NodeKind K) : Node(K) {} in SymbolNode()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DSuffixTreeNode.h37 enum class NodeKind { ST_Leaf, ST_Internal }; enum
40 const NodeKind Kind;
51 NodeKind getKind() const { return Kind; } in getKind()
68 SuffixTreeNode(NodeKind Kind, unsigned StartIdx) in SuffixTreeNode()
107 return N->getKind() == NodeKind::ST_Internal; in classof()
131 : SuffixTreeNode(NodeKind::ST_Internal, StartIdx), EndIdx(EndIdx), in SuffixTreeInternalNode()
154 return N->getKind() == NodeKind::ST_Leaf; in classof()
166 : SuffixTreeNode(NodeKind::ST_Leaf, StartIdx), EndIdx(EndIdx) {} in SuffixTreeLeafNode()
H A DYAMLTraits.h42 enum class NodeKind : uint8_t { enum
553 using Signature_getKind = NodeKind (*)(const T &);
/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/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()
116 (getKind() == NodeKind::MultiInstruction && InstList.size() > 1)) && in SimpleDDGNode()
134 : DDGNode(NodeKind::PiBlock), NodeList(List) { in PiBlockDDGNode()
140 assert(getKind() == NodeKind::PiBlock && !NodeList.empty() && in PiBlockDDGNode()
[all …]
H A DDependenceGraphBuilder.cpp489 using NodeKind = typename NodeType::NodeKind; in sortNodesTopologically() typedef
491 if (N->getKind() == NodeKind::PiBlock) { in sortNodesTopologically()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTwine.h83 enum NodeKind : unsigned char { enum
169 NodeKind LHSKind = EmptyKind;
172 NodeKind RHSKind = EmptyKind;
175 explicit Twine(NodeKind Kind) : LHSKind(Kind) { in Twine()
188 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine()
245 NodeKind getLHSKind() const { return LHSKind; } in getLHSKind()
248 NodeKind getRHSKind() const { return RHSKind; } in getRHSKind()
251 void printOneChild(raw_ostream &OS, Child Ptr, NodeKind Kind) const;
255 NodeKind Kind) const;
541 NodeKind NewLHSKind = TwineKind, NewRHSKind = TwineKind; in concat()
/freebsd/contrib/llvm-project/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()
276 setNodeKind(NodeKind); in VariantValue()
323 delete Value.NodeKind; in reset()
399 return *Value.NodeKind; in getNodeKind()
[all …]
/freebsd/contrib/llvm-project/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()
143 N->getKind() == NodeKind::MultiInstruction; in classof()
151 ? NodeKind::SingleInstruction in appendInstructions()
152 : NodeKind::MultiInstruction); 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.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.cpp424 if (Symbol->kind() == NodeKind::VariableSymbol) { in demangleInitFiniStub()
752 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) { in demangleEncodedSymbol()
774 if (UQN->kind() == NodeKind::ConversionOperatorIdentifier) { in demangleDeclarator()
814 SymbolNode *S = Arena.alloc<SymbolNode>(NodeKind::Md5Symbol); in demangleMD5Name()
894 case NodeKind::PointerType: { in demangleVariableEncoding()
1038 if (Identifier->kind() == NodeKind::ConversionOperatorIdentifier || in demangleTemplateInstantiationName()
1039 Identifier->kind() == NodeKind::StructorIdentifier) { in demangleTemplateInstantiationName()
1530 if (Identifier->kind() == NodeKind::StructorIdentifier) { in demangleFullyQualifiedSymbolName()
/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/llvm/lib/Support/
H A DTwine.cpp60 NodeKind Kind) const { in printOneChild()
108 NodeKind Kind) const { in printOneChildRepr()
H A DYAMLTraits.cpp361 NodeKind Input::getNodeKind() { in getNodeKind()
363 return NodeKind::Scalar; in getNodeKind()
365 return NodeKind::Map; in getNodeKind()
367 return NodeKind::Sequence; in getNodeKind()
879 NodeKind Output::getNodeKind() { report_fatal_error("invalid call"); } in getNodeKind()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTTypeTraits.cpp218 OS << "Unable to print values of type " << NodeKind.asStringRef() << "\n"; in print()
232 OS << "Unable to dump values of type " << NodeKind.asStringRef() << "\n"; in dump()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp266 DynTypedMatcher DynTypedMatcher::trueMatcher(ASTNodeKind NodeKind) { in trueMatcher() argument
272 return DynTypedMatcher(NodeKind, NodeKind, Instance); in trueMatcher()

12