[PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 25 04:55:16 PST 2016


hokein updated this revision to Diff 49042.
hokein added a comment.

Save the build directory in each error, making ClangTidyError not rely on ClangTidyContext.
The benchmark result shows that using StringRef doesn't improve performance greatly.


http://reviews.llvm.org/D17335

Files:
  clang-tidy/ClangTidy.cpp
  clang-tidy/ClangTidyDiagnosticConsumer.cpp
  clang-tidy/ClangTidyDiagnosticConsumer.h
  test/clang-tidy/Inputs/compilation-database/header.h
  test/clang-tidy/Inputs/compilation-database/template.json
  test/clang-tidy/clang-tidy-run-with-database.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17335.49042.patch
Type: text/x-patch
Size: 10247 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160225/0adc5b83/attachment.bin>


More information about the cfe-commits mailing list