From 07935105413aea765a065f7ed7660e327d3d4030 Mon Sep 17 00:00:00 2001 From: Riatre Foo Date: Mon, 15 Oct 2018 23:25:46 +0800 Subject: [PATCH] Fix is_local for vars with non-auto storage period --- src/indexer.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/indexer.hh b/src/indexer.hh index cc127b1d..e1d577ab 100644 --- a/src/indexer.hh +++ b/src/indexer.hh @@ -244,7 +244,8 @@ struct VarDef : NameMixin { parent_kind == SymbolKind::Method || parent_kind == SymbolKind::StaticMethod || parent_kind == SymbolKind::Constructor) && - storage == clang::SC_None; + (storage == clang::SC_None || storage == clang::SC_Auto || + storage == clang::SC_Register); } std::vector GetBases() const { return {}; }