class
SourceManagerStatic methods
- def addDiagnosticDirective(…)
Methods
- def addLineDirective(self, location: SourceLocation, lineNum: int, name: str, level: int) -> None
- def addSystemDirectories(self, path: str) -> None
- def addUserDirectories(self, path: str) -> None
- def assignText(self, text: str, includedFrom: SourceLocation = SourceLocation(0, 0), library: SourceLibrary = None) -> SourceBuffer
- def assignText(self, path: str, text: str, includedFrom: SourceLocation = SourceLocation(0, 0), library: SourceLibrary = None) -> SourceBuffer
- def getAllBuffers(self, /) -> list[BufferID]
- def getColumnNumber(self, location: SourceLocation) -> int
- def getExpansionLoc(self, location: SourceLocation) -> SourceLocation
- def getExpansionRange(self, location: SourceLocation) -> SourceRange
- def getFileName(self, location: SourceLocation) -> str
- def getFullPath(self, buffer: BufferID) -> os.PathLike
- def getFullyExpandedLoc(self, location: SourceLocation) -> SourceLocation
- def getFullyOriginalLoc(self, location: SourceLocation) -> SourceLocation
- def getFullyOriginalRange(self, range: SourceRange) -> SourceRange
- def getIncludedFrom(self, buffer: BufferID) -> SourceLocation
- def getLineNumber(self, location: SourceLocation) -> int
- def getMacroName(self, location: SourceLocation) -> str
- def getOriginalLoc(self, location: SourceLocation) -> SourceLocation
- def getRawFileName(self, buffer: BufferID) -> str
- def getSourceText(self, buffer: BufferID) -> str
- def isBeforeInCompilationUnit(self, left: SourceLocation, right: SourceLocation) -> typing.Optional[bool]
- def isCached(self, path: os.PathLike) -> bool
- def isFileLoc(self, location: SourceLocation) -> bool
- def isIncludedFileLoc(self, location: SourceLocation) -> bool
- def isMacroArgLoc(self, location: SourceLocation) -> bool
- def isMacroLoc(self, location: SourceLocation) -> bool
- def isPreprocessedLoc(self, location: SourceLocation) -> bool
- def readHeader(self, path: str, includedFrom: SourceLocation, library: SourceLibrary, isSystemPath: bool) -> SourceBuffer
- def readSource(self, path: os.PathLike, library: SourceLibrary = None) -> SourceBuffer
- def setDisableProximatePaths(self, set: bool) -> None
Special methods
- def __init__(self, /) -> None