From bf53daa49aee46c1e0a5c4117841bc5b9b992f6d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 25 Nov 2016 11:22:14 +0100 Subject: Clean up PPCallbacks compatiblity fix Change-Id: I91f1db18b7876c4ecc30f7f97283e0ef0369eba5 --- compilerplugins/clang/compat.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'compilerplugins/clang/compat.hxx') diff --git a/compilerplugins/clang/compat.hxx b/compilerplugins/clang/compat.hxx index 063d0ce946fd..28dbeec71e20 100644 --- a/compilerplugins/clang/compat.hxx +++ b/compilerplugins/clang/compat.hxx @@ -179,6 +179,12 @@ inline std::unique_ptr create_raw_fd_ostream( #endif } +#if CLANG_VERSION >= 30700 +using MacroDefinitionParam = clang::MacroDefinition const &; +#else +using MacroDefinitionParam = clang::MacroDirective const *; +#endif + inline void addPPCallbacks( clang::Preprocessor & preprocessor, clang::PPCallbacks * C) { -- cgit