diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2000-02-27 17:41:30 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2000-02-27 17:41:30 (GMT) |
commit | f4f3f1676896e6fd0c0044f001eda9829d9b3f60 (patch) | |
tree | 0e10644b6ed5c8878dc59e723fe3dcd591d57839 /src/config.l | |
parent | a81ce4743212122ae050e5efbc4bfda92e6a664e (diff) | |
download | Doxygen-f4f3f1676896e6fd0c0044f001eda9829d9b3f60.zip Doxygen-f4f3f1676896e6fd0c0044f001eda9829d9b3f60.tar.gz Doxygen-f4f3f1676896e6fd0c0044f001eda9829d9b3f60.tar.bz2 |
Release 2000-02-27
Diffstat (limited to 'src/config.l')
-rw-r--r-- | src/config.l | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/src/config.l b/src/config.l index d5d2227..3ab72bc 100644 --- a/src/config.l +++ b/src/config.l @@ -144,10 +144,10 @@ bool Config::includeGraphFlag = TRUE; bool Config::gfxHierarchyFlag = TRUE; bool Config::showIncFileFlag = TRUE; bool Config::stripCommentsFlag = TRUE; +bool Config::sortMembersFlag = TRUE; int Config::tabSize = 8; int Config::colsInAlphaIndex = 5; - /* ----------------------------------------------------------------- * * static variables @@ -281,6 +281,7 @@ static int yyread(char *buf,int max_size) <Start>"RTF_HYPERLINKS"[ \t]*"=" { BEGIN(GetBool); b=&Config::rtfHyperFlag; } <Start>"SHOW_INCLUDE_FILES"[ \t]*"=" { BEGIN(GetBool); b=&Config::showIncFileFlag; } <Start>"STRIP_CODE_COMMENTS"[ \t]*"=" { BEGIN(GetBool); b=&Config::stripCommentsFlag; } +<Start>"SORT_MEMBER_DOCS"[ \t]*"=" { BEGIN(GetBool); b=&Config::sortMembersFlag; } <Start>[a-z_A-Z0-9]+ { err("Warning: ignoring unknown tag `%s' at line %d\n",yytext,yyLineNr); } <GetString,GetBool>\n { yyLineNr++; BEGIN(Start); } <GetStrList>\n { @@ -499,6 +500,7 @@ void Config::init() Config::gfxHierarchyFlag = TRUE; Config::showIncFileFlag = TRUE; Config::stripCommentsFlag = TRUE; + Config::sortMembersFlag = TRUE; } void writeTemplateConfig(QFile *f,bool sl) @@ -641,7 +643,7 @@ void writeTemplateConfig(QFile *f,bool sl) if (!sl) { t <<"\n"; - t << "# If the ALWAYS_DETAILS_SEC and REPEAT_BRIEF tags are both set to YES then\n"; + t << "# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then\n"; t << "# Doxygen will generate a detailed section even if there is only a brief\n"; t << "# description.\n"; t <<"\n"; @@ -752,7 +754,7 @@ void writeTemplateConfig(QFile *f,bool sl) if (!sl) { t << "\n"; - t << "# if the INHERIT_DOCS tag is set to YES (the default) then an undocumented\n"; + t << "# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented\n"; t << "# member inherits the documentation from any documented member that it\n"; t << "# reimplements.\n"; t << "\n"; @@ -761,7 +763,7 @@ void writeTemplateConfig(QFile *f,bool sl) if (!sl) { t << "\n"; - t << "# if the INLINE_INFO tag is set to YES (the default) then a tag [inline]\n"; + t << "# If the INLINE_INFO tag is set to YES (the default) then a tag [inline]\n"; t << "# is inserted in the documentation for inline members.\n"; t << "\n"; } @@ -769,7 +771,17 @@ void writeTemplateConfig(QFile *f,bool sl) if (!sl) { t << "\n"; - t << "# the TAB_SIZE tag can be used to set the number of spaces in a tab.\n"; + t << "# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen\n"; + t << "# will sort the (detailed) documentation of file and class members \n"; + t << "# alphabetically by member name. If set to NO the members will appear in\n"; + t << "# declaration order.\n"; + t << "\n"; + } + t << "SORT_MEMBER_DOCS = YES\n"; + if (!sl) + { + t << "\n"; + t << "# The TAB_SIZE tag can be used to set the number of spaces in a tab.\n"; t << "# Doxygen uses this value to replace tabs by spaces in code fragments.\n"; t << "\n"; } |