/external/llvm-project/llvm/unittests/MC/ |
D | StringTableBuilderTest.cpp | 28 std::string Expected; in TEST() local 29 Expected += '\x00'; in TEST() 30 Expected += "foobar"; in TEST() 31 Expected += '\x00'; in TEST() 32 Expected += "foo"; in TEST() 33 Expected += '\x00'; in TEST() 39 EXPECT_EQ(Expected, Data); in TEST() 59 std::string Expected; in TEST() local 63 Expected.append((const char*)&ExpectedSize, 4); in TEST() 64 Expected += "pygmy hippopotamus"; in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/unittests/clang-change-namespace/ |
D | ChangeNamespaceTests.cpp | 78 std::string Expected = "namespace na {\n" in TEST_F() local 83 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 92 std::string Expected = "\n\n" in TEST_F() local 98 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 108 std::string Expected = "namespace na {\n" in TEST_F() local 115 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 127 std::string Expected = "namespace na {\n" in TEST_F() local 136 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() 148 std::string Expected = "\n\n" in TEST_F() local 156 EXPECT_EQ(format(Expected), runChangeNamespaceOnCode(Code)); in TEST_F() [all …]
|
/external/llvm-project/clang-tools-extra/unittests/clang-doc/ |
D | ClangDocTest.cpp | 37 void CheckCommentInfo(CommentInfo &Expected, CommentInfo &Actual) { in CheckCommentInfo() argument 38 EXPECT_EQ(Expected.Kind, Actual.Kind); in CheckCommentInfo() 39 EXPECT_EQ(Expected.Text, Actual.Text); in CheckCommentInfo() 40 EXPECT_EQ(Expected.Name, Actual.Name); in CheckCommentInfo() 41 EXPECT_EQ(Expected.Direction, Actual.Direction); in CheckCommentInfo() 42 EXPECT_EQ(Expected.ParamName, Actual.ParamName); in CheckCommentInfo() 43 EXPECT_EQ(Expected.CloseName, Actual.CloseName); in CheckCommentInfo() 44 EXPECT_EQ(Expected.SelfClosing, Actual.SelfClosing); in CheckCommentInfo() 45 EXPECT_EQ(Expected.Explicit, Actual.Explicit); in CheckCommentInfo() 47 ASSERT_EQ(Expected.AttrKeys.size(), Actual.AttrKeys.size()); in CheckCommentInfo() [all …]
|
D | MergeTest.cpp | 49 auto Expected = std::make_unique<NamespaceInfo>(); in TEST() local 50 Expected->Name = "Namespace"; in TEST() 51 Expected->Namespace.emplace_back(EmptySID, "A", InfoType::IT_namespace); in TEST() 53 Expected->ChildNamespaces.emplace_back(NonEmptySID, "ChildNamespace", in TEST() 55 Expected->ChildRecords.emplace_back(NonEmptySID, "ChildStruct", in TEST() 57 Expected->ChildNamespaces.emplace_back(EmptySID, "OtherChildNamespace", in TEST() 59 Expected->ChildRecords.emplace_back(EmptySID, "OtherChildStruct", in TEST() 61 Expected->ChildFunctions.emplace_back(); in TEST() 62 Expected->ChildFunctions.back().Name = "OneFunction"; in TEST() 63 Expected->ChildFunctions.back().USR = NonEmptySID; in TEST() [all …]
|
D | ClangDocTest.h | 33 void CheckReference(Reference &Expected, Reference &Actual); 34 void CheckTypeInfo(TypeInfo *Expected, TypeInfo *Actual); 35 void CheckFieldTypeInfo(FieldTypeInfo *Expected, FieldTypeInfo *Actual); 36 void CheckMemberTypeInfo(MemberTypeInfo *Expected, MemberTypeInfo *Actual); 40 void CheckBaseInfo(Info *Expected, Info *Actual); 41 void CheckSymbolInfo(SymbolInfo *Expected, SymbolInfo *Actual); 42 void CheckFunctionInfo(FunctionInfo *Expected, FunctionInfo *Actual); 43 void CheckEnumInfo(EnumInfo *Expected, EnumInfo *Actual); 44 void CheckNamespaceInfo(NamespaceInfo *Expected, NamespaceInfo *Actual); 45 void CheckRecordInfo(RecordInfo *Expected, RecordInfo *Actual); [all …]
|
/external/rust/crates/ahash/smhasher/ |
D | fallbackOutput.txt | 86 Testing collisions ( 64-bit) - Expected 0.0, actual 0 (0.00x) 87 Testing collisions (high 32-bit) - Expected 0.6, actual 0 (0.00x) 89 Testing collisions (high 12-bit) - Expected 50643.0, actual 46547 (0.92x) 90 Testing collisions (high 8-bit) - Expected 50643.0, actual 50387 (0.99x) (-256) 91 Testing collisions (low 32-bit) - Expected 0.6, actual 1 (1.67x) (1) 93 Testing collisions (low 12-bit) - Expected 50643.0, actual 46547 (0.92x) 94 Testing collisions (low 8-bit) - Expected 50643.0, actual 50387 (0.99x) (-256) 98 Testing collisions ( 64-bit) - Expected 0.0, actual 0 (0.00x) 99 Testing collisions (high 32-bit) - Expected 376.5, actual 180 (0.48x) 101 Testing collisions (high 12-bit) - Expected 1271626.0, actual 1267530 (1.00x) (-4096) [all …]
|
D | ahashOutput.txt | 86 Testing collisions ( 64-bit) - Expected 0.0, actual 0 (0.00x) 87 Testing collisions (high 32-bit) - Expected 0.3, actual 1 (3.35x) (1) ! 89 Testing collisions (high 12-bit) - Expected 46547.0, actual 46547 (1.00x) 90 Testing collisions (high 8-bit) - Expected 50387.0, actual 50387 (1.00x) 91 Testing collisions (low 32-bit) - Expected 0.3, actual 0 (0.00x) 93 Testing collisions (low 12-bit) - Expected 46547.0, actual 46547 (1.00x) 94 Testing collisions (low 8-bit) - Expected 50387.0, actual 50387 (1.00x) 98 Testing collisions ( 64-bit) - Expected 0.0, actual 0 (0.00x) 99 Testing collisions (high 32-bit) - Expected 188.2, actual 174 (0.92x) 101 Testing collisions (high 12-bit) - Expected 1267530.0, actual 1267530 (1.00x) [all …]
|
/external/llvm-project/clang/unittests/Tooling/ |
D | HeaderIncludesTest.cpp | 49 std::string Expected = "#include \"a.h\"\n" in TEST_F() local 51 EXPECT_EQ(Expected, insert(Code, "\"a.h\"")); in TEST_F() 60 std::string Expected = "#ifndef A_H\n" in TEST_F() local 67 EXPECT_EQ(Expected, insert(Code, "\"b.h\"")); in TEST_F() 80 std::string Expected = "#ifndef A_H\n" in TEST_F() local 91 EXPECT_EQ(Expected, insert(Code, "\"a.h\"")); in TEST_F() 98 std::string Expected = "#include \"fix.h\"\n" in TEST_F() local 104 EXPECT_EQ(Expected, insert(Code, "<a>")); in TEST_F() 107 EXPECT_EQ(Expected, insert(Code, "<a>")); in TEST_F() 110 EXPECT_EQ(Expected, insert(Code, "<a>")); in TEST_F() [all …]
|
D | RefactoringCallbacksTest.cpp | 21 void expectRewritten(const std::string &Code, const std::string &Expected, in expectRewritten() argument 34 EXPECT_EQ(Expected, Context.getRewrittenText(ID)); in expectRewritten() 39 std::string Expected = "void f() { ; }"; in TEST() local 41 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST() 46 std::string Expected = "#define A void f() { ; }\nA"; in TEST() local 48 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST() 53 std::string Expected = "#define A void f() { int i = 1; }"; in TEST() local 55 expectRewritten(Code, Expected, declStmt().bind("id"), Callback); in TEST() 60 std::string Expected = "void f() { int i = 2; }"; in TEST() local 62 expectRewritten(Code, Expected, expr(integerLiteral()).bind("id"), Callback); in TEST() [all …]
|
D | TransformerTest.cpp | 79 static void compareSnippets(StringRef Expected, in compareSnippets() argument 81 ASSERT_TRUE(MaybeActual) << "Rewrite failed. Expecting: " << Expected; in compareSnippets() 87 EXPECT_EQ(format(Expected), format(Actual)); in compareSnippets() 124 return [this](Expected<AtomicChange> C) { in consumer() 137 void testRule(R Rule, StringRef Input, StringRef Expected) { in testRule() argument 141 compareSnippets(Expected, rewrite(Input)); in testRule() 183 std::string Expected = "int f(string s) { return REPLACED; }"; in TEST_F() local 184 testRule(ruleStrlenSize(), Input, Expected); in TEST_F() 208 std::string Expected = R"cc( in TEST_F() local 214 testRule(std::move(Rule), Input, Expected); in TEST_F() [all …]
|
/external/llvm-project/clang/unittests/Format/ |
D | CleanupTest.cpp | 55 std::string Expected = "\n\n\n\n\nnamespace C {\n" in TEST_F() local 58 EXPECT_EQ(Expected, cleanupAroundOffsets({28, 91, 132}, Code)); in TEST_F() 69 std::string Expected = "namespace A {\n" in TEST_F() local 74 EXPECT_EQ(Expected, cleanup(Code, Ranges)); in TEST_F() 82 std::string Expected = "namespace A {\n\n" in TEST_F() local 85 EXPECT_EQ(Expected, cleanupAroundOffsets({14}, Code)); in TEST_F() 96 std::string Expected = "\n\n\n\n\n\n"; in TEST_F() local 99 EXPECT_EQ(Expected, Result); in TEST_F() 113 std::string Expected = "\n\n\n\n\n\n\n\n\n\n"; in TEST_F() local 118 EXPECT_EQ(Expected, Result); in TEST_F() [all …]
|
/external/clang/unittests/Format/ |
D | CleanupTest.cpp | 43 std::string Expected = "\n\n\n\n\nnamespace C {\n" in TEST_F() local 51 EXPECT_EQ(Expected, Result); in TEST_F() 62 std::string Expected = "namespace A {\n" in TEST_F() local 68 EXPECT_EQ(Expected, Result); in TEST_F() 76 std::string Expected = "namespace A {\n\n" in TEST_F() local 81 EXPECT_EQ(Expected, Result); in TEST_F() 92 std::string Expected = "\n\n\n\n\n\n"; in TEST_F() local 95 EXPECT_EQ(Expected, Result); in TEST_F() 109 std::string Expected = "\n\n\n\n\n\n\n\n\n\n"; in TEST_F() local 114 EXPECT_EQ(Expected, Result); in TEST_F() [all …]
|
/external/pigweed/pw_hdlc/py/ |
D | decode_test.py | 35 class Expected(NamedTuple): class 62 Expectation = Union[Expected, ExpectedRaw] 68 Expected.error(FrameStatus.FRAMING_ERROR), 69 Expected.error(FrameStatus.FRAMING_ERROR), 75 (_encode(0, 0, b''), [Expected(0, b'\0', b'')]), 76 (_encode(55, 0x99, b''), [Expected(55, b'\x99', b'')]), 77 (_encode(55, 0x99, b'') * 3, [Expected(55, b'\x99', b'')] * 3), 79 (_encode(0, 0, b'\0'), [Expected(0, b'\0', b'\0')]), 80 (_encode(123, 0, b'A'), [Expected(123, b'\0', b'A')]), 82 (_encode(0, 0, b'Hello, world!'), [Expected(0, b'\0', b'Hello, world!')]), [all …]
|
/external/llvm/unittests/MC/ |
D | StringTableBuilderTest.cpp | 28 std::string Expected; in TEST() local 29 Expected += '\x00'; in TEST() 30 Expected += "foobar"; in TEST() 31 Expected += '\x00'; in TEST() 32 Expected += "foo"; in TEST() 33 Expected += '\x00'; in TEST() 35 EXPECT_EQ(Expected, B.data()); in TEST() 55 std::string Expected; in TEST() local 59 Expected.append((const char*)&ExpectedSize, 4); in TEST() 60 Expected += "pygmy hippopotamus"; in TEST() [all …]
|
/external/llvm-project/clang/unittests/Rename/ |
D | RenameFunctionTest.cpp | 45 std::string Expected = R"( in TEST_F() local 52 CompareSnippets(Expected, After); in TEST_F() 65 std::string Expected = R"( in TEST_F() local 75 CompareSnippets(Expected, After); in TEST_F() 83 std::string Expected = R"( in TEST_F() local 88 CompareSnippets(Expected, After); in TEST_F() 100 std::string Expected = R"( in TEST_F() local 109 CompareSnippets(Expected, After); in TEST_F() 136 std::string Expected = R"( in TEST_F() local 142 CompareSnippets(Expected, After); in TEST_F() [all …]
|
D | RenameClassTest.cpp | 423 std::string Expected = R"( in TEST_F() local 440 CompareSnippets(Expected, After); in TEST_F() 456 std::string Expected = R"( in TEST_F() local 469 CompareSnippets(Expected, After); in TEST_F() 487 std::string Expected = R"( in TEST_F() local 502 CompareSnippets(Expected, After); in TEST_F() 524 std::string Expected = R"( in TEST_F() local 543 CompareSnippets(Expected, After); in TEST_F() 571 std::string Expected = R"( in TEST_F() local 594 CompareSnippets(Expected, After); in TEST_F() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/unittests/tweaks/ |
D | DefineInlineTests.cpp | 226 auto Expected = R"cpp( in TEST_F() local 254 EXPECT_EQ(apply(Test), Expected); in TEST_F() 269 auto Expected = R"cpp( in TEST_F() local 280 EXPECT_EQ(apply(Test), Expected); in TEST_F() 299 auto Expected = R"cpp( in TEST_F() local 314 EXPECT_EQ(apply(Test), Expected); in TEST_F() 335 auto Expected = R"cpp( in TEST_F() local 352 EXPECT_EQ(apply(Test), Expected); in TEST_F() 364 auto Expected = R"cpp( in TEST_F() local 372 EXPECT_EQ(apply(Test), Expected); in TEST_F() [all …]
|
/external/llvm-project/llvm/tools/llvm-rc/ |
D | ResourceScriptParser.h | 35 using ParseType = Expected<std::unique_ptr<RCResource>>; 36 using ParseOptionType = Expected<std::unique_ptr<OptionalStmt>>; 41 ParserError(const Twine &Expected, const LocIter CurLoc, const LocIter End); 83 Expected<RCInt> readInt(); // Parse an integer. 84 Expected<StringRef> readString(); // Parse a string. 85 Expected<StringRef> readIdentifier(); // Parse an identifier. 86 Expected<StringRef> readFilename(); // Parse a filename. 87 Expected<IntOrString> readIntOrString(); // Parse an integer or a string. 88 Expected<IntOrString> readTypeOrName(); // Parse an integer or an identifier. 91 Expected<IntWithNotMask> parseIntExpr1(); [all …]
|
/external/clang/unittests/Tooling/ |
D | RefactoringCallbacksTest.cpp | 23 const std::string &Expected, in expectRewritten() argument 36 EXPECT_EQ(Expected, Context.getRewrittenText(ID)); in expectRewritten() 41 std::string Expected = "void f() { ; }"; in TEST() local 43 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST() 48 std::string Expected = "#define A void f() { ; }\nA"; in TEST() local 50 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST() 55 std::string Expected = "#define A void f() { int i = 1; }"; in TEST() local 57 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST() 62 std::string Expected = "void f() { int i = 2; }"; in TEST() local 64 expectRewritten(Code, Expected, id("id", expr(integerLiteral())), in TEST() [all …]
|
/external/llvm-project/llvm/include/llvm/Object/ |
D | Archive.h | 46 Expected<StringRef> getRawName() const; 49 Expected<StringRef> getName(uint64_t Size) const; 51 Expected<uint64_t> getSize() const; 53 Expected<sys::fs::perms> getAccessMode() const; 54 Expected<sys::TimePoint<std::chrono::seconds>> getLastModified() const; 61 Expected<unsigned> getUID() const; 62 Expected<unsigned> getGID() const; 98 Expected<bool> isThinMember() const; 110 Expected<Child> getNext() const; 112 Expected<StringRef> getName() const; [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
D | Archive.h | 46 Expected<StringRef> getRawName() const; 49 Expected<StringRef> getName(uint64_t Size) const; 51 Expected<uint64_t> getSize() const; 53 Expected<sys::fs::perms> getAccessMode() const; 54 Expected<sys::TimePoint<std::chrono::seconds>> getLastModified() const; 61 Expected<unsigned> getUID() const; 62 Expected<unsigned> getGID() const; 98 Expected<bool> isThinMember() const; 110 Expected<Child> getNext() const; 112 Expected<StringRef> getName() const; [all …]
|
/external/llvm-project/clang-tools-extra/clangd/index/remote/marshalling/ |
D | Marshalling.h | 41 llvm::Expected<clangd::Symbol> fromProtobuf(const Symbol &Message); 42 llvm::Expected<clangd::Ref> fromProtobuf(const Ref &Message); 43 llvm::Expected<std::pair<clangd::SymbolID, clangd::Symbol>> 46 llvm::Expected<clangd::LookupRequest> 48 llvm::Expected<clangd::FuzzyFindRequest> 50 llvm::Expected<clangd::RefsRequest> fromProtobuf(const RefsRequest *Message); 51 llvm::Expected<clangd::RelationsRequest> 63 llvm::Expected<Symbol> toProtobuf(const clangd::Symbol &From); 64 llvm::Expected<Ref> toProtobuf(const clangd::Ref &From); 65 llvm::Expected<Relation> toProtobuf(const clangd::SymbolID &Subject, [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Remarks/ |
D | YAMLRemarkParser.cpp | 61 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic() 71 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion() 88 static Expected<uint64_t> parseStrTabSize(StringRef &Buf) { in parseStrTabSize() 99 static Expected<ParsedStringTable> parseStrTab(StringRef &Buf, in parseStrTab() 108 return Expected<ParsedStringTable>(std::move(Result)); in parseStrTab() 111 Expected<std::unique_ptr<YAMLRemarkParser>> 116 Expected<bool> isMeta = parseMagic(Buf); in createYAMLParserFromMeta() 122 Expected<uint64_t> Version = parseVersion(Buf); in createYAMLParserFromMeta() 126 Expected<uint64_t> StrTabSize = parseStrTabSize(Buf); in createYAMLParserFromMeta() 135 Expected<ParsedStringTable> MaybeStrTab = parseStrTab(Buf, *StrTabSize); in createYAMLParserFromMeta() [all …]
|
/external/llvm-project/llvm/lib/Remarks/ |
D | YAMLRemarkParser.cpp | 60 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic() 70 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion() 87 static Expected<uint64_t> parseStrTabSize(StringRef &Buf) { in parseStrTabSize() 98 static Expected<ParsedStringTable> parseStrTab(StringRef &Buf, in parseStrTab() 107 return Expected<ParsedStringTable>(std::move(Result)); in parseStrTab() 110 Expected<std::unique_ptr<YAMLRemarkParser>> 115 Expected<bool> isMeta = parseMagic(Buf); in createYAMLParserFromMeta() 121 Expected<uint64_t> Version = parseVersion(Buf); in createYAMLParserFromMeta() 125 Expected<uint64_t> StrTabSize = parseStrTabSize(Buf); in createYAMLParserFromMeta() 134 Expected<ParsedStringTable> MaybeStrTab = parseStrTab(Buf, *StrTabSize); in createYAMLParserFromMeta() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitcode/ |
D | BitcodeReader.h | 41 ErrorOr<T> expectedToErrorOrAndEmitErrors(LLVMContext &Ctx, Expected<T> Val) { in expectedToErrorOrAndEmitErrors() 77 friend Expected<BitcodeFileContents> 80 Expected<std::unique_ptr<Module>> getModuleImpl(LLVMContext &Context, 98 Expected<std::unique_ptr<Module>> getLazyModule(LLVMContext &Context, 103 Expected<std::unique_ptr<Module>> parseModule(LLVMContext &Context); 107 Expected<BitcodeLTOInfo> getLTOInfo(); 110 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary(); 128 Expected<BitcodeFileContents> getBitcodeFileContents(MemoryBufferRef Buffer); 131 Expected<std::vector<BitcodeModule>> 138 Expected<std::unique_ptr<Module>> [all …]
|