hanchenye-llvm-project/clang
Alexander Kornienko a3555e2416 Fixed long-standing issue with incorrect length calculation of multi-line comments.
Summary:
A trailing block comment having multiple lines would cause extremely
high penalties if the summary length of its lines is more than the column limit.
Fixed by always considering only the last line of a multi-line block comment.
Removed a long-standing FIXME from relevant tests and added a motivating test
modelled after problem cases from real code.

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1010

llvm-svn: 184340
2013-06-19 19:50:11 +00:00
..
INPUTS
bindings [libclang/python] Add a few "cursor kinds" that were missing in the python binding for libclang. 2013-06-11 18:05:42 +00:00
docs [multiprecision-builtins] Added missing builtin __builtin_{add,sub}cb for {add,sub} with carry for bytes. 2013-06-18 20:40:40 +00:00
examples Include PathV1.h only where it is used. 2013-06-17 17:23:47 +00:00
include Delete dead code. (Array element types are always complete in C.) 2013-06-19 19:03:14 +00:00
lib Fixed long-standing issue with incorrect length calculation of multi-line comments. 2013-06-19 19:50:11 +00:00
runtime Nuke build of static ASan runtime on Mac OS - clang part 2013-05-20 14:33:20 +00:00
test Corrections to r184205 ('this'-return optimization) due to the wrong version of the patch being committed originally. 2013-06-19 18:10:35 +00:00
tools Update to pass in pointers intead of references. 2013-06-18 07:22:05 +00:00
unittests Fixed long-standing issue with incorrect length calculation of multi-line comments. 2013-06-19 19:50:11 +00:00
utils Remove option emitter from clang-tblgen 2013-06-18 15:25:00 +00:00
www DR14, DR101, and part of DR1: fix handling of extern "C" declarations in 2013-06-18 20:15:12 +00:00
.arcconfig
.gitignore Reverted unintendedly-committed file. 2013-01-31 19:05:31 +00:00
CMakeLists.txt Retain linker flags specified on cmake command line. 2013-06-12 20:02:59 +00:00
CODE_OWNERS.TXT
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/