Searched defs:Expected (Results 1 - 25 of 37) sorted by relevance

12

/external/llvm/unittests/Bitcode/
H A DBitstreamWriterTest.cpp32 SmallString<64> Expected; local
34 BitstreamWriter W(Expected);
42 EXPECT_EQ(StringRef(Expected), Buffer);
/external/llvm/unittests/MC/
H A DStringTableBuilderTest.cpp28 std::string Expected; local
29 Expected += '\x00';
30 Expected += "foobar";
31 Expected += '\x00';
32 Expected += "foo";
33 Expected += '\x00';
35 EXPECT_EQ(Expected, B.data());
55 std::string Expected; local
59 Expected.append((const char*)&ExpectedSize, 4);
60 Expected
79 std::string Expected; local
[all...]
/external/llvm/lib/Fuzzer/test/
H A DSimpleDictionaryTest.cpp17 const char *Expected = "ElvisPresley"; local
18 if (Size < strlen(Expected)) return 0;
20 for (size_t i = 0; Expected[i]; i++)
21 if (Expected[i] + Zero == Data[i])
23 if (Match == strlen(Expected)) {
H A DFuzzerUnittest.cpp28 Unit Expected[] = { local
73 for (const Unit &U : Expected)
/external/clang/unittests/Format/
H A DSortImportsTestJS.cpp37 void verifySort(llvm::StringRef Expected, llvm::StringRef Code, argument
40 EXPECT_EQ(Expected.str(), Result) << "Expected:\n"
41 << Expected << "\nActual:\n"
H A DFormatTestJS.cpp57 llvm::StringRef Expected,
61 EXPECT_EQ(Expected.str(), Result) << "Formatted:\n" << Result;
56 verifyFormat( llvm::StringRef Expected, llvm::StringRef Code, const FormatStyle &Style = getGoogleStyle(FormatStyle::LK_JavaScript)) argument
H A DCleanupTest.cpp43 std::string Expected = "\n\n\n\n\nnamespace C {\n" local
51 EXPECT_EQ(Expected, Result);
62 std::string Expected = "namespace A {\n" local
68 EXPECT_EQ(Expected, Result);
76 std::string Expected = "namespace A {\n\n" local
81 EXPECT_EQ(Expected, Result);
92 std::string Expected = "\n\n\n\n\n\n"; local
95 EXPECT_EQ(Expected, Result);
109 std::string Expected = "\n\n\n\n\n\n\n\n\n\n"; local
114 EXPECT_EQ(Expected, Resul
119 std::string Expected = "class A {\\nA() {} };"; local
143 std::string Expected = "void f() { std::vector<int> v = {1,2,3,{4,5}}; }"; local
160 std::string Expected = "class A {\\nA() : x({1}) {} };"; local
171 std::string Expected = local
191 std::string Expected = "class A {\\nA() : x({1}) /* comment */ {} };"; local
235 std::string Expected = "namespace A {\\n" local
303 std::string Expected = "\\n\\nnamespace C {\\n" local
316 std::string Expected = "#include \\"a.h\\"\\n" local
328 std::string Expected = "#ifndef A_H\\n" local
349 std::string Expected = "#ifndef A_H\\n" local
368 std::string Expected = "#include \\"fix.h\\"\\n" local
381 std::string Expected = "#include \\"z.h\\"\\n" local
393 std::string Expected = "#include <memory>\\n" local
408 std::string Expected = "#include \\"x/fix.h\\"\\n" local
426 std::string Expected = "#include \\"x/fix.h\\"\\n" local
445 std::string Expected = "#include \\"x/fix.h\\"\\n" local
462 std::string Expected = "#include \\"x/fix.h\\"\\n" local
478 std::string Expected = "\\n#include \\"fix.h\\"\\n" local
496 std::string Expected = "\\n#include \\"fix.h\\"\\n" local
520 std::string Expected = "\\n#include \\"x.h\\"\\n" local
543 std::string Expected = "#include <vector>\\n" local
555 std::string Expected = "// comment\\n" local
570 std::string Expected = "// comment\\n" local
588 std::string Expected = "/*\\n" local
608 std::string Expected = "/*\\n" local
625 std::string Expected = "// comment \\n" local
639 std::string Expected = "// comment \\n" local
654 std::string Expected = "// comment \\n" local
672 std::string Expected = "// comment \\n" local
687 std::string Expected = "#include <vector>\\n"; local
696 std::string Expected = "#include <map>#include <vector>\\n"; local
704 std::string Expected = "#include \\"a.h\\"\\n" local
715 std::string Expected = "#include \\"a.h\\"\\n" local
[all...]
H A DFormatTest.cpp11537 std::string Expected = "auto a = new Type();\n" local
11561 EXPECT_EQ(Expected, *Result);
11571 std::string Expected = "#include \"a.h\"\n" local
11590 EXPECT_EQ(Expected, *Result);
/external/clang/unittests/Tooling/
H A DRefactoringCallbacksTest.cpp23 const std::string &Expected,
36 EXPECT_EQ(Expected, Context.getRewrittenText(ID));
41 std::string Expected = "void f() { ; }"; local
43 expectRewritten(Code, Expected, id("id", declStmt()), Callback);
48 std::string Expected = "#define A void f() { ; }\nA"; local
50 expectRewritten(Code, Expected, id("id", declStmt()), Callback);
55 std::string Expected = "#define A void f() { int i = 1; }"; local
57 expectRewritten(Code, Expected, id("id", declStmt()), Callback);
62 std::string Expected = "void f() { int i = 2; }"; local
64 expectRewritten(Code, Expected, i
22 expectRewritten(const std::string &Code, const std::string &Expected, const T &AMatcher, RefactoringCallback &Callback) argument
70 std::string Expected = "void f() { int i = i * 2; }"; local
81 std::string Expected = "bool a; void f() { f(); }"; local
92 std::string Expected = "void f() { }"; local
[all...]
H A DCompilationDatabaseTest.cpp27 << "Expected an error because of: " << Explanation.str();
547 std::vector<std::string> Expected; local
548 Expected.push_back("clang-tool");
549 Expected.push_back("-c");
550 Expected.push_back("-DDEF3");
551 Expected.push_back("source");
552 ASSERT_EQ(Expected, Result[0].CommandLine);
566 std::vector<std::string> Expected; local
567 Expected.push_back("clang-tool");
568 Expected
[all...]
H A DRefactoringTest.cpp475 std::vector<Range> Expected = {Range(0, 4), Range(7, 2), Range(12, 5)}; local
476 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges));
482 std::vector<Range> Expected = {Range(5, 2), Range(10, 5), Range(20, 4)}; local
483 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges));
491 std::vector<Range> Expected = {Range(0, 2), Range(3, 4), Range(10, 5), local
493 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges));
501 std::vector<Range> Expected = {Range(0, 2), Range(3, 0), Range(4, 4), local
503 EXPECT_EQ(Expected, calculateRangesAfterReplacements(Replaces, Ranges));
512 std::vector<Range> Expected = {Range(0, 1), Range(2, 4), Range(12, 5), local
514 EXPECT_EQ(Expected, calculateRangesAfterReplacement
520 std::vector<Range> Expected = {Range(0, 15)}; local
529 std::vector<Range> Expected = {Range(0, 2), Range(5, 9), Range(18, 2)}; local
537 std::vector<Range> Expected = {Range(0, 2), Range(5, 4), Range(17, 4)}; local
545 std::vector<Range> Expected = {Range(0, 0), Range(1, 3), Range(13, 9)}; local
553 std::vector<Range> Expected = {Range(0, 1), Range(2, 4), Range(7, 0), Range(8, 0)}; local
571 std::vector<Replacement> Expected; local
[all...]
/external/llvm/unittests/ADT/
H A DSparseSetTest.cpp196 unsigned Expected = UpperBound; local
198 ASSERT_TRUE(--Expected == Set.pop_back_val());
H A DStringRefTest.cpp424 uint64_t Expected; member in struct:__anon13722::UnsignedPair
441 int64_t Expected; member in struct:__anon13722::SignedPair
474 if (static_cast<uint8_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
476 EXPECT_EQ(U8, Unsigned[i].Expected);
481 if (static_cast<uint16_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
483 EXPECT_EQ(U16, Unsigned[i].Expected);
488 if (static_cast<uint32_t>(Unsigned[i].Expected) == Unsigned[i].Expected) {
[all...]
/external/clang/unittests/AST/
H A DDeclPrinterTest.cpp95 << "Expected \"" << ExpectedPrinted.str() << "\", "
685 SmallString<128> Expected; local
686 Expected.append("void operator");
687 Expected.append(OperatorNames[i]);
688 Expected.append("(Z z)");
694 Expected));
709 SmallString<128> Expected; local
710 Expected.append("void operator");
711 Expected.append(OperatorNames[i]);
712 Expected
[all...]
/external/llvm/unittests/Support/
H A DConvertUTFTest.cpp27 std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0");
28 EXPECT_EQ(Expected, Result);
38 std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0");
39 EXPECT_EQ(Expected, Result);
49 static const UTF16 Expected[] = {0x0CA0, 0x005f, 0x0CA0, 0}; local
52 EXPECT_EQ(Expected[I], Result[I]);
91 std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0");
92 EXPECT_EQ(Expected, Result);
101 std::wstring Expected(L"\x0ca0_\x0ca0");
102 EXPECT_EQ(Expected, Resul
187 CheckConvertUTF8ToUnicodeScalars(ConvertUTFResultContainer Expected, StringRef S, bool Partial = false) argument
[all...]
/external/llvm/unittests/DebugInfo/PDB/
H A DMappedBlockStreamTest.cpp64 Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex,
286 static uint8_t Expected[] = {'T', 'E', 'S', 'N', 'I', local
296 EXPECT_EQ(ArrayRef<uint8_t>(Data), ArrayRef<uint8_t>(Expected));
/external/llvm/include/llvm/Support/
H A DError.h144 // Expected<T> needs to be able to steal the payload when constructed from an
146 template <typename T> class Expected;
600 template <class T> class Expected { class in namespace:llvm
601 template <class OtherT> friend class Expected;
618 /// Create an Expected<T> error value from the given Error.
619 Expected(Error Err) function in class:llvm::Expected
626 assert(Err && "Cannot create Expected<T> from Error success value.");
630 /// Create an Expected<T> success value from the given OtherT value, which
633 Expected(OtherT &&Val, function in class:llvm::Expected
645 /// Move construct an Expected<
646 Expected(Expected &&Other) { moveConstruct(std::move(Other)); } function in class:llvm::Expected
651 Expected(Expected<OtherT> &&Other, function in class:llvm::Expected
660 explicit Expected( function in class:llvm::Expected
[all...]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
H A DError.h161 // Expected<T> needs to be able to steal the payload when constructed from an
163 template <typename T> friend class Expected;
295 /// the type system. This allows to catch invalid conversion to Expected<T> at
631 template <class T> class LLVM_NODISCARD Expected { class in namespace:llvm
632 template <class OtherT> friend class Expected;
649 /// Create an Expected<T> error value from the given Error.
650 Expected(Error Err) function in class:llvm::Expected
653 // Expected is unchecked upon construction in Debug builds.
657 assert(Err && "Cannot create Expected<T> from Error success value.");
662 /// Expected<
669 Expected(OtherT &&Val, function in class:llvm::Expected
682 Expected(Expected &&Other) { moveConstruct(std::move(Other)); } function in class:llvm::Expected
687 Expected(Expected<OtherT> &&Other, function in class:llvm::Expected
696 explicit Expected( function in class:llvm::Expected
[all...]
/external/clang/include/clang/Analysis/Analyses/
H A DThreadSafety.h99 /// \param Expected -- the kind of lock expected.
103 LockKind Expected, LockKind Received,
102 handleIncorrectUnlockKind(StringRef Kind, Name LockName, LockKind Expected, LockKind Received, SourceLocation Loc) argument
/external/clang/unittests/Basic/
H A DVirtualFileSystemTest.cpp377 SmallVector<StringRef, 4> Expected(ExpectedOut.begin(), ExpectedOut.end());
386 std::sort(Expected.begin(), Expected.end());
387 EXPECT_EQ(InputToCheck.size(), Expected.size());
389 unsigned LastElt = std::min(InputToCheck.size(), Expected.size());
391 EXPECT_EQ(StringRef(InputToCheck[Idx]), Expected[Idx]); local
/external/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp228 const CXXRecordDecl *Expected = Ty->getPointeeCXXRecordDecl(); local
229 if (!Expected)
230 Expected = Ty->getAsCXXRecordDecl();
232 return Expected->getCanonicalDecl() == RD->getCanonicalDecl();
/external/llvm/lib/ProfileData/
H A DSampleProfReader.cpp175 "Expected 'mangled_name:NUM:NUM', found " + *LineIt);
194 "Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found " +
538 std::error_code SampleProfileReaderGCC::readSectionTag(uint32_t Expected) { argument
543 if (Tag != Expected)
/external/deqp/modules/internal/
H A DditFrameworkTests.cpp54 enum Expected { NO_MATCH, MATCH_GROUP, MATCH_CASE, EXPECTED_LAST }; enum in struct:dit::__anon4978::MatchCase
57 Expected expected;
60 const char* getMatchCaseExpectedDesc (MatchCase::Expected expected)
/external/llvm/unittests/ProfileData/
H A DInstrProfTest.cpp29 static ::testing::AssertionResult ErrorEquals(instrprof_error Expected, argument
37 if (Expected == Found)
98 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("foo", 0x1234);
239 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234);
270 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234);
382 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234);
435 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234);
517 Expected<InstrProfRecord> R = Reader->getInstrProfRecord("caller", 0x1234);
605 Expected<InstrProfRecord> ReadRecord1 =
610 Expected<InstrProfRecor
[all...]
/external/spirv-llvm/lib/SPIRV/
H A DOCL20ToSPIRV.cpp582 Value *Expected = nullptr; local
586 Expected = Args[1]; // temporary save second argument.
597 Instruction* Store = new StoreInst(NCI, Expected, NCI->getNextNode());
804 // For atomic_compare_exchange the swap above puts Comparator/Expected

Completed in 1321 milliseconds

12