From 612048aec1b516d9b686d4c67ffcf047186d20d7 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 21 Aug 2021 12:17:58 -0700 Subject: [PATCH] [clang] Fix typos in documentation (NFC) --- clang/docs/AddressSanitizer.rst | 6 +++--- clang/docs/ClangCommandLineReference.rst | 4 ++-- clang/docs/ClangFormatStyleOptions.rst | 2 +- clang/docs/DataFlowSanitizerDesign.rst | 2 +- clang/docs/IntroductionToTheClangAST.rst | 2 +- clang/docs/OpenMPSupport.rst | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/clang/docs/AddressSanitizer.rst b/clang/docs/AddressSanitizer.rst index 7befbc3..06b53e2 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 2770d28..dcbfba3 100644 --- a/clang/docs/ClangCommandLineReference.rst +++ b/clang/docs/ClangCommandLineReference.rst @@ -1705,7 +1705,7 @@ Enable support for int128\_t type .. option:: -ffp-contract= -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= @@ -2543,7 +2543,7 @@ Give global types 'default' visibility and global functions and variables 'hidde .. option:: -fvisibility-nodllstorageclass= -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= diff --git a/clang/docs/ClangFormatStyleOptions.rst b/clang/docs/ClangFormatStyleOptions.rst index 5bd5ae1..d8ac587 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 bed4d2f..4f028de 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 286ab88..6fbb8f1 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 7291a5c..b1aa2ca 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 | +------------------------------+--------------------------------------------------------------+--------------------------+-----------------------------------------------------------------------+ -- 2.7.4