llvm-project/clang/lib
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
..
ARCMigrate [arcmt] Use CFBridgingRetain/CFBridgingRelease instead of __bridge_retained/__bridge_transfer 2012-06-01 00:10:47 +00:00
AST A non-explicit constructor template with a second parameter that is a 2012-06-05 23:44:51 +00:00
Analysis Zap the /Za compiler switch from MSVC projects, the option is considered harmful even by Microsoft people and clang won't build using the MSVC 2012 RC if not removed. 2012-06-06 12:00:10 +00:00
Basic Add pedantic warning -Wempty-translation-unit (C11 6.9p1). 2012-06-06 17:25:21 +00:00
CodeGen Fix a bug with va_arg and vectors on Darwin x86-32. <rdar://problem/11592208>. 2012-06-05 19:40:46 +00:00
Driver Zap the /Za compiler switch from MSVC projects, the option is considered harmful even by Microsoft people and clang won't build using the MSVC 2012 RC if not removed. 2012-06-06 12:00:10 +00:00
Edit [objcmt] Don't migrate to subscripting syntax if the required methods have not 2012-06-04 21:23:26 +00:00
Frontend Zap the /Za compiler switch from MSVC projects, the option is considered harmful even by Microsoft people and clang won't build using the MSVC 2012 RC if not removed. 2012-06-06 12:00:10 +00:00
FrontendTool Fix cmake. Remaining two ClangCC1Options deps. 2012-05-02 05:31:31 +00:00
Headers Add fma3 intrinsic header file. 2012-06-04 03:42:47 +00:00
Lex Add pedantic warning -Wempty-translation-unit (C11 6.9p1). 2012-06-06 17:25:21 +00:00
Parse Add pedantic warning -Wempty-translation-unit (C11 6.9p1). 2012-06-06 17:25:21 +00:00
Rewrite Fix typos found by http://github.com/lyda/misspell-check 2012-06-02 10:20:41 +00:00
Sema Introduce -Wunused-private-field. If enabled, this warning detects 2012-06-06 08:32:04 +00:00
Serialization Address minor FIXME in RedeclLink to contain a PointerIntPair instead of derive from it. 2012-05-28 19:38:42 +00:00
StaticAnalyzer Disable path pruning for UndefResultChecker. It turns out we usually want to see more of the path 2012-06-06 06:25:37 +00:00
Tooling Fixed a problem related to resolution of built-in headers in case a path of tool's binary contains sym-links. 2012-06-04 19:02:59 +00:00
CMakeLists.txt Remove the unused, unmaintained, incomplete 'Index' library. 2012-04-13 16:31:46 +00:00
Makefile Remove the unused, unmaintained, incomplete 'Index' library. 2012-04-13 16:31:46 +00:00