[PATCH] D45839: [analyzer] Add support for WebKit "unified sources".

Artem Dergachev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 19 14:59:30 PDT 2018


NoQ created this revision.
NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet.
Herald added subscribers: cfe-commits, rnkovacs, baloghadamsoftware.

Since recently, WebKit uses a peculiar build system that compiles multiple translation units at once by automatically joining them into a bigger file via `#include`. Because none of the functions end up in the main file, we disable all our path-sensitive checks on such unified sources. Try to work around that.


Repository:
  rC Clang

https://reviews.llvm.org/D45839

Files:
  include/clang/StaticAnalyzer/Core/PathSensitive/AnalysisManager.h
  lib/StaticAnalyzer/Core/CallEvent.cpp
  lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
  lib/StaticAnalyzer/Core/PathDiagnostic.cpp
  lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  test/Analysis/unified-sources/UnifiedSource-1.cpp
  test/Analysis/unified-sources/source1.cpp
  test/Analysis/unified-sources/source2.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45839.143166.patch
Type: text/x-patch
Size: 7462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180419/a1484c43/attachment.bin>


More information about the cfe-commits mailing list