Skip to content

Commit

Permalink
docs: Notes on working with c
Browse files Browse the repository at this point in the history
  • Loading branch information
judfs authored and nosracd committed May 12, 2024
1 parent 2b7f0fc commit e72f1ba
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/content/contributing-c.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

Run `./format_code.sh` before committing to format the code.

Configure with `cmake .. -DCMAKE_BUILD_TYPE=Debug` or `cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo` to debug.


Modifying lcm-gen does not rebuild the tests. [#490](https://github.com/lcm-proj/lcm/issues/490). The following is a workaround:

```bash
cd build
rm -r test && make -j
make test
```

## Code Quality

Code in the directory `lcmgen` leaks memory. It is not an uncommon practice to allow this for short lived CLI tools.
Code in the directory `lcmgen` leaks memory. It is not an uncommon practice to allow this for short lived CLI tools. It is preferred to avoid and clean up after this practice though. [#484](https://github.com/lcm-proj/lcm/issues/484).

0 comments on commit e72f1ba

Please sign in to comment.