diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-03 07:01:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-03 07:01:38 +0000 |
commit | 60e107fb86132fea75b886d2259f4c220334bc5e (patch) | |
tree | ce319ee1a41ff658a8749a3c80413c87cd3cc208 /include/clang/Driver/OptTable.h | |
parent | 7bd716557bf27361408457d059f16f1596f22a1b (diff) |
Add OptTable::PrintHelp.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Driver/OptTable.h')
-rw-r--r-- | include/clang/Driver/OptTable.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/clang/Driver/OptTable.h b/include/clang/Driver/OptTable.h index faaeba69e2..ff2e108609 100644 --- a/include/clang/Driver/OptTable.h +++ b/include/clang/Driver/OptTable.h @@ -13,6 +13,10 @@ #include "clang/Driver/OptSpecifier.h" #include <cassert> +namespace llvm { + class raw_ostream; +} + namespace clang { namespace driver { namespace options { @@ -156,6 +160,14 @@ namespace options { const char **ArgEnd, unsigned &MissingArgIndex, unsigned &MissingArgCount) const; + + /// PrintHelp - Render the help text for an option table. + /// + /// \param OS - The stream to write the help text to. + /// \param Name - The name to use in the usage line. + /// \param Title - The title to use in the usage line. + void PrintHelp(llvm::raw_ostream &OS, const char *Name, + const char *Title) const; }; } } |