fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / compilerplugins / clang / sallogareas.hxx
blobe00086b27ae4fd53812d7e2134aeb86a67879046
1 /*
2 * This file is part of the LibreOffice project.
4 * Based on LLVM/Clang.
6 * This file is distributed under the University of Illinois Open Source
7 * License. See LICENSE.TXT for details.
9 */
11 #ifndef SALLOGAREAS_H
12 #define SALLOGAREAS_H
14 #include <set>
16 #include "plugin.hxx"
18 namespace loplugin
21 class SalLogAreas
22 : public RecursiveASTVisitor< SalLogAreas >
23 , public Plugin
25 public:
26 explicit SalLogAreas( CompilerInstance& compiler );
27 virtual void run() override;
28 bool VisitFunctionDecl( const FunctionDecl* function );
29 bool VisitCallExpr( const CallExpr* call );
30 private:
31 void checkArea( StringRef area, SourceLocation location );
32 void readLogAreas();
33 const FunctionDecl* inFunction;
34 SourceLocation lastSalDetailLogStreamMacro;
35 set< string > logAreas;
38 } // namespace
40 #endif // SALLOGAREAS_H