diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-12 18:32:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-12 18:32:04 +0000 |
commit | e03a2f39accad260c021b7f24f082363578e7a93 (patch) | |
tree | 84119ed5ab33ebeb047072776df11da5eff9ecad /include/clang/Basic/SourceLocation.h | |
parent | b71d5f8111d750ba4b3c70aee45bf04a081c6329 (diff) |
Renamed FullContextSourceLocation to FullSourceLoc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceLocation.h')
-rw-r--r-- | include/clang/Basic/SourceLocation.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/clang/Basic/SourceLocation.h b/include/clang/Basic/SourceLocation.h index f5b1d0452d..c46458c366 100644 --- a/include/clang/Basic/SourceLocation.h +++ b/include/clang/Basic/SourceLocation.h @@ -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(); } |