diff --git a/compilerplugins/clang/reservedid.cxx b/compilerplugins/clang/reservedid.cxx index 52d0c70a96c0..1517a94eba05 100644 --- a/compilerplugins/clang/reservedid.cxx +++ b/compilerplugins/clang/reservedid.cxx @@ -59,6 +59,7 @@ void ReservedId::run() { if (TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()) && compiler.hasPreprocessor()) { +#if CLANG_VERSION >= 30700 auto & prep = compiler.getPreprocessor(); for (auto const & m: prep.macros(false)) { auto id = m.first->getName(); @@ -91,6 +92,7 @@ void ReservedId::run() { } } } +#endif } }