mirror of
https://github.com/nasa/trick.git
synced 2024-12-22 14:32:24 +00:00
b29a117902
getLocEnd got changed to getEndLoc. Made a LLVM version based macro to handle both.
17 lines
310 B
C++
17 lines
310 B
C++
#ifndef BRACEMACRO_HH
|
|
#define BRACEMACRO_HH
|
|
|
|
#if (LIBCLANG_MAJOR > 3) || ((LIBCLANG_MAJOR == 3) && (LIBCLANG_MINOR >= 9))
|
|
#define RBRACELOC getBraceRange().getEnd
|
|
#else
|
|
#define RBRACELOC getRBraceLoc
|
|
#endif
|
|
|
|
#if (LIBCLANG_MAJOR >=8)
|
|
#define GETLOCEND getEndLoc
|
|
#else
|
|
#define GETLOCEND getLocEnd
|
|
#endif
|
|
|
|
#endif
|