2022-11-03から1日間の記事一覧

はてなブログの使い方を勉強

llvm-covでブランチカバレッジを見る - steelpipe75の日記 昨日のカバレッジ情報貼り付け方よくなかった 改めてMarkdown編集モードで対応 1| |#include <stdio.h> 2| | 3| 1|int main(void){ 4| 1| int a = 0; 5| 1| int b = 0; 6| | 7| 1| if((a == 0) || (b == 0)){</stdio.h>…

llvm-covでブランチカバレッジを見る

-show-line-counts-or-regions --show-branches=count --show-expansions オプションをつけると↓のようにいい感じにブランチカバレッジ情報が出力される 1| |#include <stdio.h> 2| | 3| 1|int main(void){ 4| 1| int a = 0; 5| 1| int b = 0; 6| | 7| 1| if*1{ ^0 --</stdio.h>…