wasm-micro-runtime icon indicating copy to clipboard operation
wasm-micro-runtime copied to clipboard

Issues about .clang-format options

Open lum1n0us opened this issue 1 year ago • 0 comments

  • 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"

lum1n0us avatar Jul 29 '22 03:07 lum1n0us