mirror of
https://github.com/nasa/trick.git
synced 2025-01-29 15:43:57 +00:00
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:
parent
4b28951c1c
commit
8a0653fa09
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user