[lldb][TypeSystemClang][NFCI] Use LangOptions::setLangDefaults when creating...
[lldb][TypeSystemClang][NFCI] Use LangOptions::setLangDefaults when creating new LangOptions (#88721) This logic was originally copied from `CompilerInstance::parseLangArgs`. Since then, the `CompilerInstance` uses `LangOptions::setLangDefaults` to set up new `LangOptions` instances. In our case, we only ever passed `Language::ObjCXX` into LLDB's `ParseLangArgs`, so most of this function was dead code. This patch replaces the duplicated logic with a call to `LangOptions::setLangDefaults`.
parent
7eb5022c
Please register or sign in to comment