diff options
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index f479b94e5d..901010b947 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -198,6 +198,10 @@ public: return getFileInfo(FileID)->Buffer; } + /// getBufferData - Return a pointer to the start and end of the character + /// data for the specified FileID. + std::pair<const char*, const char*> getBufferData(unsigned FileID) const; + /// getIncludeLoc - Return the location of the #include for the specified /// SourceLocation. If this is a macro expansion, this transparently figures /// out which file includes the file being expanded into. |