Skip to content

Commit b0acbec

Browse files
committed
Add language identifiers
1 parent 831e76c commit b0acbec

20 files changed

+21
-21
lines changed

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4185.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The attribute is not a valid attribute of `#import`. It is ignored.
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4185.cpp
1818
// compile with: /W1 /c
1919
#import "stdole2.tlb" no_such_attribute // C4185

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4186.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A `#import` attribute has the wrong number of arguments.
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4186.cpp
1818
// compile with: /W1 /c
1919
#import "stdole2.tlb" no_namespace("abc") rename("a","b","c") // C4186

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4215.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The default Microsoft extensions (/Ze) treat **long float** as **double**. ANSI
1313

1414
The following sample generates C4215:
1515

16-
```
16+
```cpp
1717
// C4215.cpp
1818
// compile with: /W1 /LD
1919
long float a; // C4215

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4216.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ nonstandard extension used : float long
1111

1212
The default Microsoft extensions (/Ze) treat **float long** as **double**. ANSI compatibility ([/Za](../../build/reference/za-ze-disable-language-extensions.md)) does not. Use **double** to maintain compatibility. The following sample generates C4216:
1313

14-
```
14+
```cpp
1515
// C4216.cpp
1616
// compile with: /W1
1717
float long a; // C4216

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4218.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ With the default Microsoft extensions (/Ze), you can declare a variable without
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4218.c
1818
// compile with: /W4
1919
i; // C4218

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4224.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The identifier was previously used as a `typedef`. This causes a warning under A
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4224.cpp
1818
// compile with: /Za /W1 /LD
1919
typedef int I;

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4227.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Using qualifiers like `const` or `volatile` with C++ references is an outdated p
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4227.cpp
1818
// compile with: /W1 /c
1919
int j = 0;

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4228.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Use of qualifiers like **const** or `volatile` after a comma when declaring vari
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4228.cpp
1818
// compile with: /W1
1919
int j, const i = 0; // C4228

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4229.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Using a Microsoft modifier such as `__cdecl` on a data declaration is an outdate
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4229.cpp
1818
// compile with: /W1 /LD
1919
int __cdecl counter; // C4229 cdecl ignored

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4230.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Using a qualifier before a Microsoft modifier such as `__cdecl` is an outdated p
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4230.cpp
1818
// compile with: /W1 /LD
1919
int __cdecl const function1(); // C4230 const ignored

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4237.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A keyword in the C++ specification is not implemented in the Microsoft C++ compi
1313

1414
The following sample generates C4237:
1515

16-
```
16+
```cpp
1717
// C4237.cpp
1818
// compile with: /W1 /c
1919
int export; // C4237

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4258.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.assetid: bbb75e6d-6693-4e62-8ed3-b006a0ec55e3
1111

1212
Under [/Ze](../../build/reference/za-ze-disable-language-extensions.md) and [/Zc:forScope](../../build/reference/zc-forscope-force-conformance-in-for-loop-scope.md), variables defined in a [for](../../cpp/for-statement-cpp.md) loop go out of scope after the **for** loop ends. This warning occurs if a variable with the same name as the loop variable, but defined in the enclosing loop, is used again in the scope containing the **for** loop. For example:
1313

14-
```
14+
```cpp
1515
// C4258.cpp
1616
// compile with: /Zc:forScope /W1
1717
int main()

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4269.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A **const** automatic instance of a non-trivial class is initialized with a comp
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
// C4269.cpp
1818
// compile with: /c /LD /W1
1919
class X {

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4272.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ It is an error to export a function marked with the [__clrcall](../../cpp/clrcal
1313

1414
The following sample generates C4272:
1515

16-
```
16+
```cpp
1717
// C4272.cpp
1818
// compile with: /c /W1 /clr
1919
__declspec(dllimport) void __clrcall Test(); // C4272

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4273.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Two definitions in a file differ in their use of [dllimport](../../cpp/dllexport
1515

1616
The following sample generates C4273.
1717

18-
```
18+
```cpp
1919
// C4273.cpp
2020
// compile with: /W1 /c
2121
char __declspec(dllimport) c;
@@ -26,7 +26,7 @@ char c; // C4273, delete this line or the line above to resolve
2626
2727
The following sample generates C4273.
2828
29-
```
29+
```cpp
3030
// C4273_b.cpp
3131
// compile with: /W1 /clr /c
3232
#include <stdio.h>

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4286.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The specified exception type is handled by a previous handler. The type for the
1313

1414
## Example
1515

16-
```
16+
```cpp
1717
//C4286.cpp
1818
// compile with: /W1
1919
#include <eh.h>

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4288.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ See [/Zc:forScope](../../build/reference/zc-forscope-force-conformance-in-for-lo
1515

1616
The following sample generates C4288:
1717

18-
```
18+
```cpp
1919
// C4288.cpp
2020
// compile with: /W1 /c /Zc:forScope-
2121
int main() {

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4291.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you use the operator **new** without any extra arguments and compile with [/G
1717

1818
If you use the placement form of the **new** operator (the form with arguments in addition to the size of the allocation) and the object's constructor throws an exception, the compiler will still generate code to call operator **delete**; but it will only do so if a placement form of operator **delete** exists matching the placement form of the operator **new** that allocated the memory. For example:
1919

20-
```
20+
```cpp
2121
// C4291.cpp
2222
// compile with: /EHsc /W1
2323
#include <malloc.h>

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4293.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ If a shift count is negative or too large, the behavior of the resulting image i
1515

1616
The following sample generates C4293:
1717

18-
```
18+
```cpp
1919
// C4293.cpp
2020
// compile with: /c /W1
2121
unsigned __int64 combine (unsigned lo, unsigned hi) {

docs/error-messages/compiler-warnings/compiler-warning-level-1-c4297.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This warning is also generated for __declspec([dllexport](../../cpp/dllexport-dl
1919

2020
The following sample generates C4297:
2121

22-
```
22+
```cpp
2323
// C4297.cpp
2424
// compile with: /W1 /LD
2525
void __declspec(nothrow) f1() // declared nothrow

0 commit comments

Comments
 (0)