clang-modernize: Apply replacements using clang-apply-replacements

Summary:
The clang-apply-replacements process is now invoked to apply
replacements between applying transforms. This resulted in a massive
simplification of the tool:
- FileOverrides class no longer needed.
- Change tracking and code formatting no longer needed.
- No more dependency on libclangApplyReplacements.
- Final syntax check is easier to do directly now than with a separate
  header/source pair.

Replacement handling stuff abstracted into a new header/source pair to
de-clutter ClangModernize.cpp somewhat.

Tests updated.

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


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@192032 91177308-0d34-0410-b5e6-96231b3b80d8
clang-modernize: Fix clang-apply-replacements invocation bug

The command-line for clang-apply-replacements was being mangled due to an
uninitialized variable. gasp! Now fixed.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@192033 91177308-0d34-0410-b5e6-96231b3b80d8
clang-modernize: Fixing doxygen warnings



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

Summary: Docs updated to reflect new behaviour and new options.

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



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@192105 91177308-0d34-0410-b5e6-96231b3b80d8
Switching code owner email address.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@192189 91177308-0d34-0410-b5e6-96231b3b80d8
clang-modernize: Clean up help output

Now hiding options clang-modernize doesn't use and didn't create. Version
printer specialized for clang-modernize. EXAMPLES text fixed and brought
up-to-date.

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



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