Go to file
Benjamin Kramer 6ee1562cfc Unify handling of string literal arguments for attributes and add fixits.
This fixes a couple of latent crashes for invalid attributes and also adds a
fixit hint to turn identifiers into string literals if one was expected. It then
proceeds recovery as if the identifier was a literal. Diagnostic locations are
also changed to point at the literal instead of the attribute if the error
concerns the argument. PR17175.

For example:
hidden.c:1:40: error: 'visibility' attribute requires a string
extern int x __attribute__((visibility(hidden)));
                                       ^
                                       "     "
hidden.c:2:29: error: visibility does not match previous declaration
extern int x __attribute__((visibility("default")));
                            ^
hidden.c:1:29: note: previous attribute is here
extern int x __attribute__((visibility(hidden)));
                            ^

llvm-svn: 190699
2013-09-13 15:35:43 +00:00
clang Unify handling of string literal arguments for attributes and add fixits. 2013-09-13 15:35:43 +00:00
clang-tools-extra Transform files in a compilation database if no sources are provided. 2013-09-12 20:10:59 +00:00
compiler-rt [msan] Add source file:line to stack origin reports. 2013-09-13 12:55:07 +00:00
debuginfo-tests Auto-detect the architecture of the executable instead of using the arch of 2013-09-07 20:04:29 +00:00
libclc Parenthesize arguments for mad_hi 2013-09-09 14:36:21 +00:00
libcxx Initial implementation of <dynarray>. No allocator support pending resolution of LWG #2235; no stack allocation pending compiler support 2013-09-13 15:22:55 +00:00
libcxxabi Adding bad_array_length to libc++abi 2013-09-11 01:42:02 +00:00
lld [lld][ELF] Handle multiple weak symbols 2013-09-13 04:25:44 +00:00
lldb test: Update FreeBSD failure decorators 2013-09-13 15:34:59 +00:00
llvm typo fix: use BUILD_ARCHIVE to build .a libs and not ARCHIVE_LIBRARY 2013-09-13 15:01:54 +00:00
polly Fix build after SCEV change 2013-09-10 20:22:17 +00:00