diff options
author | ChenMoFeiJin <1424865872@qq.com> | 2023-09-07 12:04:02 (GMT) |
---|---|---|
committer | ChenMoFeiJin <1424865872@qq.com> | 2023-09-12 10:18:37 (GMT) |
commit | f1a717952020401502a109de7af211130251a067 (patch) | |
tree | 9b0503da4aa0fc58209c717169b4827ac749ff27 /Source/cmCMakePresetsGraphInternal.h | |
parent | f83771dfceb9d800d17955219b33e50eb155cc04 (diff) | |
download | CMake-f1a717952020401502a109de7af211130251a067.zip CMake-f1a717952020401502a109de7af211130251a067.tar.gz CMake-f1a717952020401502a109de7af211130251a067.tar.bz2 |
presets: Add $schema property to JSON schema
Many modern code editors have support for JSON Schema. When you specify
the `$schema` property in a JSON file, the editor can provide features
like auto-completion, error checking, etc., which can improve your
efficiency when writing and modifying the `CMakePresets.json` file.
Diffstat (limited to 'Source/cmCMakePresetsGraphInternal.h')
-rw-r--r-- | Source/cmCMakePresetsGraphInternal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmCMakePresetsGraphInternal.h b/Source/cmCMakePresetsGraphInternal.h index f133efb..5c76e0e 100644 --- a/Source/cmCMakePresetsGraphInternal.h +++ b/Source/cmCMakePresetsGraphInternal.h @@ -2,6 +2,7 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #pragma once +#include <cstddef> #include <memory> #include <string> #include <vector> @@ -179,4 +180,6 @@ bool PresetVectorOneOrMoreStringHelper(std::vector<std::string>& out, bool EnvironmentMapHelper( std::map<std::string, cm::optional<std::string>>& out, const Json::Value* value, cmJSONState* state); + +cmJSONHelper<std::nullptr_t> SchemaHelper(); } |