https://github.com/Alfievarghese updated https://github.com/llvm/llvm-project/pull/240115
>From 11733b732220d673f78c80cc72aeda7de5a5be21 Mon Sep 17 00:00:00 2001 From: Alfie Varghese <[email protected]> Date: Sun, 8 Nov 2026 15:56:30 +0530 Subject: [PATCH 1/2] [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 >From daf887f3cdc7b51e40b42aad59cd50abbd71def1 Mon Sep 17 00:00:00 2001 From: Alfie Varghese <[email protected]> Date: Sun, 8 Nov 2026 21:05:57 +0530 Subject: [PATCH 2/2] [clang][analyzer][Docs] Fix additional typos in analyzer documentation Fix spelling and grammar errors found while scanning clang/docs/analyzer, as requested in review. Assisted-by: Antigravity --- clang/docs/analyzer/checkers.md | 4 ++-- clang/docs/analyzer/user-docs/Annotations.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clang/docs/analyzer/checkers.md b/clang/docs/analyzer/checkers.md index 5c34cf54082821..3d9ecb4768e049 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 } ``` 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' _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
