Review feedback change per Edwin: Move non-public members to end of classes.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@176883 91177308-0d34-0410-b5e6-96231b3b80d8
Added future directions comment and a couple of fixme's.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@176998 91177308-0d34-0410-b5e6-96231b3b80d8
Adding a new code owners file for clang-tools-extra.

Populated file with known existing owners.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177083 91177308-0d34-0410-b5e6-96231b3b80d8
Prevent nullptr_t-typed exprs from being replaced

The Use-Nullptr transform was replacing nullptr_t-typed expressions because in
the AST such expressions have an implicit NullToPointer cast around them. Now
the transform ignores these expressions.

Fixes PR15414.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177168 91177308-0d34-0410-b5e6-96231b3b80d8
Don't include outer-most explicit cast in nullptr replacement

The outer-most explicit cast is now left alone by the Use-Nullptr transform to
maintain the type of the expression and avoid introducing ambiguities.

Fixes PR15395.

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


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177179 91177308-0d34-0410-b5e6-96231b3b80d8
Don't replace macro usage if macro body has NULL

In case of macro body expansion, check to see if the macro is named NULL and
don't replace inside the macro body. This fixes the case when NULL appears
inside the macro body and the transform replaces the usage of the macro with
nullptr. This is an easy fix for the problem for now and we should analyze the
macro body to see if it expands to only NullToPointer in the future for a more
robust solution that takes care of user defined macros that behaves like NULL.

Other changes:
- Moved complex macro tests to macros.cpp
- Added new test cases.
- Added checks to make sure that the macro bodies are not modified by the tool.

Fixes: PR15396

Author: Tareq A Siraj <tareq.a.siraj@intel.com>


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

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@177507 91177308-0d34-0410-b5e6-96231b3b80d8
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