aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-13 02:29:48 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-04-13 02:29:48 +0000
commit4bfec25e5ecb93c688205b37bc07cd6bd78484dc (patch)
tree7828ea9fa25d040d6d5b470bf02a03aad598edb2
parentff6d5901efd413e3b2d17f2d1dcd61a5e109f742 (diff)
downloadpaludis-4bfec25e5ecb93c688205b37bc07cd6bd78484dc.tar.gz
paludis-4bfec25e5ecb93c688205b37bc07cd6bd78484dc.tar.xz
Better doxygenation for se
-rwxr-xr-xmisc/make_se.bash13
1 files changed, 12 insertions, 1 deletions
diff --git a/misc/make_se.bash b/misc/make_se.bash
index 753e985..3683cb4 100755
--- a/misc/make_se.bash
+++ b/misc/make_se.bash
@@ -73,6 +73,12 @@ while read a ; do
if [[ "${what_to_make}" == "--header" ]] ; then
+ echo "#ifdef DOXYGEN"
+ echo "// doxygen needs this to get namespaces right"
+ echo "namespace ${want_namespace}"
+ echo "{"
+ echo "#endif"
+
doxygen_comment()
{
cat
@@ -87,7 +93,7 @@ while read a ; do
echo " ${want_keys[${k}]}, ///< ${want_key_descriptions[${k}]}"
done
- echo " last_${want_prefix_key}"
+ echo " last_${want_prefix_key} ///< Number of keys in ${want_namespace}::${a}"
echo "};"
@@ -96,6 +102,11 @@ while read a ; do
echo "operator<< (std::ostream &, const $a &);"
echo
+ echo "#ifdef DOXYGEN"
+ echo "// end namespace for doxygen"
+ echo "}"
+ echo "#endif"
+
elif [[ "${what_to_make}" == "--source" ]] ; then
echo "std::ostream &"