[all-commits] [llvm/llvm-project] 7ecb0d: [lldb][Mangled] Use early-return style in GetDeman...
Michael Buch via All-commits
all-commits at lists.llvm.org
Tue Mar 11 01:13:07 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7ecb0d03a4d78357adc35137a3109ee305ac4fff
https://github.com/llvm/llvm-project/commit/7ecb0d03a4d78357adc35137a3109ee305ac4fff
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2025-03-11 (Tue, 11 Mar 2025)
Changed paths:
M lldb/source/Core/Mangled.cpp
Log Message:
-----------
[lldb][Mangled] Use early-return style in GetDemangledName (#130622)
This patch refactors `Mangled::GetDemangledName` to use LLVM's preferred
early-return style. I'm planning on introducing a way to force
re-demangling of names in a future patch, and this stylisitc cleanup
makes that easier to reason about.
Also performed small cleanups where I could:
* we can handle `eManglingSchemeNone` inside the switch instead of a
separate if-block
* removed some redundant explicit StringRef<->C-string conversions
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list