This revision was automatically updated to reflect the committed changes. Closed by commit rL260105: [clang-tidy] Correct IncorrectRoundings namespace. (authored by hokein).
Changed prior to commit: http://reviews.llvm.org/D16987?vs=47199&id=47202#toc Repository: rL LLVM http://reviews.llvm.org/D16987 Files: clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h Index: clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h =================================================================== --- clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h +++ clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h @@ -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 @@ 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_ Index: clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp =================================================================== --- clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp +++ clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp @@ -36,6 +36,7 @@ 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 @@ "consider using lround (#include <cmath>) instead"); } +} // namespace misc } // namespace tidy } // namespace clang
Index: clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h =================================================================== --- clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h +++ clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.h @@ -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 @@ 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_ Index: clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp =================================================================== --- clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp +++ clang-tools-extra/trunk/clang-tidy/misc/IncorrectRoundings.cpp @@ -36,6 +36,7 @@ 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 @@ "consider using lround (#include <cmath>) instead"); } +} // namespace misc } // namespace tidy } // namespace clang
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits