[PATCH] D19468: Disallow duplication of imported entities (improved implementation)
Amjad Aboud via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 14:25:45 PDT 2016
aaboud added a comment.
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.
Here is a small example that leads into duplication in AST DCLs.
You may run the following command line:
clang -cc1 -ast-dump -o - -O0 TestIM.cpp
TestIM.cpp
----------
#include "TestIM.h"
#include "TestIM.h"
TestIM.h
--------
namespace X {
typedef int MyINT_t;
}
namespace Y {
using X::MyINT_t;
}
http://reviews.llvm.org/D19468
More information about the llvm-commits
mailing list