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

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 25 04:25:25 PST 2016


alexfh requested changes to this revision.
This revision now requires changes to proceed.

================
Comment at: clang-tidy/ClangTidyDiagnosticConsumer.h:76
@@ +75,3 @@
+  // Note: In unittest, it is empty.
+  StringRef BuildDirectory;
+
----------------
As discussed offline, I'd like `ClangTidyError` to be independent of `ClangTidyContext`, unless this particular optimization saves significant resources.


http://reviews.llvm.org/D17335





More information about the cfe-commits mailing list