mirror of
https://github.com/reactos/CMake.git
synced 2024-12-13 22:58:41 +00:00
1d829c862c
Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#ifndef cmParseMumpsCoverage_h
|
|
#define cmParseMumpsCoverage_h
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <map>
|
|
#include <string>
|
|
|
|
class cmCTest;
|
|
class cmCTestCoverageHandlerContainer;
|
|
|
|
/** \class cmParseMumpsCoverage
|
|
* \brief Parse Mumps coverage information
|
|
*
|
|
* This class is used as the base class for Mumps coverage
|
|
* parsing.
|
|
*/
|
|
class cmParseMumpsCoverage
|
|
{
|
|
public:
|
|
cmParseMumpsCoverage(cmCTestCoverageHandlerContainer& cont, cmCTest* ctest);
|
|
virtual ~cmParseMumpsCoverage();
|
|
// This is the toplevel coverage file locating the coverage files
|
|
// and the mumps source code package tree.
|
|
bool ReadCoverageFile(const char* file);
|
|
|
|
protected:
|
|
// sub classes will use this to
|
|
// load all coverage files found in the given directory
|
|
virtual bool LoadCoverageData(const char* d) = 0;
|
|
// search the package directory for mumps files and fill
|
|
// in the RoutineToDirectory map
|
|
bool LoadPackages(const char* dir);
|
|
// initialize the coverage information for a single mumps file
|
|
void InitializeMumpsFile(std::string& file);
|
|
// Find mumps file for routine
|
|
bool FindMumpsFile(std::string const& routine, std::string& filepath);
|
|
|
|
protected:
|
|
std::map<std::string, std::string> RoutineToDirectory;
|
|
cmCTestCoverageHandlerContainer& Coverage;
|
|
cmCTest* CTest;
|
|
};
|
|
|
|
#endif
|