[clang-tools-extra] 11cd977 - Add missing #include
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 29 22:08:30 PDT 2020
Author: David Blaikie
Date: 2020-06-29T22:08:20-07:00
New Revision: 11cd9770174603aa62deabbe96c7d0db64d07058
URL: https://github.com/llvm/llvm-project/commit/11cd9770174603aa62deabbe96c7d0db64d07058
DIFF: https://github.com/llvm/llvm-project/commit/11cd9770174603aa62deabbe96c7d0db64d07058.diff
LOG: Add missing #include
A forward declaration was insufficient here - since Regex needs to be
complete for the implicit dtor to be compiled correctly. (that, or the
dtor would have to be made explicit and out of line)
Added:
Modified:
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
index 8ec8d8d1d797..eaa7f1851ce3 100644
--- a/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
+++ b/clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
@@ -14,10 +14,7 @@
#include "clang/Basic/Diagnostic.h"
#include "clang/Tooling/Core/Diagnostic.h"
#include "llvm/ADT/DenseMap.h"
-
-namespace llvm {
-class Regex;
-}
+#include "llvm/Support/Regex.h"
namespace clang {
More information about the cfe-commits
mailing list