[clang] Docs: ambiguous use of "explicitly" in [[clang::no_specializaiton]] (PR #143839)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 11 23:23:35 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Michael Davis (mdavis36)
<details>
<summary>Changes</summary>
# Summary
This PR resolves issue #<!-- -->143719.
- Removes "explcitly" from the documentation on `[[clang::no_specialization]]` to better match behavior of specialization as defined by the C++ standard.
---
Full diff: https://github.com/llvm/llvm-project/pull/143839.diff
1 Files Affected:
- (modified) clang/include/clang/Basic/AttrDocs.td (+2-2)
``````````diff
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index 047f51ffa59ed..508cf6d427a52 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -1216,8 +1216,8 @@ def NoSpecializationsDocs : Documentation {
let Category = DocCatDecl;
let Content = [{
``[[clang::no_specializations]]`` can be applied to function, class, or variable
-templates which should not be explicitly specialized by users. This is primarily
-used to diagnose user specializations of standard library type traits.
+templates which should not be specialized by users. This is primarily used to
+diagnose user specializations of standard library type traits.
}];
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/143839
More information about the cfe-commits
mailing list