[CrossTU] Fix problem with CrossTU AST load limit and progress messages.
authorBalazs Keri <1.int32@gmail.com>
Mon, 12 Aug 2019 07:15:29 +0000 (07:15 +0000)
committerBalazs Keri <1.int32@gmail.com>
Mon, 12 Aug 2019 07:15:29 +0000 (07:15 +0000)
commit4b9d20008bbcc3cc4a36dca73e7ccec16779abd6
tree2ba34bdd5738283ec3dfc0d83ed265c1010be901
parent8750c77df4cdf8c39065f3053491b645576da93b
[CrossTU] Fix problem with CrossTU AST load limit and progress messages.

Summary:
Number of loaded ASTs is to be incremented only if the AST was really loaded
but not if it was returned from cache. At the same place the message about
a loaded AST is displayed.

Reviewers: martong, gamesh411

Reviewed By: martong

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

Tags: #clang

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

llvm-svn: 368545
clang/include/clang/CrossTU/CrossTranslationUnit.h
clang/lib/CrossTU/CrossTranslationUnit.cpp