Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/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 …]
/llvm-project-15.0.7/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);
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTTypeTraits.h270 return BaseConverter<T>::get(NodeKind, &Storage);
289 return NodeKind.hasPointerIdentity()
311 if (!NodeKind.isSame(Other.NodeKind))
312 return NodeKind < Other.NodeKind;
328 NodeKind)) {
343 if (!NodeKind.isSame(Other.NodeKind))
386 Val.NodeKind)) {
414 return &getUnchecked(NodeKind, Storage);
434 return &getUnchecked(NodeKind, Storage);
477 return &getUnchecked(NodeKind, Storage);
[all …]
/llvm-project-15.0.7/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()
355 explicit IdentifierNode(NodeKind K) : Node(K) {} in IdentifierNode()
485 ArrayTypeNode() : TypeNode(NodeKind::ArrayType) {} in ArrayTypeNode()
506 CustomTypeNode() : TypeNode(NodeKind::Custom) {} in CustomTypeNode()
515 NodeArrayNode() : Node(NodeKind::NodeArray) {} in NodeArrayNode()
576 explicit SymbolNode(NodeKind K) : Node(K) {} in SymbolNode()
[all …]
/llvm-project-15.0.7/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
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DTwine.h85 enum NodeKind : unsigned char { enum
167 NodeKind LHSKind = EmptyKind;
170 NodeKind RHSKind = EmptyKind;
173 explicit Twine(NodeKind Kind) : LHSKind(Kind) { in Twine()
186 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine()
243 NodeKind getLHSKind() const { return LHSKind; } in getLHSKind()
246 NodeKind getRHSKind() const { return RHSKind; } in getRHSKind()
249 void printOneChild(raw_ostream &OS, Child Ptr, NodeKind Kind) const;
253 NodeKind Kind) const;
526 NodeKind NewLHSKind = TwineKind, NewRHSKind = TwineKind; in concat()
/llvm-project-15.0.7/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()
275 setNodeKind(NodeKind); in VariantValue()
322 delete Value.NodeKind; in reset()
398 return *Value.NodeKind; in getNodeKind()
[all …]
/llvm-project-15.0.7/clang/unittests/Tooling/Syntax/
H A DSynthesisTest.cpp113 auto *Tree = createTree(*Arena, {}, NodeKind::UnknownExpression); in TEST_P()
128 NodeKind::ParenExpression); in TEST_P()
142 NodeKind::IntegerLiteralExpression); in TEST_P()
148 NodeKind::IntegerLiteralExpression); in TEST_P()
154 NodeKind::BinaryOperatorExpression); in TEST_P()
174 NodeKind::ContinueStatement); in TEST_P()
H A DTreeTest.cpp33 NodeKind::UnknownExpression); in createTree()
138 NodeKind::TranslationUnit); in TEST_F()
242 NodeKind::CallArguments)); in TEST_P()
262 NodeKind::CallArguments)); in TEST_P()
282 NodeKind::CallArguments)); in TEST_P()
302 NodeKind::CallArguments)); in TEST_P()
327 NodeKind::NestedNameSpecifier)); in TEST_P()
351 NodeKind::NestedNameSpecifier)); in TEST_P()
375 NodeKind::NestedNameSpecifier)); in TEST_P()
399 NodeKind::NestedNameSpecifier)); in TEST_P()
/llvm-project-15.0.7/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 …]
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Demangle/
H A DMicrosoftDemangleNodes.cpp480 if (Pointee->kind() == NodeKind::FunctionSignature) { in outputPre()
494 if (Pointee->kind() == NodeKind::ArrayType) { in outputPre()
496 } else if (Pointee->kind() == NodeKind::FunctionSignature) { in outputPre()
526 if (Pointee->kind() == NodeKind::ArrayType || in outputPost()
527 Pointee->kind() == NodeKind::FunctionSignature) in outputPost()
556 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()
859 case NodeKind::PointerType: { in demangleVariableEncoding()
1004 if (Identifier->kind() == NodeKind::ConversionOperatorIdentifier || in demangleTemplateInstantiationName()
1005 Identifier->kind() == NodeKind::StructorIdentifier) { in demangleTemplateInstantiationName()
1497 if (Identifier->kind() == NodeKind::StructorIdentifier) { in demangleFullyQualifiedSymbolName()
/llvm-project-15.0.7/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;
56 profileCtor(ID, NodeKind<NodeT>::Kind, V...); in operator ()()
105 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()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DXRefs.cpp172 ASTNodeKind *NodeKind = nullptr) { in getDeclAtPositionWithRelations() argument
177 if (NodeKind) in getDeclAtPositionWithRelations()
178 *NodeKind = N->ASTNode.getNodeKind(); in getDeclAtPositionWithRelations()
198 ASTNodeKind *NodeKind = nullptr) { in getDeclAtPosition() argument
201 getDeclAtPositionWithRelations(AST, Pos, Relations, NodeKind)) in getDeclAtPosition()
541 bool isDependentName(ASTNodeKind NodeKind) { in isDependentName() argument
543 NodeKind.isSame( in isDependentName()
545 NodeKind.isSame( in isDependentName()
554 ASTNodeKind NodeKind) { in locateSymbolTextually() argument
559 if ((Word.ExpandedToken && !isDependentName(NodeKind)) || in locateSymbolTextually()
[all …]
H A DXRefs.h65 ASTNodeKind NodeKind);
/llvm-project-15.0.7/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()

12