diff options
Diffstat (limited to 'include/clang/Basic')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 1 | ||||
-rw-r--r-- | include/clang/Basic/SourceManager.h | 11 |
2 files changed, 3 insertions, 9 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index 4a6ae1f29d..5c7ef1ba4b 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -201,7 +201,6 @@ public: FullSourceLoc getSpellingLoc() const; unsigned getLineNumber() const; - unsigned getColumnNumber() const; unsigned getInstantiationLineNumber() const; unsigned getInstantiationColumnNumber() const; diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h index dd76f7896f..340c2e562a 100644 --- a/include/clang/Basic/SourceManager.h +++ b/include/clang/Basic/SourceManager.h @@ -481,14 +481,9 @@ public: /// returns zero if the column number isn't known. This may only be called on /// a file sloc, so you must choose a spelling or instantiation location /// before calling this method. - unsigned getColumnNumber(SourceLocation Loc) const; - - unsigned getSpellingColumnNumber(SourceLocation Loc) const { - return getColumnNumber(getSpellingLoc(Loc)); - } - unsigned getInstantiationColumnNumber(SourceLocation Loc) const { - return getColumnNumber(getInstantiationLoc(Loc)); - } + unsigned getColumnNumber(FileID FID, unsigned FilePos) const; + unsigned getSpellingColumnNumber(SourceLocation Loc) const; + unsigned getInstantiationColumnNumber(SourceLocation Loc) const; /// getLineNumber - Given a SourceLocation, return the spelling line number |