| /llvm-project-15.0.7/llvm/unittests/MC/ |
| H A D | StringTableBuilderTest.cpp | 28 std::string Expected; in TEST() local 29 Expected += '\x00'; in TEST() 31 Expected += '\x00'; in TEST() 32 Expected += "foo"; in TEST() 33 Expected += '\x00'; in TEST() 89 Expected += "foo"; in TEST() 91 Expected += "bar"; in TEST() 152 Expected += "f"; in TEST() 182 Expected += ' '; in TEST() 214 Expected += ' '; in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/clang-change-namespace/ |
| H A D | ChangeNamespaceTests.cpp | 92 std::string Expected = "\n\n" in TEST_F() local 148 std::string Expected = "\n\n" in TEST_F() local 583 std::string Expected = in TEST_F() local 626 std::string Expected = in TEST_F() local 664 std::string Expected = in TEST_F() local 704 std::string Expected = in TEST_F() local 946 std::string Expected = in TEST_F() local 1491 std::string Expected = in TEST_F() local 1520 std::string Expected = in TEST_F() local 1549 std::string Expected = in TEST_F() local [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | HeaderIncludesTest.cpp | 69 std::string Expected = "#ifndef A_H\n" in TEST_F() local 89 std::string Expected = "#ifndef A_H\n" in TEST_F() local 245 std::string Expected = "// comment\n" in TEST_F() local 259 std::string Expected = "// comment\n" in TEST_F() local 276 std::string Expected = "/*\n" in TEST_F() local 295 std::string Expected = "/*\n" in TEST_F() local 311 std::string Expected = "// comment \n" in TEST_F() local 324 std::string Expected = "// comment \n" in TEST_F() local 337 std::string Expected = "// comment \n" in TEST_F() local 349 std::string Expected = "// comment \n" in TEST_F() local [all …]
|
| H A D | RefactoringCallbacksTest.cpp | 34 EXPECT_EQ(Expected, Context.getRewrittenText(ID)); in expectRewritten() 39 std::string Expected = "void f() { ; }"; in TEST() local 60 std::string Expected = "void f() { int i = 2; }"; in TEST() local 70 Code, Expected, in TEST() 81 expectRewritten(Code, Expected, in TEST() 90 std::string Expected = "void f() { }"; in TEST() local 93 Code, Expected, in TEST() 99 std::string Expected = "void f() { FOO }"; in TEST() local 110 expectRewritten(Code, Expected, in TEST() 121 expectRewritten(Code, Expected, in TEST() [all …]
|
| H A D | TransformerTest.cpp | 528 std::string Expected = in TEST_F() local 554 std::string Expected = in TEST_F() local 575 Input, Expected); in TEST_F() 589 Input, Expected); in TEST_F() 696 Input, Expected); in TEST_F() 717 Input, Expected); in TEST_F() 737 Input, Expected); in TEST_F() 759 Input, Expected); in TEST_F() 778 Input, Expected); in TEST_F() 836 Input, Expected); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/unittests/clang-doc/ |
| H A D | ClangDocTest.cpp | 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() 75 CheckTypeInfo(Expected, Actual); in CheckFieldTypeInfo() 97 CheckBaseInfo(Expected, Actual); in CheckSymbolInfo() 109 CheckSymbolInfo(Expected, Actual); in CheckFunctionInfo() 123 CheckSymbolInfo(Expected, Actual); in CheckEnumInfo() 132 CheckBaseInfo(Expected, Actual); in CheckNamespaceInfo() 154 CheckSymbolInfo(Expected, Actual); in CheckRecordInfo() 191 CheckRecordInfo(Expected, Actual); in CheckBaseRecordInfo() [all …]
|
| H A D | MergeTest.cpp | 50 Expected->Name = "Namespace"; in TEST() 66 Expected->ChildEnums.emplace_back(); in TEST() 69 Expected->ChildEnums.emplace_back(); in TEST() 121 Expected->Name = "r"; in TEST() 141 Expected->ChildEnums.emplace_back(); in TEST() 144 Expected->ChildEnums.emplace_back(); in TEST() 200 Expected->Name = "f"; in TEST() 208 Expected->IsMethod = true; in TEST() 252 Expected->Name = "e"; in TEST() 259 Expected->Members.emplace_back("X"); in TEST() [all …]
|
| H A 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 …]
|
| /llvm-project-15.0.7/clang/unittests/Format/ |
| H A D | CleanupTest.cpp | 99 EXPECT_EQ(Expected, Result); in TEST_F() 118 EXPECT_EQ(Expected, Result); in TEST_F() 128 std::string Expected = "#ifdef A\n" in TEST_F() local 136 EXPECT_EQ(Expected, Result); in TEST_F() 149 Expected = "class A {\nA() {} };"; in TEST_F() 174 Expected = "try : , {}"; in TEST_F() 252 std::string Expected = in TEST_F() local 258 EXPECT_EQ(Expected, Result); in TEST_F() 265 EXPECT_EQ(Expected, Result); in TEST_F() 313 EXPECT_EQ(Expected, Result); in TEST_F() [all …]
|
| /llvm-project-15.0.7/clang/unittests/Rename/ |
| H A D | RenameFunctionTest.cpp | 45 std::string Expected = R"( in TEST_F() local 65 std::string Expected = R"( in TEST_F() local 83 std::string Expected = R"( in TEST_F() local 100 std::string Expected = R"( in TEST_F() local 136 std::string Expected = R"( in TEST_F() local 180 std::string Expected = R"( in TEST_F() local 213 std::string Expected = R"( in TEST_F() local 230 std::string Expected = R"( in TEST_F() local 248 std::string Expected = R"( in TEST_F() local 269 std::string Expected = R"( in TEST_F() local [all …]
|
| H A D | RenameClassTest.cpp | 423 std::string Expected = R"( in TEST_F() local 456 std::string Expected = R"( in TEST_F() local 487 std::string Expected = R"( in TEST_F() local 524 std::string Expected = R"( in TEST_F() local 571 std::string Expected = R"( in TEST_F() local 613 std::string Expected = R"( in TEST_F() local 653 std::string Expected = R"( in TEST_F() local 690 std::string Expected = R"( in TEST_F() local 719 std::string Expected = R"( in TEST_F() local 748 std::string Expected = R"( in TEST_F() local [all …]
|
| /llvm-project-15.0.7/clang/unittests/Analysis/FlowSensitive/ |
| H A D | DebugSupportTest.cpp | 39 auto Expected = R"((not in TEST() local 60 auto Expected = R"((or in TEST() local 71 auto Expected = R"((=> in TEST() local 82 auto Expected = R"((= in TEST() local 219 auto Expected = R"( in TEST() local 238 auto Expected = R"( in TEST() local 258 auto Expected = R"( in TEST() local 282 auto Expected = R"( in TEST() local 309 auto Expected = R"( in TEST() local 341 auto Expected = R"( in TEST() local [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/tweaks/ |
| H A D | DefineInlineTests.cpp | 222 auto *Expected = R"cpp( in TEST_F() local 265 auto *Expected = R"cpp( in TEST_F() local 295 auto *Expected = R"cpp( in TEST_F() local 331 auto *Expected = R"cpp( in TEST_F() local 360 auto *Expected = R"cpp( in TEST_F() local 381 Expected = R"cpp( in TEST_F() 386 Expected = R"cpp( in TEST_F() 411 auto *Expected = R"cpp( in TEST_F() local 530 auto *Expected = R"cpp( in TEST_F() local 577 auto *Expected = R"cpp( in TEST_F() local [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-rc/ |
| H A D | ResourceScriptParser.h | 32 using ParseType = Expected<std::unique_ptr<RCResource>>; 80 Expected<RCInt> readInt(); // Parse an integer. 81 Expected<StringRef> readString(); // Parse a string. 88 Expected<IntWithNotMask> parseIntExpr1(); 89 Expected<IntWithNotMask> parseIntExpr2(); 111 Expected<uint32_t> parseFlags(ArrayRef<StringRef> FlagDesc, 130 Expected<OptionalStmtList> 134 Expected<std::unique_ptr<OptionalStmt>> 151 Expected<Control> parseControl(); 154 Expected<MenuDefinitionList> parseMenuItemsList(); [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | Archive.h | 65 virtual Expected<bool> isThin() const = 0; 69 Expected<unsigned> getUID() const; 70 Expected<unsigned> getGID() const; 119 Expected<bool> isThin() const override; 174 Expected<bool> isThinMember() const; 224 Expected<Child> getNext() const; 226 Expected<StringRef> getName() const; 246 Expected<uint64_t> getSize() const; 248 Expected<uint64_t> getRawSize() const; 256 Expected<std::unique_ptr<Binary>> [all …]
|
| H A D | ELF.h | 203 Expected<StringRef> 208 Expected<StringRef> 383 Expected<StringRef> 429 Expected<uint32_t> 485 Expected<ArrayRef<T>> 635 Expected<StringRef> 1079 Expected<StringRef> 1143 Expected<StringRef> 1152 Expected<StringRef> 1167 Expected<StringRef> [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/index/remote/marshalling/ |
| H A D | Marshalling.h | 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> 51 llvm::Expected<clangd::RelationsRequest> 63 llvm::Expected<Symbol> toProtobuf(const clangd::Symbol &From); 64 llvm::Expected<Ref> toProtobuf(const clangd::Ref &From); 84 llvm::Expected<clangd::SymbolLocation> 86 llvm::Expected<SymbolLocation> 88 llvm::Expected<HeaderWithReferences> [all …]
|
| /llvm-project-15.0.7/libc/test/src/string/ |
| H A D | memmove_test.cpp | 20 const char Expected[] = {'a', 'b', 'y', 'z'}; in TEST() local 24 EXPECT_MEM_EQ(Buffer, Expected); in TEST() 29 const char Expected[] = {'a', 'b'}; in TEST() local 33 EXPECT_MEM_EQ(Buffer, Expected); in TEST() 44 EXPECT_MEM_EQ(Buffer, Expected); in TEST() 53 EXPECT_MEM_EQ(Buffer, Expected); in TEST() 62 const char Expected[] = {'z', 'b', 'b', 'z'}; in TEST() local 66 EXPECT_MEM_EQ(Buffer, Expected); in TEST() 75 EXPECT_MEM_EQ(Buffer, Expected); in TEST() 101 LargeBuffer Expected = GroundTruth; in TEST() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/Remarks/ |
| H A D | YAMLRemarkParser.cpp | 60 static Expected<bool> parseMagic(StringRef &Buf) { in parseMagic() 70 static Expected<uint64_t> parseVersion(StringRef &Buf) { in parseVersion() 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() 189 Expected<std::unique_ptr<Remark>> 209 Expected<Type> T = parseType(*Root); in parseRemark() 319 Expected<RemarkLocation> 330 Expected<StringRef> MaybeKey = parseKey(DLNode); in parseDebugLoc() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/Bitcode/ |
| H A D | BitcodeReader.h | 81 friend Expected<BitcodeFileContents> 84 Expected<std::unique_ptr<Module>> 107 Expected<std::unique_ptr<Module>> parseModule( 113 Expected<BitcodeLTOInfo> getLTOInfo(); 116 Expected<std::unique_ptr<ModuleSummaryIndex>> getSummary(); 137 Expected<std::vector<BitcodeModule>> 144 Expected<std::unique_ptr<Module>> 153 Expected<std::unique_ptr<Module>> getOwningLazyBitcodeModule( 172 Expected<std::unique_ptr<Module>> parseBitcodeFile( 182 Expected<std::unique_ptr<ModuleSummaryIndex>> [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/Symbolize/ |
| H A D | Symbolize.h | 83 Expected<DIInliningInfo> 86 Expected<DIInliningInfo> 89 Expected<DIInliningInfo> 99 Expected<std::vector<DILocal>> 101 Expected<std::vector<DILocal>> 104 Expected<std::vector<DILocal>> 128 Expected<DILineInfo> 132 Expected<DIInliningInfo> 139 Expected<std::vector<DILocal>> 147 Expected<SymbolizableModule *> [all …]
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTImporter.h | 266 virtual Expected<Decl *> ImportImpl(Decl *From); 315 llvm::Expected<ExprWithCleanups::CleanupObject> 328 llvm::Expected<QualType> Import(QualType FromT); 342 llvm::Expected<Attr *> Import(const Attr *FromAttr); 349 llvm::Expected<Decl *> Import(Decl *FromD); 354 llvm::Expected<InheritedConstructor> 392 llvm::Expected<Expr *> Import(Expr *FromE); 399 llvm::Expected<Stmt *> Import(Stmt *FromS); 413 llvm::Expected<NestedNameSpecifierLoc> 453 llvm::Expected<Selector> Import(Selector FromSel); [all …]
|
| /llvm-project-15.0.7/llvm/lib/Bitstream/Reader/ |
| H A D | BitstreamReader.cpp | 86 if (Expected<unsigned> Res = Cursor.Read(6)) in readAbbreviatedField() 98 Expected<uint32_t> MaybeCode = ReadVBR(6); in skipRecord() 102 Expected<uint32_t> MaybeVBR = ReadVBR(6); in skipRecord() 150 Expected<uint32_t> MaybeNum = ReadVBR(6); in skipRecord() 174 if (Expected<uint64_t> Res = in skipRecord() 190 Expected<uint32_t> MaybeNum = ReadVBR(6); in skipRecord() 217 Expected<uint32_t> MaybeCode = ReadVBR(6); in readRecord() 310 if (Expected<uint64_t> MaybeVal = in readRecord() 381 Expected<word_t> MaybeEncoding = Read(3); in ReadAbbrevRecord() 420 Expected<Optional<BitstreamBlockInfo>> [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/iterator.requirements/iterator.assoc.types/incrementable.traits/ |
| H A D | iter_difference_t.compile.pass.cpp | 24 template <class T, class Expected> 26 constexpr bool result = std::same_as<std::iter_difference_t<T>, Expected>; in check_iter_difference_t() 27 static_assert(std::same_as<std::iter_difference_t<T const>, Expected> == result); in check_iter_difference_t() 28 static_assert(std::same_as<std::iter_difference_t<T volatile>, Expected> == result); in check_iter_difference_t() 29 static_assert(std::same_as<std::iter_difference_t<T const volatile>, Expected> == result); in check_iter_difference_t() 30 static_assert(std::same_as<std::iter_difference_t<T const&>, Expected> == result); in check_iter_difference_t() 31 static_assert(std::same_as<std::iter_difference_t<T volatile&>, Expected> == result); in check_iter_difference_t() 32 static_assert(std::same_as<std::iter_difference_t<T const volatile&>, Expected> == result); in check_iter_difference_t() 33 static_assert(std::same_as<std::iter_difference_t<T const&&>, Expected> == result); in check_iter_difference_t() 34 static_assert(std::same_as<std::iter_difference_t<T volatile&&>, Expected> == result); in check_iter_difference_t() [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/iterators/iterator.requirements/iterator.assoc.types/readable.traits/ |
| H A D | iter_value_t.pass.cpp | 20 template <class T, class Expected> 22 constexpr bool result = std::same_as<std::iter_value_t<T>, Expected>; in check_iter_value_t() 23 static_assert(std::same_as<std::iter_value_t<T const>, Expected> == result); in check_iter_value_t() 24 static_assert(std::same_as<std::iter_value_t<T volatile>, Expected> == result); in check_iter_value_t() 25 static_assert(std::same_as<std::iter_value_t<T const volatile>, Expected> == result); in check_iter_value_t() 26 static_assert(std::same_as<std::iter_value_t<T const&>, Expected> == result); in check_iter_value_t() 27 static_assert(std::same_as<std::iter_value_t<T volatile&>, Expected> == result); in check_iter_value_t() 28 static_assert(std::same_as<std::iter_value_t<T const volatile&>, Expected> == result); in check_iter_value_t() 29 static_assert(std::same_as<std::iter_value_t<T const&&>, Expected> == result); in check_iter_value_t() 30 static_assert(std::same_as<std::iter_value_t<T volatile&&>, Expected> == result); in check_iter_value_t() [all …]
|