llvm-project
d4afdc57 - [lldb][NativePDB] Don't turn function-local enums into scoped enums (#244640)

Commit
3 hours ago
[lldb][NativePDB] Don't turn function-local enums into scoped enums (#244640) CodeView can't tell a scoped enum from an unscoped enum. `EnumRecord::isScoped()` was the wrong check: it does not say whether the enum is an `enum class`. Instead, it says if the type is declared inside the body of a function. This patch always creates unscoped enums and adds a new test which fails without the change. rdar://192360576
Parents
Loading