aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-14 21:49:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-14 21:49:13 +0000
commitcc08ee507fc47d80a67c10a20b95587f7f06f0b7 (patch)
tree8e0d4e117d2163e200317a961b4b8495006033cf /include/llvm/Support
parent33e2fcd6f5383dace615c884e9890ebeb9ee3983 (diff)
downloadexternal_llvm-cc08ee507fc47d80a67c10a20b95587f7f06f0b7.zip
external_llvm-cc08ee507fc47d80a67c10a20b95587f7f06f0b7.tar.gz
external_llvm-cc08ee507fc47d80a67c10a20b95587f7f06f0b7.tar.bz2
Add the MoreHelp function pointer. If non-null, this specifies a function to be called to print out additional help information
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17756 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/CommandLine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Support/CommandLine.h b/include/llvm/Support/CommandLine.h
index 4bb1c1f..4d5dccd 100644
--- a/include/llvm/Support/CommandLine.h
+++ b/include/llvm/Support/CommandLine.h
@@ -1046,6 +1046,14 @@ struct aliasopt {
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