Remove a trailing blank line, test commit.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@165621 91177308-0d34-0410-b5e6-96231b3b80d8
Following the example from loop-convert tests, simplifying the remove-cstr-calls lit script.

Patch by Edwin Vane.

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


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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@169239 91177308-0d34-0410-b5e6-96231b3b80d8
First version of a command line clang-format tool.

Reads a single source range (offset, length) as well as the style guide
as parameters and then reformats everything it receives from stdin.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@169364 91177308-0d34-0410-b5e6-96231b3b80d8
Fix make build (hopefully).

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

File contains installation and usage instructions.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@169421 91177308-0d34-0410-b5e6-96231b3b80d8
Initial commit for cpp11-migrate tool

- Added directory structures and build system files for the new tool.
- Extremely basic implementation of tool performs only an initial syntax check.
- Basic tests ensure syntax test works as expected.



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@169983 91177308-0d34-0410-b5e6-96231b3b80d8
Add cpp11-migrate to autoconf build



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@169986 91177308-0d34-0410-b5e6-96231b3b80d8
Use renamed CommonOptionsParser member functions
    
GetCompilations() and GetSourcePathLists() were renamed to match LLVM style.

Reviewed By: Alexander Kornienko


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