functional

main
Brett 2023-12-23 19:32:49 -05:00
parent 42a27d021b
commit 97170b3338
9 changed files with 37150 additions and 20688 deletions

Binary file not shown.

View File

@ -91,3 +91,10 @@
9197 9285 1703361714143822928 gl_doc_generator 7126d327cf7747a5 9197 9285 1703361714143822928 gl_doc_generator 7126d327cf7747a5
2 2121 1703363408342744474 CMakeFiles/gl_doc_generator.dir/src/main.cpp.o f2846e1dc111dd8 2 2121 1703363408342744474 CMakeFiles/gl_doc_generator.dir/src/main.cpp.o f2846e1dc111dd8
2121 2208 1703363408430743349 gl_doc_generator 7126d327cf7747a5 2121 2208 1703363408430743349 gl_doc_generator 7126d327cf7747a5
2 5183 1703377052502062858 CMakeFiles/gl_doc_generator.dir/src/main.cpp.o f2846e1dc111dd8
3 10821 1703377058137993759 CMakeFiles/gl_doc_generator.dir/src/load_file.cpp.o e3be46751e904b25
10821 10981 1703377058297991808 gl_doc_generator 7126d327cf7747a5
2 9340 1703377361035007057 CMakeFiles/gl_doc_generator.dir/src/load_file.cpp.o e3be46751e904b25
9340 9427 1703377361123006330 gl_doc_generator 7126d327cf7747a5
2 9584 1703377387770788022 CMakeFiles/gl_doc_generator.dir/src/load_file.cpp.o e3be46751e904b25
9584 9676 1703377387862787277 gl_doc_generator 7126d327cf7747a5

View File

@ -1,3 +1,3 @@
Start testing: Dec 23 18:49 EST Start testing: Dec 23 19:23 EST
---------------------------------------------------------- ----------------------------------------------------------
End testing: Dec 23 18:49 EST End testing: Dec 23 19:23 EST

Binary file not shown.

30702
gl_doc.h

File diff suppressed because it is too large Load Diff

27114
gl_doc_partial.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -257,7 +257,6 @@ namespace blt
auto lines = blt::string::split(str, '\n'); auto lines = blt::string::split(str, '\n');
for (auto& line : lines) for (auto& line : lines)
{ {
blt::string::trim(line);
if (line.empty()) if (line.empty())
continue; continue;
if (blt::string::contains(line, "@code") && !blt::string::contains(line, func_name + "(")) if (blt::string::contains(line, "@code") && !blt::string::contains(line, func_name + "("))
@ -277,7 +276,15 @@ namespace blt
for (size_t i = 0; i < lines.size(); i++) for (size_t i = 0; i < lines.size(); i++)
{ {
auto& line = lines[i]; auto& line = lines[i];
blt::string::trim(line); if (brief)
{
if (!(blt::string::contains(line, "@name") || blt::string::contains(line, "@code") || blt::string::contains(line, "@usage") ||
blt::string::contains(line, "/**") || blt::string::contains(line, "*/")))
continue;
new_str += line += '\n';
continue;
}
if (line.empty()) if (line.empty())
continue; continue;
if (clear_see_also && blt::string::contains(line, "@see")) if (clear_see_also && blt::string::contains(line, "@see"))