[all-commits] [llvm/llvm-project] d76057: Add document outline symbols from unnamed contexts...

Ilya Golovenko via All-commits all-commits at lists.llvm.org
Mon Aug 3 02:36:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d76057c1fe6a368e9e422cf586e09fba827c96e1
      https://github.com/llvm/llvm-project/commit/d76057c1fe6a368e9e422cf586e09fba827c96e1
  Author: Ilya Golovenko <ilya.golovenko at huawei.com>
  Date:   2020-08-03 (Mon, 03 Aug 2020)

  Changed paths:
    M clang-tools-extra/clangd/FindSymbols.cpp
    M clang-tools-extra/clangd/unittests/FindSymbolsTests.cpp

  Log Message:
  -----------
  Add document outline symbols from unnamed contexts, e.g. extern "C".

It is necessary to traverse children of unnamed declaration contexts
to get symbols which are currently missing in document outline, e.g.:

extern "C" {
void foo();
}

Reviewed By: kadircet

Differential Revision: https://reviews.llvm.org/D84839




More information about the All-commits mailing list