[PATCH] D122805: [analyzer][ctu] Only import const and trivial VarDecls

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 31 05:59:57 PDT 2022


martong created this revision.
martong added reviewers: steakhal, gamesh411.
Herald added subscribers: manas, ASDenysPetrov, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, rnkovacs, szepet, baloghadamsoftware, xazax.hun.
Herald added a reviewer: Szelethus.
Herald added a project: All.
martong requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Do import the definition of objects from a foreign translation unit if that's type is const and trivial.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122805

Files:
  clang/include/clang/CrossTU/CrossTranslationUnit.h
  clang/lib/CrossTU/CrossTranslationUnit.cpp
  clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
  clang/test/Analysis/Inputs/ctu-other.cpp
  clang/test/Analysis/Inputs/ctu-other.cpp.externalDefMap.ast-dump.txt
  clang/test/Analysis/ctu-main.cpp
  clang/test/Analysis/func-mapping-test.cpp
  clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122805.419414.patch
Type: text/x-patch
Size: 6739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220331/81950b3c/attachment.bin>


More information about the cfe-commits mailing list