<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 25, 2016 at 2:25 PM, Amjad Aboud via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">aaboud added a comment.<br>
<br>
I am not much familiar with the AST part, but I assume there is reuse of previous generated DCL, even if it has same data.<br></blockquote><div><br>What if we filter by cases where the decl == the canonical decl, and skip any decl that's a redeclaration?<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Here is a small example that leads into duplication in AST DCLs.<br>
You may run the following command line:<br>
<br>
clang -cc1 -ast-dump -o - -O0 TestIM.cpp<br>
<br>
TestIM.cpp<br>
----------<br>
<br>
#include "TestIM.h"<br>
#include "TestIM.h"<br>
<br>
<br>
<br>
TestIM.h<br>
--------<br>
<br>
namespace X {<br>
typedef int MyINT_t;<br>
}<br>
<br>
namespace Y {<br>
using X::MyINT_t;<br>
<div class="HOEnZb"><div class="h5"> }<br>
<br>
<br>
<a href="http://reviews.llvm.org/D19468" rel="noreferrer" target="_blank">http://reviews.llvm.org/D19468</a><br>
<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div></div>