1 #ifndef PET_CLANG_COMPATIBILITY_H
2 #define PET_CLANG_COMPATIBILITY_H
6 #include <clang/AST/Type.h>
8 #ifdef HAVE_BEGIN_END_LOC
10 inline clang::SourceLocation
begin_loc(T
*decl
)
12 return decl
->getBeginLoc();
15 inline clang::SourceLocation
end_loc(T
*decl
)
17 return decl
->getEndLoc();
21 inline clang::SourceLocation
begin_loc(T
*decl
)
23 return decl
->getLocStart();
26 inline clang::SourceLocation
end_loc(T
*decl
)
28 return decl
->getLocEnd();
32 #ifdef USE_NESTED_ARRAY_SIZE_MODIFIER
33 using ArraySizeModifier
= clang::ArrayType::ArraySizeModifier
;