mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 06:16:07 +00:00

In code-completion, don't assume there is a MacroInfo for everything, since we aren't serializing the def corresponding to a later #undef in the same module. Also setup the HadMacro bit correctly for undefs to avoid an assertion failure. rdar://18416901 llvm-svn: 218694
9 lines
358 B
Matlab
9 lines
358 B
Matlab
// RUN: rm -rf %t
|
|
// RUN: env CINDEXTEST_COMPLETION_CACHING=1 \
|
|
// RUN: c-index-test -test-load-source-reparse 2 local %s -fmodules -fmodules-cache-path=%t -I %S/Inputs \
|
|
// RUN: | FileCheck %s
|
|
|
|
// rdar://18416901 (used to crash)
|
|
// CHECK: complete-module-undef.m:8:1: ModuleImport=ModuleUndef:8:1 (Definition) Extent=[8:1 - 8:20]
|
|
@import ModuleUndef;
|