wasm-micro-runtime
wasm-micro-runtime copied to clipboard
Issues about .clang-format options
- Wrongly format code in
#ifdef...#else...#endif
#if WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS != 0
local_offset = *frame_ip++;
#else
local_offset = *frame_ip;
frame_ip += 2;
#endif
will be formatted
#if WASM_CPU_SUPPORTS_UNALIGNED_ADDR_ACCESS != 0
local_offset = *frame_ip++;
#else
local_offset = *frame_ip;
frame_ip += 2;
#endif
- Can not identify
case 'f':
{
wasm_path = optarg;
} break;
and we hope
case 'f':
{
wasm_path = optarg;
break;
}
Will keep using the
clang-format-12
supported by Github-host-runners "https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#language-and-runtime"