Just don't bother with Clang <= 3.6

...where Preprocessor::macros and Preprocessor::getLocalMacroDirectiveHistory
would need to be done slightly differently

Change-Id: Id46b05ac42012597c91a556b17ed008b6c7c5912
This commit is contained in:
Stephan Bergmann 2016-04-25 17:27:13 +02:00
parent 6a0a9870a3
commit 3d081a3f4d

View file

@ -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
}
}