[Lldb-commits] [lldb] [lldb-dap] Report the language of compile units (PR #235995)
Nathan Fusselman via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 29 10:00:07 PDT 2026
================
@@ -1049,6 +1049,10 @@ struct CompileUnit {
/// Path of compile unit.
String compileUnitPath;
+
+ /// The language of the compile unit, with its version where known, for
+ /// example `c11` or `c++17`.
+ std::optional<String> language;
----------------
nathanfusselman wrote:
Yes, I agree but prefer nil here for the reason that is it our way of saying we will not even send the key in this condition (something the client already has to handle a lot) I also agree that `""` needs to be handled but would indicate a bug as well.
https://github.com/llvm/llvm-project/pull/235995
More information about the lldb-commits
mailing list