clang-tools 19.0.0git
Typedefs | Functions | Variables
Modularize.h File Reference

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< DependentsVectorDependencyMap
 

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
 

Detailed Description

Common definitions for Modularize.

Definition in file Modularize.h.

Typedef Documentation

◆ DependencyMap

typedef llvm::StringMap<DependentsVector> DependencyMap

Definition at line 32 of file Modularize.h.

◆ DependentsVector

typedef llvm::SmallVector<std::string, 4> DependentsVector

Definition at line 31 of file Modularize.h.

Function Documentation

◆ createModuleMap()

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.

Parameters
ModuleMapPathThe path to the module map file to be generated.
HeaderFileNamesThe list of header files, absolute native paths.
ProblemFileNamesThe list of problem header files.
DependenciesMap of headers that depend on other headers.
HeaderPrefixTells 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.
Returns
True if successful.

Definition at line 298 of file ModuleAssistant.cpp.

References HeaderPrefix(), loadModuleDescriptions(), ModuleMapPath(), RootModule(), and writeModuleMap().

Referenced by main().

Variable Documentation

◆ Argv0

const char* Argv0
extern

Definition at line 333 of file Modularize.cpp.

Referenced by main(), and writeModuleMap().

◆ CommandLine

std::string CommandLine
extern