Update get*LineNumber() and get*ColumnNumber() functions to pass the
Invalid bit through; there are no safety-critical callers of these functions. llvm-svn: 98674
This commit is contained in:
parent
8801b810bb
commit
a71b9d0678
|
@ -200,11 +200,11 @@ public:
|
|||
FullSourceLoc getInstantiationLoc() const;
|
||||
FullSourceLoc getSpellingLoc() const;
|
||||
|
||||
unsigned getInstantiationLineNumber() const;
|
||||
unsigned getInstantiationColumnNumber() const;
|
||||
unsigned getInstantiationLineNumber(bool *Invalid = 0) const;
|
||||
unsigned getInstantiationColumnNumber(bool *Invalid = 0) const;
|
||||
|
||||
unsigned getSpellingLineNumber() const;
|
||||
unsigned getSpellingColumnNumber() const;
|
||||
unsigned getSpellingLineNumber(bool *Invalid = 0) const;
|
||||
unsigned getSpellingColumnNumber(bool *Invalid = 0) const;
|
||||
|
||||
const char *getCharacterData(bool *Invalid = 0) const;
|
||||
|
||||
|
|
|
@ -80,24 +80,24 @@ FullSourceLoc FullSourceLoc::getSpellingLoc() const {
|
|||
return FullSourceLoc(SrcMgr->getSpellingLoc(*this), *SrcMgr);
|
||||
}
|
||||
|
||||
unsigned FullSourceLoc::getInstantiationLineNumber() const {
|
||||
unsigned FullSourceLoc::getInstantiationLineNumber(bool *Invalid) const {
|
||||
assert(isValid());
|
||||
return SrcMgr->getInstantiationLineNumber(*this);
|
||||
return SrcMgr->getInstantiationLineNumber(*this, Invalid);
|
||||
}
|
||||
|
||||
unsigned FullSourceLoc::getInstantiationColumnNumber() const {
|
||||
unsigned FullSourceLoc::getInstantiationColumnNumber(bool *Invalid) const {
|
||||
assert(isValid());
|
||||
return SrcMgr->getInstantiationColumnNumber(*this);
|
||||
return SrcMgr->getInstantiationColumnNumber(*this, Invalid);
|
||||
}
|
||||
|
||||
unsigned FullSourceLoc::getSpellingLineNumber() const {
|
||||
unsigned FullSourceLoc::getSpellingLineNumber(bool *Invalid) const {
|
||||
assert(isValid());
|
||||
return SrcMgr->getSpellingLineNumber(*this);
|
||||
return SrcMgr->getSpellingLineNumber(*this, Invalid);
|
||||
}
|
||||
|
||||
unsigned FullSourceLoc::getSpellingColumnNumber() const {
|
||||
unsigned FullSourceLoc::getSpellingColumnNumber(bool *Invalid) const {
|
||||
assert(isValid());
|
||||
return SrcMgr->getSpellingColumnNumber(*this);
|
||||
return SrcMgr->getSpellingColumnNumber(*this, Invalid);
|
||||
}
|
||||
|
||||
bool FullSourceLoc::isInSystemHeader() const {
|
||||
|
|
Loading…
Reference in New Issue