Lines Matching +full:external +full:- +full:contents
1 //===- unittests/libclang/LibclangTest.cpp --- libclang tests -------------===//
8 //===----------------------------------------------------------------------===//
10 #include "clang-c/Index.h"
18 #define DEBUG_TYPE "libclang-test"
42 const char *Contents; member
45 TestVFO(const char *Contents) : Contents(Contents) { in TestVFO()
60 if (Contents) { in ~TestVFO()
65 EXPECT_STREQ(Contents, BufStr.c_str()); in ~TestVFO()
74 const char *contents = in TEST() local
81 " 'contents': [\n" in TEST()
85 " 'external-contents': \"/real/foo.h\"\n" in TEST()
91 TestVFO T(contents); in TEST()
96 const char *contents = in TEST() local
103 " 'contents': [\n" in TEST()
107 " 'external-contents': \"/real/\\u2602.h\"\n" in TEST()
113 TestVFO T(contents); in TEST()
124 const char *contents = in TEST() local
131 " 'contents': [\n" in TEST()
135 " 'external-contents': \"/real/foo2.h\"\n" in TEST()
142 " 'contents': [\n" in TEST()
146 " 'external-contents': \"/real/foo1.h\"\n" in TEST()
151 " 'external-contents': \"/real/foo3.h\"\n" in TEST()
156 " 'contents': [\n" in TEST()
160 " 'external-contents': \"/real/foo4.h\"\n" in TEST()
168 TestVFO T(contents); in TEST()
176 const char *contents = in TEST() local
179 " 'case-sensitive': 'false',\n" in TEST()
184 " 'contents': [\n" in TEST()
188 " 'external-contents': \"/real/foo.h\"\n" in TEST()
194 TestVFO T(contents); in TEST()
200 const char *contents = in TEST() local
207 " 'contents': [\n" in TEST()
211 " 'external-contents': \"/real/bar\"\n" in TEST()
216 " 'external-contents': \"/real/bar.h\"\n" in TEST()
223 " 'contents': [\n" in TEST()
227 " 'external-contents': \"/real/baz.h\"\n" in TEST()
234 " 'contents': [\n" in TEST()
238 " 'external-contents': \"/real/foobarbaz.h\"\n" in TEST()
244 TestVFO T(contents); in TEST()
252 const char *contents = in TEST() local
259 " 'contents': [\n" in TEST()
263 " 'external-contents': \"/real/foo.h\"\n" in TEST()
268 " 'contents': [\n" in TEST()
272 " 'external-contents': \"/real/bar.h\"\n" in TEST()
281 " 'contents': [\n" in TEST()
285 " 'external-contents': \"/real/baz.h\"\n" in TEST()
291 TestVFO T(contents); in TEST()
298 const char *contents = in TEST() local
305 " 'contents': [\n" in TEST()
309 " 'external-contents': \"/real/foo.h\"\n" in TEST()
315 TestVFO T(contents); in TEST()
320 const char *contents = in TEST() local
326 TestVFO T(contents); in TEST()
330 const char *Contents = in TEST() local
347 EXPECT_STREQ(Contents, BufStr.c_str()); in TEST()
362 ASSERT_FALSE(llvm::sys::fs::createUniqueDirectory("libclang-test", Dir)); in SetUp()
375 void WriteFile(std::string &Filename, const std::string &Contents) { in WriteFile() argument
384 OS << Contents; in WriteFile()
449 std::string ModulesCache = std::string("-fmodules-cache-path=") + TestDir; in TEST_F()
450 const char *Args[] = { "-fmodules", ModulesCache.c_str(), in TEST_F()
451 "-I", TestDir.c_str() }; in TEST_F()
474 std::string EmptyFiles[] = {"lib/gcc/arm-linux-gnueabi/99.9.9/crtbegin.o", in TEST_F()
475 "include/arm-linux-gnueabi/.keep", in TEST_F()
487 const char *Argv[] = {Clang.c_str(), "-target", "arm-linux-gnueabi", in TEST_F()
488 "--gcc-toolchain="}; in TEST_F()