[clang-tools-extra] r260105 - [clang-tidy] Correct IncorrectRoundings namespace.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 8 07:54:30 PST 2016
Author: hokein
Date: Mon Feb 8 09:54:30 2016
New Revision: 260105
URL: http://llvm.org/viewvc/llvm-project?rev=260105&view=rev
Log:
[clang-tidy] Correct IncorrectRoundings namespace.
Reviewers: alexfh
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D16987
Modified:
clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp
clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h
Modified: clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp?rev=260105&r1=260104&r2=260105&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp (original)
+++ clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp Mon Feb 8 09:54:30 2016
@@ -36,6 +36,7 @@ using namespace clang::ast_matchers;
namespace clang {
namespace tidy {
+namespace misc {
void IncorrectRoundings::registerMatchers(MatchFinder *MatchFinder) {
// Match a floating literal with value 0.5.
auto FloatHalf = floatLiteral(floatHalf());
@@ -70,5 +71,6 @@ void IncorrectRoundings::check(const Mat
"consider using lround (#include <cmath>) instead");
}
+} // namespace misc
} // namespace tidy
} // namespace clang
Modified: clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h?rev=260105&r1=260104&r2=260105&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h (original)
+++ clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h Mon Feb 8 09:54:30 2016
@@ -14,6 +14,7 @@
namespace clang {
namespace tidy {
+namespace misc {
/// \brief Checks the usage of patterns known to produce incorrect rounding.
/// Programmers often use
@@ -31,8 +32,8 @@ public:
void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
};
+} // namespace misc
} // namespace tidy
} // namespace clang
-
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_INCORRECTROUNDINGS_H_
More information about the cfe-commits
mailing list