summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/MemoryBufferTest.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
commit79b45389c3cd2f1ab0904b636f8451849038cddf (patch)
treed5a8d314e7d002bf2bd9af5c6ab1c9287b7b9459 /llvm/unittests/Support/MemoryBufferTest.cpp
parent8c4245455ad4ad171387ec8dac33a28fa58da84b (diff)
downloadbcm5719-llvm-79b45389c3cd2f1ab0904b636f8451849038cddf.tar.gz
bcm5719-llvm-79b45389c3cd2f1ab0904b636f8451849038cddf.zip
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. llvm-svn: 186971
Diffstat (limited to 'llvm/unittests/Support/MemoryBufferTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud