Implement libclang support for using directives (cursor + visitation +
suppressing USRs). Also, fix up the source location information for using directives so that the declaration location refers to the namespace name. llvm-svn: 112693
This commit is contained in:
@@ -658,10 +658,10 @@ void ASTDeclWriter::VisitUsingShadowDecl(UsingShadowDecl *D) {
|
||||
|
||||
void ASTDeclWriter::VisitUsingDirectiveDecl(UsingDirectiveDecl *D) {
|
||||
VisitNamedDecl(D);
|
||||
Writer.AddSourceLocation(D->getUsingLoc(), Record);
|
||||
Writer.AddSourceLocation(D->getNamespaceKeyLocation(), Record);
|
||||
Writer.AddSourceRange(D->getQualifierRange(), Record);
|
||||
Writer.AddNestedNameSpecifier(D->getQualifier(), Record);
|
||||
Writer.AddSourceLocation(D->getIdentLocation(), Record);
|
||||
Writer.AddDeclRef(D->getNominatedNamespace(), Record);
|
||||
Writer.AddDeclRef(dyn_cast<Decl>(D->getCommonAncestor()), Record);
|
||||
Code = serialization::DECL_USING_DIRECTIVE;
|
||||
|
||||
Reference in New Issue
Block a user