Add new 'let' command to bind arbitrary values into constants.

Summary:
Add new 'let' command to bind arbitrary values into constants.
These constants can then be used in the matcher expressions.

Reviewers: pcc

CC: cfe-commits

Differential Revision: http://reviews.llvm.org/D3383

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@206984 91177308-0d34-0410-b5e6-96231b3b80d8
QueryParser::doParse(): Fix msc17 build. Don't use initializer list.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@206998 91177308-0d34-0410-b5e6-96231b3b80d8
ClangQueryTests: Fix msc17 build. Non-static member initializers are unavailable.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207096 91177308-0d34-0410-b5e6-96231b3b80d8
QueryEngineTest.cpp: Appease g++47.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207097 91177308-0d34-0410-b5e6-96231b3b80d8
Blindly try to fix the clang-tools-extra build since my local build doesn't appear to be picking it up

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207230 91177308-0d34-0410-b5e6-96231b3b80d8
Slightly less blindly fixing clang-tools-extra now that I remember that the "check-clang" target doesn't check clang-tools-extra

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207231 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unnecessary explicit unique_ptr ctors now that buildASTFromCode returns a unique_ptr instead of a raw pointer.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207238 91177308-0d34-0410-b5e6-96231b3b80d8
Allow clang-tidy tests with any file names.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207353 91177308-0d34-0410-b5e6-96231b3b80d8
Specify checks in a more reliable way.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207363 91177308-0d34-0410-b5e6-96231b3b80d8
Now with correct -disable-checks=


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207364 91177308-0d34-0410-b5e6-96231b3b80d8
Try to fix the build. newFrontendActionFactory was changed to return a unique_ptr.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207407 91177308-0d34-0410-b5e6-96231b3b80d8
Fix typo (first commit to test commit access).

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207490 91177308-0d34-0410-b5e6-96231b3b80d8
Do not touch get() calls on 'this' object.

Summary:
These calls are part of the implementation of the smart pointer itself
and chaning it is likely to be wrong.
Example:
  T& operator*() const { return *get(); }

Reviewers: djasper

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D3540

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207525 91177308-0d34-0410-b5e6-96231b3b80d8
Warn on explicit copy constructors.

Summary:
The Google C++ Style Guide doesn't require copy constructors to be
declared explicit, but some people do this by mistake. Make this check detect
and fix such cases.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D3541

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207531 91177308-0d34-0410-b5e6-96231b3b80d8
Add ClangTidyOptions to encapsulate all clang-tidy options.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D3544

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207532 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the message for "Move constructor declared explicit".
Make the tests for removal of 'explicit' more diverse.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207534 91177308-0d34-0410-b5e6-96231b3b80d8
Add a clang-tidy flag to support temporary destructor-aware analysis (workaround for bug 15599).

Reviewers: alexfh

Subscribers: jordan_rose, klimek, djasper, cfe-commits

Differential Revision: http://reviews.llvm.org/D3556

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207652 91177308-0d34-0410-b5e6-96231b3b80d8
Test cleanup recommended in http://reviews.llvm.org/D3556

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207653 91177308-0d34-0410-b5e6-96231b3b80d8
Fix ClangTidyOptions constructor to initialize all members. Fixes bug introduced in r207652.

Reviewers: rsmith

Subscribers: cfe-commits, alexfh, klimek

Differential Revision: http://reviews.llvm.org/D3578

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@207715 91177308-0d34-0410-b5e6-96231b3b80d8
Add clang-tidy -header-filter option

Summary:
Add clang-tidy -header-filter option to specify from which headers we
want diagnostics to be printed. By default we don't print diagnostics from
headers. We always print diagnostics from the main file of each translation
unit.

Reviewers: djasper, klimek

Reviewed By: klimek

Subscribers: klimek, cfe-commits

Differential Revision: http://reviews.llvm.org/D3590

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