[C++11] Replace LLVM_OVERRIDE with 'override'

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202632 91177308-0d34-0410-b5e6-96231b3b80d8
Revert a LLVM_OVERRIDE to 'override' change in documentation. My search and replace was a little overzealous.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202633 91177308-0d34-0410-b5e6-96231b3b80d8
[C++11] Replace llvm::tie with std::tie.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202646 91177308-0d34-0410-b5e6-96231b3b80d8
Documentation comments: fix incorrect usage of \param


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202649 91177308-0d34-0410-b5e6-96231b3b80d8
Add a level parameter to ClangTidyCheck::diag.

The goal is to make it possible for checks to emit diagnostics at levels
other than 'warning'.

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202668 91177308-0d34-0410-b5e6-96231b3b80d8
[C++11] Add #include's for OwningPtr.

Allows removing #include's in LLVM while switching to std::unique_ptr.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202676 91177308-0d34-0410-b5e6-96231b3b80d8
Determine support for colored output from stdout instead of stderr since that's where the diagnostics go.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202680 91177308-0d34-0410-b5e6-96231b3b80d8
Normalized the usage of override in the doc.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202710 91177308-0d34-0410-b5e6-96231b3b80d8
[cleanup] Re-sort headers with llvm/utils/sort_includes.py.

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202969 91177308-0d34-0410-b5e6-96231b3b80d8
Added a module for checks not related to LLVM or Google coding style.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202970 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed a crash when handling diagnostics without a valid file location, e.g. 'error reading <file>'.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202987 91177308-0d34-0410-b5e6-96231b3b80d8
Use more specific checks filter in the test.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203097 91177308-0d34-0410-b5e6-96231b3b80d8
Use range-based for loops for better readability. No functional changes intended.

Reviewers: chandlerc

Reviewed By: chandlerc

CC: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203101 91177308-0d34-0410-b5e6-96231b3b80d8
Use the appropriate operator<< instead of addRanges.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203118 91177308-0d34-0410-b5e6-96231b3b80d8
clang-tools-extra/test/pp-trace/pp-trace-modules.cpp: Use [[@LINE]].

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203368 91177308-0d34-0410-b5e6-96231b3b80d8
clang-tools-extra/test/pp-trace/pp-trace-modules.cpp: Flush module cache to let robust around r203317.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203369 91177308-0d34-0410-b5e6-96231b3b80d8
[C++11] Replace OwningPtr with std::unique_ptr.

This removes all references to OwningPtr, which should be fairly
undisruptive to out-of-tree projects since they are unlikely to use
clang-tools-extra as a library instead of a set of tools.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203382 91177308-0d34-0410-b5e6-96231b3b80d8
Deduplicate clang-tidy error messages by file, offset and message.

Summary: Peter, I guess, this can help you in testing your check.

Reviewers: djasper, pcc, klimek

Reviewed By: klimek

CC: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@203451 91177308-0d34-0410-b5e6-96231b3b80d8
Use DiagnosticRenderer to convert clang diagnostics to clang-tidy ones.

Summary:
This is immediately useful for generating macro expansion notes, and
may be useful for other things later on.

Reviewers: klimek, djasper

Reviewed By: klimek

CC: cfe-commits

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

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