diff options
author | Dave Lee <davelee.com@gmail.com> | 2024-02-08 09:32:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-08 09:32:12 -0800 |
commit | af97edff70b0d9cb89729dc0d8af1d1ea101686e (patch) | |
tree | 810e164a6440ec54b37baaffb2f64dc4b958588a /clang/lib/Frontend/ModuleDependencyCollector.cpp | |
parent | f219cda7bd43696792ca4668ca5a9fbf55a9f09f (diff) | |
download | llvm-af97edff70b0d9cb89729dc0d8af1d1ea101686e.zip llvm-af97edff70b0d9cb89729dc0d8af1d1ea101686e.tar.gz llvm-af97edff70b0d9cb89729dc0d8af1d1ea101686e.tar.bz2 |
[lldb] Refactor GetFormatFromCString to always check for partial matches (NFC) (#81018)
Refactors logic in `ParseInternal` that was previously calling
`GetFormatFromCString` twice, once with `partial_match_ok` set to false,
and the second time set to true.
With this change, lldb formats (ie `%@`, `%S`, etc) are checked first.
If a format is not one of those, then `GetFormatFromCString` is called
once, and now always checks for partial matches.
Diffstat (limited to 'clang/lib/Frontend/ModuleDependencyCollector.cpp')
0 files changed, 0 insertions, 0 deletions