mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-07 12:56:07 +00:00

Summary: Previously, clang index ignored local symbols defined in the function body even IndexFunctionLocals is true. Reviewers: sammccall Reviewed By: sammccall Subscribers: ilya-biryukov, ioeric, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D52877 llvm-svn: 343767
6 lines
193 B
C++
6 lines
193 B
C++
void ff() {
|
|
struct Foo {};
|
|
}
|
|
|
|
// RUN: env CINDEXTEST_INDEXLOCALSYMBOLS=1 c-index-test -index-file %s | FileCheck %s
|
|
// CHECK: [indexDeclaration]: kind: struct | name: Foo | {{.*}} | loc: 2:10
|