aboutsummaryrefslogtreecommitdiffstats
path: root/safercpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-07-16 05:50:29 +0000
committerbloodstalker <thabogre@gmail.com>2017-07-16 05:50:29 +0000
commit02187b4afbf6745fbf062f031f2f66fe69ce265f (patch)
tree8b308f0aa5fad44770ab52dbc89ceaf38333ddf8 /safercpp
parentreverted (diff)
downloadmutator-02187b4afbf6745fbf062f031f2f66fe69ce265f.tar.gz
mutator-02187b4afbf6745fbf062f031f2f66fe69ce265f.zip
added a pp check due to api changes
Diffstat (limited to 'safercpp')
-rw-r--r--safercpp/safercpp-arr.cpp4
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();