Home
last modified time | relevance | path

Searched defs:Expected (Results 1 – 25 of 172) sorted by relevance

1234567

/llvm-project/clang-tools-extra/unittests/clang-change-namespace/
H A DChangeNamespaceTests.cpp78 std::string Expected = "namespace na {\n" in TEST_F() local
92 std::string Expected = "\n\n" in TEST_F() local
108 std::string Expected = "namespace na {\n" in TEST_F() local
127 std::string Expected = "namespace na {\n" in TEST_F() local
148 std::string Expected = "\n\n" in TEST_F() local
169 std::string Expected = "namespace na {\n" in TEST_F() local
189 std::string Expected = "namespace na {\n" in TEST_F() local
206 std::string Expected = "namespace na {\n" in TEST_F() local
231 std::string Expected = "namespace x {\n" in TEST_F() local
258 std::string Expected = "namespace na {\n" in TEST_F() local
[all …]
/llvm-project/clang/unittests/Tooling/
H A DHeaderIncludesTest.cpp52 std::string Expected = "#include \"a.h\"\n" in TEST_F() local
62 std::string Expected = Code + "#include \"a2.h\"\n"; in TEST_F() local
68 std::string Expected = Code + "#import \"a.h\"\n"; in TEST_F() local
91 std::string Expected = "#ifndef A_H\n" in TEST_F() local
111 std::string Expected = "#ifndef A_H\n" in TEST_F() local
129 std::string Expected = "#include \"fix.h\"\n" in TEST_F() local
164 std::string Expected = "#include \"z.h\"\n" in TEST_F() local
175 std::string Expected = "#include <memory>\n" in TEST_F() local
190 std::string Expected = "#include \"x/fix.h\"\n" in TEST_F() local
204 std::string Expected = "#include \"x/fix.h\"\n" in TEST_F() local
[all …]
H A DRefactoringCallbacksTest.cpp21 void expectRewritten(const std::string &Code, const std::string &Expected, in expectRewritten()
39 std::string Expected = "void f() { ; }"; in TEST() local
46 std::string Expected = "#define A void f() { ; }\nA"; in TEST() local
53 std::string Expected = "#define A void f() { int i = 1; }"; in TEST() local
60 std::string Expected = "void f() { int i = 2; }"; in TEST() local
67 std::string Expected = "void f() { int i = i * 2; }"; in TEST() local
79 std::string Expected = "bool a; void f() { f(); }"; in TEST() local
90 std::string Expected = "void f() { }"; in TEST() local
99 std::string Expected = "void f() { FOO }"; in TEST() local
107 std::string Expected = "void f() { long x = 1; }"; in TEST() local
[all …]
H A DTransformerTest.cpp86 static void compareSnippets(StringRef Expected, in compareSnippets()
160 void testRule(RewriteRule Rule, StringRef Input, StringRef Expected) { in testRule()
168 StringRef Expected) { in testRule()
222 std::string Expected = "int f(string s) { return REPLACED; }"; in TEST_F() local
247 std::string Expected = R"cc( in TEST_F() local
265 std::string Expected = R"cc(#include "clang/OtherLib.h" in TEST_F() local
284 std::string Expected = R"cc(#include <clang/OtherLib.h> in TEST_F() local
302 std::string Expected = R"cc(#include "clang/OtherLib.h" in TEST_F() local
320 std::string Expected = R"cc(#include <clang/OtherLib.h> in TEST_F() local
338 std::string Expected = R"cc( in TEST_F() local
[all …]
H A DStencilTest.cpp178 StringRef Expected) { in testExpr() argument
510 std::string Expected = "int *"; in TEST_F() local
520 std::string Expected = "Ty *"; in TEST_F() local
530 std::string Expected = "S"; in TEST_F() local
540 std::string Expected = "N::C"; TEST_F() local
550 std::string Expected = "C"; TEST_F() local
560 std::string Expected = "(anonymous namespace)::AnonC"; TEST_F() local
647 StringRef Expected = R"("foo bar baz")"; TEST() local
653 StringRef Expected = R"("foo \"bar\" baz\\n")"; TEST() local
659 StringRef Expected = R"repr(describe("Id"))repr"; TEST() local
665 StringRef Expected = R"repr(dPrint("Id"))repr"; TEST() local
671 StringRef Expected = R"repr(expression("Id"))repr"; TEST() local
677 StringRef Expected = R"repr(deref("Id"))repr"; TEST() local
683 StringRef Expected = R"repr(addressOf("Id"))repr"; TEST() local
694 StringRef Expected = R"repr(access("Id", "memberData"))repr"; TEST() local
700 StringRef Expected = R"repr(access("Id", selection(...)))repr"; TEST() local
706 StringRef Expected = R"repr(access("Id", seq("foo_", "bar")))repr"; TEST() local
712 StringRef Expected = TEST() local
722 StringRef Expected = R"repr(selectBound({{"int", "I"}, {"float", "F"}}))repr"; TEST() local
728 StringRef Expected = R"repr(selectBound({{"int", "I"}}))repr"; TEST() local
734 StringRef Expected = TEST() local
748 StringRef Expected = R"repr(seq("foo", access("x", "m()"), "bar", )repr" TEST() local
755 StringRef Expected = "seq()"; TEST() local
761 StringRef Expected = "\"foo\""; TEST() local
768 StringRef Expected = R"repr(seq("foo", access("x", "m()"), "bar", )repr" TEST() local
[all...]
/llvm-project/clang-tools-extra/unittests/clang-doc/
H A DClangDocTest.cpp47 void CheckCommentInfo(const CommentInfo &Expected, const CommentInfo &Actual) { in CheckCommentInfo()
72 void CheckCommentInfo(const std::vector<CommentInfo> &Expected, in CheckCommentInfo()
79 void CheckCommentInfo(const std::vector<std::unique_ptr<CommentInfo>> &Expected, in CheckCommentInfo()
86 void CheckReference(Reference &Expected, Reference &Actual) { in CheckReference()
92 void CheckTypeInfo(TypeInfo *Expected, TypeInfo *Actual) { in CheckTypeInfo()
96 void CheckFieldTypeInfo(FieldTypeInfo *Expected, FieldTypeInfo *Actual) { in CheckFieldTypeInfo()
101 void CheckMemberTypeInfo(MemberTypeInfo *Expected, MemberTypeInfo *Actual) { in CheckMemberTypeInfo()
107 void CheckBaseInfo(Info *Expected, Info *Actual) { in CheckBaseInfo()
117 void CheckSymbolInfo(SymbolInfo *Expected, SymbolInfo *Actual) { in CheckSymbolInfo()
129 void CheckFunctionInfo(FunctionInfo *Expected, FunctionInfo *Actual) { in CheckFunctionInfo()
[all …]
H A DYAMLGeneratorTest.cpp49 std::string Expected = in TEST() local
129 std::string Expected = in TEST() local
228 std::string Expected = in TEST() local
287 std::string Expected = in TEST() local
325 std::string Expected = in TEST() local
355 std::string Expected = in TEST() local
485 std::string Expected = in TEST() local
H A DMDGeneratorTest.cpp44 std::string Expected = R"raw(# namespace Namespace in TEST() local
105 std::string Expected = R"raw(# class r in TEST() local
168 std::string Expected = R"raw(### f in TEST() local
196 std::string Expected = R"raw(| enum class e | in TEST() local
327 std::string Expected = in TEST() local
H A DMergeTest.cpp49 auto Expected = std::make_unique<NamespaceInfo>(); in TEST() local
121 auto Expected = std::make_unique<RecordInfo>(); in TEST() local
202 auto Expected = std::make_unique<FunctionInfo>(); in TEST() local
254 auto Expected = std::make_unique<EnumInfo>(); in TEST() local
H A DHTMLGeneratorTest.cpp64 std::string Expected = R"raw(<!DOCTYPE html> in TEST() local
176 std::string Expected = R"raw(<!DOCTYPE html> TEST() local
291 std::string Expected = R"raw(<!DOCTYPE html> TEST() local
339 std::string Expected = R"raw(<!DOCTYPE html> TEST() local
425 std::string Expected = R"raw(<!DOCTYPE html> TEST() local
[all...]
/llvm-project/clang/unittests/Rename/
H A DRenameFunctionTest.cpp
H A DRenameClassTest.cpp
H A DRenameAliasTest.cpp
H A DRenameMemberTest.cpp
/llvm-project/clang/unittests/Format/
H A DCleanupTest.cpp53 std::string Expected = "\n\n\n\n\nnamespace C {\n" in TEST_F() local
67 std::string Expected = "namespace A {\n" in TEST_F() local
80 std::string Expected = "namespace A {\n\n" in TEST_F() local
94 std::string Expected = "\n\n\n\n\n\n"; in TEST_F() local
111 std::string Expected = "\n\n\n\n\n\n\n\n\n\n"; in TEST_F() local
126 std::string Expected = "#ifdef A\n" in TEST_F() local
139 std::string Expected = "class A {\nA() {} };"; in TEST_F() local
154 std::string Expected = "class A {\nA() try {} };"; in TEST_F() local
178 std::string Expected = "class A {\nA() =default; };"; in TEST_F() local
188 std::string Expected = "void f() { std::vector<int> v = {1,2,3,{4,5}}; }"; in TEST_F() local
[all …]
/llvm-project/llvm/unittests/MC/
H A DStringTableBuilderTest.cpp28 std::string Expected; in TEST() local
59 std::string Expected; in TEST() local
87 std::string Expected; in TEST() local
115 std::string Expected; in TEST() local
146 std::string Expected; in TEST() local
181 std::string Expected; in TEST() local
213 std::string Expected; in TEST() local
/llvm-project/clang-tools-extra/clangd/unittests/tweaks/
H A DDefineInlineTests.cpp222 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
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
612 auto *Expected = R"cpp( in TEST_F() local
670 auto *Expected = R"cpp( in TEST_F() local
[all …]
H A DScopifyEnumTests.cpp41 std::string Expected = R"cpp( in TEST_F() local
69 std::string Expected = R"cpp( in TEST_F() local
97 std::string Expected = R"cpp( in TEST_F() local
/llvm-project/libc/test/src/string/
H A Dbcopy_test.cpp
H A Dmemmove_test.cpp23 const char Expected[] = {'a', 'b', 'y', 'z'}; TEST() local
32 const char Expected[] = {'a', 'b'}; TEST() local
43 const char Expected[] = {'z', 'b', 'c', 'c', 'z'}; TEST() local
52 const char Expected[] = {'z', 'a', 'a', 'b', 'z'}; TEST() local
65 const char Expected[] = {'z', 'b', 'b', 'z'}; TEST() local
74 const char Expected[] = {'z', 'a', 'a', 'z'}; TEST() local
[all...]
/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.swap/
H A Dranges.swap_ranges.pass.cpp30 using Expected = std::ranges::swap_ranges_result<int*, int*>; in test_different_lengths() typedef
117 using Expected = std::ranges::swap_ranges_result<It, It>; in test_sentinel() typedef
132 using Expected = std::ranges::swap_ranges_result<Iter1, Iter2>; in test_iterators() typedef
149 …using Expected = std::ranges::swap_ranges_result<std::array<int, 3>::iterator, std::ranges::dangli… in test_rval_range() typedef
157 …using Expected = std::ranges::swap_ranges_result<std::ranges::dangling, std::array<int, 3>::iterat… in test_rval_range() typedef
/llvm-project/clang/unittests/InstallAPI/
H A DFileListTest.cpp21 static inline void testValidFileList(std::string Input, HeaderSeq &Expected) { in testValidFileList()
52 HeaderSeq Expected = { in TEST() local
77 HeaderSeq Expected = { in TEST() local
99 HeaderSeq Expected = { in TEST() local
/llvm-project/llvm/unittests/Support/
H A DConvertUTFTest.cpp24 std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0"); in TEST() local
36 std::string Expected("\xE0\xB2\xA0_\xE0\xB2\xA0"); in TEST() local
47 std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0"); in TEST() local
59 std::string Expected("\xE0\xB2\xA0_\xE0\xB2\xA0"); in TEST() local
70 static const UTF16 Expected[] = {0x0CA0, 0x005f, 0x0CA0, 0}; in TEST() local
113 std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0"); TEST() local
123 std::wstring Expected(L"\x0ca0_\x0ca0"); TEST() local
137 std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0"); TEST() local
209 CheckConvertUTF8ToUnicodeScalars(ConvertUTFResultContainer Expected,StringRef S,bool Partial=false) CheckConvertUTF8ToUnicodeScalars() argument
[all...]
/llvm-project/llvm/unittests/ProfileData/
H A DPGOCtxProfReaderWriterTest.cpp111 auto Expected = Reader.loadContexts(); TEST_F() local
139 auto Expected = Reader.loadContexts(); TEST_F() local
148 auto Expected = Reader.loadContexts(); TEST_F() local
156 auto Expected = Reader.loadContexts(); TEST_F() local
178 auto Expected = Reader.loadContexts(); TEST_F() local
200 auto Expected = Reader.loadContexts(); TEST_F() local
224 auto Expected = Reader.loadContexts(); TEST_F() local
251 auto Expected = Reader.loadContexts(); TEST_F() local
[all...]
/llvm-project/clang/unittests/Analysis/FlowSensitive/
H A DDebugSupportTest.cpp29 auto Expected = "V0"; in TEST() local
43 auto Expected = "!V0"; in TEST() local
81 auto Expected = "((V0 & !V1) | (!V0 & V1))"; in TEST() local
94 auto Expected = "(V0 & (V1 | (V2 & (V3 | V4))))"; in TEST() local
109 auto Expected = R"(((Y & V2) | (X | V3)))"; in TEST() local

1234567