зеркало из https://github.com/microsoft/clang-1.git
Initialize all the AnalysisBasedWarnings statistics to zero.
Found by valgrind. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5b4a40a9d7
Коммит
54cf341bd4
|
@ -600,8 +600,14 @@ clang::sema::AnalysisBasedWarnings::Policy::Policy() {
|
|||
clang::sema::AnalysisBasedWarnings::AnalysisBasedWarnings(Sema &s)
|
||||
: S(s),
|
||||
NumFunctionsAnalyzed(0),
|
||||
NumFunctionsWithBadCFGs(0),
|
||||
NumCFGBlocks(0),
|
||||
MaxCFGBlocksPerFunction(0) {
|
||||
MaxCFGBlocksPerFunction(0),
|
||||
NumUninitAnalysisFunctions(0),
|
||||
NumUninitAnalysisVariables(0),
|
||||
MaxUninitAnalysisVariablesPerFunction(0),
|
||||
NumUninitAnalysisBlockVisits(0),
|
||||
MaxUninitAnalysisBlockVisitsPerFunction(0) {
|
||||
Diagnostic &D = S.getDiagnostics();
|
||||
DefaultPolicy.enableCheckUnreachable = (unsigned)
|
||||
(D.getDiagnosticLevel(diag::warn_unreachable, SourceLocation()) !=
|
||||
|
|
Загрузка…
Ссылка в новой задаче