Detect when TRICK_ICG is used in header files and compensate for it. #375

clang call to addPPCallbacks changed between clang versions 3.5 and 3.6.
This commit is contained in:
Alex Lin 2017-01-12 08:42:16 -06:00
parent 4b28951c1c
commit 8a0653fa09

View File

@ -128,7 +128,7 @@ int main(int argc, char * argv[]) {
hsd.addSearchDirs(include_dirs);
// Add a preprocessor callback to search for TRICK_ICG
#if (LIBCLANG_MAJOR > 3) || ((LIBCLANG_MAJOR == 3) && (LIBCLANG_MINOR >= 9))
#if (LIBCLANG_MAJOR > 3) || ((LIBCLANG_MAJOR == 3) && (LIBCLANG_MINOR >= 6))
std::unique_ptr<FindTrickICG> ftg(new FindTrickICG(ci, hsd, print_trick_icg != llvm::cl::BOU_FALSE )) ;
pp.addPPCallbacks(std::move(ftg)) ;
#else