]> granicus.if.org Git - clang/commitdiff
Remove SourceManager::getLocation().
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 26 Sep 2011 08:01:45 +0000 (08:01 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Mon, 26 Sep 2011 08:01:45 +0000 (08:01 +0000)
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

include/clang/Basic/SourceManager.h

index 9178447a72f686e0f94f5564b8cb44ee8bb94f86..2c6b8cde18d3d753638251d75efd549d633c5320 100644 (file)
@@ -1103,20 +1103,6 @@ public:
   // Other miscellaneous methods.
   //===--------------------------------------------------------------------===//
 
-  /// \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.
-  ///
-  /// 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