📄 check-headers.sh
字号:
#!/bin/bashCC=gccpath=/usr/local/includeecho "Checking files in $path..."cd $pathtname=$(tempfile -p check -s .cpp)oname=/tmp/$(basename $tname cpp)sfor i in $(find rtt -maxdepth 2 -type f -name "*.h" -o -name "*.hpp"); do echo "Checking $i..." echo -e "#include <$i>\n" > $tname ${CC} -pipe -Wall -S $tname -I. -o $onamedone rm -f $tname $oname
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -