aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorJorge Gorbe Moya <jgorbe@google.com>2022-08-09 10:44:09 -0700
committerJorge Gorbe Moya <jgorbe@google.com>2022-08-09 10:48:49 -0700
commitfe01292457fc04532c5d2eccc9d0674df4582fa6 (patch)
treec08038e84ff69ed7c01e337ab51aeba2183f9120 /lldb/source/Plugins/ScriptInterpreter/Python
parentb20fe2c25b17ffad30f8f286d4ef94e01a8b3c8d (diff)
downloadllvm-fe01292457fc04532c5d2eccc9d0674df4582fa6.zip
llvm-fe01292457fc04532c5d2eccc9d0674df4582fa6.tar.gz
llvm-fe01292457fc04532c5d2eccc9d0674df4582fa6.tar.bz2
Move FormattersMatchCandidate flags to a struct.
This removes some error-prone repetition in FormatManager::GetPossibleMatches, where the same three boolean flags are passed in a row multiple times as arguments to recursive calls to GetPossibleMatches. Instead of: ``` // same flags, but with did_strip_typedef set to true. GetPossibleMatches(..., did_strip_ptr, did_strip_ref, true); ``` we can now say ``` GetPossibleMatches(..., current_flags.WithStrippedTypedef()); ``` which hopefully makes the intent clearer, and more readable in case we add another flag. Reviewed by: DavidSpickett, labath Differential Revision: https://reviews.llvm.org/D131459
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
0 files changed, 0 insertions, 0 deletions