1
2
3
4
5
6 #include <cmajor/symbols/Warning.hpp>
7 #include <cmajor/symbols/Exception.hpp>
8 #include <soulng/util/Unicode.hpp>
9
10 namespace cmajor { namespace symbols {
11
12 using namespace soulng::util;
13 using namespace soulng::unicode;
14
15 Warning::Warning(const std::u32string& project_, const std::string& message_) : project(project_), message(message_)
16 {
17 }
18
19 void Warning::SetReferences(const std::std::vector<std::std::pair<Span, boost::uuids::uuid>>&references_)
20 {
21 references = references_;
22 }
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 CompileWarningCollection::CompileWarningCollection()
51 {
52 }
53
54 void CompileWarningCollection::AddWarning(const Warning& warning)
55 {
56 warnings.push_back(warning);
57 }
58
59 } }