Teach the extras repository to actually install the clang-format tool.

We should also install the clang-format.py script somewhere that makes
since for a Vim integration script. I don't know where that is though,
so just installing the binary for now. This is enough to let me use the
script from a checkout combined with the installed (and thus less likely
to crash or be slow) clang-format binary.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171164 91177308-0d34-0410-b5e6-96231b3b80d8
Update the copyright coredits -- Happy new year 2013!

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171342 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the sorting of the #include lines in these tools.

This is done with the script in llvm/utils/sort_includes.py

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171365 91177308-0d34-0410-b5e6-96231b3b80d8
Handle segfaults in clang-format vim-integration.

A segfault used to clear the entire buffer. With this change, a message
to report a bug is displayed instead.

This should solve most cases similar to llvm.org/PR14774.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171480 91177308-0d34-0410-b5e6-96231b3b80d8
Port loop-convert into cpp11-migrate
    
Took existing code from loop-convert tool and made it into a cpp11-migrate
transform. Pattern now set for having transform code in subdirectories. Related
changes:
- Makefile and CMakeLists.txt updated to support source files in
  subdirectories.
- At least one transform must be specified. syntax-only tests removed to
  reflect this.
- TODO: port over loop-convert tests.

Reviewers: klimek, silvas


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171481 91177308-0d34-0410-b5e6-96231b3b80d8
Add a namespace qualifier to the befriending statement for
RecusiveASTVisitor. With Clang and modern GCCs this was found through
the injected class name of the base class but older GCCs don't properly
implement the injected class name rules.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171593 91177308-0d34-0410-b5e6-96231b3b80d8
Make clang-format binary understand C++11.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171736 91177308-0d34-0410-b5e6-96231b3b80d8
Set LangOpts.ObjC1 to 1 in clang-format.

This matches the test change done in clang at r171742. Without this,
clang-format would strip '@' characters and format e.g. '@interface' as
'interface'.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171743 91177308-0d34-0410-b5e6-96231b3b80d8
Enabled ObjC2 in clang-format for @package. Matches r171766.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171767 91177308-0d34-0410-b5e6-96231b3b80d8
Transferred loop-convert tests to cpp11-migrate

- Turned off -count-only tests as they aren't supported in cpp11-migrate
  yet.
- Updated tests to use new binary name and options to access
  loop-convert transform.
- Fixed header guards to not use restricted names.

Reviewers: klimek, gribozavr



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171852 91177308-0d34-0410-b5e6-96231b3b80d8
Implements the features requested in PR14679.

- adds '-h' as an alias for '-help'.
- adds an optional <file> argument
- adds an option -i to in-place edit the given file
- adds a help text to explain what the tool does

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171858 91177308-0d34-0410-b5e6-96231b3b80d8
Initial version of diff/patch-reformat tool.

Use at your own risk :-).

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@171994 91177308-0d34-0410-b5e6-96231b3b80d8
Simplify reversed for-loop.

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@172042 91177308-0d34-0410-b5e6-96231b3b80d8
Add .arcconfig for Arcanist support for Phabricator

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@172043 91177308-0d34-0410-b5e6-96231b3b80d8
Let clang-format binary use same LangOpts as test.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@172066 91177308-0d34-0410-b5e6-96231b3b80d8
Improved clang-format integration support for diagnostic messages output

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@172072 91177308-0d34-0410-b5e6-96231b3b80d8
Removing loop-convert tool

cpp11-migrate now contains the loop convert transform code and tests.
Cleaning up the old code/tests and updating build system files as
necessary.

Reviewers: klimek



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@172074 91177308-0d34-0410-b5e6-96231b3b80d8
Format what you can when errors are found

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@172075 91177308-0d34-0410-b5e6-96231b3b80d8
Remove FIXME fixed by djasper in r172066.

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