[clang] f0b6619 - [NFC][Docs] Fix typos across clang, flang, and mlir documentation (#240115)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 02:36:35 PST 2026
Author: Alfie Varghese
Date: 2026-11-10T10:36:30Z
New Revision: f0b6619558e5665bb0ee455e4aad7b38de30cc04
URL: https://github.com/llvm/llvm-project/commit/f0b6619558e5665bb0ee455e4aad7b38de30cc04
DIFF: https://github.com/llvm/llvm-project/commit/f0b6619558e5665bb0ee455e4aad7b38de30cc04.diff
LOG: [NFC][Docs] Fix typos across clang, flang, and mlir documentation (#240115)
Fix various doubled word typos and a spelling error across documentation
in the clang, flang, and mlir subprojects.
Assisted-by: Antigravity
Added:
Modified:
clang/docs/analyzer/checkers.md
clang/docs/analyzer/user-docs/Annotations.md
flang/docs/ArrayRepacking.md
flang/docs/AssumedRank.md
flang/docs/OpenACC-descriptor-management.md
flang/docs/PolymorphicEntities.md
mlir/docs/DefiningDialects/AttributesAndTypes.md
mlir/docs/OwnershipBasedBufferDeallocation.md
Removed:
################################################################################
diff --git a/clang/docs/analyzer/checkers.md b/clang/docs/analyzer/checkers.md
index bef63c0b0222d0..0ea0b31c51927d 100644
--- a/clang/docs/analyzer/checkers.md
+++ b/clang/docs/analyzer/checkers.md
@@ -528,7 +528,7 @@ checked:
(but excluding move-safe ones) and smart pointers.
- With option value `KnownsAndLocals` local variables (of any type) are
additionally checked. The idea behind this is that local variables are
- usually not tempting to be re-used so an use after move is more likely a bug
+ usually not tempting to be re-used so a use after move is more likely a bug
than with member variables.
- With option value `All` any use-after move condition is checked on all
kinds of variables, excluding global variables and known move-safe cases.
@@ -854,7 +854,7 @@ void test2(int *p) {
void test3() {
int (*p_function)(char, char);
p_function = (int (*)(char, char))0x04080;
- int x = (*p_function)('x', 'y'); // NO warning yet at functon pointer calls
+ int x = (*p_function)('x', 'y'); // NO warning yet at function pointer calls
}
```
@@ -1506,7 +1506,7 @@ void not_vulnerable(void) {
scanf("%zu", &size);
if (1024 < size)
return;
- int *p = malloc(size); // No warning expected as the the user input is bound
+ int *p = malloc(size); // No warning expected as the user input is bound
free(p);
}
@@ -1589,8 +1589,8 @@ int *test_dynamic() {
```
In uncertain situations (when the checker can neither prove nor disprove that
-overflow occurs), the checker assumes that the the index (more precisely, the
-memory offeset) is within bounds.
+overflow occurs), the checker assumes that the index (more precisely, the
+memory offset) is within bounds.
However, if {ref}`optin-taint-GenericTaint` is enabled and the index/offset is
tainted (i.e. it is influenced by an untrusted source), then this checker
diff --git a/clang/docs/analyzer/user-docs/Annotations.md b/clang/docs/analyzer/user-docs/Annotations.md
index d1551f5750f22c..a8512f7034ba8b 100644
--- a/clang/docs/analyzer/user-docs/Annotations.md
+++ b/clang/docs/analyzer/user-docs/Annotations.md
@@ -597,7 +597,7 @@ By default, the following summaries are assumed:
- Functions are assumed not to change the reference count of their parameters,
including the implicit `this` parameter.
-These summaries can be overriden with the following
+These summaries can be overridden with the following
{ref}`attributes <os-retained-attr-family>`:
#### Attribute 'os_returns_retained'
diff --git a/flang/docs/ArrayRepacking.md b/flang/docs/ArrayRepacking.md
index 69f955783f7abe..884f3d4e44a6e6 100755
--- a/flang/docs/ArrayRepacking.md
+++ b/flang/docs/ArrayRepacking.md
@@ -387,7 +387,7 @@ Lowering of the new operations (after all the optimizations) might be done in a
`fir.unpack_array` lowering:
-* If `no_copy` is not present, then call Fortran runtime to do the the copy into the original array. The copy must be made iff `fir.box_addr %var != fir.box_addr %new_var`.
+* If `no_copy` is not present, then call Fortran runtime to do the copy into the original array. The copy must be made iff `fir.box_addr %var != fir.box_addr %new_var`.
* If `stack` is not present, generate:
diff --git a/flang/docs/AssumedRank.md b/flang/docs/AssumedRank.md
index e296316f776b3c..32472ca52a88d3 100644
--- a/flang/docs/AssumedRank.md
+++ b/flang/docs/AssumedRank.md
@@ -93,7 +93,7 @@ dummy data objects) with a `semantics::ArraySpec` that encodes the
`semantics::AssocEntityDetails` (associated entity in the RANK DEFAULT case).
Inside a select rank, a `semantics::Symbol` is created for the associated
-entity with `semantics::AssocEntityDetails` that points to the the selector
+entity with `semantics::AssocEntityDetails` that points to the selector
and holds the rank outside of the RANK DEFAULT case.
Assumed-rank dummies are also represented in the
diff --git a/flang/docs/OpenACC-descriptor-management.md b/flang/docs/OpenACC-descriptor-management.md
index a9618667af3870..c21dd9d1460d0f 100644
--- a/flang/docs/OpenACC-descriptor-management.md
+++ b/flang/docs/OpenACC-descriptor-management.md
@@ -98,7 +98,7 @@ program main
! 3.2.29:
! The detach action is performed. According to 2.7.2 the attachment
! counter of d%p is decremented to 0, which initiates an update
- ! of the the device pointer to have the same value as the corresponding
+ ! of the device pointer to have the same value as the corresponding
! pointer in the local memory.
! We will discuss this in more detail below.
call acc_detach(d%p)
diff --git a/flang/docs/PolymorphicEntities.md b/flang/docs/PolymorphicEntities.md
index 65830685085846..68c1e793c40e6e 100644
--- a/flang/docs/PolymorphicEntities.md
+++ b/flang/docs/PolymorphicEntities.md
@@ -604,7 +604,7 @@ occurs.
Final subroutines like User-Defined Derived Type Input/Output are stored as
special bindings in the type descriptor. The runtime is able to handle the
-finalization with a call the the `@_FortranADestroy` function
+finalization with a call to the `@_FortranADestroy` function
(`flang/include/flang/Runtime/derived-api.h`).
**FIR**
diff --git a/mlir/docs/DefiningDialects/AttributesAndTypes.md b/mlir/docs/DefiningDialects/AttributesAndTypes.md
index a339a763bd607d..5ec0d3c2939b26 100644
--- a/mlir/docs/DefiningDialects/AttributesAndTypes.md
+++ b/mlir/docs/DefiningDialects/AttributesAndTypes.md
@@ -1005,7 +1005,7 @@ without tearing down loaded dialects.
In most cases the storage class is auto generated, but if necessary it can be
manually defined by setting the `genStorageClass` field to 0. The name and
-namespace (defaults to `detail`) can additionally be controlled via the The
+namespace (defaults to `detail`) can additionally be controlled via the
`storageClass` and `storageNamespace` fields.
#### Defining a storage class
diff --git a/mlir/docs/OwnershipBasedBufferDeallocation.md b/mlir/docs/OwnershipBasedBufferDeallocation.md
index f5fa01c4c49cca..e7a105e0e2aa26 100644
--- a/mlir/docs/OwnershipBasedBufferDeallocation.md
+++ b/mlir/docs/OwnershipBasedBufferDeallocation.md
@@ -494,7 +494,7 @@ booleans as arguments:
represent the condition under which the MemRef at the corresponding
position in A should be deallocated.
* The fifth argument E is used to pass results to the caller. It
- provides the ownership value corresponding the the MemRef at the same
+ provides the ownership value corresponding to the MemRef at the same
position in B
This helper function is supposed to be called once for each
More information about the cfe-commits
mailing list