diff options
| author | Michael Buch <michaelbuch12@gmail.com> | 2025-11-05 17:04:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-05 17:04:57 +0000 |
| commit | 9b1719efa063b78a996d837b8b4bcb11ddcffcf8 (patch) | |
| tree | 9f1af9e69f27c6e9b21f15d0a8f2e8e766d8767e /lldb/source/Target/Target.cpp | |
| parent | 0b72899f6db93dab140415e800130c7c82c255b1 (diff) | |
[lldb] Mark single-argument SourceLanguage constructors explicit (#166527)
This avoids unintentional comparisons between `SourceLanguage` and
`LanguageType`.
Also marks `operator bool` explicit so we don't implicitly convert to
bool.
Diffstat (limited to 'lldb/source/Target/Target.cpp')
| -rw-r--r-- | lldb/source/Target/Target.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index a23091ad09c6..e53fc7a1e1bd 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -4945,7 +4945,7 @@ void TargetProperties::SetStandardErrorPath(llvm::StringRef path) { SourceLanguage TargetProperties::GetLanguage() const { const uint32_t idx = ePropertyLanguage; - return {GetPropertyAtIndexAs<LanguageType>(idx, {})}; + return SourceLanguage{GetPropertyAtIndexAs<LanguageType>(idx, {})}; } llvm::StringRef TargetProperties::GetExpressionPrefixContents() { |
