зеркало из https://github.com/microsoft/clang-1.git
Added utility static method to FullContextSourceLocation
for creating "invalid" location objects. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44946 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
0e391052d7
Коммит
b71d5f8111
|
@ -214,6 +214,10 @@ public:
|
|||
explicit FullContextSourceLocation(SourceLocation loc, SourceManager& smgr)
|
||||
: Loc(loc), SrcMgr(&smgr) {}
|
||||
|
||||
static FullContextSourceLocation CreateInvalidLocation() {
|
||||
return FullContextSourceLocation(SourceLocation());
|
||||
}
|
||||
|
||||
bool isValid() const { return Loc.isValid(); }
|
||||
|
||||
SourceLocation getSourceLocation() const { return Loc; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче