We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff2ad2d commit 4b75dcfCopy full SHA for 4b75dcf
contrib/devtools/lint-logs.sh
@@ -13,12 +13,13 @@
13
# ignored
14
15
16
-UNTERMINATED_LOGS=$(git grep "LogPrintf(" -- "*.cpp" | \
+UNTERMINATED_LOGS=$(git grep --extended-regexp "LogPrintf?\(" -- "*.cpp" | \
17
grep -v '\\n"' | \
18
grep -v "/\* Continued \*/" | \
19
+ grep -v "LogPrint()" | \
20
grep -v "LogPrintf()")
21
if [[ ${UNTERMINATED_LOGS} != "" ]]; then
- echo "All calls to LogPrintf() should be terminated with \\n"
22
+ echo "All calls to LogPrintf() and LogPrint() should be terminated with \\n"
23
echo
24
echo "${UNTERMINATED_LOGS}"
25
exit 1
0 commit comments