[clang-tidy] Correct IncorrectRoundings namespace.
authorHaojian Wu <hokein@google.com>
Mon, 8 Feb 2016 15:54:30 +0000 (15:54 +0000)
committerHaojian Wu <hokein@google.com>
Mon, 8 Feb 2016 15:54:30 +0000 (15:54 +0000)
Reviewers: alexfh

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D16987

llvm-svn: 260105

clang-tools-extra/clang-tidy/misc/IncorrectRoundings.cpp
clang-tools-extra/clang-tidy/misc/IncorrectRoundings.h

index 993af51..0001911 100644 (file)
@@ -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 MatchFinder::MatchResult &Result) {
        "consider using lround (#include <cmath>) instead");
 }
 
+} // namespace misc
 } // namespace tidy
 } // namespace clang
index bb7cf14..7c571bd 100644 (file)
@@ -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_