1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

C/C++ で最低限のテスト

Posted at

最低限やっておく具体的なテストのメモ

gcc

静的

オプションなど 説明
-Wall -Wextra -Werror 警告を出しエラーにする
-fanalyzer 静的解析してくれる

動的

オプションなど 説明
-fsanitize=lead -fsanitize=address メモリアクセス違反・メモリリークを検出する
-fsanitize=undefined 未定義動作の検出
1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?