[all-commits] [llvm/llvm-project] 76066e: [orc_rt] adding a very simple CLI flags parser in ...
Jared Wyles via All-commits
all-commits at lists.llvm.org
Thu Jul 9 17:01:37 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 76066e5867611b7ed87e4f8eb8f18dc6ec479855
https://github.com/llvm/llvm-project/commit/76066e5867611b7ed87e4f8eb8f18dc6ec479855
Author: Jared Wyles <jared.wyles at gmail.com>
Date: 2026-07-10 (Fri, 10 Jul 2026)
Changed paths:
A orc-rt/include/orc-rt-utils/CommandLine.h
M orc-rt/test/unit/CMakeLists.txt
A orc-rt/test/unit/CommandLineTest.cpp
Log Message:
-----------
[orc_rt] adding a very simple CLI flags parser in (#172987)
Adds orc_rt::CommandLineParser, a small header-only option parser in
orc-rt-utils for use by orc-rt tools that need argument handling.
Features:
- Long (--name, --name=value) and short (-n, -nvalue) options.
- Short-flag clustering (e.g. -vp9999) and "--" to terminate option
parsing, with remaining tokens collected as positionals.
- Typed values, with parse failures returning an orc_rt::Error.
- printHelp() with aligned, optionally short-name-aware output.
Values are bound to caller-owned storage supplied at registration time and
reset to their defaults on each parse().
Also adds CommandLineTest.cpp to the CoreTests unittest and fixes the
indentation of the docs subdirectory guard in orc-rt/CMakeLists.txt.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list