diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index ef2ff751283ba9..87470eaad916d7 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -1,100 +1,119 @@ { - "configurations": [ - { - "name": "gcc debug (GN)", - "compileCommands": "${workspaceFolder}/out/debug/compile_commands.gcc.json", - "compilerPath": "/usr/bin/gcc", - "cStandard": "c11", - "cppStandard": "gnu++17", - "intelliSenseMode": "gcc-x64", - "browse": { - "path": ["${workspaceFolder}/out/debug/"], - "limitSymbolsToIncludedHeaders": true - } - }, - { - "name": "clang debug (GN)", - "compileCommands": "${workspaceFolder}/out/debug/compile_commands.clang.json", - "compilerPath": "/usr/bin/clang", - "cStandard": "c11", - "cppStandard": "gnu++17", - "intelliSenseMode": "clang-x64", - "browse": { - "path": ["${workspaceFolder}/out/debug/"], - "limitSymbolsToIncludedHeaders": true - } - }, - { - "name": "gcc MbedTLS debug (GN)", - "compileCommands": "${workspaceFolder}/out/debug/compile_commands.mbedtls.json", - "compilerPath": "/usr/bin/gcc", - "cStandard": "c11", - "cppStandard": "gnu++17", - "intelliSenseMode": "gcc-x64", - "browse": { - "path": ["${workspaceFolder}/out/debug/"], - "limitSymbolsToIncludedHeaders": true - } - }, - { - "name": "Android x64 debug (GN)", - "cStandard": "c11", - "cppStandard": "gnu++17", - "intelliSenseMode": "clang-x64", - "compileCommands": "${workspaceFolder}/out/debug/compile_commands.android_x64.json", - "compilerPath": "/opt/android/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang", - "browse": { - "path": ["${workspaceFolder}/out/debug/"], - "limitSymbolsToIncludedHeaders": true - } - }, - { - "name": "Android arm64 debug (GN)", - "cStandard": "c11", - "cppStandard": "gnu++17", - "intelliSenseMode": "clang-arm64", - "compileCommands": "${workspaceFolder}/out/debug/compile_commands.android_arm64.json", - "compilerPath": "/opt/android/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang", - "browse": { - "path": ["${workspaceFolder}/out/debug/"], - "limitSymbolsToIncludedHeaders": true - } - }, - { - "name": "EFR32 examples debug (GN)", - "cStandard": "c11", - "cppStandard": "gnu++17", - "intelliSenseMode": "gcc-arm", - "compileCommands": "${workspaceFolder}/out/debug/compile_commands.efr32.json", - "compilerPath": "/opt/ARM-software/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc", - "browse": { - "path": ["${workspaceFolder}/out/debug/"], - "limitSymbolsToIncludedHeaders": true - } - }, - { - "name": "nRF Connect examples debug (GN)", - "cStandard": "c11", - "cppStandard": "gnu++17", - "intelliSenseMode": "gcc-arm", - "compilerPath": "/opt/ARM-software/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc", - "browse": { - "path": ["${workspaceFolder}/out/debug/"], - "limitSymbolsToIncludedHeaders": true - } - }, - { - "name": "Tizen examples debug (GN)", - "cStandard": "c11", - "cppStandard": "gnu++17", - "intelliSenseMode": "gcc-arm", - "compilerPath": "/opt/tizen-sdk/tools/arm-linux-gnueabi-gcc-9.2/bin/arm-linux-gnueabi-gcc", - "compileCommands": "${workspaceFolder}/out/debug/compile_commands.tizen_arm.json", - "browse": { - "path": ["${workspaceFolder}/out/debug/"], - "limitSymbolsToIncludedHeaders": true - } - } - ], - "version": 4 -} + "configurations": [ + { + "name": "linux-gcc-x64", + "compileCommands": "${workspaceFolder}/out/debug/compile_commands.gcc.json", + "compilerPath": "/usr/bin/gcc", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "linux-gcc-x64", + "browse": { + "path": [ + "${workspaceFolder}/out/debug/" + ], + "limitSymbolsToIncludedHeaders": true + }, + "includePath": [ + "${workspaceFolder}/**" + ] + }, + { + "name": "clang debug (GN)", + "compileCommands": "${workspaceFolder}/out/debug/compile_commands.clang.json", + "compilerPath": "/usr/bin/clang", + "cStandard": "c11", + "cppStandard": "gnu++17", + "intelliSenseMode": "clang-x64", + "browse": { + "path": [ + "${workspaceFolder}/out/debug/" + ], + "limitSymbolsToIncludedHeaders": true + } + }, + { + "name": "gcc MbedTLS debug (GN)", + "compileCommands": "${workspaceFolder}/out/debug/compile_commands.mbedtls.json", + "compilerPath": "/usr/bin/gcc", + "cStandard": "c11", + "cppStandard": "gnu++17", + "intelliSenseMode": "gcc-x64", + "browse": { + "path": [ + "${workspaceFolder}/out/debug/" + ], + "limitSymbolsToIncludedHeaders": true + } + }, + { + "name": "Android x64 debug (GN)", + "cStandard": "c11", + "cppStandard": "gnu++17", + "intelliSenseMode": "clang-x64", + "compileCommands": "${workspaceFolder}/out/debug/compile_commands.android_x64.json", + "compilerPath": "/opt/android/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang", + "browse": { + "path": [ + "${workspaceFolder}/out/debug/" + ], + "limitSymbolsToIncludedHeaders": true + } + }, + { + "name": "Android arm64 debug (GN)", + "cStandard": "c11", + "cppStandard": "gnu++17", + "intelliSenseMode": "clang-arm64", + "compileCommands": "${workspaceFolder}/out/debug/compile_commands.android_arm64.json", + "compilerPath": "/opt/android/android-ndk-r21b/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang", + "browse": { + "path": [ + "${workspaceFolder}/out/debug/" + ], + "limitSymbolsToIncludedHeaders": true + } + }, + { + "name": "EFR32 examples debug (GN)", + "cStandard": "c11", + "cppStandard": "gnu++17", + "intelliSenseMode": "gcc-arm", + "compileCommands": "${workspaceFolder}/out/debug/compile_commands.efr32.json", + "compilerPath": "/opt/ARM-software/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc", + "browse": { + "path": [ + "${workspaceFolder}/out/debug/" + ], + "limitSymbolsToIncludedHeaders": true + } + }, + { + "name": "nRF Connect examples debug (GN)", + "cStandard": "c11", + "cppStandard": "gnu++17", + "intelliSenseMode": "gcc-arm", + "compilerPath": "/opt/ARM-software/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc", + "browse": { + "path": [ + "${workspaceFolder}/out/debug/" + ], + "limitSymbolsToIncludedHeaders": true + } + }, + { + "name": "Tizen examples debug (GN)", + "cStandard": "c11", + "cppStandard": "gnu++17", + "intelliSenseMode": "gcc-arm", + "compilerPath": "/opt/tizen-sdk/tools/arm-linux-gnueabi-gcc-9.2/bin/arm-linux-gnueabi-gcc", + "compileCommands": "${workspaceFolder}/out/debug/compile_commands.tizen_arm.json", + "browse": { + "path": [ + "${workspaceFolder}/out/debug/" + ], + "limitSymbolsToIncludedHeaders": true + } + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index bfac435030bb4f..a6e8f9df4c2a84 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,179 +1,235 @@ { - "C_Cpp.intelliSenseEngineFallback": "Enabled", - "C_Cpp.default.includePath": [ - "${workspaceFolder}/build/default/src/", - "${workspaceFolder}/build/default/src/**", - "${workspaceFolder}/build/default/src/include/**", - "${workspaceFolder}/build/default/src/lib/**", - "${workspaceFolder}/config/standalone/", - "${workspaceFolder}/config/standalone/**", - "${workspaceFolder}/examples/**", - "${workspaceFolder}/src/**", - "${workspaceFolder}/src/include/", - "${workspaceFolder}/src/include/**", - "${workspaceFolder}/src/lib/**", - "${workspaceFolder}/src/system/**", - "${workspaceFolder}/third_party/nlassert/repo/include/**", - "${workspaceFolder}/third_party/nlio/repo/include/**" - ], - "[cpp]": { - "editor.defaultFormatter": "xaver.clang-format" + "C_Cpp.intelliSenseEngineFallback": "Enabled", + "C_Cpp.default.includePath": [ + "${workspaceFolder}/build/default/src/", + "${workspaceFolder}/build/default/src/**", + "${workspaceFolder}/build/default/src/include/**", + "${workspaceFolder}/build/default/src/lib/**", + "${workspaceFolder}/config/standalone/", + "${workspaceFolder}/config/standalone/**", + "${workspaceFolder}/examples/**", + "${workspaceFolder}/src/**", + "${workspaceFolder}/src/include/", + "${workspaceFolder}/src/include/**", + "${workspaceFolder}/src/lib/**", + "${workspaceFolder}/src/system/**", + "${workspaceFolder}/third_party/nlassert/repo/include/**", + "${workspaceFolder}/third_party/nlio/repo/include/**" + ], + "[cpp]": { + "editor.defaultFormatter": "xaver.clang-format" + }, + "[dockerfile]": { + "editor.defaultFormatter": "ms-azuretools.vscode-docker" + }, + "[jsonc]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "[shellscript]": { + "editor.defaultFormatter": "foxundermoon.shell-format" + }, + "[properties]": { + "editor.defaultFormatter": "foxundermoon.shell-format" + }, + "[markdown]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + }, + "files.associations": { + "iostream": "cpp", + "array": "cpp", + "atomic": "cpp", + "*.tcc": "cpp", + "cctype": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdint": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "deque": "cpp", + "unordered_map": "cpp", + "vector": "cpp", + "exception": "cpp", + "algorithm": "cpp", + "functional": "cpp", + "iterator": "cpp", + "memory": "cpp", + "memory_resource": "cpp", + "optional": "cpp", + "string": "cpp", + "string_view": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "utility": "cpp", + "fstream": "cpp", + "initializer_list": "cpp", + "iosfwd": "cpp", + "istream": "cpp", + "limits": "cpp", + "new": "cpp", + "ostream": "cpp", + "sstream": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "cinttypes": "cpp", + "typeinfo": "cpp", + "*.ipp": "cpp", + "aes.h": "c", + "stdio.h": "c", + "complex": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "bitset": "cpp", + "iomanip": "cpp", + "hashtable": "cpp", + "__bit_reference": "cpp", + "__config": "cpp", + "__debug": "cpp", + "__errc": "cpp", + "__functional_base": "cpp", + "__hash_table": "cpp", + "__locale": "cpp", + "__mutex_base": "cpp", + "__node_handle": "cpp", + "__nullptr": "cpp", + "__split_buffer": "cpp", + "__string": "cpp", + "__threading_support": "cpp", + "__tree": "cpp", + "__tuple": "cpp", + "bit": "cpp", + "chrono": "cpp", + "ios": "cpp", + "locale": "cpp", + "map": "cpp", + "mutex": "cpp", + "queue": "cpp", + "ratio": "cpp", + "set": "cpp", + "stack": "cpp", + "regex": "cpp", + "condition_variable": "cpp", + "numeric": "cpp", + "random": "cpp", + "thread": "cpp", + "variant": "cpp", + "any": "cpp" + }, + "files.watcherExclude": { + "**/.git/objects/**": true, + "**/.git/subtree-cache/**": true, + "out/": true, + "**/third_party/**": true + }, + "files.eol": "\n", + "editor.formatOnSave": true, + "better-comments.tags": [ + { + "tag": "!", + "color": "#FF2D00", + "strikethrough": false, + "backgroundColor": "transparent" }, - "[dockerfile]": { - "editor.defaultFormatter": "ms-azuretools.vscode-docker" + { + "tag": "?", + "color": "#3498DB", + "strikethrough": false, + "backgroundColor": "transparent" }, - "[jsonc]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" + { + "tag": "//", + "color": "#474747", + "strikethrough": true, + "backgroundColor": "transparent" }, - "[shellscript]": { - "editor.defaultFormatter": "foxundermoon.shell-format" + { + "tag": "todo", + "color": "#FF8C00", + "strikethrough": false, + "backgroundColor": "transparent" }, - "[properties]": { - "editor.defaultFormatter": "foxundermoon.shell-format" + { + "tag": "fixme", + "color": "#FF8C00", + "strikethrough": false, + "backgroundColor": "transparent" }, - "[markdown]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "files.associations": { - "iostream": "cpp", - "array": "cpp", - "atomic": "cpp", - "*.tcc": "cpp", - "cctype": "cpp", - "clocale": "cpp", - "cmath": "cpp", - "cstdarg": "cpp", - "cstddef": "cpp", - "cstdint": "cpp", - "cstdio": "cpp", - "cstdlib": "cpp", - "cwchar": "cpp", - "cwctype": "cpp", - "deque": "cpp", - "unordered_map": "cpp", - "vector": "cpp", - "exception": "cpp", - "algorithm": "cpp", - "functional": "cpp", - "iterator": "cpp", - "memory": "cpp", - "memory_resource": "cpp", - "optional": "cpp", - "string": "cpp", - "string_view": "cpp", - "system_error": "cpp", - "tuple": "cpp", - "type_traits": "cpp", - "utility": "cpp", - "fstream": "cpp", - "initializer_list": "cpp", - "iosfwd": "cpp", - "istream": "cpp", - "limits": "cpp", - "new": "cpp", - "ostream": "cpp", - "sstream": "cpp", - "stdexcept": "cpp", - "streambuf": "cpp", - "cinttypes": "cpp", - "typeinfo": "cpp", - "*.ipp": "cpp", - "aes.h": "c", - "stdio.h": "c", - "complex": "cpp", - "cstring": "cpp", - "ctime": "cpp", - "bitset": "cpp", - "iomanip": "cpp", - "hashtable": "cpp", - "__bit_reference": "cpp", - "__config": "cpp", - "__debug": "cpp", - "__errc": "cpp", - "__functional_base": "cpp", - "__hash_table": "cpp", - "__locale": "cpp", - "__mutex_base": "cpp", - "__node_handle": "cpp", - "__nullptr": "cpp", - "__split_buffer": "cpp", - "__string": "cpp", - "__threading_support": "cpp", - "__tree": "cpp", - "__tuple": "cpp", - "bit": "cpp", - "chrono": "cpp", - "ios": "cpp", - "locale": "cpp", - "map": "cpp", - "mutex": "cpp", - "queue": "cpp", - "ratio": "cpp", - "set": "cpp", - "stack": "cpp", - "regex": "cpp", - "condition_variable": "cpp", - "numeric": "cpp", - "random": "cpp", - "thread": "cpp", - "variant": "cpp", - "any": "cpp" - }, - // Configure paths or glob patterns to exclude from file watching. - "files.watcherExclude": { - "**/.git/objects/**": true, - "**/.git/subtree-cache/**": true, - "out/": true, - "**/third_party/**": true - }, - "files.eol": "\n", - "editor.formatOnSave": true, - "better-comments.tags": [ - { - "tag": "!", - "color": "#FF2D00", - "strikethrough": false, - "backgroundColor": "transparent" - }, - { - "tag": "?", - "color": "#3498DB", - "strikethrough": false, - "backgroundColor": "transparent" - }, - { - "tag": "//", - "color": "#474747", - "strikethrough": true, - "backgroundColor": "transparent" - }, - { - "tag": "todo", - "color": "#FF8C00", - "strikethrough": false, - "backgroundColor": "transparent" - }, - { - "tag": "fixme", - "color": "#FF8C00", - "strikethrough": false, - "backgroundColor": "transparent" - }, - { - "tag": "*", - "color": "#98C379", - "strikethrough": false, - "backgroundColor": "transparent" - } - ], - "clang-format.fallbackStyle": "WebKit", - "files.trimFinalNewlines": true, - "C_Cpp.default.cppStandard": "gnu++17", - "C_Cpp.default.cStandard": "gnu11", - "cmake.configureOnOpen": false, - "search.followSymlinks": false, - "[python]": { - "editor.defaultFormatter": "ms-python.autopep8" - }, - "python.formatting.provider": "none" -} + { + "tag": "*", + "color": "#98C379", + "strikethrough": false, + "backgroundColor": "transparent" + } + ], + "clang-format.fallbackStyle": "WebKit", + "files.trimFinalNewlines": true, + "C_Cpp.default.cppStandard": "gnu++17", + "C_Cpp.default.cStandard": "gnu11", + "cmake.configureOnOpen": false, + "search.followSymlinks": false, + "[python]": { + "editor.defaultFormatter": "ms-python.autopep8" + }, + "python.formatting.provider": "none", + "C_Cpp_Runner.msvcBatchPath": "", + "C_Cpp_Runner.cCompilerPath": "gcc", + "C_Cpp_Runner.cppCompilerPath": "g++", + "C_Cpp_Runner.debuggerPath": "gdb", + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.useMsvc": false, + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wshadow", + "-Wformat=2", + "-Wcast-align", + "-Wconversion", + "-Wsign-conversion", + "-Wnull-dereference" + ], + "C_Cpp_Runner.msvcWarnings": [ + "/W4", + "/permissive-", + "/w14242", + "/w14287", + "/w14296", + "/w14311", + "/w14826", + "/w44062", + "/w44242", + "/w14905", + "/w14906", + "/w14263", + "/w44265", + "/w14928" + ], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false, + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.includeSearch": [ + "*", + "**/*" + ], + "C_Cpp_Runner.excludeSearch": [ + "**/build", + "**/build/**", + "**/.*", + "**/.*/**", + "**/.vscode", + "**/.vscode/**" + ], + "C_Cpp_Runner.useAddressSanitizer": false, + "C_Cpp_Runner.useUndefinedSanitizer": false, + "C_Cpp_Runner.useLeakSanitizer": false, + "C_Cpp_Runner.showCompilationTime": false, + "C_Cpp_Runner.useLinkTimeOptimization": false, + "C_Cpp_Runner.msvcSecureNoWarnings": false +} \ No newline at end of file diff --git a/examples/chef/common/chef-rvc-mode-delegate.cpp b/examples/chef/common/chef-rvc-mode-delegate.cpp index d5a85a68682456..d5415e1970eed6 100644 --- a/examples/chef/common/chef-rvc-mode-delegate.cpp +++ b/examples/chef/common/chef-rvc-mode-delegate.cpp @@ -156,7 +156,7 @@ void emberAfRvcRunModeClusterInitCallback(chip::EndpointId endpointId) VerifyOrDie(gRvcRunModeDelegate == nullptr && gRvcRunModeInstance == nullptr); gRvcRunModeDelegate = new RvcRunMode::RvcRunModeDelegate; gRvcRunModeInstance = - new ModeBase::Instance(gRvcRunModeDelegate, endpointId, RvcRunMode::Id, chip::to_underlying(RvcRunMode::Feature::kOnOff)); + new ModeBase::Instance(gRvcRunModeDelegate, endpointId, RvcRunMode::Id, chip::to_underlying(RvcRunMode::Feature::kNoFeatures)); gRvcRunModeInstance->Init(); } diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 5aa99576615f54..42a54b95ee944f 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -1832,7 +1832,6 @@ enum class StatusCode : uint8_t enum class Feature : uint32_t { kNoFeatures = 0x0, - kOnOff = 0x1, }; } // namespace RvcRunMode @@ -1866,7 +1865,6 @@ enum class StatusCode : uint8_t enum class Feature : uint32_t { kNoFeatures = 0x0, - kOnOff = 0x1, }; } // namespace RvcCleanMode