Home
last modified time | relevance | path

Searched refs:VariantValue (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DVariantValue.cpp254 VariantValue::VariantValue(const VariantValue &Other) : Type(VT_Nothing) { in VariantValue() function in clang::ast_matchers::dynamic::VariantValue
258 VariantValue::VariantValue(bool Boolean) : Type(VT_Nothing) { in VariantValue() function in clang::ast_matchers::dynamic::VariantValue
262 VariantValue::VariantValue(double Double) : Type(VT_Nothing) { in VariantValue() function in clang::ast_matchers::dynamic::VariantValue
266 VariantValue::VariantValue(unsigned Unsigned) : Type(VT_Nothing) { in VariantValue() function in clang::ast_matchers::dynamic::VariantValue
270 VariantValue::VariantValue(StringRef String) : Type(VT_Nothing) { in VariantValue() function in clang::ast_matchers::dynamic::VariantValue
274 VariantValue::VariantValue(ASTNodeKind NodeKind) : Type(VT_Nothing) { in VariantValue() function in clang::ast_matchers::dynamic::VariantValue
278 VariantValue::VariantValue(const VariantMatcher &Matcher) : Type(VT_Nothing) { in VariantValue() function in clang::ast_matchers::dynamic::VariantValue
282 VariantValue::~VariantValue() { reset(); } in ~VariantValue()
284 VariantValue &VariantValue::operator=(const VariantValue &Other) { in operator =()
313 void VariantValue::reset() { in reset()
[all …]
H A DMarshallers.h61 static bool hasCorrectType(const VariantValue &Value) {
84 static bool hasCorrectType(const VariantValue& Value) {
105 static bool hasCorrectType(const VariantValue &Value) {
110 static bool get(const VariantValue &Value) {
124 static bool hasCorrectType(const VariantValue &Value) {
129 static double get(const VariantValue &Value) {
148 static unsigned get(const VariantValue &Value) {
180 static attr::Kind get(const VariantValue &Value) {
210 static CastKind get(const VariantValue &Value) {
504 const VariantValue &Value = Arg.Value;
[all …]
H A DMarshallers.cpp64 clang::attr::Kind>::getBestGuess(const VariantValue &Value) { in getBestGuess()
77 clang::CastKind>::getBestGuess(const VariantValue &Value) { in getBestGuess()
90 clang::OpenMPClauseKind>::getBestGuess(const VariantValue &Value) { in getBestGuess()
104 clang::UnaryExprOrTypeTrait>::getBestGuess(const VariantValue &Value) { in getBestGuess()
160 llvm::Regex::RegexFlags>::getBestGuess(const VariantValue &Value) { in getBestGuess()
H A DParser.cpp62 VariantValue Value;
356 bool Parser::parseIdentifierPrefixImpl(VariantValue *Value) { in parseIdentifierPrefixImpl()
361 if (const VariantValue NamedValue = in parseIdentifierPrefixImpl()
363 : VariantValue()) { in parseIdentifierPrefixImpl()
473 VariantValue *Value) { in parseMatcherBuilder()
632 VariantValue *Value) { in parseMatcherExpressionImpl()
786 bool Parser::parseExpressionImpl(VariantValue *Value) { in parseExpressionImpl()
874 VariantValue *Value, Diagnostics *Error) { in parseExpression()
893 VariantValue Dummy; in completeExpression()
911 VariantValue Value; in parseMatcherExpression()
H A DCMakeLists.txt11 VariantValue.cpp
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h254 class VariantValue {
256 VariantValue() : Type(VT_Nothing) {} in VariantValue() function
258 VariantValue(const VariantValue &Other);
259 ~VariantValue();
260 VariantValue &operator=(const VariantValue &Other);
263 VariantValue(bool Boolean);
264 VariantValue(double Double);
265 VariantValue(unsigned Unsigned);
266 VariantValue(StringRef String);
267 VariantValue(ASTNodeKind NodeKind);
[all …]
H A DParser.h166 using NamedValueMap = llvm::StringMap<VariantValue>;
209 VariantValue *Value, Diagnostics *Error);
210 static bool parseExpression(StringRef &Code, Sema *S, VariantValue *Value, in parseExpression()
214 static bool parseExpression(StringRef &Code, VariantValue *Value, in parseExpression()
252 bool parseExpressionImpl(VariantValue *Value);
254 const TokenInfo &OpenToken, VariantValue *Value);
258 VariantValue *Value);
259 bool parseIdentifierPrefixImpl(VariantValue *Value);
H A DDiagnostics.h46 VariantValue Value;
/llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/
H A DVariantValueTest.cpp20 VariantValue Value = kUnsigned; in TEST()
32 VariantValue Value = kString; in TEST()
44 VariantValue Value = VariantMatcher::SingleMatcher(stmt()); in TEST()
73 VariantValue Value = StringRef("A"); in TEST()
120 Value = VariantValue(); in TEST()
131 VariantValue Value; in TEST()
159 VariantValue(VariantMatcher::SingleMatcher(functionDecl())) in TEST()
163 EXPECT_FALSE(VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST()
170 EXPECT_DEATH(VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST()
182 VariantValue(VariantMatcher::SingleMatcher(declRefExpr())) in TEST()
[all …]
H A DRegistryTest.cpp24 std::vector<ParserValue> Args(const VariantValue &Arg1) { in Args()
29 std::vector<ParserValue> Args(const VariantValue &Arg1, in Args()
30 const VariantValue &Arg2) { in Args()
54 const VariantValue &Arg1, in constructMatcher()
67 const VariantValue &Arg1, in constructMatcher()
68 const VariantValue &Arg2, in constructMatcher()
566 "cxxBoolLiteral", constructMatcher("equals", VariantValue(true))) in TEST_F()
573 "cxxBoolLiteral", constructMatcher("equals", VariantValue(0))) in TEST_F()
580 "floatLiteral", constructMatcher("equals", VariantValue(1.2))) in TEST_F()
592 "integerLiteral", constructMatcher("equals", VariantValue(42))) in TEST_F()
[all …]
H A DParserTest.cpp48 VariantValue Value; in parse()
82 std::vector<VariantValue> Values;
149 llvm::Optional<DynTypedMatcher> getSingleMatcher(const VariantValue &Value) { in getSingleMatcher()
307 VariantValue Value; in ParseWithError()
/llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/ASTMatchers/Dynamic/
H A DBUILD.gn15 "VariantValue.cpp",
/llvm-project-15.0.7/clang-tools-extra/clang-query/
H A DQuerySession.h43 llvm::StringMap<ast_matchers::dynamic::VariantValue> NamedValues;
H A DQuery.h103 LetQuery(StringRef Name, const ast_matchers::dynamic::VariantValue &Value) in LetQuery()
108 ast_matchers::dynamic::VariantValue Value;
H A DQueryParser.cpp260 ast_matchers::dynamic::VariantValue Value; in doParse()
353 return endQuery(new LetQuery(Name, VariantValue())); in doParse()