]> granicus.if.org Git - clang/commit
[Diagnostics] Improve -Wsizeof-pointer-div
authorDavid Bolvansky <david.bolvansky@gmail.com>
Sun, 18 Aug 2019 10:10:09 +0000 (10:10 +0000)
committerDavid Bolvansky <david.bolvansky@gmail.com>
Sun, 18 Aug 2019 10:10:09 +0000 (10:10 +0000)
commitdbd1ed846b3fcc8deab1ee1dd4ceb231b880caec
tree2a814841bd5fd4901c58963db43da2ef3e33312a
parent177cadc90dd0997cc5d0fc52a0974a4287be1b04
[Diagnostics] Improve -Wsizeof-pointer-div

Emit diag note with a location of pointer declaration.
Revisited/added tests.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369206 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExpr.cpp
test/Sema/div-sizeof-ptr.cpp