Remove clang-format tests from tools/extra.

These will be re-added to clang/test.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177852 91177308-0d34-0410-b5e6-96231b3b80d8
Adding clang-headers as dependency of cpp11-migrate

Fix build dependency. Now can say 'make cpp11-migrate' (with cmake anyway) from
a clean build and result will be usable.

Author: Ariel J Bernal <ariel.j.bernal@intel.com>


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177871 91177308-0d34-0410-b5e6-96231b3b80d8
Adding a failing test case for cpp11-migrate's Loop Convert Transform

Related to PR15589.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177891 91177308-0d34-0410-b5e6-96231b3b80d8
Revised to use file list path as reference path, or path provide by new -prefix option.  Revised to use LLVM option parser.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177959 91177308-0d34-0410-b5e6-96231b3b80d8
Added simple regression test for modularize.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177960 91177308-0d34-0410-b5e6-96231b3b80d8
Docs describing limitations of the cpp11-migrate Loop Convert Transform

Sam Panzer, author of loop convert, provided a list of limitations of the tool
to be documented. (Thanks Sam!)

The transform's limitations are now documented in the existing user doc.
Included are examples of the cases where the tool may change semantics.

Author: Jack Yang <jack.yang@intel.com>


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178034 91177308-0d34-0410-b5e6-96231b3b80d8
Revised per review comments to rename test files and rearrange input files.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178047 91177308-0d34-0410-b5e6-96231b3b80d8
Revised to use MemoryBuffer. Removed redundant llvm:: qualifiers.  Removed unnecessary c_str() calls.  Reformatted with clang-format.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178104 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed path in file comment.  Fixed #include order.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178164 91177308-0d34-0410-b5e6-96231b3b80d8
cpp11-migrate segfaults transforming map<string,int>::iterator 

cpp11-migrate segfaults when -use-auto tries to resolve initializing 
expression resulting in an expression with cleanups.

- Skip expressions with cleanups from the initializer
- Added test case

Fixes PR15550



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178167 91177308-0d34-0410-b5e6-96231b3b80d8
Added informational comment about using -x c++.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178172 91177308-0d34-0410-b5e6-96231b3b80d8
Broke out header file list reading into separate function. Moved options to front.  Removed some trailing spaces.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178182 91177308-0d34-0410-b5e6-96231b3b80d8
modularize - revised to group duplicate symbols together in the error output.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178207 91177308-0d34-0410-b5e6-96231b3b80d8
Fix a default on covered switch found by -Wcovered-switch-default

Introduced in r178207

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178212 91177308-0d34-0410-b5e6-96231b3b80d8
modularize - Fixed poor array usage.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178214 91177308-0d34-0410-b5e6-96231b3b80d8
modularize - Updated futures comment.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178216 91177308-0d34-0410-b5e6-96231b3b80d8
Revert "modularize - Fixed poor array usage."

This has broken buildbots for a few hours.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178223 91177308-0d34-0410-b5e6-96231b3b80d8
Test commit: Remove whitespace.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178241 91177308-0d34-0410-b5e6-96231b3b80d8
Allow users to specify NULL like macros to be replaced

-use-nullptr only replaced macro named NULL and ignored any user defined
macros that behaved like NULL. This patch introduces -user-null-macros
command line option to let users specify their custom NULL like macros.

- Added a -user-null-macros command line option that takes a
  comma-separated list of user-defined macros to be replaced when using
  the -use-nullptr transform.
- Added documentation.
- Updated testcase to reflect current behavior.
- Whitespace fixes.

Reviewers: revane, klimek, gribozavr



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@178243 91177308-0d34-0410-b5e6-96231b3b80d8
modularize - Fixed broken array use (asserted in tests).  Renamed KindType enum.

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