HomePhabricator

[analyzer][CrossTU] Extend CTU to VarDecls with initializer

Authored by r.stahl on Apr 23 2019, 4:04 AM.

Description

[analyzer][CrossTU] Extend CTU to VarDecls with initializer

Summary:
The existing CTU mechanism imports FunctionDecls where the definition is available in another TU. This patch extends that to VarDecls, to bind more constants.

  • Add VarDecl importing functionality to CrossTranslationUnitContext
  • Import Decls while traversing them in AnalysisConsumer
  • Add VarDecls to CTU external mappings generator
  • Name changes from "external function map" to "external definition map"

Reviewers: NoQ, dcoughlin, xazax.hun, george.karpenkov, martong

Reviewed By: xazax.hun

Subscribers: Charusso, baloghadamsoftware, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, george.karpenkov, mgorny, whisperity, szepet, rnkovacs, a.sidorin, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D46421

llvm-svn: 358968

Details

Committed
r.stahlApr 23 2019, 4:04 AM
Reviewer
xazax.hun
Differential Revision
D46421: [analyzer][CrossTU] Extend CTU to VarDecls with initializer
Parents
rG330bc8af131c: modify-python-lldb: Remove \a-removing code
Branches
Unknown
Tags
Unknown