diff options
author | bloodstalker <thabogre@gmail.com> | 2017-09-17 13:03:38 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-09-17 13:03:38 +0000 |
commit | d3c9c31fcf02aaeda178f1e803ba8e47438df423 (patch) | |
tree | 989af2698508128eb35d397edf285cbc9bfb9478 /mutator-lvl0.cpp | |
parent | updated (diff) | |
download | mutator-d3c9c31fcf02aaeda178f1e803ba8e47438df423.tar.gz mutator-d3c9c31fcf02aaeda178f1e803ba8e47438df423.zip |
fixed some API changes from 6.0
Diffstat (limited to '')
-rw-r--r-- | mutator-lvl0.cpp | 8 |
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(); |