[PATCH] D108710: [clang][deps] Reset non-modular language and preprocessor options

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 25 10:09:26 PDT 2021


jansvoboda11 created this revision.
jansvoboda11 added reviewers: Bigcheese, dexonsmith, arphaman.
jansvoboda11 requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

There are a number of language and preprocessor options that are reset in the `CompilerInvocation` that describes the build of an implicit module. This patch uses the logic for explicit modules as well.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108710

Files:
  clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
  clang/test/ClangScanDeps/Inputs/removed-args/cdb.json.template
  clang/test/ClangScanDeps/Inputs/removed-args/header.h
  clang/test/ClangScanDeps/Inputs/removed-args/mod_header.h
  clang/test/ClangScanDeps/Inputs/removed-args/mod_tu.h
  clang/test/ClangScanDeps/Inputs/removed-args/module.modulemap
  clang/test/ClangScanDeps/Inputs/removed-args/tu.c
  clang/test/ClangScanDeps/removed-args.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108710.368672.patch
Type: text/x-patch
Size: 4426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210825/90df3b11/attachment.bin>


More information about the cfe-commits mailing list