[clang-tools-extra] r260099 - [clang-tidy] Fix an error in .rst
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 8 07:09:34 PST 2016
Author: alexfh
Date: Mon Feb 8 09:09:34 2016
New Revision: 260099
URL: http://llvm.org/viewvc/llvm-project?rev=260099&view=rev
Log:
[clang-tidy] Fix an error in .rst
Modified:
clang-tools-extra/trunk/docs/clang-tidy/checks/misc-incorrect-roundings.rst
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/misc-incorrect-roundings.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/misc-incorrect-roundings.rst?rev=260099&r1=260098&r2=260099&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/misc-incorrect-roundings.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/misc-incorrect-roundings.rst Mon Feb 8 09:09:34 2016
@@ -2,8 +2,10 @@ misc-incorrect-roundings
========================
Checks the usage of patterns known to produce incorrect rounding.
-Programmers often use
- (int)(double_expression + 0.5)
+Programmers often use::
+
+ (int)(double_expression + 0.5)
+
to round the double expression to an integer. The problem with this:
1. It is unnecessarily slow.
More information about the cfe-commits
mailing list