clang
3.7.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
work
release_test
rc4
llvm.src
tools
clang
lib
StaticAnalyzer
Core
FunctionSummary.cpp
Go to the documentation of this file.
1
//== FunctionSummary.cpp - Stores summaries of functions. ----------*- C++ -*-//
2
//
3
// The LLVM Compiler Infrastructure
4
//
5
// This file is distributed under the University of Illinois Open Source
6
// License. See LICENSE.TXT for details.
7
//
8
//===----------------------------------------------------------------------===//
9
//
10
// This file defines a summary of a function gathered/used by static analysis.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#include "
clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h
"
15
using namespace
clang;
16
using namespace
ento;
17
18
unsigned
FunctionSummariesTy::getTotalNumBasicBlocks
() {
19
unsigned
Total = 0;
20
for
(MapTy::iterator I = Map.begin(), E = Map.end(); I != E; ++I) {
21
Total += I->second.TotalBasicBlocks;
22
}
23
return
Total;
24
}
25
26
unsigned
FunctionSummariesTy::getTotalNumVisitedBasicBlocks
() {
27
unsigned
Total = 0;
28
for
(MapTy::iterator I = Map.begin(), E = Map.end(); I != E; ++I) {
29
Total += I->second.VisitedBasicBlocks.count();
30
}
31
return
Total;
32
}
clang::ento::FunctionSummariesTy::getTotalNumBasicBlocks
unsigned getTotalNumBasicBlocks()
Definition:
FunctionSummary.cpp:18
FunctionSummary.h
clang::ento::FunctionSummariesTy::getTotalNumVisitedBasicBlocks
unsigned getTotalNumVisitedBasicBlocks()
Definition:
FunctionSummary.cpp:26
Generated on Mon Aug 31 2015 10:45:17 for clang by
1.8.6