[PATCH] D44231: [clang-tidy] Check for sizeof that call functions
Alexander Kornienko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 8 04:29:50 PST 2018
alexfh added inline comments.
================
Comment at: clang-tidy/misc/SizeofExpressionCheck.cpp:220
+ Result.Nodes.getNodeAs<Expr>("sizeof-integer-call")) {
+ diag(E->getLocStart(), "suspicious usage of 'sizeof(expr)' to an integer");
} else if (const auto *E = Result.Nodes.getNodeAs<Expr>("sizeof-this")) {
----------------
I'm not sure I understand the message "suspicious usage of ... to an integer". Specifically, what does the "to an integer" part mean?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44231
More information about the cfe-commits
mailing list