diff options
Diffstat (limited to 'compilerplugins/clang/privatebase.cxx')
-rw-r--r-- | compilerplugins/clang/privatebase.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compilerplugins/clang/privatebase.cxx b/compilerplugins/clang/privatebase.cxx index 6819647f88c5..677461302b15 100644 --- a/compilerplugins/clang/privatebase.cxx +++ b/compilerplugins/clang/privatebase.cxx @@ -9,6 +9,7 @@ #ifndef LO_CLANG_SHARED_PLUGINS +#include "compat.hxx" #include "plugin.hxx" namespace { @@ -33,7 +34,7 @@ void PrivateBase::run() { bool PrivateBase::VisitCXXRecordDecl(CXXRecordDecl const * decl) { if (ignoreLocation(decl) || !decl->isThisDeclarationADefinition() - || decl->getTagKind() != TTK_Class) + || decl->getTagKind() != compat::TagTypeKind::Class) { return true; } @@ -43,7 +44,7 @@ bool PrivateBase::VisitCXXRecordDecl(CXXRecordDecl const * decl) { DiagnosticsEngine::Warning, "base class is private by default; explicitly give an access" " specifier", - compat::getBeginLoc(i)) + i->getBeginLoc()) << i->getSourceRange(); } } |