summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2013-07-23 18:01:49 +0000
committerRichard Trieu <rtrieu@google.com>2013-07-23 18:01:49 +0000
commit5940bf33061844c9a61d4d5c1230df9cf9e90342 (patch)
tree94eb64c971638e4224319068d3ab174313fc978a /lib/CodeGen/CGExpr.cpp
parent7d3240d3c949b8d0697a23a202cceba4d1a2d21f (diff)
downloadclang-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