]> granicus.if.org Git - clang/commit
[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)
commit148de4441f5d840800364850d21cc07990b627ef
treea72924684011e2ee7c8a0e052f02b4911c0e383f
parentaa98950ec9ff900bdd09ed21cced65670d5b1e75
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247463 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
test/Analysis/analyzer-config.c
test/Analysis/analyzer-config.cpp