Lines Matching refs:SizeOf
3498 /// \brief If E is a sizeof expression, returns its argument expression,
3501 if (const UnaryExprOrTypeTraitExpr *SizeOf =
3503 if (SizeOf->getKind() == clang::UETT_SizeOf && !SizeOf->isArgumentType())
3504 return SizeOf->getArgumentExpr()->IgnoreParenImpCasts();
3509 /// \brief If E is a sizeof expression, returns its argument type.
3511 if (const UnaryExprOrTypeTraitExpr *SizeOf =
3513 if (SizeOf->getKind() == clang::UETT_SizeOf)
3514 return SizeOf->getTypeOfArgument();
3542 // We have special checking when the length is a sizeof expression.
3560 // Catch "memset(p, 0, sizeof(p))" -- needs to be sizeof(*p). Do this by
3568 // cache the sizeof arg's ID.
3574 // TODO: For strncpy() and friends, this could suggest sizeof(dst)
3575 // over sizeof(src) as well.
3584 ActionIdx = 2; // If the pointee's size is sizeof(char),
3619 // Also check for cases where the sizeof argument is the exact same
3677 // we don't want to remove sizeof().
3726 // Look for 'strlcpy(dst, x, sizeof(x))'
3741 // Determine if the argument to sizeof/strlen is equal to the source
3761 // we could say 'sizeof(array)-2'.
3768 OS << "sizeof(";
3797 // strncat(dst, src, sizeof(dst) - strlen(dest) - 1);
3811 // - sizeof(dst)
3814 // - sizeof(src)
3821 // - sizeof(dst) - strlen(dst)
3825 // - sizeof(src) - (anything)
3865 OS << "sizeof(";