llvm-project/clang-tools-extra/test
Haojian Wu f7692a2792 [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.
Summary:
The clang-tidy will trigger an assertion if it's not in the building directory.

TEST:
cd <llvm-repo>/
./build/bin/clang-tidy --checks=-*,modernize-use-nullptr -p build tools/clang/tools/extra/clang-tidy/ClangTidy.cpp

The crash issue is gone after applying this patch.

Fixes PR24834, PR26241

Reviewers: bkramer, alexfh

Subscribers: rizsotto.mailinglist, cfe-commits

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

llvm-svn: 261991
2016-02-26 09:19:33 +00:00
..
Unit clang-tools-extra/test/Unit/lit.site.cfg.in: Prune on_clone. I guess it has been unused since r188006. 2016-02-16 08:13:36 +00:00
clang-apply-replacements Handle newlines on Windows correctly. 2014-12-09 02:57:56 +00:00
clang-query Add a makefile for clang-query. Patch by Alex Horn! 2014-02-18 19:46:01 +00:00
clang-rename Make test EOL tolerant by moving the symbol ot the first line 2015-08-21 10:46:46 +00:00
clang-tidy [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database. 2016-02-26 09:19:33 +00:00
modularize Added coverage check for extensionless headers, and exclude hidden dot directoryies. 2015-12-04 22:42:18 +00:00
pp-trace Update to match clang r236404. 2015-05-04 03:15:55 +00:00
.clang-format Add a .clang-format to avoid reflow of test RUN lines 2013-12-01 05:08:00 +00:00
CMakeLists.txt check-clang-tools requires clang-headers due to test/clang-tidy. 2015-12-21 01:35:28 +00:00
lit.cfg Revert r261814, "check-clang-tools: Introduce the feature target-headers", corresponding to r261893. 2016-02-25 16:59:59 +00:00
lit.site.cfg.in Make the clang-tidy-diff.py test conditional on the presence of Python 2.7. Use the python binary from the configuration. 2014-06-26 16:32:26 +00:00