[PATCH] D52710: [clangd] Add "check-clangd" target

Haojian Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 1 02:58:05 PDT 2018


hokein added inline comments.


================
Comment at: test/CMakeLists.txt:76
 
-set(llvm_utils
-  FileCheck count not
-  )
-
-foreach(t ${llvm_utils})
-  if(TARGET ${t})
-    list(APPEND CLANG_TOOLS_TEST_DEPS ${t})
-  endif()
-endforeach()
-
+macro(add_llvm_utils_deps deps)
+  set(llvm_utils
----------------
sammccall wrote:
> Conversely, I'd consider just expanding these out into each of the dep lists rather than keeping two levels of indirection here.
> 
> 
Ah, I missed this comment. It seems that there is no elegant way to expand these to `CLANG_TOOLS_TEST_DEPS` and `CLANGD_TOOLS_TEST_DEPS`, we have to repeat the code twice. So I'd prefer using macro to eliminate code duplication.


Repository:
  rCTE Clang Tools Extra

https://reviews.llvm.org/D52710





More information about the cfe-commits mailing list