================
@@ -600,15 +606,15 @@ void
ClangTidyDiagnosticConsumer::checkFilters(SourceLocation Location,
llvm::Regex *ClangTidyDiagnosticConsumer::getHeaderFilter() {
if (!HeaderFilter)
- HeaderFilter =
- std::make_unique<llvm::Regex>(*Context.getOptions().HeaderFilterRegex);
+ HeaderFilter = std::make_unique<llvm::Regex>(
+ StringRef(Context.getOptions().HeaderFilterRegex.value_or("")));
----------------
vbvictor wrote:
nit: `StringRef` seems redundant but may be?
Could you please check
https://github.com/llvm/llvm-project/pull/170004
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits