Skip to content

IncludedFilesUnparser

Synopsis

Declared in <src/backend/unparser/IncludedFilesUnparser.h>

class IncludedFilesUnparser
    : public AstSimpleProcessing

Base Classes

Name Description
AstSimpleProcessing Class for traversing the AST.

Member Functions

Name Description
IncludedFilesUnparser
IncludedFilesUnparser(SgProject* projectNode); [constructor]
Construct from SgProject
~IncludedFilesUnparser
virtual ~IncludedFilesUnparser(); [destructor] [virtual]
Destructor
figureOutWhichFilesToUnparse
void figureOutWhichFilesToUnparse();
getCopiedFileOutputPath
std::string getCopiedFileOutputPath(std::string const& absoluteFileName) const;
getFilesToCopy
std::set<std::string> getFilesToCopy();
getFilesWithMarkedTransformations
std::set<std::string> const& getFilesWithMarkedTransformations() const;
getFilesWithUpdatedIncludePaths
std::set<std::string> const& getFilesWithUpdatedIncludePaths() const;
getIncludeCompilerOptions
std::list<std::string> getIncludeCompilerOptions();
getIncludeRewrites
std::map<PreprocessingInfo const*, std::string> const& getIncludeRewrites() const;
getUnparseMap
std::map<std::string, std::string> getUnparseMap();
getUnparseOccurrenceMap
std::map<std::string, unsigned int> getUnparseOccurrenceMap();
getUnparseRootPath
std::string getUnparseRootPath();
getUnparseScopesMap
std::map<std::string, SgScopeStatement*> getUnparseScopesMap();
getUnparseSourceFileMap
std::map<std::string, SgSourceFile*> getUnparseSourceFileMap();
isInputFile
bool isInputFile(std::string const& absoluteFileName);

Protected Member Functions

Name
visit
virtual void visit(SgNode* astNode); [virtual]

Private Member Functions

Name
addIncludeCompilerPath
void addIncludeCompilerPath( int upFolderCount, std::string const& includeCompilerPath);
addToUnparseScopesMap
void addToUnparseScopesMap( std::string const& fileName, SgNode* startNode, unsigned int physicalFileOccurrence, bool preprocessingOnly);
applyFunctionToIncludingPreprocessingInfos
void applyFunctionToIncludingPreprocessingInfos( std::set<std::string> const& includedFiles, void(IncludedFilesUnparser::* funPtr)(std::string const&, PreprocessingInfo*));
collectAdditionalFilesToUnparse
void collectAdditionalFilesToUnparse();
collectAdditionalListOfHeaderFilesToCopy
void collectAdditionalListOfHeaderFilesToCopy();
collectIncludeCompilerPaths
void collectIncludeCompilerPaths();
collectIncludingPathsFromUnaffectedFiles
void collectIncludingPathsFromUnaffectedFiles( std::string const& includedFile, PreprocessingInfo* includingPreprocessingInfo);
collectNewFilesToUnparse
void collectNewFilesToUnparse( std::string const& includedFile, PreprocessingInfo* includingPreprocessingInfo);
collectNotUnparsedFilesThatRequireUnparsingToAvoidFileNameCollisions
void collectNotUnparsedFilesThatRequireUnparsingToAvoidFileNameCollisions();
collectNotUnparsedPreprocessingInfos
void collectNotUnparsedPreprocessingInfos( std::string const& includedFile, PreprocessingInfo* includingPreprocessingInfo);
initializeFilesToUnparse
void initializeFilesToUnparse();
isConflictingIncludePath
bool isConflictingIncludePath(std::string const& includePath);
populateUnparseMap
void populateUnparseMap();
prepareForNewIteration
void prepareForNewIteration();
updatePreprocessingInfoPaths
void updatePreprocessingInfoPaths( std::string const& includedFile, PreprocessingInfo* includingPreprocessingInfo);
validateUnparseScopeCandidates
void validateUnparseScopeCandidates();

Private Data Members

Name
allFiles
filesToCopy
filesToUnparse
filesWithMarkedTransformations
filesWithUpdatedIncludePaths
includeCompilerPaths
includeRewrites
includingPathsMap
includingPreprocessingInfos
newFilesToUnparse
notUnparsedPreprocessingInfos
preprocessingUnparseScopeCandidateOriginsMap
preprocessingUnparseScopeCandidatesMap
projectNode
unparseMap
unparseOccurrenceMap
unparsePaths
unparseRootPath
unparseScopeCandidateOriginsMap
unparseScopeCandidatesMap
unparseScopesMap
unparseSourceFileMap
workingDirectory

Private Static Data Members

Name
defaultUnparseFolderName

Created with MrDocs