CoverageFilters.h - reduce unnecessary includes to forward declarations. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 27 May 2020 15:57:28 +0000 (16:57 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 27 May 2020 15:57:47 +0000 (16:57 +0100)
llvm/tools/llvm-cov/CodeCoverage.cpp
llvm/tools/llvm-cov/CoverageFilters.cpp
llvm/tools/llvm-cov/CoverageFilters.h

index 1d46443..b3c895b 100644 (file)
@@ -33,6 +33,7 @@
 #include "llvm/Support/Process.h"
 #include "llvm/Support/Program.h"
 #include "llvm/Support/ScopedPrinter.h"
+#include "llvm/Support/SpecialCaseList.h"
 #include "llvm/Support/ThreadPool.h"
 #include "llvm/Support/Threading.h"
 #include "llvm/Support/ToolOutputFile.h"
index ca241e3..da3b521 100644 (file)
@@ -13,6 +13,7 @@
 #include "CoverageFilters.h"
 #include "CoverageSummaryInfo.h"
 #include "llvm/Support/Regex.h"
+#include "llvm/Support/SpecialCaseList.h"
 
 using namespace llvm;
 
index ce56e16..ccaa7a9 100644 (file)
 #ifndef LLVM_COV_COVERAGEFILTERS_H
 #define LLVM_COV_COVERAGEFILTERS_H
 
-#include "CoverageSummaryInfo.h"
-#include "llvm/ProfileData/Coverage/CoverageMapping.h"
-#include "llvm/Support/SpecialCaseList.h"
+#include "llvm/ADT/StringRef.h"
 #include <memory>
 #include <vector>
 
 namespace llvm {
+class SpecialCaseList;
+
+namespace coverage {
+class CoverageMapping;
+struct FunctionRecord;
+}; // namespace coverage
 
 /// Matches specific functions that pass the requirement of this filter.
 class CoverageFilter {