Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DSynthesis.cpp65 case syntax::NodeKind::Leaf: in allocateTree()
68 case syntax::NodeKind::TranslationUnit: in allocateTree()
72 case syntax::NodeKind::ParenExpression: in allocateTree()
74 case syntax::NodeKind::ThisExpression: in allocateTree()
102 case syntax::NodeKind::UnqualifiedId: in allocateTree()
104 case syntax::NodeKind::IdExpression: in allocateTree()
106 case syntax::NodeKind::CallExpression: in allocateTree()
116 case syntax::NodeKind::CaseStatement: in allocateTree()
120 case syntax::NodeKind::IfStatement: in allocateTree()
122 case syntax::NodeKind::ForStatement: in allocateTree()
[all …]
H A DTree.cpp55 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()
448 case NodeKind::DeclaratorList: in getTerminationKind()
458 case NodeKind::NestedNameSpecifier: in canBeEmpty()
460 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()
951 return syntax::NodeKind::GlobalNameSpecifier; in getNameSpecifierKind()
981 case syntax::NodeKind::GlobalNameSpecifier: in buildNameSpecifier()
983 case syntax::NodeKind::IdentifierNameSpecifier: { in buildNameSpecifier()
1001 case syntax::NodeKind::DecltypeNameSpecifier: { in buildNameSpecifier()
1267 case syntax::NodeKind::BinaryOperatorExpression: in WalkUpFromCXXOperatorCallExpr()
1291 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-13.1/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DNodes.h37 enum class NodeKind : uint16_t { enum
42 raw_ostream &operator<<(raw_ostream &OS, NodeKind K);
134 UnqualifiedId() : Tree(NodeKind::UnqualifiedId) {} in UnqualifiedId()
153 CallArguments() : List(NodeKind::CallArguments) {} in CallArguments()
216 Statement(NodeKind K) : Tree(K) {} in Statement()
274 IfStatement() : Statement(NodeKind::IfStatement) {} in IfStatement()
361 Declaration(NodeKind K) : Tree(K) {} in Declaration()
400 DeclaratorList() : List(NodeKind::DeclaratorList) {} in DeclaratorList()
493 Declarator(NodeKind K) : Tree(K) {} in Declarator()
579 MemberPointer() : Tree(NodeKind::MemberPointer) {} in MemberPointer()
[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);
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DASTTypeTraits.h254 return BaseConverter<T>::get(NodeKind, &Storage);
265 ASTNodeKind getNodeKind() const { return NodeKind; }
273 return NodeKind.hasPointerIdentity()
295 if (!NodeKind.isSame(Other.NodeKind))
296 return NodeKind < Other.NodeKind;
312 NodeKind)) {
327 if (!NodeKind.isSame(Other.NodeKind))
370 Val.NodeKind)) {
398 return &getUnchecked(NodeKind, Storage);
418 return &getUnchecked(NodeKind, Storage);
[all …]
/freebsd-13.1/contrib/llvm-project/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;
301 explicit TypeNode(NodeKind K) : Node(K) {} in TypeNode()
357 explicit IdentifierNode(NodeKind K) : Node(K) {} in IdentifierNode()
487 ArrayTypeNode() : TypeNode(NodeKind::ArrayType) {} in ArrayTypeNode()
508 CustomTypeNode() : TypeNode(NodeKind::Custom) {} in CustomTypeNode()
517 NodeArrayNode() : Node(NodeKind::NodeArray) {} in NodeArrayNode()
578 explicit SymbolNode(NodeKind K) : Node(K) {} in SymbolNode()
[all …]
/freebsd-13.1/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-13.1/contrib/llvm-project/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()
117 (getKind() == NodeKind::MultiInstruction && InstList.size() > 1)) && in SimpleDDGNode()
135 : DDGNode(NodeKind::PiBlock), NodeList(List) { in PiBlockDDGNode()
141 assert(getKind() == NodeKind::PiBlock && !NodeList.empty() && in PiBlockDDGNode()
[all …]
H A DDependenceGraphBuilder.cpp488 using NodeKind = typename NodeType::NodeKind; in sortNodesTopologically() typedef
490 if (N->getKind() == NodeKind::PiBlock) { in sortNodesTopologically()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/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()
275 setNodeKind(NodeKind); in VariantValue()
322 delete Value.NodeKind; in reset()
398 return *Value.NodeKind; in getNodeKind()
[all …]
H A DMarshallers.h355 for (const ASTNodeKind &NodeKind : RetKinds) {
356 if (ArgKind::MakeMatcherArg(NodeKind).isConvertibleTo(
359 *LeastDerivedKind = NodeKind;
/freebsd-13.1/contrib/llvm-project/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()
145 N->getKind() == NodeKind::MultiInstruction; in classof()
153 ? NodeKind::SingleInstruction in appendInstructions()
154 : NodeKind::MultiInstruction); in appendInstructions()
[all …]
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/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()
527 if (Pointee->kind() == NodeKind::ArrayType || in outputPost()
528 Pointee->kind() == NodeKind::FunctionSignature) in outputPost()
557 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()
/freebsd-13.1/contrib/llvm-project/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.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()
/freebsd-13.1/contrib/llvm-project/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()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DYAMLTraits.h43 enum class NodeKind : uint8_t { enum
530 using Signature_getKind = NodeKind (*)(const T &);
/freebsd-13.1/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