summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-28 08:39:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-07-30 06:23:00 +0000
commita45827b2308febc7369db27fb489a6d1389534e1 (patch)
tree0b697341738010da35bd0a6a6189ef6761e5db0a /compilerplugins
parent2387c2a46e15995686d28dccdfd455012072b4cf (diff)
loplugin:unusedmethods
Change-Id: Ib4d77ee01e7362f5951f81fceeca3c489872d971 Reviewed-on: https://gerrit.libreoffice.org/17378 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/unusedmethods.py49
1 files changed, 48 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py
index 06adccb0b846..cdac8d5b7cbb 100755
--- a/compilerplugins/clang/unusedmethods.py
+++ b/compilerplugins/clang/unusedmethods.py
@@ -14,7 +14,11 @@ exclusionSet = set([
"int basegfx::Int32Traits::minVal()",
"int basegfx::Int32Traits::neutral()",
"unsigned long UniqueIndexImpl::Insert(void *)",
+
# used from a yacc lexer
+ "struct unoidl::detail::SourceProviderExpr unoidl::detail::SourceProviderExpr::Float(double)",
+ "struct unoidl::detail::SourceProviderExpr unoidl::detail::SourceProviderExpr::Int(long)",
+ "struct unoidl::detail::SourceProviderExpr unoidl::detail::SourceProviderExpr::Uint(unsigned long)",
"class rtl::OUString unoidl::detail::SourceProviderType::getName() const",
"_Bool unoidl::detail::SourceProviderType::equals(const struct unoidl::detail::SourceProviderType &) const",
"_Bool unoidl::detail::SourceProviderEntityPad::isPublished() const",
@@ -25,17 +29,57 @@ exclusionSet = set([
"_Bool unoidl::detail::SourceProviderInterfaceTypeEntityPad::addDirectMember(int,void *,struct unoidl::detail::SourceProviderScannerData *,const class rtl::OUString &)",
"_Bool unoidl::detail::SourceProviderInterfaceTypeEntityPad::addOptionalBaseMembers(int,void *,struct unoidl::detail::SourceProviderScannerData *,const class rtl::OUString &,const class rtl::Reference<class unoidl::InterfaceTypeEntity> &)",
"void unoidl::detail::SourceProviderScannerData::setSource(const void *,unsigned long)",
+ "void Idlc::setParseState(enum ParseState)",
+ "_Bool AstDeclaration::isPredefined()",
+ "void Idlc::setOffset(unsigned int,unsigned int)",
+ "_Bool Idlc::isInMainFile()",
+ "void Idlc::setPublished(_Bool)",
+ "enum ParseState Idlc::getParseState()",
+ "void Idlc::setLineNumber(unsigned int)",
+ "void Idlc::incLineNumber()",
+ "void Idlc::setDocumentation(const class rtl::OString &)",
+ "void Idlc::setInMainfile(_Bool)",
+ "void AstInterface::forwardDefined(const class AstInterface &)",
+ "_Bool AstInterface::hasMandatoryInheritedInterfaces() const",
+ "_Bool AstInterface::usesSingleInheritance() const",
+ "struct AstInterface::DoubleDeclarations AstInterface::checkInheritedInterfaceClashes(const class AstInterface *,_Bool) const",
+ "class std::__debug::vector<struct AstInterface::DoubleMemberDeclaration, class std::allocator<struct AstInterface::DoubleMemberDeclaration> > AstInterface::checkMemberClashes(const class AstDeclaration *) const",
+ "void AstOperation::setExceptions(const class std::__debug::list<class AstDeclaration *, class std::allocator<class AstDeclaration *> > *)",
+ "_Bool AstOperation::isConstructor() const",
+ "_Bool AstService::isSingleInterfaceBasedService() const",
+ "void AstService::setSingleInterfaceBasedService()",
+ "void AstService::setDefaultConstructor(_Bool)",
+ "_Bool AstService::checkLastConstructor() const",
+ "class AstScope * AstStack::nextToTop()",
+ "class AstScope * AstStack::bottom()",
+ "const class AstDeclaration * AstStruct::findTypeParameter(const class rtl::OString &) const",
+ "int AstEnum::getEnumValueCount()",
+ "class AstConstant * AstEnum::checkValue(class AstExpression *)",
+ "void ErrorHandler::flagError(enum ErrorCode,unsigned int)",
+ "void ErrorHandler::error0(enum ErrorCode)",
+ "void ErrorHandler::syntaxError(enum ParseState,int,const char *)",
+ "void ErrorHandler::lookupError(enum ErrorCode,const class rtl::OString &,class AstDeclaration *)",
+ "void ErrorHandler::error3(enum ErrorCode,class AstDeclaration *,class AstDeclaration *,class AstDeclaration *)",
+ "void ErrorHandler::warning0(enum WarningCode,const char *)",
+ "void ErrorHandler::coercionError(class AstExpression *,enum ExprType)",
+ "class AstDeclaration * FeInheritanceHeader::getInherits()",
+ "const class std::__debug::vector<class rtl::OString, class std::allocator<class rtl::OString> > & FeInheritanceHeader::getTypeParameters() const",
+ "const class AstType * FeDeclarator::compose(const class AstDeclaration *)",
+ "const class rtl::OString & FeDeclarator::getName()",
+ "_Bool FeDeclarator::checkType(const class AstDeclaration *)",
"enum connectivity::IParseContext::InternationalKeyCode connectivity::IParseContext::getIntlKeyCode(const class rtl::OString &) const",
"void connectivity::OSQLParser::error(const char *)",
"void connectivity::OSQLParseNode::insert(unsigned int,class connectivity::OSQLParseNode *)",
+
# TODO track instantiations of template class constructors
"void comphelper::IEventProcessor::release()",
"void SotMutexHolder::acquire()",
"void SotMutexHolder::release()",
+
# only used by Windows build
"_Bool basegfx::B2ITuple::equalZero() const",
"class basegfx::B2DPolyPolygon basegfx::unotools::UnoPolyPolygon::getPolyPolygonUnsafe() const",
- "void basegfx::B2IRange::expand(const basegfx::B2ITuple &)",
+ "void basegfx::B2IRange::expand(const class basegfx::B2IRange &)",
"void OpenGLContext::requestSingleBufferedRendering()",
"_Bool TabitemValue::isBothAligned() const",
"_Bool TabitemValue::isNotAligned() const",
@@ -49,6 +93,7 @@ exclusionSet = set([
"void Application::AppEvent(const class ApplicationEvent &)",
"int PhysicalFontFace::GetWidth() const",
"void PhysicalFontFace::SetBitmapSize(int,int)",
+ "class boost::intrusive_ptr<class FontCharMap> FontCharMap::GetDefaultMap(_Bool)",
"_Bool SalObject::IsEraseBackgroundEnabled()",
"const class rtl::OUString & connectivity::OColumn::getCatalogName() const",
"const class rtl::OUString & connectivity::OColumn::getSchemaName() const",
@@ -68,6 +113,8 @@ exclusionSet = set([
"void StyleSettings::SetHideDisabledMenuItems(_Bool)",
# debugging methods
"void oox::drawingml::TextParagraphProperties::dump() const",
+ "void oox::PropertyMap::dumpCode(class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet>)",
+ "void oox::PropertyMap::dumpData(class com::sun::star::uno::Reference<class com::sun::star::beans::XPropertySet>)",
"class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char> > writerfilter::ooxml::OOXMLPropertySet::toString()",
# called from the writerfilter generated code in $WORKDIR, not sure why it is not being picked up
"_Bool writerfilter::ooxml::OOXMLFactory_ns::getElementId(unsigned int,unsigned int,enum writerfilter::ooxml::ResourceType_t &,unsigned int &)",