зеркало из https://github.com/microsoft/clang-1.git
Although in C++ class name has external linkage, usually the definition of the
class is available in the same translation unit when it's needed. So we make all of them invalid Entity. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
423030c9e7
Коммит
c8822e06d0
|
@ -46,6 +46,7 @@ public:
|
|||
Entity VisitVarDecl(VarDecl *D);
|
||||
Entity VisitFieldDecl(FieldDecl *D);
|
||||
Entity VisitFunctionDecl(FunctionDecl *D);
|
||||
Entity VisitTypeDecl(TypeDecl *D);
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -130,6 +131,13 @@ Entity EntityGetter::VisitFieldDecl(FieldDecl *D) {
|
|||
return Entity();
|
||||
}
|
||||
|
||||
Entity EntityGetter::VisitTypeDecl(TypeDecl *D) {
|
||||
// Make TypeDecl an invalid Entity. Although in C++ class name has external
|
||||
// linkage, usually the definition of the class is available in the same
|
||||
// translation unit when it's needed. So we make all of them invalid Entity.
|
||||
return Entity();
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// EntityImpl Implementation
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Загрузка…
Ссылка в новой задаче