diff options
| author | Richard Trieu <rtrieu@google.com> | 2013-07-23 18:01:49 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2013-07-23 18:01:49 +0000 |
| commit | 5940bf33061844c9a61d4d5c1230df9cf9e90342 (patch) | |
| tree | 94eb64c971638e4224319068d3ab174313fc978a /lib/CodeGen/CGExpr.cpp | |
| parent | 7d3240d3c949b8d0697a23a202cceba4d1a2d21f (diff) | |
| download | clang-5940bf33061844c9a61d4d5c1230df9cf9e90342.tar.gz clang-5940bf33061844c9a61d4d5c1230df9cf9e90342.tar.bz2 clang-5940bf33061844c9a61d4d5c1230df9cf9e90342.tar.xz | |
Add new diagnostic messages when too many arguments are presented to a
function-like macro. Clang will attempt to correct the arguments by detecting
braced initializer lists:
1) If possible, suggest parentheses around arguments
containing braced lists which will give the proper number of arguments.
2) If a braced list is detected at the start of a macro argument, it cannot be
corrected by parentheses. Instead, just point out the location of these
braced lists.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
