[clang] [flang] [mlir] [NFC][Docs] Fix typos across clang, flang, and mlir documentation (PR #240115)
Alfie Varghese via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 8 02:27:49 PST 2026
https://github.com/Alfievarghese created https://github.com/llvm/llvm-project/pull/240115
Fix various doubled-word typos and a spelling error across documentation in the clang, flang, and mlir subprojects.
**Changes:**
- `clang/docs/analyzer/checkers.md`: Fix "the the" → "the" (2 occurrences), fix "offeset" → "offset"
- `flang/docs/ArrayRepacking.md`: Fix "the the" → "the"
- `flang/docs/AssumedRank.md`: Fix "the the" → "the"
- `flang/docs/OpenACC-descriptor-management.md`: Fix "the the" → "the"
- `flang/docs/PolymorphicEntities.md`: Fix "call the the" → "call to the"
- `mlir/docs/DefiningDialects/AttributesAndTypes.md`: Fix "via the The" → "via the"
- `mlir/docs/OwnershipBasedBufferDeallocation.md`: Fix "corresponding the the" → "corresponding to the"
>From 11733b732220d673f78c80cc72aeda7de5a5be21 Mon Sep 17 00:00:00 2001
From: Alfie Varghese <alfievarghese22 at gmail.com>
Date: Sun, 8 Nov 2026 15:56:30 +0530
Subject: [PATCH] [NFC][Docs] Fix typos across clang, flang, and mlir
documentation
Fix various documentation typos:
- clang/docs/analyzer/checkers.md: Fix duplicated "the the" and "offeset"
- flang/docs/ArrayRepacking.md: Fix duplicated "the the"
- flang/docs/AssumedRank.md: Fix duplicated "the the"
- flang/docs/OpenACC-descriptor-management.md: Fix duplicated "the the"
- flang/docs/PolymorphicEntities.md: Fix "call the the" to "call to the"
- mlir/docs/DefiningDialects/AttributesAndTypes.md: Fix "via the The"
- mlir/docs/OwnershipBasedBufferDeallocation.md: Fix "corresponding the the"
---
clang/docs/analyzer/checkers.md | 6 +++---
flang/docs/ArrayRepacking.md | 2 +-
flang/docs/AssumedRank.md | 2 +-
flang/docs/OpenACC-descriptor-management.md | 2 +-
flang/docs/PolymorphicEntities.md | 2 +-
mlir/docs/DefiningDialects/AttributesAndTypes.md | 2 +-
mlir/docs/OwnershipBasedBufferDeallocation.md | 2 +-
7 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/clang/docs/analyzer/checkers.md b/clang/docs/analyzer/checkers.md
index e2bbf52943bb87..5c34cf54082821 100644
--- a/clang/docs/analyzer/checkers.md
+++ b/clang/docs/analyzer/checkers.md
@@ -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/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