<div dir="ltr">Hello Everyone,<div><br></div><div>I'm working on providing support for New Language Tags, prescribed in DWARF-5.</div><div>DW_LANG_C_plus_plus_03</div><div>DW_LANG_C_plus_plus_11</div><div>

DW_LANG_C_plus_plus_14 <br></div><div><br></div><div>While, C++11 and C++14, is defined and can be emitted by Frontend.</div><div>"include/clang/Basci/LangStandard.h"<br></div><div>CPlusPlus = (1 << 5),<br>CPlusPlus11 = (1 << 6),<br>CPlusPlus14 = (1 << 7),<br>CPlusPlus17 = (1 << 8),<br> CPlusPlus2a = (1 << 9),<br></div><div><br></div><div>Currently CLANG emits "DW_LANG_C_plus_plus" which in DWARF suggests ISO C++98, regardless of the -std=... specified in commandline.</div><div>Also in file  "include/clang/Basci/LangStandards.def"  CLANG has aliased c++98 and c++03.<br></div><div>// C++ modes<br> LANGSTANDARD(cxx98, "c++98",<br>              CXX, "ISO C++ 1998 with amendments",<br>              LineComment | CPlusPlus | Digraphs)<br> LANGSTANDARD_ALIAS(cxx98, "c++03")<br></div><div><br></div><div>So, my query is that since, c++98 and c++03 is mostly same assuming CLANG Frontend.</div><div>Should we also support DW_LANG_C_plus_plus_03 ? for -std=c++03 in Frontend or let it remain alias of c++98. </div><div><br></div><div>LLVM AsmPrinters has already code for supporting these new DWARF-5 Language Tags.</div><div>So, If we decide not to go with DW_LANG_C_plus_plus_03, we'll have to remove it's reference from llvm, since frontend won't emit it at all.</div><div><br></div><div>Thanks!</div><div>Sourabh Singh Tomar</div><div><br></div></div>