This revision was automatically updated to reflect the committed changes.
Closed by commit rG33bc9c3bf2e0: Document WarnOnSizeOfPointerToAggregate.
(authored by mbenfield).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D134457/new/
https://reviews.llvm.org/D134457
Files:
clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst
+++ clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst
@@ -187,3 +187,9 @@
When `true`, the check will warn on an expression like
``sizeof(expr) <= k`` for a suspicious constant `k` while `k` is `0` or
greater than `0x8000`. Default is `true`.
+
+.. option:: WarnOnSizeOfPointerToAggregate
+
+ When `true, the check will warn on an expression like
+ ``sizeof(expr)`` where the expression is a pointer
+ to aggregate. Default is `true`.
Index: clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst
===================================================================
--- clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst
+++ clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst
@@ -187,3 +187,9 @@
When `true`, the check will warn on an expression like
``sizeof(expr) <= k`` for a suspicious constant `k` while `k` is `0` or
greater than `0x8000`. Default is `true`.
+
+.. option:: WarnOnSizeOfPointerToAggregate
+
+ When `true, the check will warn on an expression like
+ ``sizeof(expr)`` where the expression is a pointer
+ to aggregate. Default is `true`.
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits