Commit Graph

3 Commits

Author SHA1 Message Date
Rafael Espindola 1675c5031f Add not to a command that is expected to fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187065 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-24 18:45:44 +00:00
Richard Trieu 679efe14c6 Changed "an macro" to "a macro" in diagnostic note.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186988 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-23 21:06:45 +00:00
Richard Trieu 5940bf3306 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
2013-07-23 18:01:49 +00:00