-
Notifications
You must be signed in to change notification settings - Fork 682
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
Fix pre-commit configuration for gersemi #1670
Open
egecetin
wants to merge
6
commits into
seladb:dev
Choose a base branch
from
egecetin:fix-gersemi
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2eda372
fix pre-commit configuration
egecetin b9b1fd3
Merge branch 'dev' into fix-gersemi
egecetin a4c4e02
pre-commit fixes
egecetin 675a5ad
Merge branch 'fix-gersemi' of https://github.com/egecetin/PcapPlusPlu…
egecetin 9ca0e8b
improve exclude more
egecetin 7145c60
apply fixes
egecetin 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 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 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 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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
add_library(EndianPortable INTERFACE) | ||
|
||
target_include_directories(EndianPortable | ||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
target_include_directories(EndianPortable INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
|
||
target_sources(EndianPortable | ||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include/EndianPortable.h) | ||
target_sources(EndianPortable INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include/EndianPortable.h) |
This file contains 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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
add_library(Getopt-for-Visual-Studio INTERFACE) | ||
|
||
target_include_directories(Getopt-for-Visual-Studio | ||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/) | ||
target_include_directories(Getopt-for-Visual-Studio INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/) | ||
|
||
target_sources(Getopt-for-Visual-Studio | ||
INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/getopt.h) | ||
target_sources(Getopt-for-Visual-Studio INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/getopt.h) |
This file contains 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 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 |
---|---|---|
@@ -1,84 +1,66 @@ | ||
cmake_minimum_required (VERSION 2.6) | ||
project (light_pcapng C) | ||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_CURRENT_SOURCE_DIR}/include/ -Wall -O2 -fPIC -DUNIVERSAL -g") | ||
|
||
add_library (light_pcapng SHARED | ||
src/light_io.c | ||
src/light_pcapng.c | ||
src/light_pcapng_cont.c | ||
src/light_platform.c | ||
src/light_manipulate.c | ||
src/light_internal.c | ||
src/light_alloc.c | ||
src/light_advanced.c | ||
src/light_option.c | ||
src/light_pcapng_ext.c | ||
) | ||
|
||
add_library (light_pcapng_static STATIC | ||
src/light_io.c | ||
src/light_pcapng.c | ||
src/light_pcapng_cont.c | ||
src/light_platform.c | ||
src/light_manipulate.c | ||
src/light_internal.c | ||
src/light_alloc.c | ||
src/light_advanced.c | ||
src/light_option.c | ||
src/light_pcapng_ext.c | ||
) | ||
|
||
add_executable (test_read.test | ||
src/tests/test_read.c | ||
) | ||
target_link_libraries(test_read.test light_pcapng_static) | ||
|
||
add_executable (test_read_write.test | ||
src/tests/test_read_write.c | ||
) | ||
target_link_libraries(test_read_write.test light_pcapng_static) | ||
|
||
add_executable (test_mem.test | ||
src/tests/test_mem.c | ||
) | ||
target_link_libraries(test_mem.test light_pcapng_static) | ||
|
||
add_executable (test_histogram.test | ||
src/tests/test_histogram.c | ||
) | ||
target_link_libraries(test_histogram.test light_pcapng_static) | ||
|
||
add_executable (test_subcapture.test | ||
src/tests/test_subcapture.c | ||
) | ||
target_link_libraries(test_subcapture.test light_pcapng_static) | ||
|
||
add_executable (test_feature.test | ||
src/tests/test_feature.c | ||
) | ||
target_link_libraries(test_feature.test light_pcapng_static) | ||
|
||
add_executable (test_flow.test | ||
src/tests/test_flow.c | ||
) | ||
target_link_libraries(test_flow.test light_pcapng_static) | ||
|
||
add_executable (test_feature_advanced.test | ||
src/tests/test_feature_advanced.c | ||
) | ||
target_link_libraries(test_feature_advanced.test light_pcapng_static dl) | ||
|
||
add_executable (test_read_packets.test | ||
src/tests/test_read_packets.c | ||
) | ||
target_link_libraries(test_read_packets.test light_pcapng_static) | ||
|
||
add_executable (test_read_write_packets.test | ||
src/tests/test_read_write_packets.c | ||
) | ||
target_link_libraries(test_read_write_packets.test light_pcapng_static) | ||
|
||
add_executable (test_split.test | ||
src/tests/test_split.c | ||
) | ||
target_link_libraries(test_split.test light_pcapng_static) | ||
cmake_minimum_required(VERSION 2.6) | ||
project(light_pcapng C) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I${CMAKE_CURRENT_SOURCE_DIR}/include/ -Wall -O2 -fPIC -DUNIVERSAL -g") | ||
|
||
add_library( | ||
light_pcapng | ||
SHARED | ||
src/light_io.c | ||
src/light_pcapng.c | ||
src/light_pcapng_cont.c | ||
src/light_platform.c | ||
src/light_manipulate.c | ||
src/light_internal.c | ||
src/light_alloc.c | ||
src/light_advanced.c | ||
src/light_option.c | ||
src/light_pcapng_ext.c | ||
) | ||
|
||
add_library( | ||
light_pcapng_static | ||
STATIC | ||
src/light_io.c | ||
src/light_pcapng.c | ||
src/light_pcapng_cont.c | ||
src/light_platform.c | ||
src/light_manipulate.c | ||
src/light_internal.c | ||
src/light_alloc.c | ||
src/light_advanced.c | ||
src/light_option.c | ||
src/light_pcapng_ext.c | ||
) | ||
|
||
add_executable(test_read.test src/tests/test_read.c) | ||
target_link_libraries(test_read.test light_pcapng_static) | ||
|
||
add_executable(test_read_write.test src/tests/test_read_write.c) | ||
target_link_libraries(test_read_write.test light_pcapng_static) | ||
|
||
add_executable(test_mem.test src/tests/test_mem.c) | ||
target_link_libraries(test_mem.test light_pcapng_static) | ||
|
||
add_executable(test_histogram.test src/tests/test_histogram.c) | ||
target_link_libraries(test_histogram.test light_pcapng_static) | ||
|
||
add_executable(test_subcapture.test src/tests/test_subcapture.c) | ||
target_link_libraries(test_subcapture.test light_pcapng_static) | ||
|
||
add_executable(test_feature.test src/tests/test_feature.c) | ||
target_link_libraries(test_feature.test light_pcapng_static) | ||
|
||
add_executable(test_flow.test src/tests/test_flow.c) | ||
target_link_libraries(test_flow.test light_pcapng_static) | ||
|
||
add_executable(test_feature_advanced.test src/tests/test_feature_advanced.c) | ||
target_link_libraries(test_feature_advanced.test light_pcapng_static dl) | ||
|
||
add_executable(test_read_packets.test src/tests/test_read_packets.c) | ||
target_link_libraries(test_read_packets.test light_pcapng_static) | ||
|
||
add_executable(test_read_write_packets.test src/tests/test_read_write_packets.c) | ||
target_link_libraries(test_read_write_packets.test light_pcapng_static) | ||
|
||
add_executable(test_split.test src/tests/test_split.c) | ||
target_link_libraries(test_split.test light_pcapng_static) |
This file contains 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 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 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 |
---|---|---|
@@ -1,25 +1,13 @@ | ||
cmake_minimum_required (VERSION 3.0) | ||
|
||
add_executable(basic-example | ||
basic-example.cpp | ||
) | ||
|
||
target_link_libraries(basic-example PUBLIC | ||
memplumber | ||
) | ||
|
||
add_executable(static-example | ||
static-example.cpp | ||
) | ||
|
||
target_link_libraries(static-example PUBLIC | ||
memplumber | ||
) | ||
|
||
add_executable(dump-to-file-example | ||
dump-to-file-example.cpp | ||
) | ||
|
||
target_link_libraries(dump-to-file-example PUBLIC | ||
memplumber | ||
) | ||
cmake_minimum_required(VERSION 3.0) | ||
|
||
add_executable(basic-example basic-example.cpp) | ||
|
||
target_link_libraries(basic-example PUBLIC memplumber) | ||
|
||
add_executable(static-example static-example.cpp) | ||
|
||
target_link_libraries(static-example PUBLIC memplumber) | ||
|
||
add_executable(dump-to-file-example dump-to-file-example.cpp) | ||
|
||
target_link_libraries(dump-to-file-example PUBLIC memplumber) |
Oops, something went wrong.
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.
This ensures that gersemi run in check mode which returns 1 if any formatting required and 0 otherwise