Definition at line 36 of file TModuleGenerator.h.
|
typedef std::vector< std::pair< std::string, std::string > > | StringPairVec_t |
|
|
void | ConvertToCppString (std::string &text) const |
|
bool | FindHeader (const std::string &hdrName, std::string &hdrFullPath) const |
| Return true if the header is found in the include paths in this case also fill the full path variable with the full path.
|
|
ESourceFileKind | GetSourceFileKind (const char *filename) const |
| Check whether the file's extension is compatible with C or C++.
|
|
std::ostream & | WriteDefinesArray (std::ostream &out) const |
|
std::ostream & | WriteHeaderArray (std::ostream &out) const |
|
std::ostream & | WriteIncludePathArray (std::ostream &out) const |
|
std::ostream & | WritePPCode (std::ostream &out) const |
|
std::ostream & | WritePPIncludes (std::ostream &out) const |
| Write #include "header1.h" #include "header2.h" or, if inlining of headers is requested, dump the content of the files.
|
|
void | WriteRegistrationSourceImpl (std::ostream &out, const std::string &dictName, const std::string &demangledDictName, const std::vector< std::string > &headerArray, const std::vector< std::string > &includePathArray, const std::string &fwdDeclStringRAW, const std::string &fwdDeclnArgsToKeepString, const std::string &payloadCodeWrapped, const std::string &headersClassesMapString, const std::string &extraIncludes, bool hasCxxModule) const |
|
std::ostream & | WriteStringPairVec (const StringPairVec_t &vecP, std::ostream &out) const |
|
std::ostream & | WriteStringVec (const std::vector< std::string > &vec, std::ostream &out) const |
|
std::ostream & | WriteUndefinesArray (std::ostream &out) const |
|
#include </home/sftnight/build/workspace/root-makedoc-v626/rootspi/rdoc/src/v6-26-00-patches/core/dictgen/res/TModuleGenerator.h>
◆ StringPairVec_t
◆ ESourceFileKind
Enumerator |
---|
kSFKNotC | |
kSFKHeader | |
kSFKSource | |
kSFKLinkdef | |
Definition at line 38 of file TModuleGenerator.h.
◆ TModuleGenerator()
TModuleGenerator::TModuleGenerator |
( |
clang::CompilerInstance * |
CI, |
|
|
bool |
inlineHeader, |
|
|
const std::string & |
shLibFileName, |
|
|
bool |
isInPCH |
|
) |
| |
◆ ~TModuleGenerator()
TModuleGenerator::~TModuleGenerator |
( |
| ) |
|
◆ ConvertToCppString()
void ROOT::TModuleGenerator::ConvertToCppString |
( |
std::string & |
text | ) |
const |
|
private |
◆ FindHeader()
bool TModuleGenerator::FindHeader |
( |
const std::string & |
hdrName, |
|
|
std::string & |
hdrFullPath |
|
) |
| const |
|
private |
Return true if the header is found in the include paths in this case also fill the full path variable with the full path.
Definition at line 567 of file TModuleGenerator.cxx.
◆ GetContentName()
const std::string & ROOT::TModuleGenerator::GetContentName |
( |
| ) |
const |
|
inline |
◆ GetDemangledDictionaryName()
const std::string & ROOT::TModuleGenerator::GetDemangledDictionaryName |
( |
| ) |
const |
|
inline |
◆ GetDictionaryName()
const std::string & ROOT::TModuleGenerator::GetDictionaryName |
( |
| ) |
const |
|
inline |
◆ GetErrorCount()
int ROOT::TModuleGenerator::GetErrorCount |
( |
| ) |
const |
|
inline |
◆ GetHeaders()
const std::vector< std::string > & ROOT::TModuleGenerator::GetHeaders |
( |
| ) |
const |
|
inline |
◆ GetIncludePaths()
const std::vector< std::string > & ROOT::TModuleGenerator::GetIncludePaths |
( |
| ) |
const |
|
inline |
◆ GetModuleDirName()
const std::string & ROOT::TModuleGenerator::GetModuleDirName |
( |
| ) |
const |
|
inline |
◆ GetModuleFileName()
const std::string & ROOT::TModuleGenerator::GetModuleFileName |
( |
| ) |
const |
|
inline |
◆ GetSourceFileKind()
Check whether the file's extension is compatible with C or C++.
Return whether source, header, Linkdef or nothing.
Definition at line 102 of file TModuleGenerator.cxx.
◆ GetUmbrellaName()
const std::string & ROOT::TModuleGenerator::GetUmbrellaName |
( |
| ) |
const |
|
inline |
◆ IsPCH()
bool ROOT::TModuleGenerator::IsPCH |
( |
| ) |
const |
|
inline |
◆ ParseArgs()
void TModuleGenerator::ParseArgs |
( |
const std::vector< std::string > & |
args | ) |
|
◆ WriteContentHeader()
void TModuleGenerator::WriteContentHeader |
( |
std::ostream & |
out | ) |
const |
Write a header file describing the content of this module through a series of variables inside the namespace ROOT::Dict::[DictionaryName].
Each variable is an array of string literals, with a const char* of 0 being the last element, e.g. ROOT::Dict::_DictName::arrIncludes[] = { "A.h", "B.h", 0 };
Definition at line 543 of file TModuleGenerator.cxx.
◆ WriteDefinesArray()
std::ostream & ROOT::TModuleGenerator::WriteDefinesArray |
( |
std::ostream & |
out | ) |
const |
|
inlineprivate |
◆ WriteHeaderArray()
std::ostream & ROOT::TModuleGenerator::WriteHeaderArray |
( |
std::ostream & |
out | ) |
const |
|
inlineprivate |
◆ WriteIncludePathArray()
std::ostream & ROOT::TModuleGenerator::WriteIncludePathArray |
( |
std::ostream & |
out | ) |
const |
|
inlineprivate |
◆ WritePPCode()
std::ostream & ROOT::TModuleGenerator::WritePPCode |
( |
std::ostream & |
out | ) |
const |
|
inlineprivate |
◆ WritePPDefines()
std::ostream & TModuleGenerator::WritePPDefines |
( |
std::ostream & |
out | ) |
const |
◆ WritePPIncludes()
std::ostream & TModuleGenerator::WritePPIncludes |
( |
std::ostream & |
out | ) |
const |
|
private |
Write #include "header1.h" #include "header2.h" or, if inlining of headers is requested, dump the content of the files.
Definition at line 288 of file TModuleGenerator.cxx.
◆ WritePPUndefines()
std::ostream & TModuleGenerator::WritePPUndefines |
( |
std::ostream & |
out | ) |
const |
◆ WriteRegistrationSource()
void TModuleGenerator::WriteRegistrationSource |
( |
std::ostream & |
out, |
|
|
const std::string & |
fwdDeclnArgsToKeepString, |
|
|
const std::string & |
headersClassesMapString, |
|
|
const std::string & |
fwdDeclsString, |
|
|
const std::string & |
extraIncludes, |
|
|
bool |
hasCxxModule |
|
) |
| const |
◆ WriteRegistrationSourceImpl()
void TModuleGenerator::WriteRegistrationSourceImpl |
( |
std::ostream & |
out, |
|
|
const std::string & |
dictName, |
|
|
const std::string & |
demangledDictName, |
|
|
const std::vector< std::string > & |
headerArray, |
|
|
const std::vector< std::string > & |
includePathArray, |
|
|
const std::string & |
fwdDeclStringRAW, |
|
|
const std::string & |
fwdDeclnArgsToKeepString, |
|
|
const std::string & |
payloadCodeWrapped, |
|
|
const std::string & |
headersClassesMapString, |
|
|
const std::string & |
extraIncludes, |
|
|
bool |
hasCxxModule |
|
) |
| const |
|
private |
◆ WriteStringPairVec()
std::ostream & TModuleGenerator::WriteStringPairVec |
( |
const StringPairVec_t & |
vecP, |
|
|
std::ostream & |
out |
|
) |
| const |
|
private |
◆ WriteStringVec()
std::ostream & TModuleGenerator::WriteStringVec |
( |
const std::vector< std::string > & |
vec, |
|
|
std::ostream & |
out |
|
) |
| const |
|
private |
◆ WriteUmbrellaHeader()
void TModuleGenerator::WriteUmbrellaHeader |
( |
std::ostream & |
out | ) |
const |
Write a header file pulling in the content of this module through a series of #defined, #undefs and #includes.
The sequence corrsponds to a rootcling invocation with -c -DFOO -UBAR header.h I.e. defines, undefines and finally includes.
Definition at line 603 of file TModuleGenerator.cxx.
◆ WriteUndefinesArray()
std::ostream & ROOT::TModuleGenerator::WriteUndefinesArray |
( |
std::ostream & |
out | ) |
const |
|
inlineprivate |
◆ fCI
clang::CompilerInstance* ROOT::TModuleGenerator::fCI |
|
private |
◆ fCompD
◆ fCompI
std::vector<std::string> ROOT::TModuleGenerator::fCompI |
|
private |
◆ fCompU
std::vector<std::string> ROOT::TModuleGenerator::fCompU |
|
private |
◆ fContentName
std::string ROOT::TModuleGenerator::fContentName |
|
private |
◆ fDemangledDictionaryName
std::string ROOT::TModuleGenerator::fDemangledDictionaryName |
|
private |
◆ fDictionaryName
std::string ROOT::TModuleGenerator::fDictionaryName |
|
private |
◆ fErrorCount
int ROOT::TModuleGenerator::fErrorCount |
|
mutableprivate |
◆ fHeaders
std::vector<std::string> ROOT::TModuleGenerator::fHeaders |
|
private |
◆ fInlineInputHeaders
bool ROOT::TModuleGenerator::fInlineInputHeaders |
|
private |
◆ fIsInPCH
bool ROOT::TModuleGenerator::fIsInPCH |
|
private |
◆ fIsPCH
bool ROOT::TModuleGenerator::fIsPCH |
|
private |
◆ fLinkDefFile
std::string ROOT::TModuleGenerator::fLinkDefFile |
|
private |
◆ fModuleDirName
std::string ROOT::TModuleGenerator::fModuleDirName |
|
private |
◆ fModuleFileName
std::string ROOT::TModuleGenerator::fModuleFileName |
|
private |
◆ fUmbrellaName
std::string ROOT::TModuleGenerator::fUmbrellaName |
|
private |