hanchenye-llvm-project/clang/test
David Blaikie 09ffc9b473 Enable warn_impcast_literal_float_to_integer by default.
This diagnostic seems to be production ready, it's just an oversight that it
wasn't turned on by default.

The test changes are a bit of a mixed bag. Some tests that seemed like they
clearly didn't need to use this behavior have been modified not to use it.
Others that I couldn't be sure about, I added the necessary expected-warnings
to.

It's possible the diagnostic message could be improved to make it clearer that
this warning can be suppressed by using a value that won't lose precision when
converted to the target type (but can still be a floating point literal, such
as "bool b = 1.0;").

llvm-svn: 154068
2012-04-05 00:16:44 +00:00
..
ARCMT [arcmt] When fixing the "unassigned init call" ARC error, make sure 2012-03-31 01:34:06 +00:00
ASTMerge Fix crash at @implementation with a forward reference as base class. 2012-03-13 01:09:36 +00:00
Analysis Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
CXX Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
CodeCompletion Provide result types for code completions that describe built-in 2011-10-18 21:20:17 +00:00
CodeGen Add more constraint registers for mips. 2012-04-03 01:16:32 +00:00
CodeGenCUDA CUDA: IR generation support for device stubs 2011-10-06 18:51:56 +00:00
CodeGenCXX Implement C++11 [temp.arg.nontype]'s permission to use the address of an object 2012-04-04 21:11:30 +00:00
CodeGenObjC Enter an expression evaluation context when parsing 2012-04-04 01:27:53 +00:00
CodeGenObjCXX Add clang support for new Objective-C literal syntax for NSDictionary, NSArray, 2012-03-06 20:05:56 +00:00
CodeGenOpenCL A few style changes. 2012-01-19 01:16:16 +00:00
Coverage rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
Driver Honor -fno-pic, -fno-PIC, -fno-pie, -fno-PIE. 2012-04-04 23:00:14 +00:00
FixIt Replace the workaround from r153445 with a proper fix. 2012-04-03 18:20:11 +00:00
Frontend Escape % in diagnostic message when compiling LLVM IR. 2012-03-16 22:31:42 +00:00
Headers rename -ccc-host-triple into -target 2012-01-20 22:01:23 +00:00
Index Don't treat synthesized ivars as being in the base class for the purpose of 2012-04-03 20:26:45 +00:00
Lexer Add feature check "cxx_local_type_template_args" describing support 2012-04-04 00:48:39 +00:00
Misc Introduce a -cc1-level option -pubnames-dump, which simply dumps the 2012-03-27 18:06:49 +00:00
Modules Fix PR10447: lazily building name lookup tables for DeclContexts was broken. 2012-03-13 03:12:56 +00:00
PCH Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
Parser Correct error recovery when missing 'class' in a template template parameter. 2012-04-02 19:15:28 +00:00
Preprocessor [preprocessor] In Preprocessor::CachingLex() check whether there were more tokens 2012-04-04 02:57:01 +00:00
Rewriter modern objective-c translator: rewriter linkage spec. 2012-04-03 17:35:38 +00:00
Sema Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
SemaCUDA CUDA: diagnose invalid calls across targets 2011-10-02 23:49:40 +00:00
SemaCXX Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
SemaObjC objc-arc: provide a warning when 'receiver' of a message is 'weak' 2012-04-04 20:05:25 +00:00
SemaObjCXX Forbid the block and lambda copy-capture of __autoreleasing variables 2012-03-30 05:23:48 +00:00
SemaOpenCL Support constant evaluation for OpenCL nested vector literals. Patch by Anton Lokhmotov. 2012-01-03 23:24:20 +00:00
SemaTemplate Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
Tooling clang/test/Tooling/clang-check.cpp: Mark it as XFAIL also on cygwin. 2012-04-04 23:23:19 +00:00
Unit
CMakeLists.txt Add the dependency on clang-check to clang-test, so clang-check 2012-04-04 12:18:22 +00:00
Makefile
TestRunner.sh
cxx-sections.data
lit.cfg Have the driver pass CPU and target feature information to cc1as. 2012-02-10 20:37:10 +00:00
lit.site.cfg.in
make_test_dirs.pl