llvm-project/clang
Hans Wennborg d99d688358 Make -Wformat fix-its preserve original conversion specifiers.
This commit makes PrintfSpecifier::fixType() and ScanfSpecifier::fixType()
only fix a conversion specification enough that Clang wouldn't warn about it,
as opposed to always changing it to use the "canonical" conversion specifier.
(PR11975)

This preserves the user's choice of conversion specifier in cases like:

printf("%a", (long double)1);
where we previously suggested "%Lf", we now suggest "%La"

printf("%x", (long)1);
where we previously suggested "%ld", we now suggest "%lx".

llvm-svn: 150578
2012-02-15 09:59:46 +00:00
..
INPUTS Extend all-std-headers.cpp to include C++11 headers when building in C++11 mode. 2012-02-14 23:06:14 +00:00
bindings/python [clang.py] Implement Type.is_pod 2012-02-05 19:42:06 +00:00
docs Advertize support for constexpr. 2012-02-14 22:56:17 +00:00
examples drop more llvm:: prefixes on SmallString<> 2012-02-13 12:32:26 +00:00
include Make -Wformat fix-its preserve original conversion specifiers. 2012-02-15 09:59:46 +00:00
lib Make -Wformat fix-its preserve original conversion specifiers. 2012-02-15 09:59:46 +00:00
runtime Use the new installheaders makefile target in libcxx. 2012-01-21 06:25:34 +00:00
test Make -Wformat fix-its preserve original conversion specifiers. 2012-02-15 09:59:46 +00:00
tools Fix typo in r150549. 2012-02-15 02:07:05 +00:00
unittests drop more llvm:: prefixes on SmallString<> 2012-02-13 12:32:26 +00:00
utils [analyzer] Add the Malloc checker to the list of tested checkers. 2012-02-15 00:19:07 +00:00
www I hereby declare that all remaining constexpr issues are bugs, not unimplemented 2012-02-14 22:39:23 +00:00
.gitignore Revert "Test commit" 2011-10-24 10:03:25 +00:00
CMakeLists.txt include clang's config.h unconditionally (v2) 2012-02-14 15:54:49 +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 Make a note about a missing optimization. 2011-07-28 07:41:22 +00:00
README.txt

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/