clang-tools 20.0.0git
|
Common definitions for Modularize. More...
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringRef.h"
#include <string>
#include <vector>
Go to the source code of this file.
Typedefs | |
typedef llvm::SmallVector< std::string, 4 > | DependentsVector |
typedef llvm::StringMap< DependentsVector > | DependencyMap |
Functions | |
bool | createModuleMap (llvm::StringRef ModuleMapPath, llvm::ArrayRef< std::string > HeaderFileNames, llvm::ArrayRef< std::string > ProblemFileNames, DependencyMap &Dependencies, llvm::StringRef HeaderPrefix, llvm::StringRef RootModuleName) |
Create the module map file. | |
Variables | |
const char * | Argv0 |
std::string | CommandLine |
Common definitions for Modularize.
Definition in file Modularize.h.
typedef llvm::StringMap<DependentsVector> DependencyMap |
Definition at line 32 of file Modularize.h.
typedef llvm::SmallVector<std::string, 4> DependentsVector |
Definition at line 31 of file Modularize.h.
bool createModuleMap | ( | llvm::StringRef | ModuleMapPath, |
llvm::ArrayRef< std::string > | HeaderFileNames, | ||
llvm::ArrayRef< std::string > | ProblemFileNames, | ||
DependencyMap & | Dependencies, | ||
llvm::StringRef | HeaderPrefix, | ||
llvm::StringRef | RootModuleName | ||
) |
Create the module map file.
ModuleMapPath | The path to the module map file to be generated. |
HeaderFileNames | The list of header files, absolute native paths. |
ProblemFileNames | The list of problem header files. |
Dependencies | Map of headers that depend on other headers. |
HeaderPrefix | Tells the code where the headers are, if they aren's in the current directory, allowing the generator to strip the leading, non-relative beginning of the header paths. RootModuleName If not empty, specifies that a root module should be created with this name. |
Definition at line 298 of file ModuleAssistant.cpp.
References HeaderPrefix(), loadModuleDescriptions(), ModuleMapPath(), RootModule(), and writeModuleMap().
Referenced by main().
|
extern |
Definition at line 333 of file Modularize.cpp.
Referenced by getAssetFiles(), main(), and writeModuleMap().
|
extern |
Definition at line 425 of file Serialization.cpp.
Referenced by Modularize::CoverageChecker::createCoverageChecker(), Modularize::ModularizeUtilities::doCoverageCheck(), clang::clangd::MockCompilationDatabase::getCompileCommand(), main(), and writeModuleMap().