Go to file
Jordan Rose ccf43ca05c Add pedantic warning -Wempty-translation-unit (C11 6.9p1).
In standard C since C89, a 'translation-unit' is syntactically defined to have
at least one "external-declaration", which is either a decl or a function
definition. In Clang the latter gives us a declaration as well.

The tricky bit about this warning is that our predefines can contain external
declarations (__builtin_va_list and the 128-bit integer types). Therefore our
AST parser now makes sure we have at least one declaration that doesn't come
from the predefines buffer.

Also, remove bogus warning about empty source files. This doesn't catch source
files that only contain comments, and never fired anyway because of our
predefines.

PR12665 and <rdar://problem/9165548>

llvm-svn: 158085
2012-06-06 17:25:21 +00:00
clang Add pedantic warning -Wempty-translation-unit (C11 6.9p1). 2012-06-06 17:25:21 +00:00
compiler-rt [asan] more compaction: don't use the next field while the chunk is in allocated state 2012-06-06 16:58:21 +00:00
debuginfo-tests Fix this for buggy gdb behavior alongside the change 2012-06-05 18:16:03 +00:00
libclc configure.py: Add an install rule. 2012-06-01 17:29:59 +00:00
libcxx Fix a few testsuite bugs involving trailing null (or lack thereof) in strstream. 2012-06-01 20:02:59 +00:00
libcxxabi Fix bug in cxa_demangle involving template substitution. 2012-05-02 15:38:11 +00:00
lld Add missing include. 2012-06-01 20:22:59 +00:00
lldb Fix a place in GDBRemoteCommunicationClient::SendContinuePacketAndWaitForReply where we weren't taking 2012-06-06 00:32:39 +00:00
llvm Fix combine of uno && ord -> false so that the ordering of the fcmps doesn't 2012-06-06 17:22:40 +00:00
polly Fix some coding convention problems. 2012-06-06 16:33:15 +00:00