diff options
-rw-r--r-- | safercpp/safercpp-arr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<MyPPCallbacks> my_pp_callbacks_ptr(new MyPPCallbacks(TheRewriter)); clang::Preprocessor &pp = ci.getPreprocessor(); |