diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-04 21:08:40 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-04 21:08:40 +0000 |
commit | 2658f05caf1c1d86608a46ebc7be0b3bb21fef2a (patch) | |
tree | adecff53e35cade667cd0566d1409adf355da805 /include/clang/Driver/OptTable.h | |
parent | 9a242512a8b319cc4df7d050166a1c65bf66abeb (diff) |
OptTable: Allow option groups to be used to define "help groups", which will
collate the options inside that group.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90592 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Driver/OptTable.h')
-rw-r--r-- | include/clang/Driver/OptTable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Driver/OptTable.h b/include/clang/Driver/OptTable.h index 840e669a27..edae75c9f0 100644 --- a/include/clang/Driver/OptTable.h +++ b/include/clang/Driver/OptTable.h @@ -118,6 +118,11 @@ namespace options { return getInfo(id).Kind; } + /// getOptionGroupID - Get the group id for the given option. + unsigned getOptionGroupID(OptSpecifier id) const { + return getInfo(id).GroupID; + } + /// isOptionHelpHidden - Should the help for the given option be hidden by /// default. bool isOptionHelpHidden(OptSpecifier id) const { |