[all-commits] [llvm/llvm-project] 2054ed: [clangd] Store xref for Macros in ParsedAST.

UTKARSH SAXENA via All-commits all-commits at lists.llvm.org
Mon Nov 18 07:48:11 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2054ed052f15b584e1bce57c8f765991eab2da7d
      https://github.com/llvm/llvm-project/commit/2054ed052f15b584e1bce57c8f765991eab2da7d
  Author: Utkarsh Saxena <usx at google.com>
  Date:   2019-11-18 (Mon, 18 Nov 2019)

  Changed paths:
    M clang-tools-extra/clangd/CollectMacros.h
    M clang-tools-extra/clangd/SemanticHighlighting.cpp
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/unittests/CMakeLists.txt
    A clang-tools-extra/clangd/unittests/CollectMacrosTests.cpp
    M clang-tools-extra/clangd/unittests/ParsedASTTests.cpp

  Log Message:
  -----------
  [clangd] Store xref for Macros in ParsedAST.

This patch adds the cross references for Macros in the MainFile.
We add references for the main file to the ParsedAST. We query the
references from it using the SymbolID.
Xref outside main file will be added to the index in a separate patch.




More information about the All-commits mailing list