Renamed FullContextSourceLocation to FullSourceLoc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44947 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2007-12-12 18:32:04 +00:00
Родитель b71d5f8111
Коммит e03a2f39ac
1 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -201,21 +201,21 @@ public:
static SourceRange ReadVal(llvm::Deserializer& D);
};
/// FullContextSourceLocation - A tuple containing both a SourceLocation
/// FullSourceLoc - A tuple containing both a SourceLocation
/// and its associated SourceManager. Useful for argument passing to functions
/// that expect both objects.
class FullContextSourceLocation {
class FullSourceLoc {
SourceLocation Loc;
SourceManager* SrcMgr;
public:
explicit FullContextSourceLocation(SourceLocation loc)
explicit FullSourceLoc(SourceLocation loc)
: Loc(loc), SrcMgr(NULL) {}
explicit FullContextSourceLocation(SourceLocation loc, SourceManager& smgr)
explicit FullSourceLoc(SourceLocation loc, SourceManager& smgr)
: Loc(loc), SrcMgr(&smgr) {}
static FullContextSourceLocation CreateInvalidLocation() {
return FullContextSourceLocation(SourceLocation());
static FullSourceLoc CreateInvalidLocation() {
return FullSourceLoc(SourceLocation());
}
bool isValid() const { return Loc.isValid(); }