aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2015-06-13 18:33:45 -0700
committerbnewbold <bnewbold@robocracy.org>2015-06-13 20:28:01 -0700
commit1653aa5b2d360f91a44813483c4641d8c949835c (patch)
tree32a9b4659630ae3ecb3dc6230febfa585d4d8938
parentce9c1210356c758a7e1d322521e5eda25cecde63 (diff)
downloadlibrambutan-1653aa5b2d360f91a44813483c4641d8c949835c.tar.gz
librambutan-1653aa5b2d360f91a44813483c4641d8c949835c.zip
stm32f2-f4: fix doxygen evil_mangler
Now detects "stm32f2-f4" as a valid series, and rewrites it to "stm32f2_f4" as a namespace. Documentation will need to be refactored to point at this new namespace.
-rwxr-xr-xsupport/doxygen/evil_mangler.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/doxygen/evil_mangler.awk b/support/doxygen/evil_mangler.awk
index b07da72..6c338fa 100755
--- a/support/doxygen/evil_mangler.awk
+++ b/support/doxygen/evil_mangler.awk
@@ -16,7 +16,7 @@
BEGIN {
# For extracting series component from header FILENAME.
- series_regex = "/stm32[flw][0-9]*/";
+ series_regex = "/stm32[flw][0-9]*-?[flw]?[0-9]*/";
# Holds header FILENAME. Cargo-culted; not sure why it's necessary.
f = "";
# Holds series component.
@@ -27,6 +27,7 @@ BEGIN {
f = FILENAME;
match(f, series_regex);
series = substr(f, RSTART + 1, RLENGTH - 2);
+ sub(/-/, "_", series);
printf("namespace %s {\n", series);
}
print;