• Home
  • Raw
  • Download

Lines Matching +full:clang +full:- +full:format +full:- +full:3

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()
150 Expected = "int main() { f(1,2,3,4);}"; in TEST_F()
308 createReplacement(getOffset(Code, 3, 3), 6, ""), in TEST_F()
373 Style = format::getGoogleStyle(format::FormatStyle::LanguageKind::LK_Cpp); in TEST_F()
398 Style = format::getGoogleStyle(format::FormatStyle::LanguageKind::LK_Cpp); in TEST_F()
406 "#include \"clang/Format/Format.h\"\n" in TEST_F()
412 "#include \"clang/Format/Format.h\"\n" in TEST_F()
424 "#include \"clang/Format/Format.h\"\n" in TEST_F()
430 "#include \"clang/Format/Format.h\"\n" in TEST_F()
451 Style = format::getGoogleStyle(format::FormatStyle::LanguageKind::LK_Cpp); in TEST_F()
472 Style = format::getGoogleStyle(format::FormatStyle::LanguageKind::LK_Cpp); in TEST_F()
509 Style = format::getGoogleStyle(format::FormatStyle::LanguageKind::LK_Cpp); in TEST_F()
522 "#include \"clang/x/x.h\"\n" in TEST_F()
533 createInsertion("#include \"clang/x/x.h\""), in TEST_F()
725 } // end namespace format
726 } // end namespace clang