aboutsummaryrefslogtreecommitdiffstats
path: root/mutator-lvl0.cpp
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2017-09-17 13:03:38 +0000
committerbloodstalker <thabogre@gmail.com>2017-09-17 13:03:38 +0000
commitd3c9c31fcf02aaeda178f1e803ba8e47438df423 (patch)
tree989af2698508128eb35d397edf285cbc9bfb9478 /mutator-lvl0.cpp
parentupdated (diff)
downloadmutator-d3c9c31fcf02aaeda178f1e803ba8e47438df423.tar.gz
mutator-d3c9c31fcf02aaeda178f1e803ba8e47438df423.zip
fixed some API changes from 6.0
Diffstat (limited to '')
-rw-r--r--mutator-lvl0.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/mutator-lvl0.cpp b/mutator-lvl0.cpp
index 4b60f39..fb8d5d8 100644
--- a/mutator-lvl0.cpp
+++ b/mutator-lvl0.cpp
@@ -6753,7 +6753,11 @@ public:
assert(SL->isValid(), "the SourceLocation for MacroDefined is not valid.");
#endif
+#if __clang_major__ <= 5
unsigned MacroNumArgs = MI->getNumArgs();
+#elif __clang_major__ >= 6
+ unsigned MacroNumArgs = MI->getNumParams();
+#endif
/*start of 19.5*/
if (!MI->isBuiltinMacro() && SM.isInMainFile(SL) && !SM.isInSystemHeader(SL))
@@ -6818,7 +6822,11 @@ public:
/*end of 20.1*/
ArrayRef<Token> TokenArrayRef = MI->tokens();
+#if __clang_major__ <= 5
ArrayRef<const IdentifierInfo*> MacroArgsArrRef = MI->args();
+#elif __clang_major__ >= 6
+ ArrayRef<const IdentifierInfo*> MacroArgsArrRef = MI->params();
+#endif
unsigned NumOfTokens = MI->getNumTokens();