From 86dc9018a0d49ab1f22ff40c1ecae446f07b1ece Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Sun, 13 Jan 2019 18:31:37 +0000 Subject: Finish fixing build with trunk Eugene tested BUG: 403083 --- src/SourceCompatibilityHelpers.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/SourceCompatibilityHelpers.h b/src/SourceCompatibilityHelpers.h index 440b1226..e120cafe 100644 --- a/src/SourceCompatibilityHelpers.h +++ b/src/SourceCompatibilityHelpers.h @@ -23,10 +23,11 @@ #ifndef SOURCE_COMPAT_HELPERS #define SOURCE_COMPAT_HELPERS +#include +#include +#include #include #include -#include -#include namespace clazy { @@ -68,12 +69,12 @@ inline bool hasUnusedResultAttr(clang::FunctionDecl *func) if (const auto *R = Ret->getAttr()) return R != nullptr; } else if (const auto *ET = RetType->getAs()) { - if (const EnumDecl *ED = ET->getDecl()) { + if (const clang::EnumDecl *ED = ET->getDecl()) { if (const auto *R = ED->getAttr()) return R != nullptr; } } - return clang::getAttr() != nullptr; + return func->getAttr() != nullptr; #else return func->hasUnusedResultAttr(); #endif -- cgit v1.2.3