mbenfield created this revision. mbenfield added a reviewer: mizvekov. Herald added a project: All. mbenfield requested review of this revision. Herald added a project: clang-tools-extra. Herald added a subscriber: cfe-commits.
This option was just landed in D134381 <https://reviews.llvm.org/D134381>. It would make sense to actually document it. Repository: rG LLVM Github Monorepo 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 cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits