hanchenye-llvm-project/clang
Nico Weber 72c57f49c4 Fix rejects-valid caused by r261297.
r261297 called hasUserProvidedDefaultConstructor() to check if defining a
const object is ok.  This is incorrect for this example:

  struct X { template<typename ...T> X(T...); int n; };
  const X x; // formerly OK, now bogus error

Instead, track if a class has a defaulted default constructor, and disallow
a const object for classes that either have defaulted default constructors or
if they need an implicit constructor.

Bug report and fix approach by Richard Smith, thanks!

llvm-svn: 261770
2016-02-24 20:58:14 +00:00
..
INPUTS
bindings libclang: expose dllexport, dllimport attributes 2015-12-10 18:45:18 +00:00
cmake Add call to find_package to load LLVM dependencies 2016-02-19 00:56:56 +00:00
docs Add whole-program vtable optimization feature to Clang. 2016-02-24 20:46:36 +00:00
examples Revert r260265, "clang-cl: Support loading plugins on Windows" 2016-02-11 16:33:20 +00:00
include Fix rejects-valid caused by r261297. 2016-02-24 20:58:14 +00:00
lib Fix rejects-valid caused by r261297. 2016-02-24 20:58:14 +00:00
runtime Add whole-program vtable optimization feature to Clang. 2016-02-24 20:46:36 +00:00
test Fix rejects-valid caused by r261297. 2016-02-24 20:58:14 +00:00
tools [CMake] Add install-clang-format target by migrating to add_clang_tool 2016-02-23 20:33:15 +00:00
unittests Revert "[VFS] Add 'overlay-relative' field to YAML files" and "[VFS] Fix call to getVFSFromYAML in unittests" 2016-02-23 07:06:12 +00:00
utils [cmake] Revert r260742 (and r260744) to improve order file support. 2016-02-17 02:13:35 +00:00
www Implement the likely resolution of core issue 253. 2016-02-19 01:52:46 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitignore Add the clang debug info test directory to .gitignore as it's managed separately. 2016-01-29 01:35:55 +00:00
CMakeLists.txt [cmake] Revert r260742 (and r260744) to improve order file support. 2016-02-17 02:13:35 +00:00
CODE_OWNERS.TXT Added Anastasia Stulova as a code owner for OpenCL 2016-02-03 18:51:19 +00:00
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
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.llvm.org/mailman/listinfo/cfe-dev

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