diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-17 08:04:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-17 08:04:48 +0000 |
commit | 387616edf98739f4a0dd234c907e2b913e6a535d (patch) | |
tree | ab69fa2c7ed613395d7e6a2e33715a316ac51ffc /include/clang/Basic/SourceManager.h | |
parent | d99e31b6c02553c975e411164a8101679c4cb21a (diff) |
add an accessor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r-- | include/clang/Basic/SourceManager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index b29a1acd4a..fcdd834539 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -454,6 +454,12 @@ public: if (Loc.isFileID()) return Loc; return getSpellingLocSlowCase(Loc); } + + /// getImmediateSpellingLoc - Given a SourceLocation object, return the + /// spelling location referenced by the ID. This is the first level down + /// towards the place where the characters that make up the lexed token can be + /// found. This should not generally be used by clients. + SourceLocation getImmediateSpellingLoc(SourceLocation Loc) const; /// getDecomposedLoc - Decompose the specified location into a raw FileID + /// Offset pair. The first element is the FileID, the second is the |