{"type":"rich","blog_url":"https://osyo-manga.hatenadiary.org/","categories":["clang","Python"],"blog_title":"C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","description":"\u524d\u56de\u306f unsave_files \u306b\u95a2\u3059\u308b\u8a18\u4e8b\u3092\u66f8\u304d\u307e\u3057\u305f\u3002 \u4eca\u56de\u306f diagnostics \u306b\u3064\u3044\u3066\u7c21\u5358\u306b\u66f8\u304d\u307e\u3059\u3002 diagnostics \u306f\u30d1\u30fc\u30b9\u3057\u305f\u7d50\u679c\u306e\u30a8\u30e9\u30fc\u3084\u8b66\u544a\u306a\u3069\u3092\u53d6\u5f97\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002 [\u30bd\u30fc\u30b9] import clang.cindex # source code source = \"\"\"\\ struct X{ const int value = 10; }; int main(){ X x{}; x.value = 10; return } \"\"\" index = clang.cindex.Index.create() tu = index.parse(\"test.cpp\"\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fosyo-manga.hatenadiary.org%2Fentry%2F20140124%2F1390573831\" title=\"libclang \u306e Python binding \u3092\u4f7f\u7528\u3059\u308b \u301c diagnostics \u7de8\u301c - C++\u3067\u30b2\u30fc\u30e0\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/osyo-manga/","provider_url":"https://hatena.blog","title":"libclang \u306e Python binding \u3092\u4f7f\u7528\u3059\u308b \u301c diagnostics \u7de8\u301c","version":"1.0","image_url":null,"url":"https://osyo-manga.hatenadiary.org/entry/20140124/1390573831","height":"190","published":"2014-01-24 23:30:31","author_name":"osyo-manga","provider_name":"Hatena Blog","width":"100%"}