This is an archive of the discontinued LLVM Phabricator instance.

[lldb] type language common completion
ClosedPublic

Authored by MrHate on Jul 19 2020, 10:39 AM.

Details

Summary
  1. Added a new common completion TypeLanguages to provide a list of supporting languages;
  2. Bound the completion to eArgTypeLanguage;
  3. Added a related test case.

Diff Detail

Event Timeline

JDevlieghere accepted this revision.Jul 22 2020, 9:58 AM

LGTM modulo my inline comment.

lldb/source/Commands/CommandCompletions.cpp
753

Please use static_cast<lldb::LanguageTyp> instead of a C-style cast.

This revision is now accepted and ready to land.Jul 22 2020, 9:58 AM
MrHate updated this revision to Diff 279988.Jul 22 2020, 5:58 PM
  • Use static_cast<lldb::LanguageType>(bit) instead of C-style cast.