/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * Based on LLVM/Clang. * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. * */ #include "lclstaticfix.hxx" /* This is a rewriter. Check all lcl_ functions and prepend static if needed. */ namespace loplugin { LclStaticFix::LclStaticFix( CompilerInstance& compiler, Rewriter& rewriter ) : FilteringRewritePlugin( compiler, rewriter ) { } void LclStaticFix::run() { TraverseDecl( compiler.getASTContext().getTranslationUnitDecl()); } bool LclStaticFix::VisitFunctionDecl( const FunctionDecl* declaration ) { if( ignoreLocation( declaration )) return true; if( declaration->isCXXClassMember()) return true; if( declaration->getStorageClass() == SC_Static ) return true; string name = declaration->getQualifiedNameAsString(); if( name.find( "::" ) != string::npos ) return true; if( name.compare( 0, 4, "lcl_" ) != 0 ) return true; insertText( declaration->getLocStart(), "static " ); return true; } static Plugin::Registration< LclStaticFix > X( "lclstaticfix" ); } // namespace /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ fice-5-0'>distro/cib/libreoffice-5-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sax/Module_sax.mk
AgeCommit message (Collapse)Author
2016-05-19First cut at adding sax2/ unit tests.Mohammed Abdul Azeem
This is a first-step towards implementing the legacy parser using the XFastParser. Change-Id: I37fc0419dbef1d6f067e45e0b1f2fd6051fb158d Reviewed-on: https://gerrit.libreoffice.org/24883 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2013-12-11fdo#60698: Merge fastsax and sax_shared into expwrapMarcos Paulo de Souza
Change-Id: I6f8c6827c00db50184a46f39968f882b944d18d4 Reviewed-on: https://gerrit.libreoffice.org/6967 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>