MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / addIncludeFileInfo

Method addIncludeFileInfo

src/SourceCompile/PreprocessFile.cpp:582–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580}
581
582int32_t PreprocessFile::addIncludeFileInfo(
583 IncludeFileInfo::Context context, uint32_t sectionStartLine,
584 SymbolId sectionSymbolId, PathId sectionFileId, uint32_t originalStartLine,
585 uint32_t originalStartColumn, uint32_t originalEndLine,
586 uint32_t originalEndColumn, IncludeFileInfo::Action action,
587 int32_t indexOpening /* = 0 */, int32_t indexClosing /* = 0 */) {
588 int32_t index = m_includeFileInfo.size();
589 m_includeFileInfo.emplace_back(
590 context, sectionStartLine, sectionSymbolId, sectionFileId,
591 originalStartLine, originalStartColumn, originalEndLine,
592 originalEndColumn, action, indexOpening, indexClosing);
593 return index;
594}
595
596void PreprocessFile::resetIncludeFileInfo() {
597 clearIncludeFileInfo();

Callers 4

Calls

no outgoing calls

Tested by

no test coverage detected