]> granicus.if.org Git - clang/commit
[Sema] Clean up some __builtin_*_chk diagnostics
authorErik Pilkington <erik.pilkington@gmail.com>
Thu, 6 Sep 2018 17:19:33 +0000 (17:19 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Thu, 6 Sep 2018 17:19:33 +0000 (17:19 +0000)
commit0eb34b90309c1153a9958e6e76bf187b5a39aea0
tree4472046cc7e179377ec922eadf258c1b3baffb54
parent1f430570d263f54a2a9931a0f99c933aff56bc41
[Sema] Clean up some __builtin_*_chk diagnostics

Namely, print the likely macro name when it's used, and include the actual
computed sizes in the diagnostic message, which are sometimes not obvious.

rdar://43909200

Differential revision: https://reviews.llvm.org/D51697

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341566 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaChecking.cpp
test/Sema/builtin-object-size.c
test/Sema/builtins.c