Home
last modified time | relevance | path

Searched refs:InvalidQuery (Results 1 – 7 of 7) sorted by relevance

/external/llvm-project/clang-tools-extra/unittests/clang-query/
DQueryParserTest.cpp36 ASSERT_TRUE(isa<InvalidQuery>(Q)); in TEST_F()
37 EXPECT_EQ("unknown command: foo", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
45 ASSERT_TRUE(isa<InvalidQuery>(Q)); in TEST_F()
46 EXPECT_EQ("unexpected extra input: ' me'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
57 ASSERT_TRUE(isa<InvalidQuery>(Q)); in TEST_F()
58 EXPECT_EQ("unexpected extra input: ' me'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
63 ASSERT_TRUE(isa<InvalidQuery>(Q)); in TEST_F()
64 EXPECT_EQ("expected variable name", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
67 ASSERT_TRUE(isa<InvalidQuery>(Q)); in TEST_F()
68 EXPECT_EQ("unknown variable: 'foo'", cast<InvalidQuery>(Q)->ErrStr); in TEST_F()
[all …]
DQueryEngineTest.cpp62 EXPECT_FALSE(InvalidQuery("Parse error").run(OS, S)); in TEST_F()
/external/llvm-project/clang-tools-extra/clang-query/
DQueryParser.cpp100 return new InvalidQuery("expected 'true' or 'false', got '" + ValStr + "'"); in parseSetBool()
114 return new InvalidQuery( in parseSetOutputKind()
141 return new InvalidQuery("expected traversal kind, got '" + ValStr + "'"); in parseSetTraversalKind()
164 return new InvalidQuery("unexpected extra input: '" + Extra + "'"); in endQuery()
198 return new InvalidQuery(OS.str()); in makeInvalidQueryFromDiagnostics()
249 return new InvalidQuery("expected variable name"); in doParse()
295 return new InvalidQuery("expected variable name"); in doParse()
297 return new InvalidQuery("unknown variable: '" + VarStr + "'"); in doParse()
327 return new InvalidQuery("expected variable name"); in doParse()
329 return new InvalidQuery("unknown variable: '" + VarStr + "'"); in doParse()
[all …]
DQuery.h55 struct InvalidQuery : Query { struct
56 InvalidQuery(const Twine &ErrStr) : Query(QK_Invalid), ErrStr(ErrStr.str()) {} in InvalidQuery() function
DQuery.cpp25 bool InvalidQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { in run()
/external/rust/crates/rusqlite/src/
Derror.rs89 InvalidQuery, enumerator
150 (Error::InvalidQuery, Error::InvalidQuery) => true, in eq()
265 Error::InvalidQuery => write!(f, "Query is not read-only"), in fmt()
298 | Error::InvalidQuery in source()
/external/rust/crates/rusqlite/
DChangelog.md27 * Return an `InvalidQuery` error when SQL is not read only.