[all-commits] [llvm/llvm-project] 811c0c: [analyzer] On-demand parsing capability for CTU

Endre Fülöp via All-commits all-commits at lists.llvm.org
Mon Apr 27 02:26:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 811c0c9eb462d1fef6ab6908aab7881e5c4f5fbf
      https://github.com/llvm/llvm-project/commit/811c0c9eb462d1fef6ab6908aab7881e5c4f5fbf
  Author: Endre Fülöp <endre.fulop at sigmatechnology.se>
  Date:   2020-04-27 (Mon, 27 Apr 2020)

  Changed paths:
    M clang/docs/analyzer/user-docs/CrossTranslationUnit.rst
    M clang/include/clang/CrossTU/CrossTranslationUnit.h
    M clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
    M clang/lib/CrossTU/CMakeLists.txt
    M clang/lib/CrossTU/CrossTranslationUnit.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Analysis/Inputs/ctu-other.c
    A clang/test/Analysis/Inputs/ctu-other.c.externalDefMap.ast-dump.txt
    R clang/test/Analysis/Inputs/ctu-other.c.externalDefMap.txt
    A clang/test/Analysis/Inputs/ctu-other.cpp.externalDefMap.ast-dump.txt
    R clang/test/Analysis/Inputs/ctu-other.cpp.externalDefMap.txt
    M clang/test/Analysis/analyzer-config.c
    M clang/test/Analysis/ctu-different-triples.cpp
    M clang/test/Analysis/ctu-main.c
    M clang/test/Analysis/ctu-main.cpp
    A clang/test/Analysis/ctu-on-demand-parsing-ambigous-compilation-database.c
    A clang/test/Analysis/ctu-on-demand-parsing.c
    A clang/test/Analysis/ctu-on-demand-parsing.cpp
    M clang/test/Analysis/ctu-unknown-parts-in-triples.cpp
    M clang/unittests/CrossTU/CrossTranslationUnitTest.cpp

  Log Message:
  -----------
  [analyzer] On-demand parsing capability for CTU

Summary:
Add an option to enable on-demand parsing of needed ASTs during CTU analysis.
Two options are introduced. CTUOnDemandParsing enables the feature, and
CTUOnDemandParsingDatabase specifies the path to a compilation database, which
has all the necessary information to generate the ASTs.

Reviewers: martong, balazske, Szelethus, xazax.hun

Subscribers: ormris, mgorny, whisperity, xazax.hun, baloghadamsoftware, szepet, rnkovacs, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, Charusso, steakhal, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list