-
Notifications
You must be signed in to change notification settings - Fork 142
chore: minor C++ cleanups #6913
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d6f91af
Replace find() != end() with contains() in config.cpp
0ax1 9e5fa7d
Replace find() != end() with contains() in table_function.cpp
0ax1 749c093
Improve expr::select with explicit loop type and reserve()
0ax1 d3c8fc4
simplify
0ax1 60caaee
Add CMAKE_CXX_STANDARD_REQUIRED ON to vortex-duckdb CMakeLists
0ax1 48af575
Apply warning flags to all build types in vortex-cxx CMakeLists
0ax1 54d91b1
Clean up trailing blank lines in examples CMakeLists
0ax1 8aadb5d
Make CMake files consistent: cmake_minimum_required 3.22, export comp…
0ax1 9d9f94e
Align duckdb CMakeLists warning flags with build.rs (-Wall -Wextra -W…
0ax1 41c6067
format
0ax1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,20 +10,20 @@ | |
| # If your editor relies on a compilation database to enable LSP functionality, | ||
| # you can generate it by running `cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON` or | ||
| # `bear -- cargo build` (https://github.com/rizsotto/Bear). | ||
|
|
||
| cmake_minimum_required(VERSION 3.20) | ||
| cmake_minimum_required(VERSION 3.22) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to make the CMake version we use consistent. |
||
| project(vortex_duckdb_cpp) | ||
|
|
||
| set(CMAKE_CXX_STANDARD 20) | ||
| set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
| set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | ||
|
|
||
| # Default to debug if build config is not explicitly set. | ||
| if (NOT CMAKE_BUILD_TYPE) | ||
| set(CMAKE_BUILD_TYPE Debug) | ||
| endif () | ||
| endif() | ||
|
|
||
| # Enable compiler warnings (matching build.rs flags). | ||
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -Wno-unused-parameter") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note that this CMake file is not used for building only provided for people using CLion. |
||
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic") | ||
|
|
||
| # Find DuckDB include directory via the symlink created by build.rs. | ||
| # The symlink points to target/duckdb-source-vX.Y.Z which contains duckdb-X.Y.Z/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.