From cecf7fc2b98f52ef9f6d9a4ba02ea8f47bd73ca1 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 12 Jun 2014 03:31:26 +0000 Subject: [PATCH] Fix typo. Thanks to Alp Toker for noticing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210744 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Format/Format.h | 2 +- lib/Format/Format.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/clang/Format/Format.h b/include/clang/Format/Format.h index 7656ec221f..0c08a4c2f6 100644 --- a/include/clang/Format/Format.h +++ b/include/clang/Format/Format.h @@ -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 diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index d8633d88f1..6b57b184d2 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -258,12 +258,12 @@ template <> struct DocumentListTraits > { 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(e), getParestCategory()); + return std::error_code(static_cast(e), getParseCategory()); } const char *ParseErrorCategory::name() const LLVM_NOEXCEPT { -- 2.40.0