D | CleanupTest.cpp | 1 //===- unittest/Format/CleanupTest.cpp - Code cleanup unit tests ----------===// 8 //===----------------------------------------------------------------------===// 10 #include "clang/Format/Format.h" 13 #include "clang/Tooling/Core/Replacement.h" 17 namespace clang { namespace 18 namespace format { namespace 26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges); in cleanup() 142 std::string Code = "void f() { std::vector<int> v = {1,2,,,3,{4,5}}; }"; in TEST_F() 143 std::string Expected = "void f() { std::vector<int> v = {1,2,3,{4,5}}; }"; in TEST_F() 149 Code = "int main() { f(1,,2,3,,4);}"; in TEST_F() [all …]
|