clang-tools  9.0.0svn
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>
Include dependency graph for Modularize.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


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


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. More...


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.

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.
True if successful.

Definition at line 298 of file ModuleAssistant.cpp.

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

Referenced by main().

Variable Documentation

◆ Argv0

const char* Argv0

Definition at line 333 of file Modularize.cpp.

◆ CommandLine

std::string CommandLine

Definition at line 335 of file Modularize.cpp.