5940bf33061844c9a61d4d5c1230df9cf9e90342 |
|
23-Jul-2013 |
Richard Trieu <rtrieu@google.com> |
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
/external/clang/test/Preprocessor/macro_fn.c
|
0ee8de7fe9c1fb74574c62b9d59ffe46a94435f4 |
|
14-Dec-2012 |
Argyrios Kyrtzidis <akyrtzi@gmail.com> |
[preprocessor] For errors at a function macro invocation, also include a note about where the macro is defined. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170228 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Preprocessor/macro_fn.c
|
4fa4b480270c14dfdcd0dfd4f76938e973082e3b |
|
14-Nov-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Suppress elided variadic macro argument extension diagnostic for macros using the related comma pasting extension. In certain cases, we used to get two diagnostics for what is essentially one extension. This change suppresses the first diagnostic in certain cases where we know we're going to print the second diagnostic. The diagnostic is redundant, and it can't be suppressed in the definition of the macro because it points at the use of the macro, so we want to avoid printing it if possible. The implementation works by detecting constructs which look like comma pasting at the time of the definition of the macro; this information is then used when the macro is used. (We can't actually detect whether we're using the comma pasting extension until the macro is actually used, but we can detecting constructs which will be comma pasting if the varargs argument is elided.) <rdar://problem/12292192> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167907 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Preprocessor/macro_fn.c
|
9f728cd37476c6588b06d241fa778d2df6e277da |
|
23-Jun-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
Minor improvements to some C99 variadic-macro-related diagnostics. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159054 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Preprocessor/macro_fn.c
|
a5728872c7702ddd09537c95bc3cbd20e1f2fb09 |
|
15-Dec-2009 |
Daniel Dunbar <daniel@zuster.org> |
Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Preprocessor/macro_fn.c
|
a864cf7c1d774a0f790bfc46befc87d9dbf1f65c |
|
24-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
fix rdar://6816766 - Crash with function-like macro test at end of directive. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69964 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Preprocessor/macro_fn.c
|
97e2de171de555feb1ef422e71874082a67498c9 |
|
20-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
fix the second half of PR4006 and rdar://6807000 by treating () as being either zero arguments or one empty argument depending on situation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Preprocessor/macro_fn.c
|
8fde5978a63bcce5c294a93b2a5dd424d7628971 |
|
19-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
Fix PR4006, incorrect handling of __VA_ARGS__ when it was the first token in a function-like macro body. This has the added bonus of moving some function-like macro specific code out of the object-like macro codepath. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69530 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Preprocessor/macro_fn.c
|
0a4f1b9550b81b1391d79c0dd5a416951f4df9a6 |
|
18-Apr-2009 |
Chris Lattner <sabre@nondot.org> |
Substantially restructure function-like macro argument parsing. Highlights: PP::isNextPPTokenLParen() no longer eats the ( when present. We now simplify slightly the logic parsing macro arguments. We now handle PR3937 and other related cases correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69411 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Preprocessor/macro_fn.c
|