3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

AtomVM: コーディングスタイル

Last updated at Posted at 2025-12-14

AtomVM の公式リポジトリには、明確なコーディングスタイルが定義されています。

言語ごとの方針は次のとおりです。

C言語用には基本的なルールの解説に加え、各リポジトリに.clang-format が用意されています。

自分の参加する AtomVM 関連プロジェクトでも同じスタイルを使いたいので .clang-format をそのままコピーしています。

curl -o .clang-format https://raw.githubusercontent.com/atomvm/AtomVM/main/.clang-format

あとはclang-format任せます。

clang-format -i nifs/*.c

これで自前の NIF のコードでも、AtomVM 本体と同じ雰囲気に揃います。

🎌 🎌 🎌

piyopiyo-board-2025-12.png

※ 写真はイメージです

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?