Skip to content

Commit 1adef39

Browse files
committed
Update docs and some CI builds
1 parent 1500f74 commit 1adef39

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

.github/workflows/xxd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ------------------------------------------------------------------------------
2-
# Copyright Christopher Kormanyos 2022 - 2024.
2+
# Copyright Christopher Kormanyos 2022 - 2025.
33
# Distributed under the Boost Software License,
44
# Version 1.0. (See accompanying file LICENSE_1_0.txt
55
# or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -33,8 +33,8 @@ jobs:
3333
echo "query GCC version"
3434
g++ -v
3535
echo "build xxd"
36-
echo '${{ matrix.compiler }}++ -x c -std=${{ matrix.standard }} -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd.exe'
37-
${{ matrix.compiler }} -x c -std=${{ matrix.standard }} -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd
36+
echo '${{ matrix.compiler }}++ -x c -std=${{ matrix.standard }} -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd.exe'
37+
${{ matrix.compiler }} -x c -std=${{ matrix.standard }} -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd
3838
echo 'ls -la ./xxd'
3939
ls -la ./xxd
4040
echo 'create zero_a.bin'
@@ -67,8 +67,8 @@ jobs:
6767
echo "query GCC version"
6868
g++ -v
6969
echo "build xxd"
70-
echo 'g++ -x c -std=c11 -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd.exe'
71-
g++ -x c -std=c11 -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd
70+
echo 'g++ -x c -std=c11 -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd.exe'
71+
g++ -x c -std=c11 -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd
7272
echo 'ls -la ./xxd'
7373
ls -la ./xxd
7474
- uses: actions/upload-artifact@v4
@@ -86,8 +86,8 @@ jobs:
8686
echo "query clang version"
8787
clang++ -v
8888
echo "build xxd"
89-
echo 'clang++ -x c -std=c11 -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd.exe'
90-
clang++ -x c -std=c11 -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd
89+
echo 'clang++ -x c -std=c11 -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd.exe'
90+
clang++ -x c -std=c11 -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd
9191
echo 'ls -la ./xxd'
9292
ls -la ./xxd
9393
- uses: actions/upload-artifact@v4

.github/workflows/xxd_sonar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ------------------------------------------------------------------------------
2-
# Copyright Christopher Kormanyos 2023 - 2024.
2+
# Copyright Christopher Kormanyos 2023 - 2025.
33
# Distributed under the Boost Software License,
44
# Version 1.0. (See accompanying file LICENSE_1_0.txt
55
# or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -48,7 +48,7 @@ jobs:
4848
- name: Run build-wrapper
4949
run: |
5050
java -version
51-
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} g++ -x c -std=c11 -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd
51+
build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} g++ -x c -std=c11 -O3 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd
5252
- name: Run sonar-scanner
5353
env:
5454
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
<img src="https://codecov.io/gh/ckormanyos/xxd/graph/badge.svg?token=EHGEJLSMSL"/></a>
1313
<a href="https://github.com/ckormanyos/xxd/blob/master/LICENSE">
1414
<img src="https://img.shields.io/badge/license-GPL%202.0-blue.svg" alt="GNU GENERAL PUBLIC LICENSE 2.0"></a>
15-
<a href="https://godbolt.org/z/x8MGxf6fz" alt="godbolt">
15+
<a href="https://godbolt.org/z/PKxfn7zbd" alt="godbolt">
1616
<img src="https://img.shields.io/badge/try%20it%20on-godbolt-green" /></a>
1717
</p>
1818

19+
The version of `xxd` in `ckormanyos/xxd` has been adapted
20+
for MSVC/GCC/clang **standalone build**.
21+
1922
This is an unofficial adaption of the well-known hex-dump-type utility `xxd`.
2023
See the [vim-project](https://www.vim.org) for the official `xxd`, which
2124
is a small sub-component of `vim`.
2225

23-
The version of `xxd` in this repository has been adapted
24-
for MSVC/GCC/clang standalone build.
25-
2626
## Releases and build artifacts
2727

2828
Occasional releases and build artifacts consisting of the executable `xxd` program
@@ -63,7 +63,7 @@ In other words,
6363

6464
```sh
6565
cd xxd
66-
g++ -x c -std=c17 -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd
66+
g++ -x c -std=c17 -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd
6767
```
6868

6969
### Build on the MacOS command line
@@ -78,7 +78,7 @@ In other words,
7878

7979
```sh
8080
cd xxd
81-
clang++ -x c -std=c17 -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion src/xxd.c -o xxd
81+
clang++ -x c -std=c17 -O2 -Wall -Wextra -Wpedantic -Wconversion -Wsign-conversion -Wshadow src/xxd.c -o xxd
8282
```
8383

8484
### Platform-independent build with CMake (and ninja)
@@ -103,7 +103,7 @@ The following adaptions have been undertaken.
103103
- Replace the compiler switch `WIN32` with MSVC's standard `_WIN32`.
104104
- Run the `xxd.c`/`config.h` files through the [Artistic Style](http://astyle.sourceforge.net/astyle.html) automatic code formatter, using a version of _AStyle_ from somewhere around 2015.
105105
- Handle Level-3 warnings found in MSVC.
106-
- Handle GCC warnings from `-Wall`, `-Wextra`, `-Wpedantic`, `-Wconversion` and `-Wsign-conversion`.
106+
- Handle GCC warnings from `-Wall`, `-Wextra`, `-Wpedantic`, `-Wconversion`, `-Wsign-conversion` and `-Wshadow`.
107107
- Add CI consisting of MSVC/GCC/clang builds and a handful of straightforward test cases.
108108
- Upload build artifacts in CI for `xxd-x86_64-linux-gnu` and `xxd-win64-msvc`, see also discussion in [issue 11](https://github.com/ckormanyos/xxd/issues/11).
109109
- Resolve code-technical issues (and/or disable some) found via quality checks performed with CodeSonar, as described in [issue 15](https://github.com/ckormanyos/xxd/issues/15) and [issue 23](https://github.com/ckormanyos/xxd/issues/23).

0 commit comments

Comments
 (0)