{"provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20191227%2Fp1\" title=\"\u72ec\u81ea\u8a3a\u65ad\u30e1\u30c3\u30bb\u30fc\u30b8 diagnose_if\u5c5e\u6027 - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","version":"1.0","categories":["C","C++","Clang"],"title":"\u72ec\u81ea\u8a3a\u65ad\u30e1\u30c3\u30bb\u30fc\u30b8 diagnose_if\u5c5e\u6027","image_url":null,"blog_title":"yohhoy\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","published":"2019-12-27 11:45:39","url":"https://yohhoy.hatenadiary.jp/entry/20191227/p1","blog_url":"https://yohhoy.hatenadiary.jp/","type":"rich","author_name":"yohhoy","width":"100%","author_url":"https://blog.hatena.ne.jp/yohhoy/","description":"Clang\u30b3\u30f3\u30d1\u30a4\u30e9\u306f\u30e6\u30fc\u30b6\u5b9a\u7fa9\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u8b66\u544a\uff0f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u51fa\u529b\u3092\u884c\u3046diagnose_if\u5c5e\u6027\u3092\u63d0\u4f9b\u3059\u308b\u3002 The diagnose_if attribute can be placed on function declarations to emit warnings or errors at compile-time if calls to the attributed function meet certain user-defined criteria. For example: void abs(int a) __attribute__((diagnose_if(a >= 0\u2026"}