{"id":6984,"date":"2024-07-16T11:40:24","date_gmt":"2024-07-16T02:40:24","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=6984"},"modified":"2024-12-05T15:06:31","modified_gmt":"2024-12-05T06:06:31","slug":"c_cpp_properties-json","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/6984","title":{"rendered":"[vscode] c_cpp_properties.json"},"content":{"rendered":"<p>Visual Studio Code \u306e C\/C++\u62e1\u5f35\u6a5f\u80fd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/p>\n<p><!--more--><\/p>\n<h3>DEFINE\u5b9a\u7fa9<\/h3>\n<p>configurations &rArr; defines<\/p>\n<h4>DEFINE\u5b9a\u7fa9\u306e\u8a2d\u5b9a\u4f8b<\/h4>\n<pre class=\"lang:js decode:true \" >{\r\n    \"configurations\": [\r\n        {\r\n            \/* ... *\/\r\n            \"defines\": [\r\n                \"NDEBUG\",\r\n                \"USO800\",\r\n                \"SPACE_WARP_DEVICES\",\r\n            ],\r\n            \/* ... *\/\r\n        }\r\n    ],\r\n}<\/pre>\n<p>\u203b gcc \u306b\u304a\u3051\u308b <code>-D SOME_DEFINITION<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u76f8\u5f53\u3002<\/p>\n<h3>\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30d1\u30b9<\/h3>\n<p>env &rArr; DefaultIncludePath<\/p>\n<h4>\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30d1\u30b9\u306e\u8a2d\u5b9a\u4f8b<\/h4>\n<pre class=\"lang:js decode:true \" >{\r\n    \"env\": {\r\n        \"DefaultIncludePath\": [\r\n            \"C:\/Program Files (x86)\/IAR Systems\/Embedded Workbench 7.3\/arm\/inc\",\r\n            \"${workspaceFolder}\/includes\",\r\n            \/* ... *\/\r\n        ],\r\n        \/* ... *\/\r\n    },\r\n    \/* ... *\/\r\n}\r\n<\/pre>\n<p>\u203b gcc \u306b\u304a\u3051\u308b <code>-I SOME_INCLUDE_PATH<\/code> \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u76f8\u5f53\u3002<\/p>\n<h3>\u5f37\u5236\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb<\/h3>\n<p>configurations &rArr; forceInclude<\/p>\n<h4>\u5f37\u5236\u30a4\u30f3\u30af\u30eb\u30fc\u30c9\u30d5\u30a1\u30a4\u30eb\u306e\u8a2d\u5b9a\u4f8b<\/h4>\n<pre class=\"lang:js decode:true \" >{\r\n    \"configurations\": [\r\n        {\r\n            \/* ... *\/\r\n            \"forcedInclude\": [\r\n                \"${workspaceFolder}\/includes\/master_header.h\",\r\n                \"${workspaceFolder}\/includes\/uso800_header.h\"\r\n            ],\r\n            \/* ... *\/\r\n        }\r\n    ],\r\n}<\/pre>\n<h3>\u5916\u90e8\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/cpp\/c-cpp-properties-schema-reference\">c_cpp_properties.json reference<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio Code \u306e C\/C++\u62e1\u5f35\u6a5f\u80fd\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[39],"class_list":["post-6984","post","type-post","status-publish","format-standard","hentry","category-memo","tag-vscode"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=6984"}],"version-history":[{"count":11,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6984\/revisions"}],"predecessor-version":[{"id":7560,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/6984\/revisions\/7560"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=6984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=6984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=6984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}