@@ -1409,10 +1409,15 @@ class SourceManager : public RefCountedBase<SourceManager> {
14091409 // / before calling this method.
14101410 unsigned getColumnNumber (FileID FID, unsigned FilePos,
14111411 bool *Invalid = nullptr ) const ;
1412+ unsigned getColumnNumber (SourceLocation Loc, bool *Invalid = nullptr ) const ;
14121413 unsigned getSpellingColumnNumber (SourceLocation Loc,
1413- bool *Invalid = nullptr ) const ;
1414+ bool *Invalid = nullptr ) const {
1415+ return getColumnNumber (getSpellingLoc (Loc), Invalid);
1416+ }
14141417 unsigned getExpansionColumnNumber (SourceLocation Loc,
1415- bool *Invalid = nullptr ) const ;
1418+ bool *Invalid = nullptr ) const {
1419+ return getColumnNumber (getExpansionLoc (Loc), Invalid);
1420+ }
14161421 unsigned getPresumedColumnNumber (SourceLocation Loc,
14171422 bool *Invalid = nullptr ) const ;
14181423
@@ -1423,8 +1428,15 @@ class SourceManager : public RefCountedBase<SourceManager> {
14231428 // / MemoryBuffer, so this is not cheap: use only when about to emit a
14241429 // / diagnostic.
14251430 unsigned getLineNumber (FileID FID, unsigned FilePos, bool *Invalid = nullptr ) const ;
1426- unsigned getSpellingLineNumber (SourceLocation Loc, bool *Invalid = nullptr ) const ;
1427- unsigned getExpansionLineNumber (SourceLocation Loc, bool *Invalid = nullptr ) const ;
1431+ unsigned getLineNumber (SourceLocation Loc, bool *Invalid = nullptr ) const ;
1432+ unsigned getSpellingLineNumber (SourceLocation Loc,
1433+ bool *Invalid = nullptr ) const {
1434+ return getLineNumber (getSpellingLoc (Loc), Invalid);
1435+ }
1436+ unsigned getExpansionLineNumber (SourceLocation Loc,
1437+ bool *Invalid = nullptr ) const {
1438+ return getLineNumber (getExpansionLoc (Loc), Invalid);
1439+ }
14281440 unsigned getPresumedLineNumber (SourceLocation Loc, bool *Invalid = nullptr ) const ;
14291441
14301442 // / Return the filename or buffer identifier of the buffer the
0 commit comments