<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>C/C++ on 公众号「沈显鹏」</title><link>https://shenxianpeng.github.io/tags/c/c++/</link><description>Recent content in C/C++ on 公众号「沈显鹏」</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>xianpeng.shen@gmail.com (沈显鹏)</managingEditor><webMaster>xianpeng.shen@gmail.com (沈显鹏)</webMaster><copyright>Copyright © 2017–2026 Xianpeng Shen. All rights reserved.</copyright><lastBuildDate>Wed, 20 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://shenxianpeng.github.io/tags/c/c++/index.xml" rel="self" type="application/rss+xml"/><item><title>cpp-linter-hooks：C/C++ 项目最完整的 pre-commit 方案</title><link>https://shenxianpeng.github.io/posts/2026/cpp-linter-hooks/</link><pubDate>Wed, 20 May 2026 00:00:00 +0000</pubDate><author>xianpeng.shen@gmail.com (沈显鹏)</author><guid>https://shenxianpeng.github.io/posts/2026/cpp-linter-hooks/</guid><description>pre-commit 生态里 C/C++ 的工具一直比较薄弱。cpp-linter-hooks 是目前唯一同时支持 clang-format 和 clang-tidy 的 pre-commit hook，还内置了编译数据库自动检测、版本锁定、自动修复等实用功能。本文介绍它的用法和设计思路。</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://shenxianpeng.github.io/posts/2026/cpp-linter-hooks/featured.png"/></item></channel></rss>