{"id":281914,"date":"2016-12-02T14:55:04","date_gmt":"2016-12-02T11:55:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=281914"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=281914","title":{"rendered":"\u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c PVS-Studio \u0432 Anjuta DevStudio (Linux)"},"content":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f PVS-Studio \u043f\u043e\u0434 Linux, \u044f \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0435\u0433\u043e \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0438 \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u0435\u0442, \u0432 \u0434\u043e\u0431\u0430\u0432\u043e\u043a \u043a\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0447\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c.<\/p>\n<p>  \u0410 \u0442\u0430\u043a \u043a\u0430\u043a \u0430\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0438 \u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0438 \u043d\u0435\u0434\u0435\u043b\u044e \u00ab\u0417\u0430\u043f\u0438\u043b\u0438 PVS-Studio \u0432 \u0441\u0432\u043e\u044e IDE\u00bb, \u0442\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u043a\u0430\u043a \u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b Anjuta DevStudio (http:\/\/anjuta.org\/). \u0417\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"https:\/\/habrahabr.ru\/users\/kloppspb\/\" class=\"user_link\">kloppspb<\/a> \u0438 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habrahabr.ru\/post\/316670\/\"> \u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c PVS-Studio \u0432 Eclipse CDT (Linux)<\/a><br \/>  <a name=\"habracut\"><\/a><br \/>  \u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u0437\u044f\u0442 \u0438\u0437 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d \u0434\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e autotools.   <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">pvs-anjuta.sh<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#!\/bin\/sh  # \u0431\u0435\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a External Tool, \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c `make clean`: if [ -z &quot;$1&quot; ]; then     make clean fi  # \u0432\u044b\u0437\u043e\u0432 \u0438\u0437 \u0431\u0438\u043b\u0434\u0435\u0440\u0430, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0446\u0435\u043b\u0438: if [ &quot;$2&quot; = &quot;clean&quot; ]; then     make clean    # \u0437\u0434\u0435\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0438\u0447\u0435\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043d\u0430\u0434\u043e:     exit fi  # \u043d\u0435 clean \u0438\u043b\u0438 \u0432\u044b\u0437\u0432\u0430\u043b\u0438 \u043a\u0430\u043a External Tool - \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442: TEMPLOG=$(tempfile)  # \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043e\u0448\u043c\u0451\u0442\u043a\u0438 `strace`, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445: pvs-studio-analyzer trace -- make 2&gt;&1 | sed '\/strace: umovestr:\/d' - pvs-studio-analyzer analyze -o &quot;$TEMPLOG&quot;  # \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0435\u0440\u0430: RC=$(plog-converter -t errorfile &quot;$TEMPLOG&quot; | sed '\/The documentation for all\/d' -) rm -f &quot;$TEMPLOG&quot; echo &quot;$RC&quot;<\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0442\u0438\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c, \u0438 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0414\u0430\u043b\u0435\u0435 General \u2014 \u0432\u043a\u043b\u0430\u0434\u043a\u0430 \u00abInstalled Plugins\u00bb, \u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u00ab\u0418\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b\u00bb (Tools).  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Anjuta Preferences<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/684\/82a\/d18\/68482ad18f46437c9985f183cb7615b9.png\"\/>  <\/div>\n<\/div>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u043f\u0438\u0441\u043a\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043a \u043f\u0443\u043d\u043a\u0442\u0443 \u00abTools\u00bb \u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u00abPVS-Studio Check\u00bb  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Tools<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/15e\/349\/8af\/15e3498af45442488c4d001fdee2f577.png\"\/>  <\/div>\n<\/div>\n<p>  \u0418 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">Tool Editor<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/7ef\/b09\/dd1\/7efb09dd14394db3bb12a457a6124ead.png\"\/><\/div>\n<\/div>\n<p>  \u0412 \u0438\u0442\u043e\u0433\u0435, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043c\u0435\u0440\u0435 \u043c\u0435\u043d\u044e \u0421\u0435\u0440\u0432\u0438\u0441, \u043f\u0443\u043d\u043a\u0442 PVS-Studio Check, \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u043e\u043a\u043d\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430, \u0430 \u0434\u0432\u043e\u0439\u043d\u044b\u043c \u0449\u0435\u043b\u0447\u043a\u043e\u043c \u043c\u044b\u0448\u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043d\u0443\u0436\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440<\/b><\/p>\n<div class=\"spoiler_text\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f12\/927\/77f\/f1292777f3fc470d974f9a2dfa255d88.png\"\/>  <\/div>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/316720\/\"> https:\/\/habrahabr.ru\/post\/316720\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f PVS-Studio \u043f\u043e\u0434 Linux, \u044f \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u0435\u0433\u043e \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0438 \u0440\u0435\u0448\u0438\u043b, \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u043d\u0435 \u043f\u043e\u043c\u0435\u0448\u0430\u0435\u0442, \u0432 \u0434\u043e\u0431\u0430\u0432\u043e\u043a \u043a\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0447\u0438\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u0430\u043c.<\/p>\n<p>  \u0410 \u0442\u0430\u043a \u043a\u0430\u043a \u0430\u0441\u0442\u0440\u043e\u043b\u043e\u0433\u0438 \u043e\u0431\u044a\u044f\u0432\u0438\u043b\u0438 \u043d\u0435\u0434\u0435\u043b\u044e \u00ab\u0417\u0430\u043f\u0438\u043b\u0438 PVS-Studio \u0432 \u0441\u0432\u043e\u044e IDE\u00bb, \u0442\u043e \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u043a\u0430\u043a \u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b Anjuta DevStudio (http:\/\/anjuta.org\/). \u0417\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u043f\u0430\u0441\u0438\u0431\u043e <a href=\"https:\/\/habrahabr.ru\/users\/kloppspb\/\" class=\"user_link\">kloppspb<\/a> \u0438 \u0435\u0433\u043e \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habrahabr.ru\/post\/316670\/\"> \u0412\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c PVS-Studio \u0432 Eclipse CDT (Linux)<\/a>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-281914","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281914"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/281914\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}