diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-02 15:33:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-02 15:33:05 +0200 |
commit | 4f6563b50856899eb52648a4d062f5df8d0491ce (patch) | |
tree | 9e940c331bfdf7e90017ec7d2e4b933e44c4142c /compilerplugins/clang/oslendian.cxx | |
parent | b9a25096e7e8a82c475c8cc5b6ec7b6c7cdad8a4 (diff) |
Adapt to Clang 5 change of PPCallbacks::MacroUndefined signature
...since <http://llvm.org/viewvc/llvm-project?view=revision&revision=301449>
"PPCallbacks::MacroUndefined, change signature and add test."
Change-Id: I6a420dc4ca33607fef1356e8869cedee87192e93
Diffstat (limited to 'compilerplugins/clang/oslendian.cxx')
-rw-r--r-- | compilerplugins/clang/oslendian.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compilerplugins/clang/oslendian.cxx b/compilerplugins/clang/oslendian.cxx index 705a7bcc987a..ce71c9cf39e1 100644 --- a/compilerplugins/clang/oslendian.cxx +++ b/compilerplugins/clang/oslendian.cxx @@ -59,7 +59,11 @@ private: } void MacroUndefined( - Token const & MacroNameTok, compat::MacroDefinitionParam) override + Token const & MacroNameTok, compat::MacroDefinitionParam +#if CLANG_VERSION >= 50000 + , MacroDirective const * +#endif + ) override { auto id = MacroNameTok.getIdentifierInfo()->getName(); if (id == "OSL_BIGENDIAN" || id == "OSL_LITENDIAN") { |