Introspecting command-line

6 views
Skip to first unread message

Barnes, Peter D.

unread,
Nov 3, 2025, 5:19:57 PM (3 days ago) Nov 3
to ns-dev...@googlegroups.com
Hello Folks,

Is there a way to construct doc/introspected-command-line.h without​​ doing a full compile?

For doc/introspected-doxygen.h we can do:
$ ./ns3 run print-introspected-doxygen —no-build

For introspected-command-line.h the only thing I’ve come up with is
$ cmake --build cmake-cache --target assemble-introspected-command-line

which depends on run-introspected-command-line, which itself depends on all-test-targets, which builds all the examples.

Thanks,
Peter

_____________________________________________________________

Dr. Peter D. Barnes, Jr.   (he,him)                         CASC Division, B451 R2035
Lawrence Livermore National Laboratory          Computation Directorate
7000 East Avenue, L-561                                      
email:  pdba...@llnl.gov
P. O. Box 808                                                           Voice:  (925) 422-3384
Livermore, California 94550

 

Barnes, Peter D.

unread,
Nov 3, 2025, 8:06:14 PM (3 days ago) Nov 3
to Gabriel Ferreira, ns-dev...@googlegroups.com
I should have added “without reconfiguring”

This is for use in doc/doxygen.warnings.report.sh.  Most of the time one is just editing documentation, so actually compiling isn’t necessary, just wastes a lot of time.  On the other hand I’m also doing some refactoring, so once in a while I do recompile to make sure I haven’t really broken things. 

d.w.r.sh has an option -I (introspection) to run print-introspected-doxygen, if it exists, but without compiling.  This updates the intro…-doxygen.h with whatever was last built, without waiting for a long compile.

I’d like to do the same for introspected-command-line.

P

From: Gabriel Ferreira <gabriel...@live.com>
Date: Monday, November 3, 2025 at 3:07 PM
To: Barnes, Peter D. <barn...@llnl.gov>, ns-dev...@googlegroups.com <ns-dev...@googlegroups.com>
Subject: Re: Introspecting command-line

There isn't now. But depending what are you trying to achieve, there are options. To limit tests/examples to the mode you want to test: ./ns3 configure --filter-module-examples-and-tests=module 



From: 'Barnes, Peter D.' via ns-developers <ns-dev...@googlegroups.com>
Sent: Monday, November 3, 2025 11:19:51 PM
To: ns-dev...@googlegroups.com <ns-dev...@googlegroups.com>
Subject: [ns-developers] Introspecting command-line
 
--
You received this message because you are subscribed to the Google Groups "ns-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-developer...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ns-developers/SJ0PR09MB7280A83431FCBEEB3831329EA5C7A%40SJ0PR09MB7280.namprd09.prod.outlook.com.

Gabriel Ferreira

unread,
Nov 4, 2025, 6:32:49 AM (2 days ago) Nov 4
to ns-developers
Well, you need to compile things to get the introspected command line. If you don't want to regenerate it, use ./ns3 docs doxygen-no-build
Reply all
Reply to author
Forward
0 new messages