Debian Codegraph @

CodeLite/CIncludeStatementCollector.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // Copyright : (C) 2015 Eran Ifrah
5 // File name : CIncludeStatementCollector.h
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25
26 #ifndef CXXPREPROCESSORSCANNERBASE_H
27 #define CXXPREPROCESSORSCANNERBASE_H
28
29 #include "CxxLexerAPI.h"
30 #include "CxxScannerBase.h"
31 #include "codelite_exports.h"
32 #include <unordered_set>
33 #include <wx/filename.h>
34
35 class WXDLLIMPEXP_CL CxxPreProcessor;
36 class WXDLLIMPEXP_CL CIncludeStatementCollector : public CxxScannerBase
37 {
38 std::unordered_set<wxString>& m_visitedFiles;
39
40 public:
41 CIncludeStatementCollector(CxxPreProcessor* pp, const wxFileName& filename,
42 std::unordered_set<wxString>& visitedFiles);
43 virtual ~CIncludeStatementCollector();
44 void OnToken(CxxLexerToken& token) override;
45 };
46
47 #endif // CXXPREPROCESSORSCANNERBASE_H