aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-26 08:01:45 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-09-26 08:01:45 +0000
commit527f98d65ff1e7c3ed6c8467ca7f516f3ea7ad9b (patch)
treeaa4b45a09f5d542beaf55fdaa8c68e0e0734d4d3 /include/clang/Basic/SourceManager.h
parentee0f84fc84ed7de7975e102668d8e53a778f7a8c (diff)
Remove SourceManager::getLocation().
It's not descriptive enough and it's just a call of translateFileLineCol() followed by a call to getMacroArgExpandedLocation(), which is better to be called explicitly since it has a certain cost and is not always required. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140520 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index 9178447a72..2c6b8cde18 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -1107,20 +1107,6 @@ public:
///
/// If the source file is included multiple times, the source location will
/// be based upon the first inclusion.
- ///
- /// If the location points inside a function macro argument, the returned
- /// location will be the macro location in which the argument was expanded.
- /// \sa getMacroArgExpandedLocation
- SourceLocation getLocation(const FileEntry *SourceFile,
- unsigned Line, unsigned Col) {
- SourceLocation Loc = translateFileLineCol(SourceFile, Line, Col);
- return getMacroArgExpandedLocation(Loc);
- }
-
- /// \brief Get the source location for the given file:line:col triplet.
- ///
- /// If the source file is included multiple times, the source location will
- /// be based upon the first inclusion.
SourceLocation translateFileLineCol(const FileEntry *SourceFile,
unsigned Line, unsigned Col) const;