1 #ifndef PET_CLANG_COMPATIBILITY_H
2 #define PET_CLANG_COMPATIBILITY_H
6 #ifdef HAVE_BEGIN_END_LOC
8 inline clang::SourceLocation
begin_loc(T
*decl
)
10 return decl
->getBeginLoc();
13 inline clang::SourceLocation
end_loc(T
*decl
)
15 return decl
->getEndLoc();
19 inline clang::SourceLocation
begin_loc(T
*decl
)
21 return decl
->getLocStart();
24 inline clang::SourceLocation
end_loc(T
*decl
)
26 return decl
->getLocEnd();