llvm-project/clang
Chandler Carruth b4a4326824 Mark that qualifiers can prefix the auto type. This seems to just have
been an oversight, as it definitely works. Every test which changed had
the const written on the LHS of the auto already.

Notably, this also makes things like cpp11-migrate's formation of 'const
auto &' variables much more familiar.

Yes, many people feel that 'const' and other qualifiers belong on the
RHS of the type. I'm not going to argue about that because Clang already
*overwhelming* places the qualifiers on the LHS when it can and on the
RHS when it must. We shouldn't diverge for auto. We should add a tool to
clang-tidy that fixes this in either direction, and then wire up
clang-tidy to tools like cpp11-migrate to fix their placement after
transforms.

llvm-svn: 189769
2013-09-02 19:20:06 +00:00
..
INPUTS
bindings [libclang] Expose the rest of the array types. 2013-07-23 17:36:21 +00:00
docs Added WebKit style to the BasedOnStyle handling and to the relevant help messages. 2013-09-02 16:39:23 +00:00
examples Remove unused header. 2013-06-26 13:49:47 +00:00
include Clean out unused diagnostics. 2013-08-31 14:37:34 +00:00
lib Mark that qualifiers can prefix the auto type. This seems to just have 2013-09-02 19:20: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 Mark that qualifiers can prefix the auto type. This seems to just have 2013-09-02 19:20:06 +00:00
tools Added WebKit style to the BasedOnStyle handling and to the relevant help messages. 2013-09-02 16:39:23 +00:00
unittests clang-format: Fix segfault in overloaded operator parsing. 2013-09-02 09:20:39 +00:00
utils mangle aarch64 Neon ACLE scalar instrinsic name with BHSD suffix. 2013-08-29 07:55:15 +00:00
www [analyzer] Note that deadcode.UnmodifiedVariable would be an opt-in checker. 2013-08-19 23:54:35 +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 Reverted unintendedly-committed file. 2013-01-31 19:05:31 +00:00
CMakeLists.txt [doxygen] Added code for generating doxygen documentation for clang for cmake. 2013-08-28 20:29:40 +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/