[all-commits] [llvm/llvm-project] aaa8b4: [clangd] Add a TestWorkspace utility

Nathan Ridge via All-commits all-commits at lists.llvm.org
Sat Oct 24 17:15:56 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: aaa8b44d19918ea1764339224cec68c27445aa8e
      https://github.com/llvm/llvm-project/commit/aaa8b44d19918ea1764339224cec68c27445aa8e
  Author: Nathan Ridge <zeratul976 at hotmail.com>
  Date:   2020-10-24 (Sat, 24 Oct 2020)

  Changed paths:
    M clang-tools-extra/clangd/unittests/BackgroundIndexTests.cpp
    M clang-tools-extra/clangd/unittests/CMakeLists.txt
    M clang-tools-extra/clangd/unittests/FileIndexTests.cpp
    M clang-tools-extra/clangd/unittests/TestTU.cpp
    M clang-tools-extra/clangd/unittests/TestTU.h
    A clang-tools-extra/clangd/unittests/TestWorkspace.cpp
    A clang-tools-extra/clangd/unittests/TestWorkspace.h
    M llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn

  Log Message:
  -----------
  [clangd] Add a TestWorkspace utility

TestWorkspace allows easily writing tests involving multiple
files that can have inclusion relationships between them.

BackgroundIndexTest.RelationsMultiFile is refactored to use
TestWorkspace, and moved to FileIndexTest as it no longer
depends on BackgroundIndex.

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




More information about the All-commits mailing list