Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Side by Side Diff: Doxyfile

Issue 1510893004: Subzero: Improve the Doxygen input filter for TODO extraction. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Doxyfile 1.8.6 1 # Doxyfile 1.8.6
2 2
3 # This file describes the settings to be used by the documentation system 3 # This file describes the settings to be used by the documentation system
4 # doxygen (www.doxygen.org) for a project. 4 # doxygen (www.doxygen.org) for a project.
5 # 5 #
6 # All text after a double hash (##) is considered a comment and is placed in 6 # All text after a double hash (##) is considered a comment and is placed in
7 # front of the TAG it is preceding. 7 # front of the TAG it is preceding.
8 # 8 #
9 # All text after a single hash (#) is considered a comment and will be ignored. 9 # All text after a single hash (#) is considered a comment and will be ignored.
10 # The format is: 10 # The format is:
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
842 # where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the 842 # where <filter> is the value of the INPUT_FILTER tag, and <input-file> is the
843 # name of an input file. Doxygen will then use the output that the filter 843 # name of an input file. Doxygen will then use the output that the filter
844 # program writes to standard output. If FILTER_PATTERNS is specified, this tag 844 # program writes to standard output. If FILTER_PATTERNS is specified, this tag
845 # will be ignored. 845 # will be ignored.
846 # 846 #
847 # Note that the filter must not add or remove lines; it is applied before the 847 # Note that the filter must not add or remove lines; it is applied before the
848 # code is scanned, but not when the output code is generated. If lines are added 848 # code is scanned, but not when the output code is generated. If lines are added
849 # or removed, the anchors will not be placed correctly. 849 # or removed, the anchors will not be placed correctly.
850 850
851 # This script transforms TODO strings into a @todo form. It also transforms 851 # This script transforms TODO strings into a @todo form. It also transforms
852 # "//" into "///" (but only when there are exactly 2 '/' characters in a row). 852 # "//" comments into doxygen "///" comments on every line, starting from a line
853 # The first pattern matches "//" at the beginning of the line, and the second 853 # containing a commented TODO, and ending at the next line without a comment.
854 # pattern matches a mid-line "//". The third pattern matches "TODO " or
855 # "TODO(owner)" or "TODO:". This should cover the usual TODO patterns, while
856 # not falsely matching e.g. a call to a function whose name ends in "TODO".
857 854
858 INPUT_FILTER = "sed -e 's?^//\([^/]\)?///\1?' \ 855 INPUT_FILTER = "awk ' \
859 -e 's?\([^/]\)//\([^/]\)?\1///\2?' \ 856 { HasComment = /\/\//; HasTripleSlash = /\/\/\//; HasTodo = / TODO[ (:]/; } \
860 -e 's/ \(TODO[ (:]\)/ @todo \1/g'" 857 HasComment && HasTodo { InTodoBlock = 1; } \
858 !HasComment { InTodoBlock = 0; } \
859 InTodoBlock && !HasTripleSlash { sub(\"//\", \"///\"); } \
860 InTodoBlock { $0 = gensub(/ (TODO[ (:])/, \" @todo \\1\", \"g\", $0); } \
861 { print; }'"
861 862
862 # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern 863 # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern
863 # basis. Doxygen will compare the file name with each pattern and apply the 864 # basis. Doxygen will compare the file name with each pattern and apply the
864 # filter if there is a match. The filters are a list of the form: pattern=filter 865 # filter if there is a match. The filters are a list of the form: pattern=filter
865 # (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how 866 # (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how
866 # filters are used. If the FILTER_PATTERNS tag is empty or if none of the 867 # filters are used. If the FILTER_PATTERNS tag is empty or if none of the
867 # patterns match the file name, INPUT_FILTER is applied. 868 # patterns match the file name, INPUT_FILTER is applied.
868 869
869 FILTER_PATTERNS = 870 FILTER_PATTERNS =
870 871
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 # This tag requires that the tag HAVE_DOT is set to YES. 2304 # This tag requires that the tag HAVE_DOT is set to YES.
2304 2305
2305 GENERATE_LEGEND = YES 2306 GENERATE_LEGEND = YES
2306 2307
2307 # If the DOT_CLEANUP tag is set to YES doxygen will remove the intermediate dot 2308 # If the DOT_CLEANUP tag is set to YES doxygen will remove the intermediate dot
2308 # files that are used to generate the various graphs. 2309 # files that are used to generate the various graphs.
2309 # The default value is: YES. 2310 # The default value is: YES.
2310 # This tag requires that the tag HAVE_DOT is set to YES. 2311 # This tag requires that the tag HAVE_DOT is set to YES.
2311 2312
2312 DOT_CLEANUP = YES 2313 DOT_CLEANUP = YES
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698