From 6d0d89b49ca765eecbe11b97f9abf5a3b3e94915 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. llvm-svn: 210744 --- clang/include/clang/Format/Format.h | 2 +- clang/lib/Format/Format.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/include/clang/Format/Format.h b/clang/include/clang/Format/Format.h index 7656ec2..0c08a4c 100644 --- a/clang/include/clang/Format/Format.h +++ b/clang/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/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index d8633d8..6b57b18 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/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.7.4