SagePreprocessorRecord
SagePreprocessorRecord( clang::SourceManager* source_manager, clang::Preprocessor* preprocessor, bool record_header_directives); [constructor] | |
~SagePreprocessorRecord
virtual ~SagePreprocessorRecord() override; [destructor] [virtual] | Destructor |
Elif
virtual void Elif( clang::SourceLocation Loc, clang::SourceRange ConditionRange, clang::PPCallbacks::ConditionValueKind ConditionValue, clang::SourceLocation IfLoc) override; [virtual] | |
Elifdef
virtual void Elifdef( clang::SourceLocation Loc, clang::SourceRange ConditionRange, clang::SourceLocation IfLoc) override; | |
Elifndef
virtual void Elifndef( clang::SourceLocation Loc, clang::SourceRange ConditionRange, clang::SourceLocation IfLoc) override; | |
Else
virtual void Else( clang::SourceLocation Loc, clang::SourceLocation IfLoc) override; [virtual] | |
Endif
virtual void Endif( clang::SourceLocation Loc, clang::SourceLocation IfLoc) override; [virtual] | |
FileChanged
virtual void FileChanged( clang::SourceLocation Loc, FileChangeReason Reason, clang::SrcMgr::CharacteristicKind FileType, clang::FileID PrevFID) override; [virtual] | |
HandleComment
virtual bool HandleComment( clang::Preprocessor& PP, clang::SourceRange Comment) override; [virtual] | |
If
virtual void If( clang::SourceLocation Loc, clang::SourceRange ConditionRange, clang::PPCallbacks::ConditionValueKind ConditionValue) override; [virtual] | |
Ifdef
virtual void Ifdef( clang::SourceLocation Loc, clang::Token const& MacroNameTok, clang::MacroDefinition const& MD) override; [virtual] | |
Ifndef
virtual void Ifndef( clang::SourceLocation Loc, clang::Token const& MacroNameTok, clang::MacroDefinition const& MD) override; [virtual] | |
InclusionDirective
virtual void InclusionDirective( clang::SourceLocation HashLoc, clang::Token const& IncludeTok, llvm::StringRef FileName, bool IsAngled, clang::CharSourceRange FilenameRange, clang::OptionalFileEntryRef File, llvm::StringRef SearchPath, llvm::StringRef RelativePath, clang::Module const* SuggestedModule, bool ModuleImported, clang::SrcMgr::CharacteristicKind FileType) override; [virtual] | |
MacroDefined
virtual void MacroDefined( clang::Token const& MacroNameTok, clang::MacroDirective const* MD) override; [virtual] | |
MacroUndefined
virtual void MacroUndefined( clang::Token const& MacroNameTok, clang::MacroDefinition const& MD, clang::MacroDirective const* Undef) override; [virtual] | |
SourceRangeSkipped
virtual void SourceRangeSkipped( clang::SourceRange Range, clang::SourceLocation EndifLoc) override; [virtual] | |
consumeIncludeDirectiveInFlattenedSyntax
void consumeIncludeDirectiveInFlattenedSyntax( clang::SourceLocation include_location, SgLocatedNode* source_interval_owner, char const* contract); | |
containsConditionalDirective
bool containsConditionalDirective( clang::FileID file_id, unsigned int begin_offset, unsigned int end_offset) const; | |
getPhysicalFilename
std::string getPhysicalFilename(clang::FileEntryRef file) const; | |
includeDirectiveLocationsAtStartOrStrictlyInside
std::vector<clang::SourceLocation> includeDirectiveLocationsAtStartOrStrictlyInside(clang::SourceRange source_range) const; | |
includeDirectiveLocationsStrictlyInside
std::vector<clang::SourceLocation> includeDirectiveLocationsStrictlyInside(clang::SourceRange source_range) const; | |
includeOwnershipForLocation
IncludeOwnership includeOwnershipForLocation(clang::SourceLocation location) const; | |
includeOwnershipForPath
IncludeOwnership includeOwnershipForPath(std::string const& path) const; | |
isInsideConditionalRegion
bool isInsideConditionalRegion( clang::FileID file_id, unsigned int offset) const; | |
markAttached
void markAttached(PreprocessingInfo* preprocessing_info); | |
moduleImport
virtual void moduleImport( clang::SourceLocation ImportLoc, clang::ModuleIdPath Path, clang::Module const* Imported) override; [virtual] | |
pop
bool pop(); | |
publishIncludeOwnership
void publishIncludeOwnership(SgSourceFile* source_file) const; | |
recordExternalOwnershipPath
void recordExternalOwnershipPath( std::string const& path, char const* context); | |
recordFrontendSupportOwnershipPath
void recordFrontendSupportOwnershipPath( std::string const& path, char const* context); | |
recordImportedModuleOwnership
void recordImportedModuleOwnership( clang::Module const* imported_module, char const* context); | |
recordSourceDirective
void recordSourceDirective( clang::SourceLocation loc, PreprocessingInfo::DirectiveType directive_type); | |
remainingRecords
std::vector<std::pair<Sg_File_Info*, PreprocessingInfo*>> remainingRecords() const; | |
requirePhysicalFileOccurrence
unsigned int requirePhysicalFileOccurrence( clang::FileID file_id, char const* context); | |
size
size_t size() const; | |
sortRecordedDirectives
void sortRecordedDirectives(); | |
sourceRangeContainsSkippedTokens
bool sourceRangeContainsSkippedTokens(clang::SourceRange source_range) const; | |
top
std::pair<Sg_File_Info*, PreprocessingInfo*> top(); | |
transferDirectivesToDeclarationGroupBoundary
void transferDirectivesToDeclarationGroupBoundary( clang::SourceRange source_range, SgDeclarationGroupStatement* declaration_group, SgDeclarationStatement* following_member); | |
transferDirectivesToDeclarationGroupTerminator
void transferDirectivesToDeclarationGroupTerminator( clang::SourceRange source_range, SgDeclarationGroupStatement* declaration_group, SgDeclarationStatement* final_member); | |
transferDirectivesToExternalEnumBoundaries
void transferDirectivesToExternalEnumBoundaries( clang::SourceRange source_range, SgEnumDeclaration* enum_declaration, std::vector<std::pair<clang::SourceLocation, SgInitializedName*>> const& source_body_enumerators); | |
transferDirectivesToFunctionBodyBoundary
void transferDirectivesToFunctionBodyBoundary( clang::SourceRange source_range, SgFunctionDeclaration* function_declaration, SgFunctionDefinition* function_definition); | |
transferIncludeDirectiveToAssignmentInitializer
void transferIncludeDirectiveToAssignmentInitializer( clang::SourceLocation include_location, SgAssignInitializer* assignment_initializer); | |
transferIncludeDirectiveToClassBoundary
void transferIncludeDirectiveToClassBoundary( clang::SourceLocation include_location, SgClassDefinition* class_definition, SgDeclarationStatement* following_member); | |
transferIncludeDirectiveToInitializerBoundary
void transferIncludeDirectiveToInitializerBoundary( clang::SourceLocation include_location, SgAggregateInitializer* aggregate_initializer, SgExpression* following_initializer_element); | |