/external/llvm/lib/Fuzzer/test/ |
SimpleDictionaryTest.cpp | 17 const char *Expected = "ElvisPresley"; 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)) {
|
/external/llvm/unittests/Bitcode/ |
BitstreamWriterTest.cpp | 32 SmallString<64> Expected; 34 BitstreamWriter W(Expected); 42 EXPECT_EQ(StringRef(Expected), Buffer);
|
/external/llvm/unittests/MC/ |
StringTableBuilderTest.cpp | 28 std::string Expected; 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; 59 Expected.append((const char*)&ExpectedSize, 4); 60 Expected += "pygmy hippopotamus" [all...] |
/external/clang/unittests/Tooling/ |
RefactoringCallbacksTest.cpp | 23 const std::string &Expected, 36 EXPECT_EQ(Expected, Context.getRewrittenText(ID)); 41 std::string Expected = "void f() { ; }"; 43 expectRewritten(Code, Expected, id("id", declStmt()), Callback); 48 std::string Expected = "#define A void f() { ; }\nA"; 50 expectRewritten(Code, Expected, id("id", declStmt()), Callback); 55 std::string Expected = "#define A void f() { int i = 1; }"; 57 expectRewritten(Code, Expected, id("id", declStmt()), Callback); 62 std::string Expected = "void f() { int i = 2; }"; 64 expectRewritten(Code, Expected, id("id", expr(integerLiteral())) [all...] |
CompilationDatabaseTest.cpp | 27 << "Expected an error because of: " << Explanation.str(); 547 std::vector<std::string> Expected; 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; 567 Expected.push_back("clang-tool"); 568 Expected.push_back("source") [all...] |
/external/llvm/unittests/ADT/ |
SparseSetTest.cpp | 196 unsigned Expected = UpperBound; 198 ASSERT_TRUE(--Expected == Set.pop_back_val());
|
/external/clang/unittests/AST/ |
DeclPrinterTest.cpp | 95 << "Expected \"" << ExpectedPrinted.str() << "\", " 685 SmallString<128> Expected; 686 Expected.append("void operator"); 687 Expected.append(OperatorNames[i]); 688 Expected.append("(Z z)"); 694 Expected)); 709 SmallString<128> Expected; 710 Expected.append("void operator"); 711 Expected.append(OperatorNames[i]); 712 Expected.append("()") [all...] |
/external/llvm/unittests/Support/ |
ConvertUTFTest.cpp | 27 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}; 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, Result) [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Universal/Network/Mtftp4Dxe/ |
Mtftp4Wrq.c | 125 If the ACK number matches the expected block number, and there are more
147 INTN Expected;
152 Expected = Mtftp4GetNextBlockNum (&Instance->Blocks);
154 ASSERT (Expected >= 0);
160 if (Expected != AckNum) {
171 Expected = Mtftp4GetNextBlockNum (&Instance->Blocks);
173 if (Expected < 0) {
196 return Mtftp4WrqSendBlock (Instance, (UINT16) Expected);
268 INTN Expected;
275 Expected = Mtftp4GetNextBlockNum (&Instance->Blocks); [all...] |
Mtftp4Rrq.c | 257 INTN Expected;
261 Expected = Mtftp4GetNextBlockNum (&Instance->Blocks);
263 ASSERT (Expected >= 0);
270 if (Instance->Master && (Expected != BlockNum)) {
295 Expected = Mtftp4GetNextBlockNum (&Instance->Blocks);
297 if (Instance->Master || (Expected < 0)) {
298 if (Expected < 0) {
309 BlockNum = (UINT16) (Expected - 1);
489 INTN Expected;
498 Expected = Mtftp4GetNextBlockNum (&Instance->Blocks); [all...] |
/device/linaro/bootloader/edk2/NetworkPkg/Mtftp6Dxe/ |
Mtftp6Wrq.c | 130 expected block number, with more data pending, send the next
155 INTN Expected;
160 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList);
162 ASSERT (Expected >= 0);
168 if (Expected != AckNum) {
179 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList);
181 if (Expected < 0) {
219 return Mtftp6WrqSendBlock (Instance, (UINT16) Expected);
295 INTN Expected;
303 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList); [all...] |
Mtftp6Rrq.c | 224 INTN Expected;
228 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList);
230 ASSERT (Expected >= 0);
237 if (Instance->IsMaster && (Expected != BlockNum)) {
268 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList);
270 if (Instance->IsMaster || Expected < 0) {
271 if (Expected < 0) {
282 BlockNum = (UINT16) (Expected - 1);
456 INTN Expected;
466 Expected = Mtftp6GetNextBlockNum (&Instance->BlkList); [all...] |
/external/clang/unittests/Format/ |
CleanupTest.cpp | 43 std::string Expected = "\n\n\n\n\nnamespace C {\n" 51 EXPECT_EQ(Expected, Result); 62 std::string Expected = "namespace A {\n" 68 EXPECT_EQ(Expected, Result); 76 std::string Expected = "namespace A {\n\n" 81 EXPECT_EQ(Expected, Result); 92 std::string Expected = "\n\n\n\n\n\n"; 95 EXPECT_EQ(Expected, Result); 109 std::string Expected = "\n\n\n\n\n\n\n\n\n\n"; 114 EXPECT_EQ(Expected, Result) [all...] |
/external/llvm/unittests/DebugInfo/PDB/ |
MappedBlockStreamTest.cpp | 64 Expected<ArrayRef<uint8_t>> getBlockData(uint32_t BlockIndex, 286 static uint8_t Expected[] = {'T', 'E', 'S', 'N', 'I', 296 EXPECT_EQ(ArrayRef<uint8_t>(Data), ArrayRef<uint8_t>(Expected));
|
/prebuilts/clang/host/darwin-x86/clang-4579689/include/llvm/CodeGen/GlobalISel/ |
InstructionSelectorImpl.h | 105 "Expected to store MIs in order"); 128 int64_t Expected = MatchTable[CurrentIdx++]; 132 << "], ExpectedOpcode=" << Expected << ") // Got=" << Opcode 135 if (Opcode != Expected) { 144 int64_t Expected = MatchTable[CurrentIdx++]; 146 << "], Expected=" << Expected << ")\n"); 148 if (State.MIs[InsnID]->getNumOperands() != Expected) { 161 "Expected G_CONSTANT"); 162 assert(Predicate > GIPFP_I64_Invalid && "Expected a valid predicate") [all...] |
/prebuilts/clang/host/darwin-x86/clang-4630689/include/llvm/CodeGen/GlobalISel/ |
InstructionSelectorImpl.h | 105 "Expected to store MIs in order"); 128 int64_t Expected = MatchTable[CurrentIdx++]; 132 << "], ExpectedOpcode=" << Expected << ") // Got=" << Opcode 135 if (Opcode != Expected) { 144 int64_t Expected = MatchTable[CurrentIdx++]; 146 << "], Expected=" << Expected << ")\n"); 148 if (State.MIs[InsnID]->getNumOperands() != Expected) { 161 "Expected G_CONSTANT"); 162 assert(Predicate > GIPFP_I64_Invalid && "Expected a valid predicate") [all...] |
/prebuilts/clang/host/darwin-x86/clang-4639204/include/llvm/CodeGen/GlobalISel/ |
InstructionSelectorImpl.h | 105 "Expected to store MIs in order"); 128 int64_t Expected = MatchTable[CurrentIdx++]; 132 << "], ExpectedOpcode=" << Expected << ") // Got=" << Opcode 135 if (Opcode != Expected) { 144 int64_t Expected = MatchTable[CurrentIdx++]; 146 << "], Expected=" << Expected << ")\n"); 148 if (State.MIs[InsnID]->getNumOperands() != Expected) { 161 "Expected G_CONSTANT"); 162 assert(Predicate > GIPFP_I64_Invalid && "Expected a valid predicate") [all...] |
/prebuilts/clang/host/darwin-x86/clang-4691093/include/llvm/CodeGen/GlobalISel/ |
InstructionSelectorImpl.h | 105 "Expected to store MIs in order"); 128 int64_t Expected = MatchTable[CurrentIdx++]; 132 << "], ExpectedOpcode=" << Expected << ") // Got=" << Opcode 135 if (Opcode != Expected) { 144 int64_t Expected = MatchTable[CurrentIdx++]; 146 << "], Expected=" << Expected << ")\n"); 148 if (State.MIs[InsnID]->getNumOperands() != Expected) { 161 "Expected G_CONSTANT"); 162 assert(Predicate > GIPFP_I64_Invalid && "Expected a valid predicate") [all...] |
/prebuilts/clang/host/linux-x86/clang-4579689/include/llvm/CodeGen/GlobalISel/ |
InstructionSelectorImpl.h | 105 "Expected to store MIs in order"); 128 int64_t Expected = MatchTable[CurrentIdx++]; 132 << "], ExpectedOpcode=" << Expected << ") // Got=" << Opcode 135 if (Opcode != Expected) { 144 int64_t Expected = MatchTable[CurrentIdx++]; 146 << "], Expected=" << Expected << ")\n"); 148 if (State.MIs[InsnID]->getNumOperands() != Expected) { 161 "Expected G_CONSTANT"); 162 assert(Predicate > GIPFP_I64_Invalid && "Expected a valid predicate") [all...] |
/prebuilts/clang/host/linux-x86/clang-4630689/include/llvm/CodeGen/GlobalISel/ |
InstructionSelectorImpl.h | 105 "Expected to store MIs in order"); 128 int64_t Expected = MatchTable[CurrentIdx++]; 132 << "], ExpectedOpcode=" << Expected << ") // Got=" << Opcode 135 if (Opcode != Expected) { 144 int64_t Expected = MatchTable[CurrentIdx++]; 146 << "], Expected=" << Expected << ")\n"); 148 if (State.MIs[InsnID]->getNumOperands() != Expected) { 161 "Expected G_CONSTANT"); 162 assert(Predicate > GIPFP_I64_Invalid && "Expected a valid predicate") [all...] |
/prebuilts/clang/host/linux-x86/clang-4639204/include/llvm/CodeGen/GlobalISel/ |
InstructionSelectorImpl.h | 105 "Expected to store MIs in order"); 128 int64_t Expected = MatchTable[CurrentIdx++]; 132 << "], ExpectedOpcode=" << Expected << ") // Got=" << Opcode 135 if (Opcode != Expected) { 144 int64_t Expected = MatchTable[CurrentIdx++]; 146 << "], Expected=" << Expected << ")\n"); 148 if (State.MIs[InsnID]->getNumOperands() != Expected) { 161 "Expected G_CONSTANT"); 162 assert(Predicate > GIPFP_I64_Invalid && "Expected a valid predicate") [all...] |
/prebuilts/clang/host/linux-x86/clang-4691093/include/llvm/CodeGen/GlobalISel/ |
InstructionSelectorImpl.h | 105 "Expected to store MIs in order"); 128 int64_t Expected = MatchTable[CurrentIdx++]; 132 << "], ExpectedOpcode=" << Expected << ") // Got=" << Opcode 135 if (Opcode != Expected) { 144 int64_t Expected = MatchTable[CurrentIdx++]; 146 << "], Expected=" << Expected << ")\n"); 148 if (State.MIs[InsnID]->getNumOperands() != Expected) { 161 "Expected G_CONSTANT"); 162 assert(Predicate > GIPFP_I64_Invalid && "Expected a valid predicate") [all...] |
/external/llvm/include/llvm/Support/ |
Error.h | 144 // Expected<T> needs to be able to steal the payload when constructed from an 146 template <typename T> class Expected; 553 /// only where an error can be considered a reasonable and expected return 600 template <class T> class Expected { 601 template <class OtherT> friend class Expected; 618 /// Create an Expected<T> error value from the given Error. 619 Expected(Error Err) 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 [all...] |
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
Error.h | 161 // 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 573 /// only where an error can be considered a reasonable and expected return 631 template <class T> class LLVM_NODISCARD Expected { 632 template <class OtherT> friend class Expected; 649 /// Create an Expected<T> error value from the given Error. 650 Expected(Error Err) 653 // Expected is unchecked upon construction in Debug builds. 657 assert(Err && "Cannot create Expected<T> from Error success value.") [all...] |
/prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/Support/ |
Error.h | 161 // 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 573 /// only where an error can be considered a reasonable and expected return 631 template <class T> class LLVM_NODISCARD Expected { 632 template <class OtherT> friend class Expected; 649 /// Create an Expected<T> error value from the given Error. 650 Expected(Error Err) 653 // Expected is unchecked upon construction in Debug builds. 657 assert(Err && "Cannot create Expected<T> from Error success value.") [all...] |