[PATCH] D30341: [analyzer] clarify error messages about uninitialized function arguments

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 3 14:45:57 PST 2017


NoQ added a comment.

The code looks good to me, but i'm expressing a tiny doubt: regardless of the output format, the user always has the relevant argument highlighted anyway (column number, tilde-underlined in command line, blue-ish box in scan-build, etc.), so the only significant clarification i see is on test files, where the column is not obvious.

If having that information duplicated to the warning message is considered useful (easier to read, catchy), i'm ok with it :)

The definitive document on this debate is https://clang.llvm.org/diagnostics.html : it begins with explicitly encouraging highlights through column numbers and underlines, but it doesn't provide an opinion on including this info in the warning message. So i'm confused.


Repository:
  rL LLVM

https://reviews.llvm.org/D30341





More information about the cfe-commits mailing list