mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IDE] Use ClangNode::getLocation().
Swift SVN r16253
This commit is contained in:
@@ -195,12 +195,7 @@ void swift::ide::printSubmoduleInterface(
|
||||
continue;
|
||||
}
|
||||
if (auto CN = D->getClangNode()) {
|
||||
clang::SourceLocation Loc;
|
||||
if (auto *CD = CN.getAsDecl()) {
|
||||
Loc = CD->getLocation();
|
||||
} else {
|
||||
Loc = CN.getAsMacro()->getDefinitionLoc();
|
||||
}
|
||||
clang::SourceLocation Loc = CN.getLocation();
|
||||
|
||||
auto *OwningModule = Importer.getClangOwningModule(CN);
|
||||
auto I = ClangDecls.find(OwningModule);
|
||||
|
||||
Reference in New Issue
Block a user