[PATCH] D108982: [clang][deps] Avoid creating diagnostic serialization file, add test

Jan Svoboda via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 31 03:03:30 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.

Inject custom diagnostic options into `ToolInvocation` with stripped diagnostic serialization file to make test pass again. Also add test that confirms the driver -> cc1 command-line transformation/parsing respects `-Wno-error=...`.

Depends on D108981 <https://reviews.llvm.org/D108981>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108982

Files:
  clang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h
  clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
  clang/test/ClangScanDeps/Inputs/diagnostics/cdb.json.template
  clang/test/ClangScanDeps/Inputs/diagnostics/tu.c
  clang/test/ClangScanDeps/diagnostics.c
  clang/test/ClangScanDeps/strip_diag_serialize.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108982.369665.patch
Type: text/x-patch
Size: 5362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210831/9e28d0c6/attachment.bin>


More information about the cfe-commits mailing list