1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
7 * This file is distributed under the University of Illinois Open Source
8 * License. See LICENSE.TXT for details.
23 : public FilteringPlugin
< SalLogAreas
>
26 explicit SalLogAreas( const InstantiationData
& data
);
27 virtual void run() override
;
28 bool VisitFunctionDecl( const FunctionDecl
* function
);
29 bool VisitCallExpr( const CallExpr
* call
);
31 void checkArea( StringRef area
, SourceLocation location
);
32 void checkAreaSyntax(StringRef area
, SourceLocation location
);
34 const FunctionDecl
* inFunction
;
35 SourceLocation lastSalDetailLogStreamMacro
;
36 std::set
< std::string
> logAreas
;
38 std::string firstSeenLogArea
;
39 SourceLocation firstSeenLocation
;
45 #endif // SALLOGAREAS_H
47 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */