aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSource.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-05-04 09:26:58 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-05-04 16:42:46 -0700
commit6f8b33f6dfd0a0f8d2522b6c832bd6298ae2f3f3 (patch)
treee0c6024fb6ebf5acf5617f1256ecaea28052e774 /lldb/source/Commands/CommandObjectSource.cpp
parent04aa943be8ed5c03092e2a90112ac638360ec253 (diff)
downloadllvm-6f8b33f6dfd0a0f8d2522b6c832bd6298ae2f3f3.zip
llvm-6f8b33f6dfd0a0f8d2522b6c832bd6298ae2f3f3.tar.gz
llvm-6f8b33f6dfd0a0f8d2522b6c832bd6298ae2f3f3.tar.bz2
[lldb] Use templates to simplify {Get,Set}PropertyAtIndex (NFC)
Use templates to simplify {Get,Set}PropertyAtIndex. It has always bothered me how cumbersome those calls are when adding new properties. After this patch, SetPropertyAtIndex infers the type from its arguments and GetPropertyAtIndex required a single template argument for the return value. As an added benefit, this enables us to remove a bunch of wrappers from UserSettingsController and OptionValueProperties. Differential revision: https://reviews.llvm.org/D149774
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
0 files changed, 0 insertions, 0 deletions