hanchenye-llvm-project/clang-tools-extra/test
Edwin Vane eeed39a583 Use 'auto' with 'new' expressions
For variable declarations initialized with new expressions, use 'auto' for the
type specifier.

The 'auto' replacement happens only when the type of the VarDecl exactly
matches the type of the initializer and the VarDecl is *not* CV-qualified. The
only case that is currently handled is if the pointer type of the VarDecl is
itself CV qualified.

Some improvements need to be made to Clang's TypeLoc information in order for
other CV qualifier cases to be successfully handled. See the new test suite
new_cv_failing.cpp for examples of usages that could be handled with such an
improvement.

Function pointers are, for now, not transformed until the identifier info can
be extracted.

Reviewer: klimek
llvm-svn: 178575
2013-04-02 20:43:57 +00:00
..
cpp11-migrate Use 'auto' with 'new' expressions 2013-04-02 20:43:57 +00:00
modularize modularize - revised to group duplicate symbols together in the error output. 2013-03-28 01:20:19 +00:00
remove-cstr-calls test/remove-cstr-calls/basic.cpp: Disable again on mingw. It behaves unstable. 2013-01-26 06:39:48 +00:00
CMakeLists.txt Added simple regression test for modularize. 2013-03-26 01:18:28 +00:00
Makefile Switch from autogenerating tests to using the preprocessor. 2013-03-07 10:09:47 +00:00
lit.cfg Revised per review comments to rename test files and rearrange input files. 2013-03-26 18:17:28 +00:00
lit.site.cfg.in Switch from autogenerating tests to using the preprocessor. 2013-03-07 10:09:47 +00:00