<div dir="ltr">This is perhaps being overly picky, but there are usages in the UI of both "regex" and "regexp".<div><br></div><div><div>These use regexp:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><div><div>(lldb) apropos regexp</div></div></div><div><div><div>The following built-in commands may relate to 'regexp':</div></div></div><div><div><div>_regexp-attach -- Attach to a process id if in decimal, otherwise treat the argument as a process name to attach to.</div>
</div></div><div><div><div>_regexp-break -- Set a breakpoint using a regular expression to specify the location, where <linenum> is in decimal and <address> is in hex.</div></div></div><div><div><div>_regexp-display -- Add an expression evaluation stop-hook.</div>
</div></div><div><div><div>_regexp-down -- Go down "n" frames in the stack (1 frame by default).</div></div></div><div><div><div>_regexp-env -- Implements a shortcut to viewing and setting environment variables.</div>
</div></div><div><div><div>_regexp-jump -- Sets the program counter to a new address.</div></div></div><div><div><div>_regexp-list -- Implements the GDB 'list' command in all of its forms except FILE:FUNCTION and maps them to the appropriate 'source list' commands.</div>
</div></div><div><div><div>_regexp-tbreak -- Set a one shot breakpoint using a regular expression to specify the location, where <linenum> is in decimal and <address> is in hex.</div></div></div><div><div>
<div>_regexp-undisplay -- Remove an expression evaluation stop-hook.</div></div></div><div><div><div>_regexp-up -- Go up "n" frames in the stack (1 frame by default).</div></div></div><div><div><div>
breakpoint -- A set of commands for operating on breakpoints. Also see _regexp-break.</div></div></div><div><div><div>breakpoint set -- Sets a breakpoint or set of breakpoints in the executable.</div></div>
</div><div><div><div>thread step-in -- Source level single step in specified thread (current thread, if none specified).</div></div></div><div><div><div>thread step-inst -- Single step one instruction in specified thread (current thread, if none specified).</div>
</div></div><div><div><div>thread step-inst-over -- Single step one instruction in specified thread (current thread, if none specified), stepping over calls.</div></div></div><div><div><div>thread step-out -- Finish executing the function of the currently selected frame and return to its call site in specified thread (current thread, if none specified).</div>
</div></div><div><div><div>thread step-over -- Source level single step in specified thread (current thread, if none specified), stepping over calls.</div></div></div><div><div><div><br></div></div></div><div><div><div>
The following settings variables may relate to 'regexp':</div></div></div><div><div><div><br></div></div></div><div><div><div>target.process.thread.step-avoid-regexp -- A regular expression defining functions step-in won't stop in.</div>
</div></div></blockquote><div><div><br></div><div>A bunch of other things use regex instead of regexp, including:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div><div>command alias -- Allow users to define their own debugger command abbreviations.</div>
</div></div><div><div><div>command regex -- Allow the user to create a regular expression command.</div></div></div><div><div><div>frame variable -- Show frame variables. All argument and local variables that are in scope will be shown when no arguments are given. If any arguments are specified, they can be names of argument, local, file static and file</div>
</div></div><div><div><div> global variables. Children of aggregate variables can be specified such as 'var->child.x'.</div></div></div><div><div><div>platform process list -- List processes on a remote platform by name, pid, or many other matching attributes.</div>
</div></div><div><div><div>target modules lookup -- Look up information within executable and dependent shared library images.</div></div></div><div><div><div>target variable -- Read global variable(s) prior to, or while running your binary.</div>
</div></div><div><div><div>type filter add -- Add a new filter for a type.</div></div></div><div><div><div>type filter list -- Show a list of current filters.</div></div></div><div><div><div>type format add -- Add a new formatting style for a type.</div>
</div></div><div><div><div>type format list -- Show a list of current formatting styles.</div></div></div><div><div><div>type summary add -- Add a new summary style for a type.</div></div></div><div><div><div>type summary list -- Show a list of current summary styles.</div>
</div></div><div><div><div>type synthetic add -- Add a new synthetic provider for a type.</div></div></div><div><div><div>type synthetic list -- Show a list of current synthetic providers.</div></div></div><div><div>
<div><br></div></div></div><div><div><div>The following settings variables may relate to 'regex':</div></div></div><div><div><div><br></div></div></div><div><div><div>interpreter.expand-regex-aliases -- If true, regular expression alias commands will show the expanded command that will be executed. This can be used to debug new regular expression alias commands.</div>
</div></div></blockquote><div><div><br></div><div>In the repository, there are about 980 references to regex and about 210 references to regexp.</div><div><br></div><div>Is this something that anyone else cares about? Is it too late to fix it (due to compatibility)?</div>
<div><br></div><div>I suspect that 'regex' is the preferred spelling due to the count of usages in the codebase and that the implementation is llvm_regex_t and so on.</div><div><br></div><div> - Bruce</div><div><br>
</div></div></div>