Fix UseAuto replacing declaration lists with new expressions

UseAuto used to replace declarion lists with new expressons where some
variable were not initialized with new.
This fix checks that every DeclStmt has a VarDecl with an initializer and it
also ensures that all declarations have the same type.

Added tests for multiple declarations and for typedefs.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@182736 91177308-0d34-0410-b5e6-96231b3b80d8
cpp11-migrate: Transforms collect timing data.

Using updated form of newFrontendActionFactory(), Transforms now automatically
measure, if requested, how long it takes to apply a MatchFinder to a source
file. Other per-transform overhead, e.g. applying replacements, is not
currently measured. This behaviour is disabled for now and soon will be
connected to a new command line arg.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@182942 91177308-0d34-0410-b5e6-96231b3b80d8
Tweak autoconf link params to fix migrator build



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@182957 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the build. Use proper names here.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@182959 91177308-0d34-0410-b5e6-96231b3b80d8
cpp11-migrate: Add option to detect and use macros that expand to 'override'

Added a new option -override-macros which causes the, the add-override
transform to detect macros that expand to 'override' (like LLVM_OVERRIDE) and
use these macros instead of the override keyword directly.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@183001 91177308-0d34-0410-b5e6-96231b3b80d8