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:
parent
6a0a9870a3
commit
3d081a3f4d
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue