llvm-project/clang
Richard Trieu 406e65c8d1 Modify the uninitialized field visitor to detect uninitialized use across the
fields in the class.  This allows a better checking of member intiailizers and
in class initializers in regards to initialization ordering.

For instance, this code will now produce warnings:

class A {
  int x;
  int y;
  A() : x(y) {}  // y is initialized after x, warn here
  A(int): y(x) {} // default initialization of leaves x uninitialized, warn here
};

Several test cases were updated with -Wno-uninitialized to silence this warning.

llvm-svn: 191068
2013-09-20 03:03:06 +00:00
..
INPUTS
bindings [libclang] Don't report a DecayedType as "unexposed", report it as the original (as written) type. 2013-09-16 17:26:23 +00:00
docs Add the intrinsic __builtin_convertvector 2013-09-18 03:29:45 +00:00
examples Move Compilation::PrintJob and PrintDiagnosticJob into Job::Print. 2013-09-12 18:23:34 +00:00
include Modify the uninitialized field visitor to detect uninitialized use across the 2013-09-20 03:03:06 +00:00
lib Modify the uninitialized field visitor to detect uninitialized use across the 2013-09-20 03:03:06 +00:00
runtime [LSan] Add support for building standalone LSan runtime to Make build (clang part) 2013-08-20 14:49:36 +00:00
test Modify the uninitialized field visitor to detect uninitialized use across the 2013-09-20 03:03:06 +00:00
tools Simplify clang-format-diff.py using new clang-format options. 2013-09-18 12:14:09 +00:00
unittests clang-format: Don't accidentally move tokens into preprocessor directive. 2013-09-17 09:52:48 +00:00
utils Tablegen now generates a StringSwitch for attributes containing enumeration arguments to map strings to the proper enumeration value. This makes error checking more consistent and reduces the amount of hand-written code required. 2013-09-11 19:47:58 +00:00
www Switch the semantic DeclContext for a block-scope declaration of a function or 2013-09-20 01:15:31 +00:00
.arcconfig
.clang-format Switch the default mode for clang-format to '-file'. Make 'LLVM' the 2013-09-02 07:42:02 +00:00
.gitignore
CMakeLists.txt [CMake] Put controversial always-recheck-revision-number behind an option. 2013-09-12 16:17:41 +00:00
CODE_OWNERS.TXT Revert r185557 as it was a bit (a lot) premature. 2013-07-03 20:37:50 +00:00
INSTALL.txt Reverting test commit 2013-06-07 05:33:21 +00:00
LICENSE.TXT
Makefile
ModuleInfo.txt
NOTES.txt Remove an uninteresting note 2013-02-05 21:13:55 +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/