Fix clang-tidy dependencies and bad file comment.

This addresses comments in post-commit review of r187345.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187707 91177308-0d34-0410-b5e6-96231b3b80d8
clang-tidy's modules depend on it.

Fixes shared cmake build.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187708 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed incorrect include file exit detection.  Added work-around to avoid error on header guard in nested include.  Fixed a couple of coding standard issues on variable names.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187736 91177308-0d34-0410-b5e6-96231b3b80d8
Reverting r187736. It broke some public bots:

http://lab.llvm.org:8011/builders/clang-native-arm-cortex-a9/builds/10248
http://bb.pgr.jp/builders/cmake-clang-i686-mingw32/builds/3327



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187746 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed uninitialized member, plus recommit of 187736.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187757 91177308-0d34-0410-b5e6-96231b3b80d8
Add test for header guard work-around.

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187796 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed incorrect header guard/nested header mechanism.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187898 91177308-0d34-0410-b5e6-96231b3b80d8
Comment changes.  Added current problems comment.

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

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

Patch by Richard (legalize@xmission.com)

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@187990 91177308-0d34-0410-b5e6-96231b3b80d8
Extend comments for problems and future directions.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@188035 91177308-0d34-0410-b5e6-96231b3b80d8
Fix false error message for function-style macro instance used as arguments in other function-style macros instances, and add test for it.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@188036 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed coding convention naming issue - variable names start with uppercase.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@188070 91177308-0d34-0410-b5e6-96231b3b80d8
[tests] Update to use lit_config and lit package, as appropriate.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@188092 91177308-0d34-0410-b5e6-96231b3b80d8
cpp11-migrate: Fixed path problem with include/exclude paths

This fixes a problem when the path separator in the include/exclude
directory is different (e.g. "\" vs. "/") from the path separator in
the file path we are modifying.

Differential Revision: http://llvm-reviews.chandlerc.com/D1326


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@188094 91177308-0d34-0410-b5e6-96231b3b80d8
Remove CRs added in r187370.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@188168 91177308-0d34-0410-b5e6-96231b3b80d8
cpp11-migrate: Write header replacements to disk

Another attempt to commit r187204 after windows related problems has
been fixed. Note that changes to this patch reflect the current behavior
of cpp11-migrate.

Header replacements are now written to disk in YAML format for an external tool
to merge. A unique file will be created in the same directory as the header
with all replacements that came from a source file that included the header
file. The YAML file will have:
- Name of the header file
- Name of the source file that included the header file
- Transform ID that generated the replacement
- Offset
- Length
- Replacement text

Any tool reading these replacements should read them using the
HeaderChangeDocument struct.

Differential Revision: http://llvm-reviews.chandlerc.com/D1369



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@188274 91177308-0d34-0410-b5e6-96231b3b80d8
Fixes test failure on darwin introduced by r188274

Reworked how the tests dealt with paths. Instead of removing the full path name,
put a marker in the expected file and replace the marker with the full path
before running diff.

Differential Revision: http://llvm-reviews.chandlerc.com/D1381


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@188299 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid errors on header guards using #if defined(NAME).

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