This is an archive of the discontinued LLVM Phabricator instance.

Add SBCommandInterpreter::UserCommandExists
ClosedPublic

Authored by jingham on Feb 27 2023, 3:36 PM.

Details

Summary

Turns out there's no API to find out if a user command exists. There's SBCommandInterpreter::CommandExists but that only checks for built-in commands. I needed this to write a test for an upcoming patch, and it's a useful thing to know. I added docs so it's clear CommandExists is for builtin commands and this one is for command script add commands.

Diff Detail

Event Timeline

jingham created this revision.Feb 27 2023, 3:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 3:36 PM
jingham requested review of this revision.Feb 27 2023, 3:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 3:36 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 28 2023, 4:00 PM
This revision was automatically updated to reflect the committed changes.
mib added a comment.Feb 28 2023, 4:14 PM

LGTM! Sorry I forgot about this!