Consume checker names from clang static analyzer.

Summary: This patch depends on patches D2556 and D2557.

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits, jordan_rose, krememek

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

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@201221 91177308-0d34-0410-b5e6-96231b3b80d8
Fix ExplicitConstructorCheck to warn only on in-class declarations.

Summary:
I'm not absolutely sure this is 100% correct solution, but it seems to
do what I expect.

Reviewers: djasper, klimek

Reviewed By: djasper

CC: cfe-commits

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

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@201308 91177308-0d34-0410-b5e6-96231b3b80d8
Clang-tidy: don't create ASTConsumers not needed for the set of checks we perform.

Summary:
This doesn't have any significant effect on the performance, but it
looks like a good thing to do.

Reviewers: djasper, klimek

Reviewed By: klimek

CC: cfe-commits

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

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@201340 91177308-0d34-0410-b5e6-96231b3b80d8
Re-add the '!' removed by mistake.



git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@201343 91177308-0d34-0410-b5e6-96231b3b80d8
Add a makefile for clang-query. Patch by Alex Horn!

While at it, have cmake build and test the tool if libedit is not installed,
as this dependency is now optional.

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@201599 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Apply DEPENDS to clangTidy.

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@201977 91177308-0d34-0410-b5e6-96231b3b80d8
Update for llvm api change.

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202045 91177308-0d34-0410-b5e6-96231b3b80d8
Update for llvm api change.

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202055 91177308-0d34-0410-b5e6-96231b3b80d8
Adding documentation for clang-tidy.

Summary:
Contains a short user's manual and some instructions on writing
clang-tidy checks.

Reviewers: klimek, djasper

Reviewed By: klimek

CC: cfe-commits

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

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202164 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Use LINK_LIBS instead of target_link_libraries().

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202238 91177308-0d34-0410-b5e6-96231b3b80d8
Normalized "virtual" and "LLVM_OVERRIDE" usage in clang-tidy.

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits

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

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202392 91177308-0d34-0410-b5e6-96231b3b80d8
Made the ClangTidyTest helper class independent of the testing framework.

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits

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

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202399 91177308-0d34-0410-b5e6-96231b3b80d8
Added a naive NOLINT implementation.

Summary:
Added a naive NOLINT implementation. It doesn't care about specific
linter categories, just the "// NOLINT" on the same line as a diagnostic.

Reviewers: klimek

Reviewed By: klimek

CC: cfe-commits

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

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202452 91177308-0d34-0410-b5e6-96231b3b80d8
Add new 'remark' diagnostic type

git-svn-id: http://llvm.org/svn/llvm-project/clang-tools-extra/trunk@202477 91177308-0d34-0410-b5e6-96231b3b80d8
[C++11] Replace LLVM_OVERRIDE with 'override'

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