llvm-project/clang
Richard Smith 6f8d2c6c9c A little tweak to the SFINAE condition reporting. Don't say:
candidate template ignored: substitution failed [with T = int]: no type named 'type' in 'std::enable_if<false, void>'

Instead, just say:

  candidate template ignored: disabled by 'enable_if' [with T = int]

... and point at the enable_if condition which (we assume) failed.

This is applied to all cases where the user writes 'typename enable_if<...>::type' (optionally prefixed with a nested name specifier), and 'enable_if<...>' names a complete class type which does not have a member named 'type', and this results in a candidate function being ignored in a SFINAE context. Thus it catches 'std::enable_if', 'std::__1::enable_if', 'boost::enable_if' and 'llvm::enable_if'.

llvm-svn: 156463
2012-05-09 05:17:00 +00:00
..
INPUTS all-std-headers.cpp: Include the C++11 headers when building with clang 2012-04-13 03:39:16 +00:00
bindings/python [clang.py] Remove trailing whitespace from recent commits 2012-05-08 06:01:34 +00:00
docs remove something that is really old and out of date. 2012-05-04 21:11:08 +00:00
examples Honour CLANG_BUILD_EXAMPLES correctly, by setting the directory's 2012-05-03 19:11:45 +00:00
include A little tweak to the SFINAE condition reporting. Don't say: 2012-05-09 05:17:00 +00:00
lib A little tweak to the SFINAE condition reporting. Don't say: 2012-05-09 05:17:00 +00:00
runtime build/compiler-rt: Stop forcing off -integrated-as for compiler-rt builds. 2012-03-05 20:19:03 +00:00
test A little tweak to the SFINAE condition reporting. Don't say: 2012-05-09 05:17:00 +00:00
tools [libclang] Map 'id'/'Class'/'SEL' to the corresponding CXType kinds. 2012-05-08 01:22:12 +00:00
unittests Unrevert r155951, reverted in r155962, with two changes: 2012-05-02 00:30:48 +00:00
utils Remove DiagGroups from notes, and add a TableGen assertion to catch them. 2012-05-04 19:05:50 +00:00
www Fix typo. 2012-05-09 04:35:15 +00:00
.gitignore
CMakeLists.txt use DEFAULT_SYSROOT 2012-04-16 04:16:43 +00:00
INSTALL.txt
LICENSE.TXT
Makefile
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/