|
ACAV f0ba4b7c9529
Abstract Syntax Tree (AST) visualization tool for C, C++, and Objective-C
|
Represents a span of source code (begin to end). More...
#include <SourceLocation.h>
Public Member Functions | |
| SourceRange (SourceLocation begin, SourceLocation end) | |
| SourceLocation | begin () const |
| SourceLocation | end () const |
Static Public Member Functions | |
| static SourceRange | fromClang (const clang::SourceRange &range, const clang::SourceManager &sm, FileManager &fileMgr) |
| Create SourceRange from Clang's SourceRange. | |
| static void | resetCache () |
| Reset internal caches (per extraction run). | |
Represents a span of source code (begin to end).
Memory layout: 24 bytes (2 × SourceLocation)
Definition at line 75 of file SourceLocation.h.
| acav::SourceRange::SourceRange | ( | SourceLocation | begin, |
| SourceLocation | end ) |
Definition at line 122 of file SourceLocation.cpp.
|
inline |
Definition at line 80 of file SourceLocation.h.
|
inline |
Definition at line 81 of file SourceLocation.h.
|
static |
Create SourceRange from Clang's SourceRange.
| range | Clang source range |
| sm | Clang source manager |
| fileMgr | FileManager for path registration |
Definition at line 125 of file SourceLocation.cpp.
References acav::SourceLocation::fromClang(), and acav::FileManager::InvalidFileID.