Fix typo.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 12 Jun 2014 03:31:26 +0000 (03:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 12 Jun 2014 03:31:26 +0000 (03:31 +0000)
Thanks to Alp Toker for noticing.

llvm-svn: 210744

clang/include/clang/Format/Format.h
clang/lib/Format/Format.cpp

index 7656ec2..0c08a4c 100644 (file)
@@ -33,7 +33,7 @@ public:
   const char *name() const LLVM_NOEXCEPT override;
   std::string message(int EV) const override;
 };
-const std::error_category &getParestCategory();
+const std::error_category &getParseCategory();
 std::error_code make_error_code(ParseError e);
 
 /// \brief The \c FormatStyle is used to configure the formatting to follow
index d8633d8..6b57b18 100644 (file)
@@ -258,12 +258,12 @@ template <> struct DocumentListTraits<std::vector<FormatStyle> > {
 namespace clang {
 namespace format {
 
-const std::error_category &getParestCategory() {
+const std::error_category &getParseCategory() {
   static ParseErrorCategory C;
   return C;
 }
 std::error_code make_error_code(ParseError e) {
-  return std::error_code(static_cast<int>(e), getParestCategory());
+  return std::error_code(static_cast<int>(e), getParseCategory());
 }
 
 const char *ParseErrorCategory::name() const LLVM_NOEXCEPT {