r210744 - Fix typo.
Rafael Espindola
rafael.espindola at gmail.com
Wed Jun 11 20:31:26 PDT 2014
Author: rafael
Date: Wed Jun 11 22:31:26 2014
New Revision: 210744
URL: http://llvm.org/viewvc/llvm-project?rev=210744&view=rev
Log:
Fix typo.
Thanks to Alp Toker for noticing.
Modified:
cfe/trunk/include/clang/Format/Format.h
cfe/trunk/lib/Format/Format.cpp
Modified: cfe/trunk/include/clang/Format/Format.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Format/Format.h?rev=210744&r1=210743&r2=210744&view=diff
==============================================================================
--- cfe/trunk/include/clang/Format/Format.h (original)
+++ cfe/trunk/include/clang/Format/Format.h Wed Jun 11 22:31:26 2014
@@ -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
Modified: cfe/trunk/lib/Format/Format.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Format/Format.cpp?rev=210744&r1=210743&r2=210744&view=diff
==============================================================================
--- cfe/trunk/lib/Format/Format.cpp (original)
+++ cfe/trunk/lib/Format/Format.cpp Wed Jun 11 22:31:26 2014
@@ -258,12 +258,12 @@ template <> struct DocumentListTraits<st
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 {
More information about the cfe-commits
mailing list