mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 02:26:05 +00:00

Second attempt. Proper line endings. The parsing that is done for code completion is a special case that will discard any generated diagnostics, so avoid running plugins for this case in the first place to avoid performance penalties due to the plugins. A scenario for this is for example libclang with extra plugins like tidy. Patch by Nikolai Kosjar Differential Revision: https://reviews.llvm.org/D46050 llvm-svn: 332586
7 lines
247 B
C
7 lines
247 B
C
// RUN: c-index-test -code-completion-at=%s:7:1 -load %llvmshlibdir/PrintFunctionNames%pluginext -add-plugin print-fns %s | FileCheck %s
|
|
// REQUIRES: plugins, examples
|
|
// CHECK: macro definition:{{.*}}
|
|
// CHECK-NOT: top-level-decl: "x"
|
|
|
|
void x();
|