Skip to content

Commit c4a2fa8

Browse files
TylerMSFTTylerMSFT
authored andcommitted
tech review
1 parent 7b3f114 commit c4a2fa8

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/c-language/type-qualifiers.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.assetid: bb4c6744-1dd7-40a8-b4eb-f5585be30908
99

1010
Type qualifiers give one of two properties to an identifier. The **`const`** type qualifier declares an object to be nonmodifiable. The **`volatile`** type qualifier declares an item whose value can legitimately be changed by something beyond the control of the program in which it appears, such as a concurrently executing thread.
1111

12-
The type qualifiers, **`_Atomic`**, **`const`**, **`restrict`**, and **`volatile`**, can appear only once in a declaration. Type qualifiers can appear with any type specifier; however, they can't appear after the first comma in a multiple item declaration. For example, the following declarations are legal:
12+
The type qualifiers, **`const`**, **`restrict`**, and **`volatile`**, can appear only once in a declaration. Type qualifiers can appear with any type specifier; however, they can't appear after the first comma in a multiple item declaration. For example, the following declarations are legal:
1313

1414
```c
1515
typedef volatile int VI;
@@ -30,8 +30,7 @@ Type qualifiers are relevant only when accessing identifiers as l-values in expr
3030
*`type-qualifier`*:\
3131
 **`const`**\
3232
 **`restrict`**\
33-
 **`volatile`**\
34-
 **`_Atomic`**
33+
 **`volatile`**
3534

3635
## `const` and `volatile`
3736

docs/cpp/extension-restrict.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ description: "Describes the Microsoft Visual C++ `__restrict` keyword."
44
ms.date: "11/6/2020"
55
f1_keywords: ["__restrict_cpp", "__restrict", "_restrict"]
66
helpviewer_keywords: ["__restrict keyword [C++]"]
7-
ms.assetid: 2d151b4d-f930-49df-bd16-d8757ec7fa83
87
---
98
# `__restrict`
109

@@ -14,7 +13,7 @@ Like the **`__declspec` ( [`restrict`](../cpp/restrict.md) )** modifier, the **`
1413

1514
- **`__restrict`** is similar to [`restrict`](../c-language/type-qualifiers.md#restrict) for C starting in C99, but **`__restrict`** can be used in both C++ and C programs.
1615

17-
- When **`__restrict`** is used, the compiler won't propagate the no-alias property of a variable. That is, if you assign a **`__restrict`** variable to a non-**`__restrict`** variable, the compiler will still allow the non-__restrict variable to be aliased. This is different from the behavior of the C99 C language **`restrict`** keyword.
16+
- When **`__restrict`** is used, the compiler won't propagate the no-alias property of a variable. That is, if you assign a **`__restrict`** variable to a non-**`__restrict`** variable, the compiler will still allow the non-__restrict variable to be aliased. This is different from the behavior of the C99 C language **`restrict`** keyword which does propagate the no-alias property of a variable.
1817

1918
Generally, if you want to affect the behavior of an entire function, use **`__declspec (restrict)`** instead of the keyword.
2019

0 commit comments

Comments
 (0)