소스 검색

tools/dev/starpu_check_undocumented.sh: also check if macros are documented

Nathalie Furmento 13 년 전
부모
커밋
d4e559d910
1개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 11 0
      tools/dev/starpu_check_undocumented.sh

+ 11 - 0
tools/dev/starpu_check_undocumented.sh

@@ -53,3 +53,14 @@ for enum in $enums ; do
 	echo "enum ${redcolor}${enum}${stcolor} is not (or incorrectly) documented"
     fi
 done
+
+echo
+
+macros=$(grep "define\b" include/*|grep -v deprecated|grep "#" | grep -v "__" | sed 's/#[ ]*/#/g' | awk '{print $2}' | awk -F'(' '{print $1}' | sort|uniq)
+for macro in $macros ; do
+    x=$(grep "$macro\b" doc/starpu.texi doc/chapters/*texi | grep defmac)
+    if test "$x" == "" ; then
+	echo "macro ${redcolor}${macro}${stcolor} is not (or incorrectly) documented"
+    fi
+done
+