Skip to content

Commit 1d1332b

Browse files
authored
Merge pull request #2562 from MicrosoftDocs/master
12/11/2019 AM Publish
2 parents 573b36b + e8a0dbb commit 1d1332b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+492
-1037
lines changed

.openpublishing.redirection.json

Lines changed: 101 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,16 @@
720720
"redirect_url": "/cpp/cpp/arrays-cpp",
721721
"redirect_document_id": false
722722
},
723+
{
724+
"source_path": "docs/cpp/overview-file-translation.md",
725+
"redirect_url": "/cpp/preprocessor/phases-of-translation",
726+
"redirect_document_id": false
727+
},
728+
{
729+
"source_path": "docs/cpp/auto-keyword.md",
730+
"redirect_url": "/cpp/cpp/auto-cpp",
731+
"redirect_document_id": false
732+
},
723733
{
724734
"source_path": "docs/cpp/attributes2.md",
725735
"redirect_url": "/cpp/cpp/attributes",
@@ -735,6 +745,81 @@
735745
"redirect_url": "/cpp/cpp/cpp-language-reference",
736746
"redirect_document_id": false
737747
},
748+
{
749+
"source_path": "docs/cpp/using-wmain-instead-of-main.md",
750+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
751+
"redirect_document_id": false
752+
},
753+
{
754+
"source_path": "docs/cpp/main-program-startup.md",
755+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
756+
"redirect_document_id": false
757+
},
758+
{
759+
"source_path": "docs/cpp/main-function-restrictions.md",
760+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
761+
"redirect_document_id": false
762+
},
763+
{
764+
"source_path": "docs/cpp/additional-startup-considerations.md",
765+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
766+
"redirect_document_id": false
767+
},
768+
{
769+
"source_path": "docs/cpp/wildcard-expansion.md",
770+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
771+
"redirect_document_id": false
772+
},
773+
{
774+
"source_path": "docs/cpp/parsing-cpp-command-line-arguments.md",
775+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
776+
"redirect_document_id": false
777+
},
778+
{
779+
"source_path": "docs/cpp/customizing-cpp-command-line-processing.md",
780+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
781+
"redirect_document_id": false
782+
},
783+
{
784+
"source_path": "docs/cpp/startup-and-termination-cpp.md",
785+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
786+
"redirect_document_id": false
787+
},
788+
{
789+
"source_path": "docs/cpp/argument-definitions.md",
790+
"redirect_url": "/cpp/cpp/main-function-command-line-args",
791+
"redirect_document_id": false
792+
},
793+
{
794+
"source_path": "docs/cpp/exit-function.md",
795+
"redirect_url": "/cpp/cpp/program-termination",
796+
"redirect_document_id": false
797+
},
798+
{
799+
"source_path": "docs/cpp/abort-function.md",
800+
"redirect_url": "/cpp/cpp/program-termination",
801+
"redirect_document_id": false
802+
},
803+
{
804+
"source_path": "docs/cpp/return-statement-in-program-termination-cpp.md",
805+
"redirect_url": "/cpp/cpp/program-termination",
806+
"redirect_document_id": false
807+
},
808+
{
809+
"source_path": "docs/cpp/using-exit-or-return.md",
810+
"redirect_url": "/cpp/cpp/program-termination",
811+
"redirect_document_id": false
812+
},
813+
{
814+
"source_path": "docs/cpp/using-atexit.md",
815+
"redirect_url": "/cpp/cpp/program-termination",
816+
"redirect_document_id": false
817+
},
818+
{
819+
"source_path": "docs/cpp/tokens-cpp.md",
820+
"redirect_url": "/cpp/cpp/character-sets",
821+
"redirect_document_id": false
822+
},
738823
{
739824
"source_path": "docs/cpp/objects-own-resources-raii.md",
740825
"redirect_url": "/cpp/cpp/object-lifetime-and-resource-management-modern-cpp",
@@ -785,6 +870,21 @@
785870
"redirect_url": "/cpp/cpp/program-and-linkage-cpp",
786871
"redirect_document_id": false
787872
},
873+
{
874+
"source_path": "docs/cpp/specifiers.md",
875+
"redirect_url": "/cpp/cpp/declarations-and-definitions-cpp",
876+
"redirect_document_id": false
877+
},
878+
{
879+
"source_path": "docs/cpp/overview-of-declarators.md",
880+
"redirect_url": "/cpp/cpp/declarations-and-definitions-cpp",
881+
"redirect_document_id": false
882+
},
883+
{
884+
"source_path": "docs/cpp/point-of-declaration-in-cpp.md",
885+
"redirect_url": "/cpp/cpp/declarations-and-definitions-cpp",
886+
"redirect_document_id": false
887+
},
788888
{
789889
"source_path": "docs/cpp/template-friends.md",
790890
"redirect_url": "/cpp/cpp/templates-cpp",
@@ -13281,4 +13381,4 @@
1328113381
"redirect_document_id": false
1328213382
}
1328313383
]
13284-
}
13384+
}

docs/build/cmakesettings-reference.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ A `configuration` has these properties:
2727
- `addressSDanitizerEnabled`: if `true` compiles the program with Address Sanitizer (Experimental on Windows). On Linux, compile with -fno-omit-frame-pointer and compiler optimization level -Os or -Oo for best results.
2828
- `addressSanitizerRuntimeFlags`: runtime flags passed to AddressSanitizer via the ASAN_OPTIONS environment variable. Format: flag1=value:flag2=value2.
2929
- `buildCommandArgs`: specifies native build switches passed to CMake after --build --. For example, passing -v when using the Ninja generator forces Ninja to output command lines. See [Ninja command line arguments](#ninja) for more information on Ninja commands.
30-
- `buildRoot`: specifies the directory in which CMake generates build scripts for the chosen generator. Maps to **-DCMAKE_BINARY_DIR** switch and specifies where the CMake cache will be created. If the folder does not exist, it is created. Supported macros include `${workspaceRoot}`, `${workspaceHash}`, `${projectFile}`, `${projectDir}`, `${thisFile}`, `${thisFileDir}`, `${name}`, `${generator}`, and `${env.VARIABLE}`.
30+
- `buildRoot`: specifies the directory in which CMake generates build scripts for the chosen generator. Maps to **-DCMAKE_BINARY_DIR** switch and specifies where *CMakeCache.txt* will be created. If the folder does not exist, it is created. Supported macros include `${workspaceRoot}`, `${workspaceHash}`, `${projectFile}`, `${projectDir}`, `${thisFile}`, `${thisFileDir}`, `${name}`, `${generator}`, `${env.VARIABLE}`.
3131
- `cacheGenerationCommand`: specifies a command line tool and arguments, for example *gencache.bat debug* to generate the cache. The command is run from the shell in the specified environment for the configuration when the user explicity requests regeneration, or a CMakeLists.txt or CMakeSettings.json file is modified.
32-
- `cacheRoot`: specifies the path to a CMake cache. This directory should contain an existing CMakeCache.txt file.
32+
- `cacheRoot`: specifies the path to a CMake cache. This directory should contain an existing *CMakeCache.txt* file.
3333
- `clangTidyChecks`: comma-separated list of warnigns which will be passed to clang-tidy; wildcards are allowed and '-' prefix will remove checks.
34-
- `cmakeCommandArgs`: specifies additional command-line options passed to CMake when invoked to generate the cache.
34+
- `cmakeCommandArgs`: specifies additional command-line options passed to CMake when invoked to generate the project files.
3535
- `cmakeToolchain`: specifies the toolchain file. This is passed to CMake using -DCMAKE_TOOLCHAIN_FILE."
3636
- `codeAnalysisRuleset`: specifies the ruleset to use when running code analysis. This can be a full path or the file name of a ruleset file installed by Visual Studio.
3737
- `configurationType`: specifies the build type configuration for the selected generator. May be one of:
@@ -74,22 +74,8 @@ When the active configuration specifies a Visual Studio generator, by default MS
7474
"buildCommandArgs": "-m:8 -v:minimal -p:PreferredToolArchitecture=x64"
7575
```
7676

77-
- `configurationType`: specifies the build type configuration for the selected generator. May be one of:
78-
79-
- Debug
80-
- Release
81-
- MinSizeRel
82-
- RelWithDebInfo
83-
84-
- `buildRoot`: specifies the directory in which CMake generates build scripts for the chosen generator. Maps to **-DCMAKE_BINARY_DIR** switch and specifies where the *CMakeCache.txt* will be created. If the folder does not exist, it is created.Supported macros include `${workspaceRoot}`, `${workspaceHash}`, `${projectFile}`, `${projectDir}`, `${thisFile}`, `${thisFileDir}`, `${name}`, `${generator}`, `${env.VARIABLE}`.
8577
- `installRoot`: specifies the directory in which CMake generates install targets for the chosen generator. Supported macros include `${workspaceRoot}`, `${workspaceHash}`, `${projectFile}`, `${projectDir}`, `${thisFile}`, `${thisFileDir}`, `${name}`, `${generator}`, `${env.VARIABLE}`.
86-
- `cmakeCommandArgs`: specifies additional command-line options passed to CMake when invoked to generate the project files.
87-
- `cmakeToolchain`: specifies the toolchain file. This is passed to CMake using -DCMAKE_TOOLCHAIN_FILE."
88-
- `buildCommandArgs`: specifies native build switches passed to CMake after --build --. For example, passing -v when using the Ninja generator forces Ninja to output command lines. See [Ninja command line arguments](#ninja) for more information on Ninja commands.
89-
- `ctestCommandArgs`: specifies additional command-line options passed to CTest when running the tests."
90-
- `codeAnalysisRuleset`: specifies the ruleset to use when running code analysis. This can be a full path or the file name of a ruleset file installed by Visual Studio.
9178
- `inheritEnvironments`: specifies one or more compiler environments that this configuration depends on. May be any custom environment or one of the predefined environments. For more information, see [Environments](#environments).
92-
- `installRoot`: specifies the directory in which CMake generates install targets for the chosen generator. Supported macros include `${workspaceRoot}`, `${workspaceHash}`, `${projectFile}`, `${projectDir}`, `${thisFile}`, `${thisFileDir}`, `${name}`, `${generator}`, `${env.VARIABLE}`.
9379
- `intelliSenseMode`: specifies the mode used for computing intellisense information". May be one of:
9480

9581
- windows-msvc-x86
@@ -112,7 +98,6 @@ When the active configuration specifies a Visual Studio generator, by default MS
11298
- linux-gcc-x64
11399
- linux-gcc-arm"
114100

115-
- `cacheRoot`: specifies the path to a CMake cache. This directory should contain an existing *CMakeCache.txt* file.
116101
- `name`: names the configuration. See [CMake predefined configuration reference](cmake-predefined-configuration-reference.md) for more information about the pre-defined configurations.
117102
- `wslPath`: the path to the launcher of an instance of Windows Subsystem for Linux.
118103

docs/cpp/abort-function.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/cpp/additional-startup-considerations.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/cpp/argument-definitions.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

docs/cpp/auto-cpp.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "auto (C++)"
3-
ms.date: "11/04/2016"
3+
ms.date: "12/10/2019"
44
f1_keywords: ["auto_CPP", "auto"]
55
helpviewer_keywords: ["auto keyword [C++]"]
66
ms.assetid: e9d495d7-601c-4547-b897-998389a311f4
@@ -9,6 +9,9 @@ ms.assetid: e9d495d7-601c-4547-b897-998389a311f4
99

1010
Deduces the type of a declared variable from its initialization expression.
1111

12+
> [!NOTE]
13+
> The C++ standard defines an original and a revised meaning for this keyword. Before Visual Studio 2010, the **auto** keyword declares a variable in the *automatic* storage class; that is, a variable that has a local lifetime. Starting with Visual Studio 2010, the **auto** keyword declares a variable whose type is deduced from the initialization expression in its declaration. The [/Zc:auto[-]](../build/reference/zc-auto-deduce-variable-type.md) compiler option controls the meaning of the **auto** keyword.
14+
1215
## Syntax
1316

1417
```

docs/cpp/auto-keyword.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/cpp/basic-concepts-cpp.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ ms.assetid: 961801e6-2ffd-4bf1-bb71-7f55e48d9c79
99

1010
This section explains concepts that are critical to understanding C++. C programmers will be familiar with many of these concepts, but there are some subtle differences that can cause unexpected program results. The following topics are included:
1111

12+
- [C++ type system](cpp-type-system-modern-cpp.md)
13+
1214
- [Declarations and definitions](../cpp/declarations-and-definitions-cpp.md)
1315

1416
- [Scope of a C++ object or function](../cpp/scope-visual-cpp.md)

0 commit comments

Comments
 (0)