Spdk/test/nvme
Ben Walker 8dd1cd2104 check_format: For C files only, fix return type breaks
In SPDK, declarations have the return type on the same line. Definitions
have the return type on a separate line. Astyle has an option for
enforcing this. Unfortunately, it seems to have two bugs:

1) It doesn't work correctly at all on C++ files.
2) It often fails on functions that return enums, or long type names

Deal with 1) by adjusting the check_format.sh script to only tell astyle
to fix return type line breaks for C files and not C++. Deal with 2) by
adding a few typedefs to work around the problem.

Change-Id: Idf28281466cab8411ce252d5f02ab384166790c6
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13437
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Dong Yi <dongx.yi@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
2022-06-27 09:33:48 +00:00
..
aer check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
boot_partition check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
cmb test/nvme: Add basic test covering cmb_copy functionality 2021-07-20 07:59:43 +00:00
compliance check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
connect_stress check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
cuse check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
deallocated_value check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
e2edp check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
err_injection check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
fused_ordering check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
overhead check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
perf test/nvme_perf: wait longer for discovering bdevs 2022-05-19 08:24:09 +00:00
reserve check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
reset check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
sgl check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
simple_copy check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
startup check_format: For C files only, fix return type breaks 2022-06-27 09:33:48 +00:00
zns test/nvme/zns: Fix jq filter 2021-12-08 08:06:36 +00:00
hw_hotplug.sh hw_hotplug: remove log.txt before exiting script 2022-06-01 08:58:15 +00:00
Makefile Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
nvme_bp.sh test/nvme: Add test application to verify Boot Partition Read / Write support 2021-09-07 07:34:09 +00:00
nvme_opal.sh test/opal: add a trap for opal_revert_and_init() 2020-08-19 07:30:04 +00:00
nvme_pmr.sh examples/pmr_persistence: Add PMR example application 2021-04-22 20:10:21 +00:00
nvme_rpc_timeouts.sh test/nvme: A simple test confirming we can change nvme timeout settings via rpc 2021-07-14 09:15:20 +00:00
nvme_rpc.sh build: Output executables from the app directory to build/bin 2020-06-15 15:27:16 +00:00
nvme_scc.sh test/nvme: Add test application to verify Simple Copy Command support 2021-05-18 12:43:24 +00:00
nvme.sh test: disable aen tests until root cause 2022-06-27 09:17:07 +00:00
sw_hotplug.sh hotplug: rename and refactor hotplug.sh 2022-04-05 07:42:43 +00:00