Skip to content

Commit 7055049

Browse files
committed
Add C Event Data Types
1 parent c87c452 commit 7055049

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "TRANSLATION_UNIT_TYPE_DATA enum"
3+
description: "The C++ Build Insights SDK TRANSLATION_UNIT_TYPE_DATA enum reference."
4+
ms.date: "06/10/2021"
5+
helpviewer_keywords: ["C++ Build Insights", "C++ Build Insights SDK", "TRANSLATION_UNIT_TYPE_DATA", "throughput analysis", "build time analysis", "vcperf.exe"]
6+
---
7+
# TRANSLATION_UNIT_TYPE_DATA enum
8+
9+
::: moniker range="<=msvc-140"
10+
11+
The C++ Build Insights SDK is compatible with Visual Studio 2017 and above. To see the documentation for these versions, set the Visual Studio **Version** selector control for this article to Visual Studio 2017 or Visual Studio 2019. It's found at the top of the table of contents on this page.
12+
13+
::: moniker-end
14+
::: moniker range=">=msvc-150"
15+
16+
The `TRANSLATION_UNIT_TYPE_DATA` structure describes the type of the translation unit in the compiler front end pass.
17+
18+
## Syntax
19+
20+
```cpp
21+
typedef struct TRANSLATION_UNIT_TYPE_DATA_TAG
22+
{
23+
int TranslationUnitType;
24+
25+
} TRANSLATION_UNIT_TYPE_DATA;
26+
```
27+
28+
## Members
29+
30+
| Name | Description |
31+
|--|--|
32+
| `TranslationUnitType` | The type of this translation unit (either modules, header unit, or precompiled header). |
33+
34+
## Remarks
35+
36+
Used by the C SDK functions.
37+
38+
::: moniker-end
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
title: "TRANSLATION_UNIT_TYPE enum"
3+
description: "The C++ Build Insights SDK TRANSLATION_UNIT_TYPE enum reference."
4+
ms.date: "06/10/2021"
5+
helpviewer_keywords: ["C++ Build Insights", "C++ Build Insights SDK", "TRANSLATION_UNIT_TYPE", "throughput analysis", "build time analysis", "vcperf.exe"]
6+
---
7+
# TRANSLATION_UNIT_TYPE enum
8+
9+
::: moniker range="<=msvc-140"
10+
11+
The C++ Build Insights SDK is compatible with Visual Studio 2017 and above. To see the documentation for these versions, set the Visual Studio **Version** selector control for this article to Visual Studio 2017 or Visual Studio 2019. It's found at the top of the table of contents on this page.
12+
13+
::: moniker-end
14+
::: moniker range=">=msvc-150"
15+
16+
The `TRANSLATION_UNIT_TYPE` enum.
17+
18+
## Members
19+
20+
| Name | Value | Description |
21+
|--|--|--|
22+
| `TRANSLATION_UNIT_TYPE_MODULE` | 0 (0x00000000) | The type of this translation unit is a module interface. |
23+
| `TRANSLATION_UNIT_TYPE_HEADER_UNIT` | 1 (0x00000001) | The type of this translation unit is a header unit. |
24+
| `TRANSLATION_UNIT_TYPE_PRECOMPILED_HEADER` | 2 (0x00000002) | The type of this translation unit is a precompiled header (PCH). |
25+
26+
## Remarks
27+
28+
Used by the C SDK functions.
29+
30+
::: moniker-end

0 commit comments

Comments
 (0)