[llvm-commits] CVS: llvm/include/llvm/Support/CommandLine.h

Reid Spencer reid at x10sys.com
Sun Nov 14 13:49:51 PST 2004



Changes in directory llvm/include/llvm/Support:

CommandLine.h updated: 1.37 -> 1.38
---
Log message:

Add the MoreHelp function pointer. If non-null, this specifies a function to be called to print out additional help information

---
Diffs of the changes:  (+8 -0)

Index: llvm/include/llvm/Support/CommandLine.h
diff -u llvm/include/llvm/Support/CommandLine.h:1.37 llvm/include/llvm/Support/CommandLine.h:1.38
--- llvm/include/llvm/Support/CommandLine.h:1.37	Wed Oct 27 11:14:51 2004
+++ llvm/include/llvm/Support/CommandLine.h	Sun Nov 14 15:49:13 2004
@@ -1046,6 +1046,14 @@
   void apply(alias &A) const { A.setAliasFor(Opt); }
 };
 
+/// Permit the tool to provide additional help output after the normal
+/// help output. To use this, create a function that returns void and
+/// takes no arguments. Assign its address to cl::MoreHelp. If set, 
+/// this function will be called just before the CommandLine exits
+/// after printing the help.
+/// @brief Optional pointer to additional help function
+extern void (*MoreHelp)();
+
 } // End namespace cl
 
 } // End namespace llvm






More information about the llvm-commits mailing list