[clang-tidy] Added -system-headers option.

Added -system-headers option to allow display of warnings from system headers.
This is needed for testing libcxx, for example.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220826 91177308-0d34-0410-b5e6-96231b3b80d8
[clang-tidy] Updated docs for r220826.


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220830 91177308-0d34-0410-b5e6-96231b3b80d8
Suppress clang-tools-extra/test/clang-tidy/file-filter.cpp on win32 for investigaitng.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220837 91177308-0d34-0410-b5e6-96231b3b80d8
Shrink the set of checks enabled by default.

Summary:
Enable only compiler diagnostics and safe static analyzer checks by
default. Let the defaults be conservative and safe for an average project.

Reviewers: djasper

Reviewed By: djasper

Subscribers: cfe-commits

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

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220868 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Reformat.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220888 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Add dependencies on clangToolingCore.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220890 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Prune redundant libdeps.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220893 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] clangApplyReplacement: Add clangAST in libdeps to appease msc builder.

  clangApplyReplacements.lib(ApplyReplacements.cpp.obj) : error LNK2001: unresolved external symbol "private: void __thiscall clang::APValue::DestroyDataAndMakeUninit(void)" (?DestroyDataAndMakeUninit@APValue@clang@@AAEXXZ)

They are not seen in mingw dll build. Investigating.

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@220895 91177308-0d34-0410-b5e6-96231b3b80d8
[clang-tidy] Added -fix-errors option

Summary:
Added -fix-errors option to allow applying fixes when compiler errors
are present. Without this flag -fix would bail out if there are compiler errors.
This is needed to avoid applying wrong fixes if Clang fails to recover from
compilation errors correctly.

Reviewers: djasper, klimek

Reviewed By: klimek

Subscribers: curdeius, cfe-commits

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

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

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@221260 91177308-0d34-0410-b5e6-96231b3b80d8
[clang-tidy] Don't print a message if there's no error.


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