1 // =================================
 2 // Copyright (c) 2021 Seppo Laakko
 3 // Distributed under the MIT license
 4 // =================================
 5 
 6 #ifndef CMAJOR_SYMBOLS_SOURCE_FILE_MODULE_MAP_INCLUDED
 7 #define CMAJOR_SYMBOLS_SOURCE_FILE_MODULE_MAP_INCLUDED
 8 #include <sngcm/ast/Project.hpp>
 9 #include <cmajor/symbols/SymbolsApi.hpp>
10 #include <boost/uuid/uuid.hpp>
11 
12 namespace cmajor { namespace symbols {
13 
14 class Module;
15 
16 void MapSourceFileToModuleId(sngcm::ast::BackEnd backendsngcm::ast::Config configconst std::string& sourceFilePathconst boost::uuids::uuid& moduleId);
17 Module* GetModuleBySourceFile(sngcm::ast::BackEnd backendsngcm::ast::Config configconst std::string& sourceFilePath);
18 void InitSourceFileModuleMap();
19 void DoneSourceFileModuleMap();
20 
21 } } // namespace cmajor::symbols;
22 
23 #endif // CMAJOR_SYMBOLS_SOURCE_FILE_MODULE_MAP_INCLUDED