Author: Fangrui Song
Date: 2020-11-02T21:07:15-08:00
New Revision: 0d4e1729e36f6db464adf8342efce9734a1ec1ea

URL: 
https://github.com/llvm/llvm-project/commit/0d4e1729e36f6db464adf8342efce9734a1ec1ea
DIFF: 
https://github.com/llvm/llvm-project/commit/0d4e1729e36f6db464adf8342efce9734a1ec1ea.diff

LOG: [docs] Fix clang/docs/UsersManual.rst after D87528 & D88446

Added: 
    

Modified: 
    clang/docs/UsersManual.rst
    clang/docs/index.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index 5d18435aab6c..9601ff48c777 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -1428,10 +1428,10 @@ Consider this example when compiled with 
``-frounding-math``
 
    .. code-block:: console
 
-constexpr float func_01(float x, float y) {
-  return x + y;
-}
-float V1 = func_01(1.0F, 0x0.000001p0F);
+     constexpr float func_01(float x, float y) {
+       return x + y;
+     }
+     float V1 = func_01(1.0F, 0x0.000001p0F);
 
 The C++ rule is that initializers for static storage duration variables are
 first evaluated during translation (therefore, in the default rounding mode),
@@ -2552,8 +2552,7 @@ Differences between ``*94`` and ``*99`` modes:
    This can be overridden for individual functions with the ``__gnu_inline__``
    attribute.
 -  The scope of names defined inside a ``for``, ``if``, ``switch``, ``while``,
-  or ``do`` statement is 
diff erent. (example: ``if ((struct x {int x;}*)0)
-  {}``.)
+   or ``do`` statement is 
diff erent. (example: ``if ((struct x {int x;}*)0) {}``.)
 -  ``__STDC_VERSION__`` is not defined in ``*89`` modes.
 -  ``inline`` is not recognized as a keyword in ``c89`` mode.
 -  ``restrict`` is not recognized as a keyword in ``*89`` modes.

diff  --git a/clang/docs/index.rst b/clang/docs/index.rst
index c49312861baa..2c7728713cab 100644
--- a/clang/docs/index.rst
+++ b/clang/docs/index.rst
@@ -44,6 +44,7 @@ Using Clang as a Compiler
    OpenCLSupport
    OpenMPSupport
    ThinLTO
+   APINotes
    CommandGuide/index
    FAQ
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to