forked from OSchip/llvm-project
parent
f62080451c
commit
af10ea2055
|
@ -7086,8 +7086,10 @@ CXLinkageKind clang_getCursorLinkage(CXCursor cursor) {
|
|||
switch (ND->getLinkageInternal()) {
|
||||
case NoLinkage:
|
||||
case VisibleNoLinkage: return CXLinkage_NoLinkage;
|
||||
case ModuleInternalLinkage:
|
||||
case InternalLinkage: return CXLinkage_Internal;
|
||||
case UniqueExternalLinkage: return CXLinkage_UniqueExternal;
|
||||
case ModuleLinkage:
|
||||
case ExternalLinkage: return CXLinkage_External;
|
||||
};
|
||||
|
||||
|
|
|
@ -423,11 +423,13 @@ bool CXIndexDataConsumer::isFunctionLocalDecl(const Decl *D) {
|
|||
if (const NamedDecl *ND = dyn_cast<NamedDecl>(D)) {
|
||||
switch (ND->getFormalLinkage()) {
|
||||
case NoLinkage:
|
||||
case VisibleNoLinkage:
|
||||
case InternalLinkage:
|
||||
return true;
|
||||
case VisibleNoLinkage:
|
||||
case ModuleInternalLinkage:
|
||||
case UniqueExternalLinkage:
|
||||
llvm_unreachable("Not a sema linkage");
|
||||
case ModuleLinkage:
|
||||
case ExternalLinkage:
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue