diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-27 17:22:25 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-09-27 17:22:25 +0000 |
commit | b201e16e0c331b0bdeae7b30f9f79aae32beb1b2 (patch) | |
tree | fe77b13eb8aa2dbdd7fc8f59ada6ab3f5501ac67 /include/clang/Basic/SourceManager.h | |
parent | 17c8c84fbc5cbde336fdef8fffe63c08a955ade9 (diff) |
Break SourceManager::translateFileLineCol into translateFile, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140610 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 6aea0f95ac..12e7cdfc20 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -1110,6 +1110,12 @@ public: SourceLocation translateFileLineCol(const FileEntry *SourceFile, unsigned Line, unsigned Col) const; + /// \brief Get the FileID for the given file. + /// + /// If the source file is included multiple times, the FileID will be the + /// first inclusion. + FileID translateFile(const FileEntry *SourceFile) const; + /// \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, |