aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-11 18:38:32 +0000
committerChris Lattner <sabre@nondot.org>2007-10-11 18:38:32 +0000
commit8a12c2777cccdf629b89745b6ecc89a8c1641e4e (patch)
tree9984c8669f8e4370ff99d6810cee9a2f1fff6fb3 /include/clang/Basic/SourceManager.h
parentdfbcce2b55ca8b45ce9d9c09c32e43c3bd73ac2a (diff)
Push the rewriting APIs along. Build a trivial client that replaces tabs
with x's for now. The APIs are all unimplemented, so it doesn't do anything yet! :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h4
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.