From: Rafael Espindola Date: Thu, 12 Jun 2014 03:31:26 +0000 (+0000) Subject: Fix typo. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d0d89b49ca765eecbe11b97f9abf5a3b3e94915;p=platform%2Fupstream%2Fllvm.git Fix typo. Thanks to Alp Toker for noticing. llvm-svn: 210744 --- 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 {