]> granicus.if.org Git - clang/commit
[ASTImporter] Corrected diagnostic client handling in tests.
authorAdam Balogh <adam.balogh@ericsson.com>
Fri, 15 Jun 2018 06:45:39 +0000 (06:45 +0000)
committerAdam Balogh <adam.balogh@ericsson.com>
Fri, 15 Jun 2018 06:45:39 +0000 (06:45 +0000)
commitf4feb15d81a87656029dc5a9da5391665c255283
treeed1339a29e7ee2bd9ddf7db1a1f1853cd805e17d
parent7653a4f768906f1c40620403bf7172e9bf5c9c21
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334804 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/ASTUnit.h
lib/Frontend/ASTUnit.cpp
unittests/AST/ASTImporterTest.cpp