Lines Matching refs:runIncludeFixer
53 static std::string runIncludeFixer( in runIncludeFixer() function
120 runIncludeFixer("std::string foo;\n")); in TEST()
124 runIncludeFixer("// comment\n#include \"foo.h\"\nstd::string foo;\n" in TEST()
128 runIncludeFixer("#include \"foo.h\"\nstd::string foo;\n")); in TEST()
132 runIncludeFixer("#include \"foo.h\"\nstd::string::size_type foo;\n")); in TEST()
135 runIncludeFixer("string foo;\n")); in TEST()
138 EXPECT_EQ("::string foo;\n", runIncludeFixer("::string foo;\n")); in TEST()
145 runIncludeFixer("#include \"foo.h\"\n" in TEST()
150 runIncludeFixer("class string;\ntypedef string foo;\nfoo f;\n")); in TEST()
156 runIncludeFixer("a::b::foo bar;\n", IncludePath)); in TEST()
160 runIncludeFixer("a::b::foo bar;\n", IncludePath)); in TEST()
164 runIncludeFixer("a::b::foo bar;\n", IncludePath)); in TEST()
168 runIncludeFixer("a::b::foo bar;\n", IncludePath)); in TEST()
174 runIncludeFixer("int x = a::b::foo(0);\n")); in TEST()
178 runIncludeFixer("#define FOO a::b::foo\nint x = FOO;\n")); in TEST()
180 runIncludeFixer("#define FOO(x) a::##x\nint x = FOO(b::foo);\n")); in TEST()
186 runIncludeFixer("namespace a {}\nint a = a::b::foo(0);\n")); in TEST()
191 runIncludeFixer("std::string bar;\nstd::sting foo;\n")); in TEST()
196 runIncludeFixer("namespace a {\nb::bar b;\n}")); in TEST()
198 runIncludeFixer("namespace A {\na::b::bar b;\n}")); in TEST()
201 runIncludeFixer("namespace a {\nvoid func() { b::bar b; }\n}")); in TEST()
203 runIncludeFixer("namespace A { c::b::bar b; }\n")); in TEST()
207 runIncludeFixer("namespace A {\nb::bar b;\n}")); in TEST()
211 runIncludeFixer("namespace foo2 {\nstr::StrCat b;\n}")); in TEST()
215 runIncludeFixer("namespace foo2 {\nstr::StrCat2 b;\n}")); in TEST()
217 runIncludeFixer("namespace ns {\nstr::StrCat2 b;\n}")); in TEST()
222 runIncludeFixer("int test = a::b::Green;\n")); in TEST()
227 EXPECT_EQ(Code, runIncludeFixer(Code)); in TEST()
243 EXPECT_EQ(Expected, runIncludeFixer(Code)); in TEST()
248 runIncludeFixer("a::Vector v;")); in TEST()
253 runIncludeFixer("b::bar b;\n")); in TEST()
255 runIncludeFixer("a::b::bar b;\n")); in TEST()
257 runIncludeFixer("bar b;\n")); in TEST()
259 runIncludeFixer("namespace a {\nb::bar b;\n}\n")); in TEST()
261 runIncludeFixer("namespace a {\nbar b;\n}\n")); in TEST()
264 runIncludeFixer("namespace a {\nnamespace b{\nbar b;\n}\n}\n")); in TEST()
266 runIncludeFixer("c::b::bar b;\n")); in TEST()
268 runIncludeFixer("namespace d {\nbar b;\n}\n")); in TEST()
270 runIncludeFixer("namespace c {\nbar b;\n}\n")); in TEST()
275 runIncludeFixer("namespace a {\nnamespace d {\nbar b;\n}\n}\n")); in TEST()
278 runIncludeFixer("namespace d {\nnamespace a {\nbar b;\n}\n}\n")); in TEST()
282 runIncludeFixer("namespace d {\nbar::t b;\n}\n")); in TEST()
284 runIncludeFixer("namespace c {\nbar::t b;\n}\n")); in TEST()
286 runIncludeFixer("namespace a {\nbar::t b;\n}\n")); in TEST()
289 runIncludeFixer("int test = Green;\n")); in TEST()
291 runIncludeFixer("namespace d {\nint test = Green;\n}\n")); in TEST()
293 runIncludeFixer("namespace a {\nint test = Green;\n}\n")); in TEST()
297 runIncludeFixer("::a::b::bar b;\n")); in TEST()
299 runIncludeFixer("namespace a {\n::a::b::bar b;\n}\n")); in TEST()
362 EXPECT_EQ(ExpectedCode, runIncludeFixer(TestCode)); in TEST()
367 runIncludeFixer("class bar;\nvoid f() {\nbar* b;\nb->f();\n}")); in TEST()