mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-27 17:39:51 -05:00
0b96ae1f6a
Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`, now with "east const" enforcement. Use `clang-format` version 18. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Issue: #26123
45 lines
1.4 KiB
C++
45 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. */
|
|
#pragma once
|
|
|
|
#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(char const* file);
|
|
|
|
protected:
|
|
// sub classes will use this to
|
|
// load all coverage files found in the given directory
|
|
virtual bool LoadCoverageData(std::string const& d) = 0;
|
|
// search the package directory for mumps files and fill
|
|
// in the RoutineToDirectory map
|
|
bool LoadPackages(std::string const& 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;
|
|
};
|