зеркало из https://github.com/microsoft/clang-1.git
We should only scan for nested blocks if we are analyzing the body of a function/method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
864db01dec
Коммит
130d5ffbb2
|
@ -302,7 +302,7 @@ void AnalysisConsumer::HandleCode(Decl *D, Stmt* Body, Actions& actions) {
|
|||
llvm::SmallVector<Decl*, 10> WL;
|
||||
WL.push_back(D);
|
||||
|
||||
if (Opts.AnalyzeNestedBlocks)
|
||||
if (Body && Opts.AnalyzeNestedBlocks)
|
||||
FindBlocks(cast<DeclContext>(D), WL);
|
||||
|
||||
for (Actions::iterator I = actions.begin(), E = actions.end(); I != E; ++I)
|
||||
|
|
Загрузка…
Ссылка в новой задаче