From 02187b4afbf6745fbf062f031f2f66fe69ce265f Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 16 Jul 2017 10:20:29 +0430 Subject: added a pp check due to api changes --- safercpp/safercpp-arr.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'safercpp') diff --git a/safercpp/safercpp-arr.cpp b/safercpp/safercpp-arr.cpp index e4bb4d4..a7178c7 100644 --- a/safercpp/safercpp-arr.cpp +++ b/safercpp/safercpp-arr.cpp @@ -6487,7 +6487,11 @@ public: } } +#if __clang_major__ == 4 bool BeginSourceFileAction(CompilerInstance &ci, StringRef) override { +#elif __clang_major__ == 5 + bool BeginSourceFileAction(CompilerInstance &ci) override { +#endif std::unique_ptr my_pp_callbacks_ptr(new MyPPCallbacks(TheRewriter)); clang::Preprocessor &pp = ci.getPreprocessor(); -- cgit v1.2.3