Skip to content

Commit 3dc1c5c

Browse files
author
Peter D. Barnes, Jr.
committed
doc: doxy: Adjust introspected-command-line.h header to give a Doxygen warning note like introspected-doxygen.h
1 parent ca1bba4 commit 3dc1c5c

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

build-support/macros-and-definitions.cmake

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -967,11 +967,15 @@ macro(process_options)
967967

968968
file(
969969
WRITE ${CMAKE_BINARY_DIR}/introspected-command-line-preamble.h
970-
"/* This file is automatically generated by
971-
CommandLine::PrintDoxygenUsage() from the CommandLine configuration
972-
in various example programs. Do not edit this file! Edit the
973-
CommandLine configuration in those files instead.
974-
*/\n"
970+
"/**
971+
* @file
972+
* @ingroup utils
973+
* Doxygen docs generated from the ns3::CommandLine options for each example.
974+
* @note This file is automatically generated by
975+
* ns3::CommandLine::PrintDoxygenUsage() from the ns3::CommandLine configuration
976+
* in various example programs. Do not edit this file! Edit the
977+
* ns3::CommandLine configuration in those files instead.
978+
*/\n"
975979
)
976980
add_custom_target(
977981
assemble-introspected-command-line

src/core/model/command-line.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ CommandLine::PrintDoxygenUsage() const
473473

474474
std::fstream os(outf, std::fstream::out);
475475

476-
os << "/**\n \\file " << m_shortName << ".cc\n"
476+
os << "/**\n @file " << m_shortName << ".cc\n"
477477
<< "<h3>Usage</h3>\n"
478478
<< "<code>$ ./ns3 run \"" << m_shortName << (!m_options.empty() ? " [Program Options]" : "")
479479
<< (!nonOptions.empty() ? " [Program Arguments]" : "") << "\"</code>\n";
@@ -501,12 +501,12 @@ CommandLine::PrintDoxygenUsage() const
501501

502502
if (!m_options.empty())
503503
{
504-
listOptions("Program Options", m_options, "\\c --");
504+
listOptions("Program Options", m_options, "@c --");
505505
}
506506

507507
if (!nonOptions.empty())
508508
{
509-
listOptions("Program Arguments", nonOptions, "\\c ");
509+
listOptions("Program Arguments", nonOptions, "@c ");
510510
}
511511

512512
os << "*/" << std::endl;

utils/print-introspected-doxygen.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,7 @@ main(int argc, char* argv[])
17151715
std::cout << std::endl;
17161716
std::cout << commentStart << file << "\n"
17171717
<< sectionStart << "utils\n"
1718-
<< "Doxygen docs generated from the TypeId database.\n"
1718+
<< "Doxygen docs generated from the ns3::TypeId database.\n"
17191719
<< note << "This file is automatically generated by " << codeWord
17201720
<< "print-introspected-doxygen.cc. Do not edit this file! "
17211721
<< "Edit that file instead.\n"

0 commit comments

Comments
 (0)