use meson builtin clang-format support

laumann
Sep 18, 2023, 1:37 PM
BMTTQJX6CI5EK6XJ55Z5LTVIT65IQ3MKRWK5INJTIFDXTINHBLEAC

Dependencies

  • [2] 2YF4J5SJ change: decode and print file undel
  • [3] RIHOSQNY hunk: define hunk types that operate on files
  • [4] HKBM7HZG minor: formatting
  • [5] B3XLVPNC Add ani.c and initial Makefile
  • [6] UWFHRQQ7 update readme and Makefile
  • [7] XV2V6J3L clean up Makefile
  • [8] Q7TKZCJP Add initial support for reading the offsets from a (fixed) change
  • [9] ML5XMZEU Makefile: rearrange targets
  • [10] 2U7P5SFQ Change struct names "struct foo -> typedef struct Foo"
  • [11] XTKRT6OQ format the codebase
  • [12] WFA5BBRF Fix warnings
  • [13] JVU3TTT5 all: switch away from typedefing anonymous structs
  • [14] N3PUHKQN change: fix scoping issue
  • [*] JAGXXSR7 change: initial work on decoding hunks
  • [*] PEUS54XQ

Change contents

  • replacement in hunk.h at line 42
    [3.196][2.0:51]()
    str encoding; /* Option<struct encoding> */
    [3.196]
    [3.622]
    str encoding; /* Option<struct encoding> */
  • replacement in change.h at line 18
    [3.343][3.88:144]()
    uint64_t hashed_len; /* length of hashed contents */
    [3.343]
    [3.397]
    uint64_t hashed_len; /* length of hashed contents */
  • replacement in change.c at line 783
    [3.4393][3.4393:4442]()
    &r->change; /* Expected to be an edgemap */
    [3.4393]
    [3.4442]
    &r->change; /* Expected to be an edgemap */
  • replacement in Makefile at line 23
    [3.102][3.102:128]()
    @clang-format -i *.c *.h
    [3.102]
    [3.676]
    @$(NINJA) -C build clang-format
  • file addition: .clang-format-ignore (----------)
    [17.1]
    vendor/*
    build/*
    contrib/*