diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:40:29 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-19 20:40:29 +0000 |
commit | efa2ff8603dae51f5f5ed7509a503f477498ad22 (patch) | |
tree | 5dc759cf7f5e7811da7445385eaad989f479dbb1 /include/clang/Basic/SourceManager.h | |
parent | 2dbaca748bc3eb6539f417bd8354c930bdf88fa4 (diff) |
Break SourceManager::translateFileLineCol into translateLineCol that returns the
source location of line:col of a specific FileID.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140059 91177308-0d34-0410-b5e6-96231b3b80d8
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 2bd07c6d5f..09aadcebba 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -1119,6 +1119,10 @@ public: SourceLocation translateFileLineCol(const FileEntry *SourceFile, unsigned Line, unsigned Col); + /// \brief Get the source location in \arg FID for the given line:col. + /// Returns null location if \arg FID is not a file SLocEntry. + SourceLocation translateLineCol(FileID FID, unsigned Line, unsigned Col); + /// \brief If \arg Loc points inside a function macro argument, the returned /// location will be the macro location in which the argument was expanded. /// If a macro argument is used multiple times, the expanded location will |