[all-commits] [llvm/llvm-project] ea93d7: [CFG] Add an option to expand CXXDefaultInitExpr i...

Gábor Horváth via All-commits all-commits at lists.llvm.org
Tue Dec 17 17:56:28 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ea93d7d6421612e9ea51b321eaf97fbdd64fe39b
      https://github.com/llvm/llvm-project/commit/ea93d7d6421612e9ea51b321eaf97fbdd64fe39b
  Author: Gabor Horvath <xazax at google.com>
  Date:   2019-12-17 (Tue, 17 Dec 2019)

  Changed paths:
    M clang/include/clang/Analysis/CFG.h
    M clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
    M clang/lib/Analysis/CFG.cpp
    M clang/lib/StaticAnalyzer/Core/AnalysisManager.cpp
    A clang/test/Analysis/aggrinit-cfg-output.cpp
    M clang/test/Analysis/analyzer-config.c

  Log Message:
  -----------
  [CFG] Add an option to expand CXXDefaultInitExpr into aggregate initialization

This is useful for clients that are relying on linearized CFGs for evaluating
subexpressions and want the default initializer to be evaluated properly.

The upcoming lifetime analysis is using this but it might also be useful
for the static analyzer at some point.

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




More information about the All-commits mailing list