diff options
author | bloodstalker <thabogre@gmail.com> | 2017-07-16 05:50:29 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-07-16 05:50:29 +0000 |
commit | 02187b4afbf6745fbf062f031f2f66fe69ce265f (patch) | |
tree | 8b308f0aa5fad44770ab52dbc89ceaf38333ddf8 | |
parent | reverted (diff) | |
download | mutator-02187b4afbf6745fbf062f031f2f66fe69ce265f.tar.gz mutator-02187b4afbf6745fbf062f031f2f66fe69ce265f.zip |
added a pp check due to api changes
-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(); |