{"id":3695,"date":"2022-01-30T14:52:54","date_gmt":"2022-01-30T06:52:54","guid":{"rendered":"https:\/\/blog.coderfan.org\/?p=3695"},"modified":"2024-01-03T00:18:12","modified_gmt":"2024-01-02T16:18:12","slug":"how-to-unify-code-stytle-in-c-or-c-plus-plus-html","status":"publish","type":"post","link":"https:\/\/blog.coderfan.org\/en\/how-to-unify-code-stytle-in-c-or-c-plus-plus-html.html","title":{"rendered":"\u4ee3\u7801\u56e2\u961f\u5316\u7ba1\u7406\u4e4b\u4ee3\u7801\u683c\u5f0f\u5316"},"content":{"rendered":"<div class='booster-block booster-read-block'>\n                <div class=\"twp-read-time\">\n                \t<i class=\"booster-icon twp-clock\"><\/i> <span>Read Time:<\/span>3 Minute, 25 Second                <\/div>\n\n            <\/div>\n<p class=\"has-text-align-justify\">\u5728\u4e00\u4e2a\u5927\u578b\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u5f80\u5f80\u90fd\u9700\u8981\u901a\u8fc7\u56e2\u961f\u534f\u4f5c\u53bb\u8fbe\u6210\u6211\u4eec\u7684\u76ee\u6807\u3002\u7531\u4e8e\u4e2a\u4eba\u98ce\u683c\u4e0d\u540c\uff0c\u5f53\u4f17\u591a\u5f00\u53d1\u8005\u4e00\u8d77\u5f00\u53d1\u65f6\uff0c\u96be\u514d\u4f1a\u9047\u5230\u4ee3\u7801\u98ce\u683c\u4e0a\u7684\u95ee\u9898\u3002\u4ee3\u7801\u98ce\u683c\u7684\u4e0d\u540c\u4f1a\u5bfc\u81f4\u6211\u4eecReview\u65f6\u4e0d\u80fd\u5f88\u597d\u7684\u6355\u6349\u5177\u4f53\u7684\u53d8\u52a8\uff0c\u5c24\u5176\u662fGit\u63d0\u4ea4\u540e\uff0c\u683c\u5f0f\u7684\u6539\u52a8\u4f1a\u8ba9\u8bc4\u5ba1\u65f6\u6d6a\u8d39\u989d\u5916\u7684\u7cbe\u529b\u3002\u4e3a\u4e86\u4fdd\u8bc1\u4e0d\u540c\u5f00\u53d1\u8005\u7684\u4ee3\u7801\u53ef\u8bfb\u6027\u4e0e\u7f8e\u89c2\u6027\uff0c\u6211\u4eec\u9700\u8981\u501f\u52a9\u683c\u5f0f\u5316\u5de5\u5177\u6765\u5c06\u6bcf\u4e2a\u4eba\u7684\u4ee3\u7801\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u4e14\u4fdd\u6301\u683c\u5f0f\u5316\u4e4b\u540e\u7684\u98ce\u683c\u7edf\u4e00\u3002\u683c\u5f0f\u5316\u7684\u65b9\u5f0f\u6709\u5f88\u591a\uff0c\u6bd4\u8f83\u63a8\u8350\u7684\u662f\u4f7f\u7528Visual Studio Code\u81ea\u5e26\u7684\u683c\u5f0f\u5316\u529f\u80fd\u6216\u8005\u501f\u52a9clang-format\u7a0b\u5e8f\u5b8c\u6210\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5176\u4e2dVisual Studio Code\u81ea\u5e26\u7684\u683c\u5f0f\u5316\u53ef\u80fd\u4f1a\u968f\u7740\u7248\u672c\u4e0d\u540c\u800c\u53d8\u66f4\uff0c\u5982\u679c\u4f7f\u7528Clang-format\uff0c\u5728\u4fdd\u8bc1.clang-format\u6587\u4ef6\u4fdd\u6301\u4e0d\u53d8\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4fdd\u8bc1\u4ee3\u7801\u683c\u5f0f\u5316\u540e\u7684\u6548\u679c\u4e00\u81f4\u6027\u3002\u6240\u4ee5\u6700\u597d\u7684\u529e\u6cd5\u8fd8\u662f\u5c06clang-format\u56fa\u5316\u4e0b\u6765\u3002\u4eca\u5929\u8fd9\u7bc7\u535a\u5ba2\u7684\u5185\u5bb9\uff0c\u5c31\u662f\u6559\u5927\u5bb6\u5982\u4f55\u53bb\u505aclang-format\u7684\u914d\u7f6e\uff0c\u5e76\u5b9e\u73b0git\u63d0\u4ea4\u65f6\u81ea\u52a8\u683c\u5f0f\u5316\u7684\u529f\u80fd\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528clang-format\u524d\u9700\u8981\u5c06clang-format\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8def\u5f84\u8bbe\u7f6e\u5230\u73af\u5883\u53d8\u91cf\u5185\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5982\u4f55\u5b89\u88c5clang-format\u7a0b\u5e8f\u6211\u8fd9\u91cc\u5c31\u4e0d\u518d\u591a\u8bb2\uff0c\u53ef\u4ee5\u81ea\u884c\u53bb\u5b98\u7f51\u4e0b\u8f7d\uff0c\u4e5f\u53ef\u4ee5\u501f\u52a9Visual Studio Code\u4e0b\u8f7d\u63d2\u4ef6\uff0c\u5728\u4e0b\u8f7d\u5b8c\u5e76\u914d\u7f6e\u597d\u73af\u5883\u53d8\u91cf\u540e\uff0c\u6211\u4eec\u5728Windows Cmd\u4e0b\u8f93\u5165\uff1aclang-format &#8211;version\uff0c\u5982\u679c\u914d\u7f6e\u6b63\u786e\uff0c\u6211\u4eec\u5e94\u8be5\u80fd\u770b\u5230\u8fd9\u6837\u7684\u8f93\u51fa\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"116\" src=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-6-1024x116.png\" alt=\"\" class=\"wp-image-3696\" srcset=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-6-1024x116.png 1024w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-6-300x34.png 300w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-6-768x87.png 768w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-6-18x2.png 18w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-6.png 1143w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u914d\u7f6e\u597d\u4e4b\u540e\uff0c\u6211\u4eec\u9700\u8981\u505a\u7684\u5c31\u662f\u786e\u5b9a\u6211\u4eec\u7684\u683c\u5f0f\u5316\u6807\u51c6\u53c2\u8003\u6587\u4ef6\uff0c\u8fd9\u4efd\u6587\u4ef6\u901a\u5e38\u4ee5.clang-format\u547d\u540d\uff0c\u5982\u4f55\u751f\u6210\u81ea\u5df1\u60f3\u8981\u7684.clang-format\u6587\u4ef6\u5462\uff0c\u8fd9\u91cc\u6211\u7b80\u5355\u7b80\u7ecd\u4e24\u79cd\u65b9\u6cd5\uff1a\u4e00\u662f\u901a\u8fc7\u5b98\u65b9\u6837\u4f8b\u4fee\u6539\u6210\u81ea\u5df1\u559c\u6b22\u7684\u6837\u5b50\uff0c\u8fb9\u4fee\u6539\u8fb9\u67e5\u770b\u6548\u679c\uff0c\u76f4\u5230\u6ee1\u610f\u4f4d\u7f6e\u3002\u4e8c\u662f\u901a\u8fc7\u5df2\u6709\u7684\u4ee3\u7801\u5e93\uff0c\u5728\u5927\u5bb6\u90fd\u8ba4\u53ef\u7684\u98ce\u683c\u4e0b\u53bb\u81ea\u52a8\u751f\u6210,clang-format\u6587\u4ef6\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>\u7b2c\u4e00\u79cd\uff1a\u4f7f\u7528\u5b98\u65b9\u6a21\u677f\u8fdb\u884c\u4fee\u6539<\/strong><\/h5>\n\n\n\n<p class=\"has-text-align-justify\">\u4f7f\u7528\u5b98\u65b9\u6a21\u677f\u8fdb\u884c\u4fee\u6539\u65f6\u9700\u8981\u4e00\u8fb9\u4fee\u6539\u4e00\u8fb9\u683c\u5f0f\u5316\u540e\u770b\u6548\u679c\uff0c\u4e3a\u4e86\u8fd9\u4e2a\u8fc7\u7a0b\u65b9\u4fbf\u4e00\u4e9b\uff0c\u6211\u4eec\u8fd8\u662f\u501f\u52a9Visual Studio Code\uff0c\u5b89\u88c5\u597d\u63d2\u4ef6clang-format\u6216\u8005C\/C++\u63d2\u4ef6\uff0c\u8bbe\u7f6e\u597dclang-format\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u4ee5\u53ca\u4ee3\u7801\u683c\u5f0f\u5316\u7684\u53c2\u7167\u6807\u51c6\uff0c\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"491\" src=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-7.png\" alt=\"\" class=\"wp-image-3697\" srcset=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-7.png 865w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-7-300x170.png 300w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-7-768x436.png 768w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-7-18x10.png 18w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">C_CPP:Clang_format_path\u9879\u7528\u4e8e\u8bbe\u7f6eclang-format\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84<\/p>\n\n\n\n<p class=\"has-text-align-justify\">C_CPP:Clang_format_style\u9879\u7528\u4e8e\u8bbe\u7f6e\u683c\u5f0f\u5316\u7684\u6807\u5fd7\uff0c\u8bbe\u7f6efile\u5373\u8868\u660e\u5c06\u4ee5.clang-format\u683c\u5f0f\u5316\u6807\u51c6\u6587\u4ef6\u4e2d\u7684\u89c4\u5219\u9879\u6765\u683c\u5f0f\u5316\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u505a\u5b8c\u4e0a\u8ff0\u8bbe\u7f6e\u540e\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u8bbe\u7f6e\u4fdd\u5b58\u65f6\u81ea\u52a8\u683c\u5f0f\u5316\uff0c\u8bbe\u7f6e\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"865\" height=\"307\" src=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-10.png\" alt=\"\" class=\"wp-image-3700\" srcset=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-10.png 865w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-10-300x106.png 300w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-10-768x273.png 768w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-10-18x6.png 18w\" sizes=\"auto, (max-width: 865px) 100vw, 865px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u8bbe\u7f6e\u5b8c\u6210\u4e4b\u540e\uff0c\u6211\u4eec\u4f7f\u7528<code><em>clang-format -style=Google -dump-config &gt; googleexample<\/em><\/code>\u547d\u4ee4\u751f\u6210\u5b98\u65b9\u7684\u53c2\u8003\u6a21\u677f\uff0c\u5728\u8fd9\u91cc\uff0c\u53ef\u4ee5-style\u547d\u4ee4\u7528\u4e8e\u8bbe\u5b9a\u57fa\u51c6\u7684\u4ee3\u7801\u98ce\u683c\uff0c\u53ef\u9009\u7684\u57fa\u51c6\u98ce\u683c\u5305\u62ecLLVM\u3001Google\u3001Chromium\u3001Mozilla\u3001WebKit\u7b49\uff0c\u8bf7\u6ce8\u610f\uff0c\u7531\u4e8eclang-format\u7a0b\u5e8f\u7684\u4e0d\u540c\uff0c\u751f\u6210\u7684\u6a21\u677f\u53ef\u80fd\u662f\u6709\u5dee\u5f02\u7684\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u751f\u6210\u6a21\u677f\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u884c\u8c03\u6574\u53c2\u6570\uff0c\u5728\u4fdd\u5b58\u540e\u5373\u53ef\u89c2\u5bdf\u5230\u683c\u5f0f\u5316\u4e4b\u540e\u7684\u98ce\u683c\uff0c\u6211\u4eec\u4e00\u8fb9\u8c03\u6574\u4e00\u8fb9\u89c2\u5bdf\u6548\u679c\uff0c\u4ee5\u8fbe\u5230\u81ea\u8ba4\u4e3a\u6ee1\u610f\u7684\u72b6\u6001\u3002\u5176\u4e2d\u5173\u4e8e\u683c\u5f0f\u5316\u6807\u51c6\u6587\u4ef6\u4e2d\u914d\u7f6e\u9879\u7684\u8bf4\u660e\uff0c\u6211\u4eec\u53ef\u4ee5\u53c2\u8003clang\u5b98\u65b9\uff1a<a href=\"https:\/\/clang.llvm.org\/docs\/ClangFormatStyleOptions.html\">https:\/\/clang.llvm.org\/docs\/ClangFormatStyleOptions.html<\/a>\u7684Configurable Format Style Options\u6307\u5bfc\u8bf4\u660e\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5f53\u7136\u4e86\uff0c\u8fd9\u6837\u8c03\u6574\u7684\u8fc7\u7a0b\u53ef\u80fd\u6bd4\u8f83\u6f2b\u957f\u4e5f\u6bd4\u8f83\u8f9b\u82e6\u7684\u3002\u4f46\u597d\u5904\u65f6\u9ad8\u5ea6\u5b9a\u5236\u5316\uff0c\u5e76\u4e14\u4f60\u53ef\u4ee5\u719f\u6089\u5176\u4e2d\u6bcf\u4e00\u9879\u914d\u7f6e\u53d8\u5316\u4ea7\u751f\u7684\u4e0d\u540c\u6548\u679c\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">\u7b2c\u4e8c\u79cd\uff1a\u6839\u636e\u4ee3\u7801\u5e93\u751f\u6210.clang-format<\/h5>\n\n\n\n<p class=\"has-text-align-justify\">\u5047\u5982\u4f60\u62e5\u6709\u4e00\u4efd\u4ee3\u7801\uff0c\u4f60\u5f88\u559c\u6b22\u8fd9\u4efd\u4ee3\u7801\u7684\u7f16\u7801\u98ce\u683c\uff0c\u6709\u6ca1\u6709\u529e\u6cd5\u53ef\u4ee5\u5feb\u6377\u5730\u751f\u6210.clang-format\u5e76\u5e94\u7528\u5230\u81ea\u5df1\u7684\u9879\u76ee\uff0c\u7b54\u6848\u662f\u80af\u5b9a\u7684\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u8fd9\u79cd\u65b9\u5f0f\u9700\u8981\u501f\u52a9\u5176\u4ed6\u5de5\u5177\uff0c\u90a3\u5c31\u662funformat\uff0c\u8fd9\u662f\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\uff0c\u8fd9\u4e2a\u9879\u76ee\u5229\u7528python\u53ef\u4ee5\u5feb\u901f\u751f\u6210clang-format\u6587\u4ef6\u3002\u5176\u9879\u76ee\u7684Git\u5730\u5740\u5982\u4e0b\uff1ahttps:\/\/github.com\/johnmcfarlane\/unformat\u3002\u6211\u4eec\u5c06\u8fd9\u4e2a\u9879\u76eeclone\u5230\u672c\u5730\uff08Linux\u73af\u5883\u5185\uff09\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5047\u8bbe\u4f60clone\u5230\u672c\u5730\u8def\u5f84\uff1a\/home\/franzkafka95\/Desktop\/unformat-master\uff0c\u800c\u4f60\u9700\u8981\u4e3a\u5176\u751f\u6210.clang-format\u6587\u4ef6\u7684\u4ee3\u7801\u4f4d\u4e8e\/home\/franzkafka95\/Desktop\/codebase\u8fd9\u4e2a\u76ee\u5f55,\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u751f\u6210.clang-format\u6587\u4ef6\uff1a<\/p>\n\n\n\n<p class=\"has-text-align-justify\">python3 \/home\/franzkafka95\/Desktop\/unformat-master\/unformat-master &#8211;root&nbsp;  \/home\/franzkafka95\/Desktop\/codebase   \/home\/franzkafka95\/Desktop\/codebase\/**\/*.h&nbsp;&nbsp;  \/home\/franzkafka95\/Desktop\/codebase \/**\/*.cpp<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u6267\u884c\u540e\uff0c\u5c31\u4f1a\u5f00\u59cb\u81ea\u52a8\u66f4\u5177\u4ee3\u7801\u751f\u6210.clang-format\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u968f\u65f6\u901a\u8fc7Crtl+C\u6253\u65ad\u8fd9\u4e2a\u8fc7\u7a0b\u3002\u5b8c\u6210\u540e\u4f1a\u5728\u4ee3\u7801\u8def\u5f84\u4e0b\u751f\u6210clang-format\u6587\u4ef6\u3002\u6211\u4eec\u62ff\u5230\u8fd9\u4efd\u6587\u4ef6\uff0c\u76f4\u63a5\u653e\u5165\u6211\u4eec\u9700\u8981\u683c\u5f0f\u5316\u7684\u4ee3\u7801\u5de5\u7a0b\u7684\u9876\u5c42\u76ee\u5f55\uff0c\u4fdd\u5b58\u540e\u89c2\u5bdf\u4e00\u4e0b\u6548\u679c\uff0c\u5982\u6709\u4e9b\u5730\u65b9\u4e0d\u6ee1\u610f\u8fd8\u53ef\u4ee5\u505a\u8c03\u6574\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u73b0\u5728\u6211\u4eec\u5df2\u7ecf\u5f97\u5230\u4e86.clang-format\u6587\u4ef6\uff0c\u5c06\u5176\u4f5c\u4e3agit\u4ed3\u5e93\u5185\u7684\u4e00\u90e8\u5206\u63d0\u4ea4\uff0c\u9879\u76ee\u5176\u4ed6\u6210\u5458\u540c\u6b65\u4e0b\u6765\u540e\u4f7f\u7528Visual Studio Code\u7684\u81ea\u52a8\u683c\u5f0f\u5316\u529f\u80fd\u5373\u53ef\u4fdd\u8bc1\u5927\u5bb6\u7684\u4ee3\u7801\u98ce\u683c\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u8003\u8651\u5230\u9879\u76ee\u5f00\u53d1\u6210\u5458\u5e76\u4e0d\u4e00\u5b9a\u90fd\u559c\u6b22\u4f7f\u7528Visual Studio Code\uff0c\u90a3\u6709\u6ca1\u6709\u529e\u6cd5\u53ef\u4ee5\u505a\u5230\u5728\u6211\u4eecCommit\u65f6\u81ea\u52a8\u683c\u5f0f\u5316\u5462\uff0c\u7b54\u6848\u5f53\u7136\u65f6\u80af\u5b9a\u7684\u5566\u3002\u5176\u5b9e\u5b9e\u73b0\u8d77\u6765\u5176\u5b9e\u975e\u5e38\u5bb9\u6613\uff0c\u6211\u4eec\u53ef\u4ee5\u501f\u52a9.git\/hook\/pre-clang\u811a\u672c\u5b8c\u6210\u3002pre-commit\u811a\u672c\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>#!\/bin\/bash\n#NOTE:Please do not  edit this file\nSTYLE=$(git config --get hooks.clangformat.style)\nif &#91; -n \"${STYLE}\" ] ; then\n    STYLEARG=\"-style=${STYLE}\"\nelse\n#Note\uff1aUse current top directory clang-format\n    STYLE=$(git rev-parse --show-toplevel)\/.clang-format\n    if &#91; -n \"${STYLE}\" ] ; then\n        STYLEARG=\"-style=file\"\n    fi\nfi\necho \"format config file is $STYLE\"\nformat_file() {\n  file=\"${1}\"\n  echo \"Will format $file automatically...\"\n  if &#91; -f $file ]; then\n    clang-format -i ${STYLEARG} ${1}\n    git add ${1}\n  fi\n}\ncase \"${1}\" in\n  --about )\n    echo \"Runs clang-format on source files\"\n    ;;\n  * )\n    for file in `git diff-index --cached --name-only HEAD | grep -iE '\\.(cpp|cc|h|hpp)$' ` ; do\n      format_file \"${file}\"\n    done\n    ;;\nesac\n<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"has-text-align-justify\">\u8fd8\u9700\u8981\u8bf4\u660e\u7684\u662f.git\/hooks\/\u5185\u5bb9\u662f\u65e0\u6cd5\u63d0\u4ea4\u5230git\u4ed3\u5e93\u7684\uff0c\u90a3\u4e48\u6211\u4eec\u5982\u4f55\u5c06\u8fd9\u4e00\u4efdpre-commit\u6587\u4ef6\u540c\u6b65\u5230\u6240\u6709\u5f00\u53d1\u8005\u7684\u5de5\u7a0b\u5185\u5462\uff0c\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u9700\u8981\u501f\u52a9\u7b2c\u4e8c\u4e2a\u811a\u672c\uff0c\u5047\u8bbe\u547d\u540d\u4e3aDevelopInit.sh\uff0c\u5e76\u5728\u6211\u4eec\u7684git\u4ed3\u5e93\u5185\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aDevelopmentSetup\u7684\u76ee\u5f55\uff0c\u5c06\u5199\u597d\u7684pre-commit\u6587\u4ef6\u653e\u5728\u8be5\u76ee\u5f55\u5185\uff0c\u7f16\u5199 DevelopInit.sh \u811a\u672c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code># \u83b7\u53d6\u811a\u672c\u8def\u5f84\ncd \"$(dirname \"$BASH_SOURCE\")\"\nscript_file=$(pwd)\/$(basename \"$BASH_SOURCE\")\nscript_path=$(dirname \"$script_file\")\ncd - &gt;\/dev\/null\n\n#\u62f7\u8d1dhooks\u5230\u5bf9\u5e94\u76ee\u5f55\ncp -fv $script_path\/DevelopmentSetup\/pre-commit  $script_path\/.git\/hooks\/\n<\/code><\/pre>\n<\/div>\n\n\n\n<p class=\"has-text-align-justify\">\u5c06DevelopInit.sh\u811a\u672c\u653e\u7f6e\u5728\u4e0e.git\u540c\u4e00\u76ee\u5f55\u5c42\u7ea7\u4e0b\uff0c\u63d0\u4ea4\u5230git\u4ee3\u7801\u4ed3\u5e93\u540e\u56e2\u961f\u6210\u5458\u90fd\u8fdb\u884c\u540c\u6b65\u5e76\u6267\u884c DevelopInit.sh \u811a\u672c\uff0c\u6267\u884c\u4e4b\u540e\u5927\u5bb6\u7684\u672c\u5730\u4ed3\u5e93\u90fd\u4f1a\u5728\u63d0\u4ea4\u65f6\u81ea\u52a8\u4f7f\u7528clang-format\u8fdb\u884c\u683c\u5f0f\u5316\u5566\u3002<\/p>\n\n\n\n<p class=\"has-text-align-justify\">\u5728\u8fd9\u91cc\u6211\u4e5f\u5c06\u6211\u81ea\u5df1\u7528\u7684.clang-format\u6587\u4ef6\u5206\u4eab\u7ed9\u5927\u5bb6\uff0c\u5f53\u7136\u4e86\u6211\u7684\u4ee3\u7801\u98ce\u683c\u662fC++\u7684\uff0c\u57fa\u4e8eLLVM\u8fdb\u884c\u4fee\u6539\u7684\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<pre class=\"wp-block-code\"><code>---\nLanguage:        Cpp\n# BasedOnStyle:  LLVM\nAccessModifierOffset: -4\n# \u5f00\u62ec\u53f7(\u5f00\u5706\u62ec\u53f7\u3001\u5f00\u5c16\u62ec\u53f7\u3001\u5f00\u65b9\u62ec\u53f7)\u540e\u7684\u5bf9\u9f50:\nAlignAfterOpenBracket: Align\n# \u8fde\u7eed\u8d4b\u503c\u65f6\uff0c\u5bf9\u9f50\u6240\u6709\u7b49\u53f7\nAlignConsecutiveAssignments: false\n# \u8fde\u7eed\u58f0\u660e\u65f6\uff0c\u5bf9\u9f50\u6240\u6709\u58f0\u660e\u7684\u53d8\u91cf\u540d\nAlignConsecutiveDeclarations: false\nAlignEscapedNewlines: Left\n# \u6c34\u5e73\u5bf9\u9f50\u4e8c\u5143\u548c\u4e09\u5143\u8868\u8fbe\u5f0f\u7684\u64cd\u4f5c\u6570\nAlignOperands: false\n# \u5bf9\u9f50\u8fde\u7eed\u7684\u5c3e\u968f\u7684\u6ce8\u91ca\nAlignTrailingComments: true\n# \u5141\u8bb8\u51fd\u6570\u58f0\u660e\u7684\u6240\u6709\u53c2\u6570\u5728\u653e\u5728\u4e0b\u4e00\u884c\nAllowAllParametersOfDeclarationOnNextLine: false\n# \u5141\u8bb8\u77ed\u7684\u5757\u653e\u5728\u540c\u4e00\u884c\nAllowShortBlocksOnASingleLine: false\n# \u5141\u8bb8\u77ed\u7684case\u6807\u7b7e\u653e\u5728\u540c\u4e00\u884c\nAllowShortCaseLabelsOnASingleLine: false\n# \u5141\u8bb8\u77ed\u7684\u51fd\u6570\u653e\u5728\u540c\u4e00\u884c\nAllowShortFunctionsOnASingleLine: Inline\n# \u5141\u8bb8\u77ed\u7684if\u8bed\u53e5\u4fdd\u6301\u5728\u540c\u4e00\u884c\nAllowShortIfStatementsOnASingleLine: false\n# \u5141\u8bb8\u77ed\u7684\u5faa\u73af\u4fdd\u6301\u5728\u540c\u4e00\u884c\nAllowShortLoopsOnASingleLine: false\n# \u603b\u662f\u5728\u5b9a\u4e49\u8fd4\u56de\u7c7b\u578b\u540e\u6362\u884c(deprecated)\nAlwaysBreakAfterDefinitionReturnType: None\n# \u603b\u662f\u5728\u8fd4\u56de\u7c7b\u578b\u540e\u6362\u884c:\nAlwaysBreakAfterReturnType: None\n# \u603b\u662f\u5728\u591a\u884cstring\u5b57\u9762\u91cf\u524d\u6362\u884c\nAlwaysBreakBeforeMultilineStrings: true\n# \u603b\u662f\u5728template\u58f0\u660e\u540e\u6362\u884c\nAlwaysBreakTemplateDeclarations: false\n# false\u8868\u793a\u51fd\u6570\u5b9e\u53c2\u90fd\u5728\u540c\u4e00\u884c\nBinPackArguments: true\n# false\u8868\u793a\u6240\u6709\u5f62\u53c2\u90fd\u5728\u540c\u4e00\u884c\nBinPackParameters: false\n# \u5927\u62ec\u53f7\u6362\u884c\uff0c\u53ea\u6709\u5f53BreakBeforeBraces\u8bbe\u7f6e\u4e3aCustom\u65f6\u624d\u6709\u6548\nBraceWrapping:\n  AfterClass: false\n  AfterControlStatement: false\n  AfterEnum: false\n  AfterExternBlock: false\n  AfterFunction: true\n  AfterNamespace: false\n  AfterObjCDeclaration: false\n  AfterStruct: false\n  AfterUnion: false\n  BeforeCatch: false\n  BeforeElse: false\n  IndentBraces: false\n  SplitEmptyFunction: true\n  SplitEmptyNamespace: true\n  SplitEmptyRecord: true\nBreakAfterJavaFieldAnnotations: true\n# \u5728\u4e8c\u5143\u8fd0\u7b97\u7b26\u524d\u6362\u884c\nBreakBeforeBinaryOperators: NonAssignment\n# \u5728\u5927\u62ec\u53f7\u524d\u6362\u884c\nBreakBeforeBraces: Allman\n\nBreakBeforeInheritanceComma: false\n# \u5728\u4e09\u5143\u8fd0\u7b97\u7b26\u524d\u6362\u884c\nBreakBeforeTernaryOperators: false\n# \u5728\u6784\u9020\u51fd\u6570\u7684\u521d\u59cb\u5316\u5217\u8868\u7684\u9017\u53f7\u524d\u6362\u884c\nBreakConstructorInitializers: BeforeComma\nBreakConstructorInitializersBeforeComma: true\nBreakStringLiterals: true\n# \u6bcf\u884c\u5b57\u7b26\u7684\u9650\u5236\uff0c0\u8868\u793a\u6ca1\u6709\u9650\u5236\nColumnLimit: 0\nCommentPragmas: '^ IWYU pragma:'\nCompactNamespaces: true\nConstructorInitializerAllOnOneLineOrOnePerLine: false\nConstructorInitializerIndentWidth: 0\nContinuationIndentWidth: 13\nCpp11BracedListStyle: false\nDerivePointerAlignment: true\nDisableFormat: false\nExperimentalAutoDetectBinPacking: true\nFixNamespaceComments: true\nForEachMacros:\n- foreach\n- Q_FOREACH\n- BOOST_FOREACH\nIncludeBlocks: Preserve\nIncludeCategories:\n- Priority: 2\n  Regex: ^\"(llvm|llvm-c|clang|clang-c)\/\n- Priority: 3\n  Regex: ^(&lt;|\"(gtest|gmock|isl|json)\/)\n- Priority: 1\n  Regex: .*\nIncludeIsMainRegex: (Test)?$\nIndentCaseLabels: false\nIndentPPDirectives: None\nIndentWidth: 4\nIndentWrappedFunctionNames: false\nJavaScriptQuotes: Leave\nJavaScriptWrapImports: false\nKeepEmptyLinesAtTheStartOfBlocks: false\nLanguage: Cpp\nMacroBlockBegin: ''\nMacroBlockEnd: ''\nMaxEmptyLinesToKeep: 1\nNamespaceIndentation: None\nObjCBlockIndentWidth: 4\nObjCSpaceAfterProperty: true\nObjCSpaceBeforeProtocolList: true\nPenaltyBreakAssignment: 2\nPenaltyBreakBeforeFirstCallParameter: 15\nPenaltyBreakComment: 302\nPenaltyBreakFirstLessLess: 98\nPenaltyBreakString: 786\nPenaltyExcessCharacter: 1141897\nPenaltyReturnTypeOnItsOwnLine: 81\nPointerAlignment: Left\nReflowComments: true\nSortIncludes: false\nSortUsingDeclarations: true\nSpaceAfterCStyleCast: false\nSpaceAfterTemplateKeyword: true\nSpaceBeforeAssignmentOperators: true\nSpaceBeforeParens: ControlStatements\nSpaceInEmptyParentheses: false\nSpacesBeforeTrailingComments: 1\nSpacesInAngles: false\nSpacesInCStyleCastParentheses: false\nSpacesInContainerLiterals: true\nSpacesInParentheses: false\nSpacesInSquareBrackets: false\nStandard: Cpp11\nTabWidth: 9\nUseTab: Never\n...\n<\/code><\/pre>\n<\/div>\n\n\n\n<p>\u7ed9\u5927\u5bb6\u770b\u770b\u5b9e\u9645\u6548\u679c\u5427\uff01<\/p>\n\n\n\n<p>\u683c\u5f0f\u5316\u524d\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"674\" src=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-11-1024x674.png\" alt=\"\" class=\"wp-image-3702\" srcset=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-11-1024x674.png 1024w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-11-300x198.png 300w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-11-768x506.png 768w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-11-18x12.png 18w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-11.png 1037w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u683c\u5f0f\u5316\u540e\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"893\" height=\"690\" src=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-12.png\" alt=\"\" class=\"wp-image-3703\" srcset=\"https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-12.png 893w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-12-300x232.png 300w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-12-768x593.png 768w, https:\/\/blog.coderfan.org\/wp-content\/uploads\/2022\/01\/image-12-16x12.png 16w\" sizes=\"auto, (max-width: 893px) 100vw, 893px\" \/><\/figure>\n\n\n\n<p class=\"has-text-align-justify\">\u4e0d\u5f97\u4e0d\u8bf4\uff0c\u683c\u5f0f\u5316\u540e\u8fd8\u662f\u597d\u770b\u8bb8\u591a\u3002\u597d\u4e86\uff0c\u4ee5\u4e0a\u5c31\u662f\u8fd9\u7bc7\u535a\u5ba2\u7684\u5168\u90e8\u5185\u5bb9\u4e86\uff0c\u5e0c\u671b\u5927\u5bb6\u4f1a\u559c\u6b22\u3002\u5982\u679c\u5404\u4f4d\u6709\u95ee\u9898\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bc4\u8bba\u544a\u8bc9\u6211\uff0c\u6211\u4f1a\u4e00\u4e00\u89e3\u7b54\u7684\u3002<\/p>\n        <div class=\"booster-block booster-reactions-block\">\n            <div class=\"twp-reactions-icons\">\n                \n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-1\" post-id=\"3695\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/happy.svg\" alt=\"Happy\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">\n                        Happy                    <\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">2<\/span>\n                        \n                                                <span class=\"twp-react-percent\"><span>100<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-2\" post-id=\"3695\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/sad.svg\" alt=\"Sad\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">\n                        Sad                    <\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                                                                        <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-3\" post-id=\"3695\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/excited.svg\" alt=\"Excited\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">\n                        Excited                    <\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                                                                        <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-6\" post-id=\"3695\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/sleepy.svg\" alt=\"Sleepy\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">\n                        Sleepy                    <\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                        \n                                                <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-4\" post-id=\"3695\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/angry.svg\" alt=\"Angry\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">Angry<\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                                                                        <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                        \n                    <\/div>\n                <\/div>\n\n                <div class=\"twp-reacts-wrap\">\n                    <a react-data=\"be-react-5\" post-id=\"3695\" class=\"be-face-icons un-reacted\" href=\"javascript:void(0)\">\n                        <img decoding=\"async\" src=\"https:\/\/blog.coderfan.org\/wp-content\/plugins\/booster-extension\/\/assets\/icon\/surprise.svg\" alt=\"Surprise\">\n                    <\/a>\n                    <div class=\"twp-reaction-title\">Surprise<\/div>\n                    <div class=\"twp-count-percent\">\n                                                    <span style=\"display: none;\" class=\"twp-react-count\">0<\/span>\n                                                                        <span class=\"twp-react-percent\"><span>0<\/span> %<\/span>\n                                            <\/div>\n                <\/div>\n\n            <\/div>\n        <\/div>","protected":false},"excerpt":{"rendered":"<p>\u56e2\u961f\u4ee3\u7801\u683c\u5f0f\u5316\u65b9\u6848\uff0c\u5927\u5bb6\u4e00\u8d77\u5199\u51fa\u6f02\u4eae\u7684\u4ee3\u7801\u5427~<\/p>","protected":false},"author":1,"featured_media":5076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":2,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17],"tags":[51],"class_list":["post-3695","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","tag-51"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[]}},"aioseo_notices":[],"featured_image_urls":{"full":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus.png",1024,512,false],"thumbnail":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus-150x150.png",150,150,true],"medium":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus-300x150.png",300,150,true],"medium_large":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus-768x384.png",768,384,true],"large":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus.png",1024,512,false],"1536x1536":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus.png",1024,512,false],"2048x2048":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus.png",1024,512,false],"trp-custom-language-flag":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus-18x9.png",18,9,true]},"post_excerpt_stackable":"<p>\u56e2\u961f\u4ee3\u7801\u683c\u5f0f\u5316\u65b9\u6848\uff0c\u5927\u5bb6\u4e00\u8d77\u5199\u51fa\u6f02\u4eae\u7684\u4ee3\u7801\u5427~<\/p>\n","category_list":"<a href=\"https:\/\/blog.coderfan.org\/en\/category\/programming\" rel=\"category tag\">\u7f16\u7a0b\u8bed\u8a00<\/a>","author_info":{"name":"FranzKafka95","url":"https:\/\/blog.coderfan.org\/en\/author\/yushenglonely95"},"comments_num":"1 comment","featured_image_urls_v2":{"full":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus.png",1024,512,false],"thumbnail":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus-150x150.png",150,150,true],"medium":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus-300x150.png",300,150,true],"medium_large":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus-768x384.png",768,384,true],"large":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus.png",1024,512,false],"1536x1536":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus.png",1024,512,false],"2048x2048":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus.png",1024,512,false],"trp-custom-language-flag":["https:\/\/blog.coderfan.org\/wp-content\/uploads\/2024\/01\/cplus-18x9.png",18,9,true]},"post_excerpt_stackable_v2":"<p>\u56e2\u961f\u4ee3\u7801\u683c\u5f0f\u5316\u65b9\u6848\uff0c\u5927\u5bb6\u4e00\u8d77\u5199\u51fa\u6f02\u4eae\u7684\u4ee3\u7801\u5427~<\/p>\n","category_list_v2":"<a href=\"https:\/\/blog.coderfan.org\/en\/category\/programming\" rel=\"category tag\">\u7f16\u7a0b\u8bed\u8a00<\/a>","author_info_v2":{"name":"FranzKafka95","url":"https:\/\/blog.coderfan.org\/en\/author\/yushenglonely95"},"comments_num_v2":"1 comment","_links":{"self":[{"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/posts\/3695","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/comments?post=3695"}],"version-history":[{"count":4,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/posts\/3695\/revisions"}],"predecessor-version":[{"id":4078,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/posts\/3695\/revisions\/4078"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/media\/5076"}],"wp:attachment":[{"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/media?parent=3695"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/categories?post=3695"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coderfan.org\/en\/wp-json\/wp\/v2\/tags?post=3695"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}