HomePhabricator

[ASTImporter] Corrected diagnostic client handling in tests.

Authored by baloghadamsoftware on Jun 14 2018, 11:45 PM.

Description

[ASTImporter] Corrected diagnostic client handling in tests.

ASTImporter tests may produce source file related warnings, the diagnostic
client should be in correct state to handle it. Added 'beginSourceFile' to set
the client state.

Patch by: Balázs Kéri

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

llvm-svn: 334804