ioeric created this revision. ioeric added a reviewer: hokein. ioeric added a subscriber: cfe-commits. Herald added a subscriber: klimek.
Do not submit! https://reviews.llvm.org/D27058 Files: include/clang/Tooling/Refactoring/EditList.h lib/Tooling/Refactoring/EditList.cpp unittests/Tooling/RefactoringTest.cpp Index: unittests/Tooling/RefactoringTest.cpp =================================================================== --- unittests/Tooling/RefactoringTest.cpp +++ unittests/Tooling/RefactoringTest.cpp @@ -1168,7 +1168,7 @@ ExpectedEdit.removeHeader("b.h"); ExpectedEdit.setError("ok"); - EditList ActualEdit = EditList::ConvertFromYAML(YamlContent); + EditList ActualEdit = EditList::convertFromYAML(YamlContent); EXPECT_EQ(ExpectedEdit.getKey(), ActualEdit.getKey()); EXPECT_EQ(ExpectedEdit.getFilePath(), ActualEdit.getFilePath()); EXPECT_EQ(ExpectedEdit.getError(), ActualEdit.getError()); Index: lib/Tooling/Refactoring/EditList.cpp =================================================================== --- lib/Tooling/Refactoring/EditList.cpp +++ lib/Tooling/Refactoring/EditList.cpp @@ -1,4 +1,4 @@ -//===--- EditList.h - EditList implementation -------------------*- C++ -*-===// +//===--- EditList.cpp - EditList implementation -----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -100,7 +100,7 @@ return YamlContent; } -EditList EditList::ConvertFromYAML(llvm::StringRef YAMLContent) { +EditList EditList::convertFromYAML(llvm::StringRef YAMLContent) { EditList Edit; llvm::yaml::Input YAML(YAMLContent); YAML >> Edit; Index: include/clang/Tooling/Refactoring/EditList.h =================================================================== --- include/clang/Tooling/Refactoring/EditList.h +++ include/clang/Tooling/Refactoring/EditList.h @@ -49,7 +49,7 @@ std::string toYAMLString(); /// \brief Converts a YAML-encoded edit to EditList. - static EditList ConvertFromYAML(llvm::StringRef YAMLContent); + static EditList convertFromYAML(llvm::StringRef YAMLContent); /// \brief Returns the key of this edit, which is a concatenation of the file /// name and position information of the key position.
Index: unittests/Tooling/RefactoringTest.cpp =================================================================== --- unittests/Tooling/RefactoringTest.cpp +++ unittests/Tooling/RefactoringTest.cpp @@ -1168,7 +1168,7 @@ ExpectedEdit.removeHeader("b.h"); ExpectedEdit.setError("ok"); - EditList ActualEdit = EditList::ConvertFromYAML(YamlContent); + EditList ActualEdit = EditList::convertFromYAML(YamlContent); EXPECT_EQ(ExpectedEdit.getKey(), ActualEdit.getKey()); EXPECT_EQ(ExpectedEdit.getFilePath(), ActualEdit.getFilePath()); EXPECT_EQ(ExpectedEdit.getError(), ActualEdit.getError()); Index: lib/Tooling/Refactoring/EditList.cpp =================================================================== --- lib/Tooling/Refactoring/EditList.cpp +++ lib/Tooling/Refactoring/EditList.cpp @@ -1,4 +1,4 @@ -//===--- EditList.h - EditList implementation -------------------*- C++ -*-===// +//===--- EditList.cpp - EditList implementation -----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -100,7 +100,7 @@ return YamlContent; } -EditList EditList::ConvertFromYAML(llvm::StringRef YAMLContent) { +EditList EditList::convertFromYAML(llvm::StringRef YAMLContent) { EditList Edit; llvm::yaml::Input YAML(YAMLContent); YAML >> Edit; Index: include/clang/Tooling/Refactoring/EditList.h =================================================================== --- include/clang/Tooling/Refactoring/EditList.h +++ include/clang/Tooling/Refactoring/EditList.h @@ -49,7 +49,7 @@ std::string toYAMLString(); /// \brief Converts a YAML-encoded edit to EditList. - static EditList ConvertFromYAML(llvm::StringRef YAMLContent); + static EditList convertFromYAML(llvm::StringRef YAMLContent); /// \brief Returns the key of this edit, which is a concatenation of the file /// name and position information of the key position.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits