From 233ed4f741cb9f3f22a6330900677492157375e7 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 191f8074..fb762ac1 100644 --- a/src/indexer.hh +++ b/src/indexer.hh @@ -256,7 +256,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 {}; }