mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 02:23:49 +01:00
Merge pull request #17082 from kaspar030/add_doxy_pattern_script
dist/tools/doccheck: add create_pattern.sh
This commit is contained in:
commit
2f6b7bc651
17
dist/tools/doccheck/create_pattern.sh
vendored
Executable file
17
dist/tools/doccheck/create_pattern.sh
vendored
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# This sed script converts doxygen error messages to line number agnostic regex
|
||||||
|
# patterns as used by doccheck/check.sh
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# dist/tools/doccheck/check.sh \
|
||||||
|
# | grep boards/nucleo-g071rb/include/periph_conf.h \
|
||||||
|
# | dist/tools/doccheck/create_pattern.sh >> dist/tools/doccheck/exclude_patterns
|
||||||
|
#
|
||||||
|
# This would add all remaining warnings of nucleo-g071rb's periph_conf.h to the
|
||||||
|
# exclude_patterns.
|
||||||
|
#
|
||||||
|
|
||||||
|
sed -E -e "s#^(.*:)([0-9]+): #\1DIGITS_MAGIC: #" \
|
||||||
|
-e 's/[]\\.$*{}|+?()[^-]/\\&/g' \
|
||||||
|
-e 's/:DIGITS_MAGIC:/:[0-9]+:/'
|
||||||
Loading…
x
Reference in New Issue
Block a user