summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMark Rowe <mark@vector35.com>2025-08-01 00:09:42 -0700
committerMark Rowe <mark@vector35.com>2025-08-08 22:01:27 -0700
commitcde1c38689188efbfd47cd9509beb348284d486b (patch)
tree32b23339fb9919c17da3fe2cc30ee59a137469f3 /plugins
parent72e0b2f89352bf45af44629c97741977090dcd78 (diff)
Update remaining projects to C++20
Diffstat (limited to 'plugins')
-rw-r--r--plugins/efi_resolver/CMakeLists.txt2
-rw-r--r--plugins/warp/api/CMakeLists.txt2
-rw-r--r--plugins/warp/api/python/CMakeLists.txt2
-rw-r--r--plugins/warp/ui/CMakeLists.txt2
-rw-r--r--plugins/warp/ui/matches.cpp2
-rw-r--r--plugins/workflow_objc/CMakeLists.txt2
6 files changed, 6 insertions, 6 deletions
diff --git a/plugins/efi_resolver/CMakeLists.txt b/plugins/efi_resolver/CMakeLists.txt
index 03fabbf6..90f30960 100644
--- a/plugins/efi_resolver/CMakeLists.txt
+++ b/plugins/efi_resolver/CMakeLists.txt
@@ -26,7 +26,7 @@ file(
add_library(efi_resolver SHARED ${SOURCE_FILES})
target_link_libraries(efi_resolver binaryninjaapi)
target_include_directories(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include")
-target_compile_features(efi_resolver PRIVATE cxx_std_17 c_std_99)
+target_compile_features(efi_resolver PRIVATE cxx_std_20 c_std_99)
# Library targets linking against the Binary Ninja API need to be compiled with
# position-independent code on Linux.
diff --git a/plugins/warp/api/CMakeLists.txt b/plugins/warp/api/CMakeLists.txt
index fe58e924..6d548e6d 100644
--- a/plugins/warp/api/CMakeLists.txt
+++ b/plugins/warp/api/CMakeLists.txt
@@ -41,7 +41,7 @@ else ()
endif()
set_target_properties(warp_api PROPERTIES
- CXX_STANDARD 17
+ CXX_STANDARD 20
CXX_VISIBILITY_PRESET hidden
CXX_STANDARD_REQUIRED ON
VISIBILITY_INLINES_HIDDEN ON
diff --git a/plugins/warp/api/python/CMakeLists.txt b/plugins/warp/api/python/CMakeLists.txt
index 7c616bc3..c51e24b9 100644
--- a/plugins/warp/api/python/CMakeLists.txt
+++ b/plugins/warp/api/python/CMakeLists.txt
@@ -14,7 +14,7 @@ target_link_libraries(warp_generator binaryninjaapi)
target_include_directories(warp_generator PUBLIC {PROJECT_SOURCE_DIR}/../../api)
set_target_properties(warp_generator PROPERTIES
- CXX_STANDARD 17
+ CXX_STANDARD 20
CXX_STANDARD_REQUIRED ON
BUILD_WITH_INSTALL_RPATH OFF
RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
diff --git a/plugins/warp/ui/CMakeLists.txt b/plugins/warp/ui/CMakeLists.txt
index e266452c..c3e5bcf6 100644
--- a/plugins/warp/ui/CMakeLists.txt
+++ b/plugins/warp/ui/CMakeLists.txt
@@ -34,7 +34,7 @@ endif ()
target_link_libraries(${PROJECT_NAME} binaryninjaui warp_api Qt6::Core Qt6::Gui Qt6::Widgets)
set_target_properties(${PROJECT_NAME} PROPERTIES
- CXX_STANDARD 17
+ CXX_STANDARD 20
CXX_VISIBILITY_PRESET hidden
CXX_STANDARD_REQUIRED ON
VISIBILITY_INLINES_HIDDEN ON
diff --git a/plugins/warp/ui/matches.cpp b/plugins/warp/ui/matches.cpp
index ed77085a..7e22e224 100644
--- a/plugins/warp/ui/matches.cpp
+++ b/plugins/warp/ui/matches.cpp
@@ -81,7 +81,7 @@ WarpCurrentFunctionWidget::WarpCurrentFunctionWidget(FunctionRef current)
});
- connect(m_tableWidget->GetTableView(), &QTableView::doubleClicked, this, [=](const QModelIndex &index) {
+ connect(m_tableWidget->GetTableView(), &QTableView::doubleClicked, this, [=, this](const QModelIndex &index) {
if (m_current == nullptr)
return;
// Get the selected row for the given index.
diff --git a/plugins/workflow_objc/CMakeLists.txt b/plugins/workflow_objc/CMakeLists.txt
index afb31972..61ba4962 100644
--- a/plugins/workflow_objc/CMakeLists.txt
+++ b/plugins/workflow_objc/CMakeLists.txt
@@ -27,7 +27,7 @@ set(PLUGIN_SOURCE
add_library(workflow_objc SHARED ${PLUGIN_SOURCE})
target_link_libraries(workflow_objc binaryninjaapi)
-target_compile_features(workflow_objc PRIVATE cxx_std_17 c_std_99)
+target_compile_features(workflow_objc PRIVATE cxx_std_20 c_std_99)
# Library targets linking against the Binary Ninja API need to be compiled with
# position-independent code on Linux.