llvm-project/clang
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
..
INPUTS For PR11916: Add support for g++'s __int128 keyword. Unlike __int128_t, this is 2012-04-04 06:24:32 +00:00
bindings/python [clang.py] Implement Cursor.objc_type_encoding 2012-03-10 22:23:27 +00:00
docs Updated release notes for tooling. 2012-04-04 12:53:16 +00:00
examples clang-interpreter/Makefile: [PR12313] Update USEDLIBS to add clangEdit. 2012-03-21 06:25:42 +00:00
include Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
lib Allow a conversion from the empty initializer list {} to an 2012-04-04 23:09:20 +00:00
runtime build/compiler-rt: Stop forcing off -integrated-as for compiler-rt builds. 2012-03-05 20:19:03 +00:00
test Enable warn_impcast_literal_float_to_integer by default. 2012-04-05 00:16:44 +00:00
tools clangFrontend depends on clangEdit. 2012-04-04 12:25:11 +00:00
unittests clangFrontend depends on clangEdit. 2012-04-04 12:25:11 +00:00
utils Remove the vestiges of the C backend. 2012-03-23 05:51:52 +00:00
www Forward-declared enumerations are now complete, except for an interaction 2012-03-26 20:31:41 +00:00
.gitignore Revert "Test commit" 2011-10-24 10:03:25 +00:00
CMakeLists.txt CMake: install libclang.dll to $CMAKE_INSTALL_PREFIX/bin. 2012-02-25 16:46:50 +00:00
INSTALL.txt
LICENSE.TXT Happy new year 2012! 2012-01-01 08:16:56 +00:00
Makefile Add the Clang tblgen backends to Clang, and flip the switch to cause 2011-10-06 13:03:08 +00:00
ModuleInfo.txt
NOTES.txt Add a note about a missing optimization in the case of virtual 2012-03-30 04:25:03 +00:00
README.txt commit access verified, revert change 2012-03-06 22:55:51 +00:00

README.txt

//===----------------------------------------------------------------------===//
// C Language Family Front-end
//===----------------------------------------------------------------------===//

Welcome to Clang.  This is a compiler front-end for the C family of languages
(C, C++, Objective-C, and Objective-C++) which is built as part of the LLVM
compiler infrastructure project.

Unlike many other compiler frontends, Clang is useful for a number of things
beyond just compiling code: we intend for Clang to be host to a number of
different source level tools.  One example of this is the Clang Static Analyzer.

If you're interested in more (including how to build Clang) it is best to read
the relevant web sites.  Here are some pointers:

Information on Clang:              http://clang.llvm.org/
Building and using Clang:          http://clang.llvm.org/get_started.html
Clang Static Analyzer:             http://clang-analyzer.llvm.org/
Information on the LLVM project:   http://llvm.org/

If you have questions or comments about Clang, a great place to discuss them is
on the Clang development mailing list:
  http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

If you find a bug in Clang, please file it in the LLVM bug tracker:
  http://llvm.org/bugs/