# ----------------------------------------------------------------------------- # Script # doxyFilter.sed # # Description # Transform human-readable tags such as 'Description' into the Doxygen # equivalent # ----------------------------------------------------------------------------- # new FSF address /^License/,/\*\//{ /^License/,\%http://www.gnu.org/licenses%{ s?^License.*?\*\/\ \/\*! \\file %realFilePath%\ Original source file %fileName%\ \ \ \ \ \ \ \ \ ? /^ /d } # remove entry /^Application *$/{ N N d } # remove entry /^Global *$/{ N N d } # Primitive # typename # => # \\relates typename # /^Primitive *$/,/^[^ ]/{ s/^Primitive *$// s/^ /\\relates / } # Class # Foam::className # => # \\class Foam::className # # Class # Foam::namespaceName:: # className # => # \\class Foam::namespaceName::className # /^Class *$/{ N :loop /.*:: *$/{ N s/^ *\(.*\) *\n *\(.*\) */\1\2/ } t loop s/Class *\n *\(.*\) */\\class \1/ } # Group # groupName # => # \ingroup namespaceName # /^Group *$/,/^[^ ]/{ s/^Group// s/^ /\\ingroup / } # Namespace # namespaceName # => # \namespace namespaceName # /^Namespace *$/,/^[^ ]/{ s/^Namespace// s/^ /\\namespace / } # Typedef # Foam::def # => # \typedef Foam::def /^Typedef *$/,/^[^ ]/{ s/^Typedef// s/^ /\\typedef / } # add anchor and use \brief # the first paragraph will be 'brief' and the others 'detail' /^Description *$/,/^[^ ]/{ /^Description/c\ \\brief s/^ // } /^Usage *$/,/^[^ ]/{ /^Usage/c\ \\par Usage s/^ // } /^See *Also *$/,/^[^ ]/{ /^See *Also/c\ \\see s/^ // } /^Note *$/,/^[^ ]/{ /^Note/c\ \\note s/^ // } # remove ToDo paragraph to avoid them showing on related pages /^To[Dd]o *$/,/^[^ ]/{ s/^To[Dd]o *$// s/^ .*// } /^Warning *$/,/^[^ ]/{ /^Warning/c\ \\warning s/^ // } /^Deprecated *$/,/^[^ ]/{ /^Deprecated/c\ \\deprecated s/^ // } /^SourceFiles *$/,/^$/{ s?SourceFiles?\\par Source files\