[all-commits] [llvm/llvm-project] d12d0b: [analyzer] Add CTUImportCppThreshold for C++ files

Gabor Marton via All-commits all-commits at lists.llvm.org
Thu Jul 9 06:37:11 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d12d0b73f1c9c3a711c5cc15266a2b493cd712e9
      https://github.com/llvm/llvm-project/commit/d12d0b73f1c9c3a711c5cc15266a2b493cd712e9
  Author: Gabor Marton <gabor.marton at ericsson.com>
  Date:   2020-07-09 (Thu, 09 Jul 2020)

  Changed paths:
    M clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
    M clang/lib/CrossTU/CrossTranslationUnit.cpp
    M clang/test/Analysis/analyzer-config.c
    M clang/test/Analysis/ctu-import-threshold.c
    M clang/unittests/CrossTU/CrossTranslationUnitTest.cpp

  Log Message:
  -----------
  [analyzer] Add CTUImportCppThreshold for C++ files

Summary:
The default CTUImportThreshold (8) seems to be too conservative with C projects.
We increase this value to 24 and we introduce another threshold for C++ source
files (defaulted to 8) because their AST is way more compilcated than C source
files.

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




More information about the All-commits mailing list