]> granicus.if.org Git - clang/commit
[CodeComplete] Fix ASTUnit cached completion of macros from preamble, broken in r342528
authorSam McCall <sam.mccall@gmail.com>
Thu, 18 Jul 2019 07:17:49 +0000 (07:17 +0000)
committerSam McCall <sam.mccall@gmail.com>
Thu, 18 Jul 2019 07:17:49 +0000 (07:17 +0000)
commitbad4f7292a0c3e478729fadd890647d73f90b024
treefa77276808fab0c0f37bbe1d87b8446c83e09d6e
parent3ea971c239fde3d03b91c5095e5a88aac86d1df6
[CodeComplete] Fix ASTUnit cached completion of macros from preamble, broken in r342528

Summary:
The problem is the default LoadExternal with no completer, which happens when
loading global results.

Reviewers: ilya-biryukov, nik

Subscribers: arphaman, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@366409 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaCodeComplete.cpp
test/Index/complete-macros.c
test/Index/complete-macros.h