Add missing #include
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 30 Jun 2020 05:07:36 +0000 (22:07 -0700)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 30 Jun 2020 05:08:20 +0000 (22:08 -0700)
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)

clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h

index 8ec8d8d..eaa7f18 100644 (file)
 #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 {