From c76507403484fe3598d781edb48664a59f34a03a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 11 Nov 2015 17:22:34 +0000 Subject: Improve diagnostic --- clang-plugin/printf_check.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang-plugin') diff --git a/clang-plugin/printf_check.cc b/clang-plugin/printf_check.cc index c2144127b..1cee49cd7 100644 --- a/clang-plugin/printf_check.cc +++ b/clang-plugin/printf_check.cc @@ -504,7 +504,8 @@ namespace rspamd { if (!found) { print_error ( std::string ("bad argument for ") + fmt + " arg: " + - arg->getType ().getAsString (), + arg->getType ().getAsString () + ", resolved as: " + + builtin_type->getNameAsCString (ctx->past->getPrintingPolicy ()), arg, ctx->past, ctx->pci); return false; } -- cgit v1.2.3