diff options
| author | Jorge Gorbe Moya <jgorbe@google.com> | 2022-08-09 10:44:09 -0700 |
|---|---|---|
| committer | Jorge Gorbe Moya <jgorbe@google.com> | 2022-08-09 10:48:49 -0700 |
| commit | fe01292457fc04532c5d2eccc9d0674df4582fa6 (patch) | |
| tree | c08038e84ff69ed7c01e337ab51aeba2183f9120 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h | |
| parent | b20fe2c25b17ffad30f8f286d4ef94e01a8b3c8d (diff) | |
| download | llvm-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/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions
