[clang] [clang-tools-extra] [lld] [llvm] [llvm] Add subcommand support for OptTable (PR #155026)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 2 11:27:38 PDT 2025


================
@@ -179,6 +228,8 @@ class LLVM_ABI OptTable {
   /// Return the string table used for option names.
   const StringTable &getStrTable() const { return *StrTable; }
 
+  const ArrayRef<SubCommand> getSubCommands() const { return SubCommands; }
----------------
PiJoules wrote:

`ArrayRef` is already immutable so `const` might not be needed here.

https://github.com/llvm/llvm-project/pull/155026


More information about the cfe-commits mailing list