-
-
Notifications
You must be signed in to change notification settings - Fork 67
/
CppCompilation.cs
42 lines (36 loc) · 1.35 KB
/
CppCompilation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) Alexandre Mutel. All rights reserved.
// Licensed under the BSD-Clause 2 license.
// See license.txt file in the project root for full license information.
namespace CppAst
{
/// <summary>
/// The result of a compilation for a sets of C++ files.
/// </summary>
public class CppCompilation : CppGlobalDeclarationContainer
{
/// <summary>
/// Constructor of this object.
/// </summary>
public CppCompilation()
{
Diagnostics = new CppDiagnosticBag();
System = new CppGlobalDeclarationContainer();
}
/// <summary>
/// Gets the attached diagnostic messages.
/// </summary>
public CppDiagnosticBag Diagnostics { get; }
/// <summary>
/// Gets the final input header text used by this compilation.
/// </summary>
public string InputText { get; set; }
/// <summary>
/// Gets a boolean indicating whether this instance has errors. See <see cref="Diagnostics"/> for more details.
/// </summary>
public bool HasErrors => Diagnostics.HasErrors;
/// <summary>
/// Gets all the declarations that are coming from system include folders used by the declarations in this object.
/// </summary>
public CppGlobalDeclarationContainer System { get; }
}
}