[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - compilerplugins/clang

Tor Lillqvist tml at collabora.com
Mon Feb 20 17:31:01 UTC 2017


 compilerplugins/clang/sallogareas.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 962c820d34d0e00dc3d947b17db752110cf35e40
Author: Tor Lillqvist <tml at collabora.com>
Date:   Mon Feb 20 13:11:32 2017 +0200

    SAL_DEBUG_TRACE is like SAL_DEBUG
    
    Change-Id: I7b4585259255b9869e5f6ec03fc901db29c10bc8
    Reviewed-on: https://gerrit.libreoffice.org/34481
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Tor Lillqvist <tml at collabora.com>

diff --git a/compilerplugins/clang/sallogareas.cxx b/compilerplugins/clang/sallogareas.cxx
index 512177d..a91461b 100644
--- a/compilerplugins/clang/sallogareas.cxx
+++ b/compilerplugins/clang/sallogareas.cxx
@@ -84,7 +84,7 @@ bool SalLogAreas::VisitCallExpr( const CallExpr* call )
                          loc = source.getImmediateExpansionRange( loc ).first )
                         {
                         StringRef inMacro = Lexer::getImmediateMacroName( loc, source, compiler.getLangOpts());
-                        if( inMacro == "SAL_DEBUG" )
+                        if( inMacro == "SAL_DEBUG" || inMacro == "SAL_DEBUG_TRACE" )
                             return true; // ok
                         }
                     report( DiagnosticsEngine::Warning, "missing log area",


More information about the Libreoffice-commits mailing list