1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file LICENSE.rst or https://cmake.org/licensing for details. */
#pragma once
#include "cmConfigure.h" // IWYU pragma: keep
#include <string>
#include <cm3p/json/value.h>
#include "cmJSONHelpers.h"
class cmJSONState;
namespace cmCMakePresetsErrors {
Json::Value const* getPreset(cmJSONState* state);
std::string getPresetName(cmJSONState* state);
std::string getVariableName(cmJSONState* state);
void FILE_NOT_FOUND(std::string const& filename, cmJSONState* state);
void INVALID_ROOT(Json::Value const* value, cmJSONState* state);
void NO_VERSION(Json::Value const* value, cmJSONState* state);
void INVALID_VERSION(Json::Value const* value, cmJSONState* state);
void UNRECOGNIZED_VERSION(Json::Value const* value, cmJSONState* state);
void INVALID_PRESETS(Json::Value const* value, cmJSONState* state);
void INVALID_PRESET(Json::Value const* value, cmJSONState* state);
void INVALID_PRESET_NAMED(std::string const& presetName, cmJSONState* state);
void INVALID_VARIABLE(Json::Value const* value, cmJSONState* state);
void DUPLICATE_PRESETS(std::string const& presetName, cmJSONState* state);
void CYCLIC_PRESET_INHERITANCE(std::string const& presetName,
cmJSONState* state);
void INHERITED_PRESET_UNREACHABLE_FROM_FILE(std::string const& presetName,
cmJSONState* state);
void CONFIGURE_PRESET_UNREACHABLE_FROM_FILE(std::string const& presetName,
cmJSONState* state);
void INVALID_MACRO_EXPANSION(std::string const& presetName,
cmJSONState* state);
void BUILD_TEST_PRESETS_UNSUPPORTED(Json::Value const*, cmJSONState* state);
void PACKAGE_PRESETS_UNSUPPORTED(Json::Value const*, cmJSONState* state);
void WORKFLOW_PRESETS_UNSUPPORTED(Json::Value const*, cmJSONState* state);
void INCLUDE_UNSUPPORTED(Json::Value const*, cmJSONState* state);
void INVALID_INCLUDE(Json::Value const* value, cmJSONState* state);
void INVALID_CONFIGURE_PRESET(std::string const& presetName,
cmJSONState* state);
void INSTALL_PREFIX_UNSUPPORTED(Json::Value const* value, cmJSONState* state);
void CONDITION_UNSUPPORTED(cmJSONState* state);
void TOOLCHAIN_FILE_UNSUPPORTED(cmJSONState* state);
void GRAPHVIZ_FILE_UNSUPPORTED(cmJSONState* state);
void CYCLIC_INCLUDE(std::string const& file, cmJSONState* state);
void TEST_OUTPUT_TRUNCATION_UNSUPPORTED(cmJSONState* state);
void INVALID_WORKFLOW_STEPS(std::string const& workflowStep,
cmJSONState* state);
void NO_WORKFLOW_STEPS(std::string const& presetName, cmJSONState* state);
void FIRST_WORKFLOW_STEP_NOT_CONFIGURE(std::string const& stepName,
cmJSONState* state);
void CONFIGURE_WORKFLOW_STEP_NOT_FIRST(std::string const& stepName,
cmJSONState* state);
void WORKFLOW_STEP_UNREACHABLE_FROM_FILE(std::string const& workflowStep,
cmJSONState* state);
void CTEST_JUNIT_UNSUPPORTED(cmJSONState* state);
void TRACE_UNSUPPORTED(cmJSONState* state);
JsonErrors::ErrorGenerator UNRECOGNIZED_VERSION_RANGE(int min, int max);
JsonErrors::ErrorGenerator UNRECOGNIZED_CMAKE_VERSION(
std::string const& version, int current, int required);
void INVALID_PRESET_NAME(Json::Value const* value, cmJSONState* state);
void INVALID_CONDITION(Json::Value const* value, cmJSONState* state);
JsonErrors::ErrorGenerator INVALID_CONDITION_OBJECT(
JsonErrors::ObjectError errorType, Json::Value::Members const& extraFields);
JsonErrors::ErrorGenerator INVALID_VARIABLE_OBJECT(
JsonErrors::ObjectError errorType, Json::Value::Members const& extraFields);
JsonErrors::ErrorGenerator INVALID_PRESET_OBJECT(
JsonErrors::ObjectError errorType, Json::Value::Members const& extraFields);
JsonErrors::ErrorGenerator INVALID_ROOT_OBJECT(
JsonErrors::ObjectError errorType, Json::Value::Members const& extraFields);
void PRESET_MISSING_FIELD(std::string const& presetName,
std::string const& missingField, cmJSONState* state);
void SCHEMA_UNSUPPORTED(cmJSONState* state);
}
|