Эх сурвалжийг харах

Fix some typos in the clang doc.
Fixed with:
$ codespell -w ClangFormatStyleOptions.rst Toolchain.rst LanguageExtensions.rst ClangCommandLineReference.rst



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350192 91177308-0d34-0410-b5e6-96231b3b80d8

Sylvestre Ledru 6 жил өмнө
parent
commit
6cda55ec84

+ 1 - 1
docs/ClangCommandLineReference.rst

@@ -158,7 +158,7 @@ Compile CUDA code for host only.  Has no effect on non-CUDA compilations.
 
 
 .. option:: --cuda-include-ptx=<arg>, --no-cuda-include-ptx=<arg>
 .. option:: --cuda-include-ptx=<arg>, --no-cuda-include-ptx=<arg>
 
 
-Include PTX for the follwing GPU architecture (e.g. sm\_35) or 'all'. May be specified more than once.
+Include PTX for the following GPU architecture (e.g. sm\_35) or 'all'. May be specified more than once.
 
 
 .. option:: --cuda-noopt-device-debug, --no-cuda-noopt-device-debug
 .. option:: --cuda-noopt-device-debug, --no-cuda-noopt-device-debug
 
 

+ 1 - 1
docs/ClangFormatStyleOptions.rst

@@ -1398,7 +1398,7 @@ the configuration (without a prefix: ``Auto``).
 **JavaImportGroups** (``std::vector<std::string>``)
 **JavaImportGroups** (``std::vector<std::string>``)
   A vector of prefixes ordered by the desired groups for Java imports.
   A vector of prefixes ordered by the desired groups for Java imports.
 
 
-  Each group is seperated by a newline. Static imports will also follow the
+  Each group is separated by a newline. Static imports will also follow the
   same grouping convention above all non-static imports. One group's prefix
   same grouping convention above all non-static imports. One group's prefix
   can be a subset of another - the longest prefix is always matched. Within
   can be a subset of another - the longest prefix is always matched. Within
   a group, the imports are ordered lexicographically.
   a group, the imports are ordered lexicographically.

+ 1 - 1
docs/LanguageExtensions.rst

@@ -2725,7 +2725,7 @@ same namespace. For instance:
 Without the namespaces on the macros, ``other_function`` will be annotated with
 Without the namespaces on the macros, ``other_function`` will be annotated with
 ``[[noreturn]]`` instead of ``__attribute__((unavailable))``. This may seem like
 ``[[noreturn]]`` instead of ``__attribute__((unavailable))``. This may seem like
 a contrived example, but its very possible for this kind of situation to appear
 a contrived example, but its very possible for this kind of situation to appear
-in real code if the pragmas are spread out accross a large file.
+in real code if the pragmas are spread out across a large file.
 
 
 Subject Match Rules
 Subject Match Rules
 -------------------
 -------------------

+ 3 - 3
docs/Toolchain.rst

@@ -100,14 +100,14 @@ currently-supported languages are:
 
 
 In each case, GCC will be invoked to compile the input.
 In each case, GCC will be invoked to compile the input.
 
 
-Assember
---------
+Assembler
+---------
 
 
 Clang can either use LLVM's integrated assembler or an external system-specific
 Clang can either use LLVM's integrated assembler or an external system-specific
 tool (for instance, the GNU Assembler on GNU OSes) to produce machine code from
 tool (for instance, the GNU Assembler on GNU OSes) to produce machine code from
 assembly.
 assembly.
 By default, Clang uses LLVM's integrated assembler on all targets where it is
 By default, Clang uses LLVM's integrated assembler on all targets where it is
-supported. If you wish to use the system assember instead, use the
+supported. If you wish to use the system assembler instead, use the
 ``-fno-integrated-as`` option.
 ``-fno-integrated-as`` option.
 
 
 Linker
 Linker