[ASTImporter] Fix import of NestedNameSpecifierLoc.
authorBalazs Keri <1.int32@gmail.com>
Thu, 14 Mar 2019 14:20:23 +0000 (14:20 +0000)
committerBalazs Keri <1.int32@gmail.com>
Thu, 14 Mar 2019 14:20:23 +0000 (14:20 +0000)
commit5f4fd8b79bf6a1911f639d541e6b94beaa16151f
treec1c0ec9482e39250fdf86712af3d75a1587422c8
parent989eca62c6b23f15fcc9da5de5f17b628fbde1db
[ASTImporter] Fix import of NestedNameSpecifierLoc.

Summary:
Import type location in case of TypeSpec and TypeSpecWithTemplate.
Without this fix the imported NespedNameSpecifierLoc will have an
invalid begin location.

Reviewers: a.sidorin, shafik, a_sidorin, martong

Reviewed By: a_sidorin

Subscribers: rnkovacs, jdoerfert, dkrupp, martong, Szelethus, gamesh411, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D55358

llvm-svn: 356151
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp