]> granicus.if.org Git - clang/commit
[analyzer] Add analyzer option to limit the number of imported TUs
authorEndre Fulop <endre.fulop@sigmatechnology.se>
Mon, 8 Jul 2019 12:37:10 +0000 (12:37 +0000)
committerEndre Fulop <endre.fulop@sigmatechnology.se>
Mon, 8 Jul 2019 12:37:10 +0000 (12:37 +0000)
commitfbc4d7bcd574afb4b7cd6ad9c49058fce6f53955
tree84f92bea3ebf1d9387d945d35421f28646f44600
parente7f2bc4f8f9dc90e536bf24465fca9142e9d1a9d
[analyzer] Add analyzer option to limit the number of imported TUs

Summary:
During CTU analysis of complex projects, the loaded AST-contents of
imported TUs can grow bigger than available system memory. This option
introduces a threshold on the number of TUs to be imported for a single
TU in order to prevent such cases.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@365314 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CrossTU/CrossTranslationUnit.h
include/clang/StaticAnalyzer/Core/AnalyzerOptions.def
lib/CrossTU/CrossTranslationUnit.cpp
test/Analysis/analyzer-config.c
test/Analysis/ctu-import-threshold.c [new file with mode: 0644]
unittests/CrossTU/CrossTranslationUnitTest.cpp