diff --git a/clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst b/clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst --- a/clang-tools-extra/docs/clang-tidy/checks/bugprone/sizeof-expression.rst +++ b/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`.