[PATCH] D117024: [clang] Move `ApplyHeaderSearchOptions` from Frontend to Lex

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 11 07:29:21 PST 2022


jansvoboda11 created this revision.
jansvoboda11 added a reviewer: thakis.
Herald added a subscriber: mgorny.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

In D116750 <https://reviews.llvm.org/D116750>, the `clangFrontend` library was added as a dependency of `LexTests` in order to make `clang::ApplyHeaderSearchOptions()` available. This increased the number of TUs the test depends on.

This patch moves the function into `clangLex` and removes dependency of `LexTests` on `clangFrontend`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117024

Files:
  clang/include/clang/Frontend/Utils.h
  clang/include/clang/Lex/HeaderSearch.h
  clang/lib/Frontend/CMakeLists.txt
  clang/lib/Frontend/InitHeaderSearch.cpp
  clang/lib/Lex/CMakeLists.txt
  clang/lib/Lex/InitHeaderSearch.cpp
  clang/unittests/Lex/CMakeLists.txt
  clang/unittests/Lex/HeaderSearchTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117024.398941.patch
Type: text/x-patch
Size: 4324 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220111/42403fab/attachment.bin>


More information about the cfe-commits mailing list