[analyzer] Add -analyzer-config option for function size the inliner considers as...
authorDevin Coughlin <dcoughlin@apple.com>
Fri, 11 Sep 2015 20:14:05 +0000 (20:14 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Fri, 11 Sep 2015 20:14:05 +0000 (20:14 +0000)
commit0123af994ec5f46bd705c11b17fc14a2fefc4726
tree65317fb1e9458c81c1edbea44d8db625b39d5b8a
parent822e2887b956a1aa4c72a5920c7d060d1472c88b
[analyzer] Add -analyzer-config option for function size the inliner considers as large

Add an option (-analyzer-config min-blocks-for-inline-large=14) to control the function
size the inliner considers as large, in relation to "max-times-inline-large". The option
defaults to the original hard coded behaviour, which I believe should be adjustable with
the other inlining settings.

The analyzer-config test has been modified so that the analyzer will reach the
getMinBlocksForInlineLarge() method and store the result in the ConfigTable, to ensure it
is dumped by the debug checker.

A patch by Sean Eveson!

Differential Revision: http://reviews.llvm.org/D12406

llvm-svn: 247463
clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
clang/lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
clang/test/Analysis/analyzer-config.c
clang/test/Analysis/analyzer-config.cpp