[clang] 612048a - [clang] Fix typos in documentation (NFC)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 21 12:18:19 PDT 2021


Author: Kazu Hirata
Date: 2021-08-21T12:17:58-07:00
New Revision: 612048aec1b516d9b686d4c67ffcf047186d20d7

URL: https://github.com/llvm/llvm-project/commit/612048aec1b516d9b686d4c67ffcf047186d20d7
DIFF: https://github.com/llvm/llvm-project/commit/612048aec1b516d9b686d4c67ffcf047186d20d7.diff

LOG: [clang] Fix typos in documentation (NFC)

Added: 
    

Modified: 
    clang/docs/AddressSanitizer.rst
    clang/docs/ClangCommandLineReference.rst
    clang/docs/ClangFormatStyleOptions.rst
    clang/docs/DataFlowSanitizerDesign.rst
    clang/docs/IntroductionToTheClangAST.rst
    clang/docs/OpenMPSupport.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/AddressSanitizer.rst b/clang/docs/AddressSanitizer.rst
index 7befbc3173da..06b53e2e5da0 100644
--- a/clang/docs/AddressSanitizer.rst
+++ b/clang/docs/AddressSanitizer.rst
@@ -282,11 +282,11 @@ Code generation control
 Instrumentation code outlining
 ------------------------------
 
-By default AddressSanitizer inlines the instumentation code to improve the
+By default AddressSanitizer inlines the instrumentation code to improve the
 run-time performance, which leads to increased binary size. Using the
 (clang flag ``-fsanitize-address-outline-instrumentation` default: ``false``)
-flag forces all code instumentation to be outlined, which reduces the size
-of the generated code, but also reduces the run-time performace.
+flag forces all code instrumentation to be outlined, which reduces the size
+of the generated code, but also reduces the run-time performance.
 
 Limitations
 ===========

diff  --git a/clang/docs/ClangCommandLineReference.rst b/clang/docs/ClangCommandLineReference.rst
index 2770d28a9f3b..dcbfba3aa836 100644
--- a/clang/docs/ClangCommandLineReference.rst
+++ b/clang/docs/ClangCommandLineReference.rst
@@ -1705,7 +1705,7 @@ Enable support for int128\_t type
 
 .. option:: -ffp-contract=<arg>
 
-Form fused FP ops (e.g. FMAs): fast (fuses across statements disregarding pragmas) \| on (only fuses in the same statement unless dictated by pragmas) \| off (never fuses) \| fast-honor-pragmas (fuses across statements unless diectated by pragmas). Default is 'fast' for CUDA, 'fast-honor-pragmas' for HIP, and 'on' otherwise.
+Form fused FP ops (e.g. FMAs): fast (fuses across statements disregarding pragmas) \| on (only fuses in the same statement unless dictated by pragmas) \| off (never fuses) \| fast-honor-pragmas (fuses across statements unless dictated by pragmas). Default is 'fast' for CUDA, 'fast-honor-pragmas' for HIP, and 'on' otherwise.
 
 .. option:: -ffp-exception-behavior=<arg>
 
@@ -2543,7 +2543,7 @@ Give global types 'default' visibility and global functions and variables 'hidde
 
 .. option:: -fvisibility-nodllstorageclass=<arg>
 
-The visibility for defintiions without an explicit DLL export class \[-fvisibility-from-dllstorageclass\]
+The visibility for definitions without an explicit DLL export class \[-fvisibility-from-dllstorageclass\]
 
 .. option:: -fvisibility=<arg>
 

diff  --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst
index 5bd5ae1f080e..d8ac58734dc4 100644
--- a/clang/docs/ClangFormatStyleOptions.rst
+++ b/clang/docs/ClangFormatStyleOptions.rst
@@ -3541,7 +3541,7 @@ the configuration (without a prefix: ``Auto``).
     ForEach and If macros. This is useful in projects where ForEach/If
     macros are treated as function calls instead of control statements.
     ``SBPO_ControlStatementsExceptForEachMacros`` remains an alias for
-    backward compatability.
+    backward compatibility.
 
     .. code-block:: c++
 

diff  --git a/clang/docs/DataFlowSanitizerDesign.rst b/clang/docs/DataFlowSanitizerDesign.rst
index bed4d2f38cba..4f028de2ed09 100644
--- a/clang/docs/DataFlowSanitizerDesign.rst
+++ b/clang/docs/DataFlowSanitizerDesign.rst
@@ -139,7 +139,7 @@ Origin tracking trace representation
 ------------------------------------
 
 An origin tracking trace is a list of chains. Each chain has a stack trace
-where the DFSan runtime records a label propapation, and a pointer to its
+where the DFSan runtime records a label propagation, and a pointer to its
 previous chain. The very first chain does not point to any chain.
 
 Every four 4-bytes aligned application bytes share a 4-byte origin trace ID. A

diff  --git a/clang/docs/IntroductionToTheClangAST.rst b/clang/docs/IntroductionToTheClangAST.rst
index 286ab88d01ef..6fbb8f1d6440 100644
--- a/clang/docs/IntroductionToTheClangAST.rst
+++ b/clang/docs/IntroductionToTheClangAST.rst
@@ -32,7 +32,7 @@ clang ParenExpr).
 Examining the AST
 =================
 
-A good way to familarize yourself with the Clang AST is to actually look
+A good way to familiarize yourself with the Clang AST is to actually look
 at it on some simple example code. Clang has a builtin AST-dump mode,
 which can be enabled with the flag ``-ast-dump``.
 

diff  --git a/clang/docs/OpenMPSupport.rst b/clang/docs/OpenMPSupport.rst
index 7291a5cfc5a0..b1aa2ca65f14 100644
--- a/clang/docs/OpenMPSupport.rst
+++ b/clang/docs/OpenMPSupport.rst
@@ -133,9 +133,9 @@ implementation.
 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
 | loop extension               | inclusive scan extension (matching C++17 PSTL)               | :good:`done`             |                                                                       |
 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
-| memory mangagement           | memory allocators                                            | :good:`done`             | r341687,r357929                                                       |
+| memory management            | memory allocators                                            | :good:`done`             | r341687,r357929                                                       |
 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
-| memory mangagement           | allocate directive and allocate clause                       | :good:`done`             | r355614,r335952                                                       |
+| memory management            | allocate directive and allocate clause                       | :good:`done`             | r355614,r335952                                                       |
 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+
 | OMPD                         | OMPD interfaces                                              | :part:`not upstream`     | https://github.com/OpenMPToolsInterface/LLVM-openmp/tree/ompd-tests   |
 +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+


        


More information about the cfe-commits mailing list