clang-tools 20.0.0git
|
#include "Modularize.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/ToolOutputFile.h"
#include <vector>
Go to the source code of this file.
Functions | |
static std::string | ensureNoCollisionWithReservedName (llvm::StringRef MightBeReservedName) |
static std::string | ensureVaidModuleName (llvm::StringRef MightBeInvalidName) |
static bool | addModuleDescription (Module *RootModule, llvm::StringRef HeaderFilePath, llvm::StringRef HeaderPrefix, DependencyMap &Dependencies, bool IsProblemFile) |
static Module * | loadModuleDescriptions (llvm::StringRef RootModuleName, llvm::ArrayRef< std::string > HeaderFileNames, llvm::ArrayRef< std::string > ProblemFileNames, DependencyMap &Dependencies, llvm::StringRef HeaderPrefix) |
static bool | writeModuleMap (llvm::StringRef ModuleMapPath, llvm::StringRef HeaderPrefix, Module *RootModule) |
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 | |
static const char *const | ReservedNames [] |
|
static |
Definition at line 167 of file ModuleAssistant.cpp.
References E, ensureNoCollisionWithReservedName(), ensureVaidModuleName(), HeaderPrefix(), and RootModule().
Referenced by loadModuleDescriptions().
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 300 of file ModuleAssistant.cpp.
References HeaderPrefix(), loadModuleDescriptions(), ModuleMapPath(), RootModule(), and writeModuleMap().
Referenced by main().
|
static |
Definition at line 143 of file ModuleAssistant.cpp.
References ReservedNames.
Referenced by addModuleDescription().
|
static |
Definition at line 157 of file ModuleAssistant.cpp.
Referenced by addModuleDescription().
|
static |
Definition at line 218 of file ModuleAssistant.cpp.
References addModuleDescription(), E, HeaderPrefix(), and RootModule().
Referenced by createModuleMap().
|
static |
Definition at line 254 of file ModuleAssistant.cpp.
References Argv0, CommandLine, HeaderPrefix(), ModuleMapPath(), OS, Out, and RootModule().
Referenced by createModuleMap().
|
static |
Definition at line 134 of file ModuleAssistant.cpp.
Referenced by ensureNoCollisionWithReservedName().