<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Sep 27, 2017 at 1:58 PM Paul Robinson via Phabricator <<a href="mailto:reviews@reviews.llvm.org">reviews@reviews.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">probinson added a reviewer: rnk.<br>
probinson added a comment.<br>
<br>
+rnk for the CodeView question.<br>
<br>
<br>
<br>
================<br>
Comment at: include/clang/Frontend/CodeGenOptions.def:222<br>
                                     ///< of inline stack frames without .dwo files.<br>
+CODEGENOPT(DebugFwdTemplateParams, 1, 0) ///< Whether to emit complete<br>
+                                         ///< template parameter descriptions in<br>
----------------<br>
dblaikie wrote:<br>
> Maybe 'Decl' rather than 'Fwd'.<br>
Well, in a sense they are all declarations, and 'Fwd' is a clearer statement of the distinction this flag is trying to make.  Unless you feel strongly I'd prefer to leave it as is.<br></blockquote><div><br>Fair enough.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">================<br>
Comment at: lib/CodeGen/CGDebugInfo.cpp:836<br>
       llvm::DINode::FlagFwdDecl, FullName);<br>
+  if (CGM.getCodeGenOpts().DebugFwdTemplateParams)<br>
+    if (auto *TSpecial = dyn_cast<ClassTemplateSpecializationDecl>(RD))<br>
----------------<br>
It just occurred to me... should CodeView care about this?<br></blockquote><div><br>Not sure<br><br>Reid?<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
================<br>
Comment at: test/CodeGenCXX/debug-info-fwd-template-param.cpp:7<br>
+template<typename T> class A;<br>
+A<const int> *p;<br>
+<br>
----------------<br>
dblaikie wrote:<br>
> Any particular reason for const int, rather than int?<br>
It was the illustrative example of the difference between the demangler ("int const") and clang ("const int") that the debugger guys tripped over, and so was in the source I started with when creating this test.  I think you are correct, it is not important to have it.<br></blockquote><div><br>*nod* I understand that it's part of the original issue, but doesn't seem needed/relevant here.  Thanks! :)<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
<a href="https://reviews.llvm.org/D14358" rel="noreferrer" target="_blank">https://reviews.llvm.org/D14358</a><br>
<br>
<br>
<br>
</blockquote></div></div>