summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-25 17:27:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-25 17:27:13 +0200
commit3d081a3f4d9b2d234c020a3468389816fadb061b (patch)
treeae79dfb206c183c6cb75cad7f6c2adf8e1c6d65b /compilerplugins
parent6a0a9870a3b42eca22af064579c8f1b5149c1fa4 (diff)
Just don't bother with Clang <= 3.6
...where Preprocessor::macros and Preprocessor::getLocalMacroDirectiveHistory would need to be done slightly differently Change-Id: Id46b05ac42012597c91a556b17ed008b6c7c5912
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/reservedid.cxx2
1 files changed, 2 insertions, 0 deletions
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
}
}