2011-10-18 03:48:19 +08:00
|
|
|
//===- CIndexHigh.cpp - Higher level API functions ------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "IndexingContext.h"
|
|
|
|
#include "clang/AST/DeclVisitor.h"
|
|
|
|
|
|
|
|
using namespace clang;
|
|
|
|
using namespace cxindex;
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
class IndexingDeclVisitor : public ConstDeclVisitor<IndexingDeclVisitor, bool> {
|
2011-10-18 03:48:19 +08:00
|
|
|
IndexingContext &IndexCtx;
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit IndexingDeclVisitor(IndexingContext &indexCtx)
|
|
|
|
: IndexCtx(indexCtx) { }
|
|
|
|
|
2013-05-30 07:58:31 +08:00
|
|
|
/// \brief Returns true if the given method has been defined explicitly by the
|
|
|
|
/// user.
|
|
|
|
static bool hasUserDefined(const ObjCMethodDecl *D,
|
|
|
|
const ObjCImplDecl *Container) {
|
|
|
|
const ObjCMethodDecl *MD = Container->getMethod(D->getSelector(),
|
|
|
|
D->isInstanceMethod());
|
|
|
|
return MD && !MD->isImplicit() && MD->isThisDeclarationADefinition();
|
|
|
|
}
|
|
|
|
|
2014-06-08 16:38:04 +08:00
|
|
|
void handleDeclarator(const DeclaratorDecl *D,
|
|
|
|
const NamedDecl *Parent = nullptr) {
|
2011-12-14 02:47:41 +08:00
|
|
|
if (!Parent) Parent = D;
|
2012-01-14 10:05:51 +08:00
|
|
|
|
2012-02-15 06:23:11 +08:00
|
|
|
if (!IndexCtx.shouldIndexFunctionLocalSymbols()) {
|
2012-01-14 10:05:51 +08:00
|
|
|
IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), Parent);
|
|
|
|
IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), Parent);
|
|
|
|
} else {
|
2013-02-03 21:42:20 +08:00
|
|
|
if (const ParmVarDecl *Parm = dyn_cast<ParmVarDecl>(D)) {
|
2012-01-14 10:05:51 +08:00
|
|
|
IndexCtx.handleVar(Parm);
|
2013-02-03 21:42:20 +08:00
|
|
|
} else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
|
2014-03-07 23:12:56 +08:00
|
|
|
for (auto PI : FD->params()) {
|
|
|
|
IndexCtx.handleVar(PI);
|
2012-01-14 10:05:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2011-12-14 02:47:41 +08:00
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
void handleObjCMethod(const ObjCMethodDecl *D) {
|
2012-02-29 01:50:28 +08:00
|
|
|
IndexCtx.handleObjCMethod(D);
|
|
|
|
if (D->isImplicit())
|
|
|
|
return;
|
|
|
|
|
2014-01-26 00:55:45 +08:00
|
|
|
IndexCtx.indexTypeSourceInfo(D->getReturnTypeSourceInfo(), D);
|
2014-03-08 01:50:17 +08:00
|
|
|
for (const auto *I : D->params())
|
|
|
|
handleDeclarator(I, D);
|
2012-02-29 01:50:28 +08:00
|
|
|
|
|
|
|
if (D->isThisDeclarationADefinition()) {
|
|
|
|
const Stmt *Body = D->getBody();
|
|
|
|
if (Body) {
|
|
|
|
IndexCtx.indexBody(Body, D, D);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitFunctionDecl(const FunctionDecl *D) {
|
2011-10-18 03:48:19 +08:00
|
|
|
IndexCtx.handleFunction(D);
|
2011-12-14 02:47:41 +08:00
|
|
|
handleDeclarator(D);
|
2012-01-24 00:58:36 +08:00
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
if (const CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) {
|
2012-01-24 00:58:36 +08:00
|
|
|
// Constructor initializers.
|
2014-03-14 01:34:31 +08:00
|
|
|
for (const auto *Init : Ctor->inits()) {
|
2012-01-24 00:58:36 +08:00
|
|
|
if (Init->isWritten()) {
|
|
|
|
IndexCtx.indexTypeSourceInfo(Init->getTypeSourceInfo(), D);
|
|
|
|
if (const FieldDecl *Member = Init->getAnyMember())
|
|
|
|
IndexCtx.handleReference(Member, Init->getMemberLocation(), D, D);
|
|
|
|
IndexCtx.indexBody(Init->getInit(), D, D);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-10-18 03:48:19 +08:00
|
|
|
if (D->isThisDeclarationADefinition()) {
|
|
|
|
const Stmt *Body = D->getBody();
|
|
|
|
if (Body) {
|
2011-12-14 02:47:41 +08:00
|
|
|
IndexCtx.indexBody(Body, D, D);
|
2011-10-18 03:48:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitVarDecl(const VarDecl *D) {
|
2011-10-18 03:48:19 +08:00
|
|
|
IndexCtx.handleVar(D);
|
2011-12-14 02:47:41 +08:00
|
|
|
handleDeclarator(D);
|
|
|
|
IndexCtx.indexBody(D->getInit(), D);
|
2011-10-18 03:48:19 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitFieldDecl(const FieldDecl *D) {
|
2011-10-18 03:48:19 +08:00
|
|
|
IndexCtx.handleField(D);
|
2011-12-14 02:47:41 +08:00
|
|
|
handleDeclarator(D);
|
|
|
|
if (D->isBitField())
|
|
|
|
IndexCtx.indexBody(D->getBitWidth(), D);
|
|
|
|
else if (D->hasInClassInitializer())
|
|
|
|
IndexCtx.indexBody(D->getInClassInitializer(), D);
|
2011-10-18 03:48:19 +08:00
|
|
|
return true;
|
|
|
|
}
|
2013-02-03 21:42:20 +08:00
|
|
|
|
2013-04-16 15:28:30 +08:00
|
|
|
bool VisitMSPropertyDecl(const MSPropertyDecl *D) {
|
|
|
|
handleDeclarator(D);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitEnumConstantDecl(const EnumConstantDecl *D) {
|
2011-10-18 03:48:19 +08:00
|
|
|
IndexCtx.handleEnumerator(D);
|
2011-12-14 02:47:41 +08:00
|
|
|
IndexCtx.indexBody(D->getInitExpr(), D);
|
2011-10-18 03:48:19 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitTypedefNameDecl(const TypedefNameDecl *D) {
|
2011-11-22 15:24:51 +08:00
|
|
|
IndexCtx.handleTypedefName(D);
|
2011-10-18 03:48:19 +08:00
|
|
|
IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitTagDecl(const TagDecl *D) {
|
2011-10-18 03:48:19 +08:00
|
|
|
// Non-free standing tags are handled in indexTypeSourceInfo.
|
|
|
|
if (D->isFreeStanding())
|
|
|
|
IndexCtx.indexTagDecl(D);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitObjCInterfaceDecl(const ObjCInterfaceDecl *D) {
|
2011-11-11 08:23:36 +08:00
|
|
|
IndexCtx.handleObjCInterface(D);
|
2011-10-18 03:48:19 +08:00
|
|
|
|
2011-12-28 06:43:10 +08:00
|
|
|
if (D->isThisDeclarationADefinition()) {
|
|
|
|
IndexCtx.indexTUDeclsInObjCContainer();
|
|
|
|
IndexCtx.indexDeclContext(D);
|
|
|
|
}
|
2011-10-18 03:48:19 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitObjCProtocolDecl(const ObjCProtocolDecl *D) {
|
2011-11-11 08:23:36 +08:00
|
|
|
IndexCtx.handleObjCProtocol(D);
|
2011-10-18 03:48:19 +08:00
|
|
|
|
2012-01-02 05:23:57 +08:00
|
|
|
if (D->isThisDeclarationADefinition()) {
|
|
|
|
IndexCtx.indexTUDeclsInObjCContainer();
|
|
|
|
IndexCtx.indexDeclContext(D);
|
|
|
|
}
|
2011-10-18 03:48:19 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitObjCImplementationDecl(const ObjCImplementationDecl *D) {
|
2011-11-15 14:20:24 +08:00
|
|
|
const ObjCInterfaceDecl *Class = D->getClassInterface();
|
2011-11-24 04:27:26 +08:00
|
|
|
if (!Class)
|
|
|
|
return true;
|
|
|
|
|
2011-11-15 14:20:24 +08:00
|
|
|
if (Class->isImplicitInterfaceDecl())
|
|
|
|
IndexCtx.handleObjCInterface(Class);
|
|
|
|
|
2011-11-11 08:23:36 +08:00
|
|
|
IndexCtx.handleObjCImplementation(D);
|
2011-10-18 03:48:19 +08:00
|
|
|
|
|
|
|
IndexCtx.indexTUDeclsInObjCContainer();
|
2012-06-08 10:16:11 +08:00
|
|
|
|
|
|
|
// Index the ivars first to make sure the synthesized ivars are indexed
|
|
|
|
// before indexing the methods that can reference them.
|
2014-03-14 23:16:45 +08:00
|
|
|
for (const auto *IvarI : D->ivars())
|
|
|
|
IndexCtx.indexDecl(IvarI);
|
2014-03-08 03:56:05 +08:00
|
|
|
for (const auto *I : D->decls()) {
|
|
|
|
if (!isa<ObjCIvarDecl>(I))
|
|
|
|
IndexCtx.indexDecl(I);
|
2012-06-08 10:16:11 +08:00
|
|
|
}
|
|
|
|
|
2011-10-18 03:48:19 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitObjCCategoryDecl(const ObjCCategoryDecl *D) {
|
2011-11-11 08:23:36 +08:00
|
|
|
IndexCtx.handleObjCCategory(D);
|
2011-10-18 03:48:19 +08:00
|
|
|
|
|
|
|
IndexCtx.indexTUDeclsInObjCContainer();
|
|
|
|
IndexCtx.indexDeclContext(D);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitObjCCategoryImplDecl(const ObjCCategoryImplDecl *D) {
|
2011-11-24 04:27:26 +08:00
|
|
|
const ObjCCategoryDecl *Cat = D->getCategoryDecl();
|
|
|
|
if (!Cat)
|
2011-11-11 08:23:36 +08:00
|
|
|
return true;
|
|
|
|
|
|
|
|
IndexCtx.handleObjCCategoryImpl(D);
|
|
|
|
|
2011-10-18 03:48:19 +08:00
|
|
|
IndexCtx.indexTUDeclsInObjCContainer();
|
|
|
|
IndexCtx.indexDeclContext(D);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitObjCMethodDecl(const ObjCMethodDecl *D) {
|
2012-02-29 01:50:28 +08:00
|
|
|
// Methods associated with a property, even user-declared ones, are
|
|
|
|
// handled when we handle the property.
|
2012-10-11 00:42:25 +08:00
|
|
|
if (D->isPropertyAccessor())
|
2012-02-29 01:50:28 +08:00
|
|
|
return true;
|
2011-10-18 03:48:19 +08:00
|
|
|
|
2012-02-29 01:50:28 +08:00
|
|
|
handleObjCMethod(D);
|
2011-10-18 03:48:19 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitObjCPropertyDecl(const ObjCPropertyDecl *D) {
|
2012-02-29 01:50:28 +08:00
|
|
|
if (ObjCMethodDecl *MD = D->getGetterMethodDecl())
|
|
|
|
if (MD->getLexicalDeclContext() == D->getLexicalDeclContext())
|
|
|
|
handleObjCMethod(MD);
|
|
|
|
if (ObjCMethodDecl *MD = D->getSetterMethodDecl())
|
|
|
|
if (MD->getLexicalDeclContext() == D->getLexicalDeclContext())
|
|
|
|
handleObjCMethod(MD);
|
2011-10-18 03:48:19 +08:00
|
|
|
IndexCtx.handleObjCProperty(D);
|
|
|
|
IndexCtx.indexTypeSourceInfo(D->getTypeSourceInfo(), D);
|
|
|
|
return true;
|
2011-11-18 08:26:51 +08:00
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitObjCPropertyImplDecl(const ObjCPropertyImplDecl *D) {
|
2011-11-18 08:26:51 +08:00
|
|
|
ObjCPropertyDecl *PD = D->getPropertyDecl();
|
|
|
|
IndexCtx.handleSynthesizedObjCProperty(D);
|
|
|
|
|
|
|
|
if (D->getPropertyImplementation() == ObjCPropertyImplDecl::Dynamic)
|
|
|
|
return true;
|
|
|
|
assert(D->getPropertyImplementation() == ObjCPropertyImplDecl::Synthesize);
|
|
|
|
|
|
|
|
if (ObjCIvarDecl *IvarD = D->getPropertyIvarDecl()) {
|
|
|
|
if (!IvarD->getSynthesize())
|
2014-06-08 16:38:04 +08:00
|
|
|
IndexCtx.handleReference(IvarD, D->getPropertyIvarDeclLoc(), nullptr,
|
2011-11-18 08:26:51 +08:00
|
|
|
D->getDeclContext());
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ObjCMethodDecl *MD = PD->getGetterMethodDecl()) {
|
2013-05-30 07:58:31 +08:00
|
|
|
if (MD->isPropertyAccessor() &&
|
|
|
|
!hasUserDefined(MD, cast<ObjCImplDecl>(D->getDeclContext())))
|
2012-02-29 01:50:39 +08:00
|
|
|
IndexCtx.handleSynthesizedObjCMethod(MD, D->getLocation(),
|
|
|
|
D->getLexicalDeclContext());
|
2011-11-18 08:26:51 +08:00
|
|
|
}
|
|
|
|
if (ObjCMethodDecl *MD = PD->getSetterMethodDecl()) {
|
2013-05-30 07:58:31 +08:00
|
|
|
if (MD->isPropertyAccessor() &&
|
|
|
|
!hasUserDefined(MD, cast<ObjCImplDecl>(D->getDeclContext())))
|
2012-02-29 01:50:39 +08:00
|
|
|
IndexCtx.handleSynthesizedObjCMethod(MD, D->getLocation(),
|
|
|
|
D->getLexicalDeclContext());
|
2011-11-18 08:26:51 +08:00
|
|
|
}
|
2011-11-22 15:24:51 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitNamespaceDecl(const NamespaceDecl *D) {
|
2011-12-07 13:52:06 +08:00
|
|
|
IndexCtx.handleNamespace(D);
|
|
|
|
IndexCtx.indexDeclContext(D);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitUsingDecl(const UsingDecl *D) {
|
2012-02-11 04:10:48 +08:00
|
|
|
// FIXME: Parent for the following is CXIdxEntity_Unexposed with no USR,
|
|
|
|
// we should do better.
|
|
|
|
|
|
|
|
IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D);
|
2014-03-14 02:07:29 +08:00
|
|
|
for (const auto *I : D->shadows())
|
|
|
|
IndexCtx.handleReference(I->getUnderlyingDecl(), D->getLocation(), D,
|
|
|
|
D->getLexicalDeclContext());
|
2012-02-11 04:10:48 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitUsingDirectiveDecl(const UsingDirectiveDecl *D) {
|
2012-02-11 04:10:48 +08:00
|
|
|
// FIXME: Parent for the following is CXIdxEntity_Unexposed with no USR,
|
|
|
|
// we should do better.
|
|
|
|
|
|
|
|
IndexCtx.indexNestedNameSpecifierLoc(D->getQualifierLoc(), D);
|
|
|
|
IndexCtx.handleReference(D->getNominatedNamespaceAsWritten(),
|
|
|
|
D->getLocation(), D, D->getLexicalDeclContext());
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitClassTemplateDecl(const ClassTemplateDecl *D) {
|
2011-11-22 15:24:51 +08:00
|
|
|
IndexCtx.handleClassTemplate(D);
|
|
|
|
if (D->isThisDeclarationADefinition())
|
|
|
|
IndexCtx.indexDeclContext(D->getTemplatedDecl());
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitClassTemplateSpecializationDecl(const
|
2012-02-11 04:10:44 +08:00
|
|
|
ClassTemplateSpecializationDecl *D) {
|
2012-02-15 06:23:11 +08:00
|
|
|
// FIXME: Notify subsequent callbacks if info comes from implicit
|
2012-02-11 04:10:44 +08:00
|
|
|
// instantiation.
|
2012-02-15 06:23:11 +08:00
|
|
|
if (D->isThisDeclarationADefinition() &&
|
|
|
|
(IndexCtx.shouldIndexImplicitTemplateInsts() ||
|
|
|
|
!IndexCtx.isTemplateImplicitInstantiation(D)))
|
2012-02-11 04:10:44 +08:00
|
|
|
IndexCtx.indexTagDecl(D);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitFunctionTemplateDecl(const FunctionTemplateDecl *D) {
|
2011-11-22 15:24:51 +08:00
|
|
|
IndexCtx.handleFunctionTemplate(D);
|
|
|
|
FunctionDecl *FD = D->getTemplatedDecl();
|
2011-12-14 02:47:41 +08:00
|
|
|
handleDeclarator(FD, D);
|
2011-11-22 15:24:51 +08:00
|
|
|
if (FD->isThisDeclarationADefinition()) {
|
|
|
|
const Stmt *Body = FD->getBody();
|
|
|
|
if (Body) {
|
2011-12-14 02:47:41 +08:00
|
|
|
IndexCtx.indexBody(Body, D, FD);
|
2011-11-22 15:24:51 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
2011-11-18 08:26:51 +08:00
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitTypeAliasTemplateDecl(const TypeAliasTemplateDecl *D) {
|
2011-11-22 15:24:51 +08:00
|
|
|
IndexCtx.handleTypeAliasTemplate(D);
|
|
|
|
IndexCtx.indexTypeSourceInfo(D->getTemplatedDecl()->getTypeSourceInfo(), D);
|
2011-11-18 08:26:51 +08:00
|
|
|
return true;
|
2011-10-18 03:48:19 +08:00
|
|
|
}
|
2012-10-03 00:10:38 +08:00
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool VisitImportDecl(const ImportDecl *D) {
|
2012-10-04 05:05:44 +08:00
|
|
|
IndexCtx.importedModule(D);
|
2012-10-03 00:10:38 +08:00
|
|
|
return true;
|
|
|
|
}
|
2011-10-18 03:48:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // anonymous namespace
|
|
|
|
|
|
|
|
void IndexingContext::indexDecl(const Decl *D) {
|
2012-02-08 06:46:16 +08:00
|
|
|
if (D->isImplicit() && shouldIgnoreIfImplicit(D))
|
|
|
|
return;
|
|
|
|
|
2013-02-03 21:42:20 +08:00
|
|
|
bool Handled = IndexingDeclVisitor(*this).Visit(D);
|
2011-10-18 03:48:19 +08:00
|
|
|
if (!Handled && isa<DeclContext>(D))
|
|
|
|
indexDeclContext(cast<DeclContext>(D));
|
|
|
|
}
|
|
|
|
|
|
|
|
void IndexingContext::indexDeclContext(const DeclContext *DC) {
|
2014-03-08 03:56:05 +08:00
|
|
|
for (const auto *I : DC->decls())
|
|
|
|
indexDecl(I);
|
2011-10-18 03:48:19 +08:00
|
|
|
}
|
|
|
|
|
2012-09-11 06:58:04 +08:00
|
|
|
void IndexingContext::indexTopLevelDecl(const Decl *D) {
|
2011-11-15 14:20:16 +08:00
|
|
|
if (isNotFromSourceFile(D->getLocation()))
|
|
|
|
return;
|
2011-10-18 03:48:19 +08:00
|
|
|
|
2011-11-15 14:20:16 +08:00
|
|
|
if (isa<ObjCMethodDecl>(D))
|
|
|
|
return; // Wait for the objc container.
|
2011-10-18 03:48:19 +08:00
|
|
|
|
2011-11-15 14:20:16 +08:00
|
|
|
indexDecl(D);
|
|
|
|
}
|
|
|
|
|
|
|
|
void IndexingContext::indexDeclGroupRef(DeclGroupRef DG) {
|
|
|
|
for (DeclGroupRef::iterator I = DG.begin(), E = DG.end(); I != E; ++I)
|
|
|
|
indexTopLevelDecl(*I);
|
2011-10-18 03:48:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void IndexingContext::indexTUDeclsInObjCContainer() {
|
2012-03-24 07:24:18 +08:00
|
|
|
while (!TUDeclsInObjCContainer.empty()) {
|
|
|
|
DeclGroupRef DG = TUDeclsInObjCContainer.front();
|
|
|
|
TUDeclsInObjCContainer.pop_front();
|
|
|
|
indexDeclGroupRef(DG);
|
|
|
|
}
|
2011-10-18 03:48:19 +08:00
|
|
|
}
|