Coverage Report

Created: 2018-09-21 05:35

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/SValVisitor.h
Line
Count
Source (jump to first uncovered line)
1
//===--- SValVisitor.h - Visitor for SVal subclasses ------------*- 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 the SValVisitor, SymExprVisitor, and MemRegionVisitor
11
//  interfaces, and also FullSValVisitor, which visits all three hierarchies.
12
//
13
//===----------------------------------------------------------------------===//
14
15
#ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALVISITOR_H
16
#define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_SVALVISITOR_H
17
18
#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.h"
19
#include "clang/StaticAnalyzer/Core/PathSensitive/SymbolManager.h"
20
#include "clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h"
21
22
namespace clang {
23
24
namespace ento {
25
26
/// SValVisitor - this class implements a simple visitor for SVal
27
/// subclasses.
28
template <typename ImplClass, typename RetTy = void> class SValVisitor {
29
public:
30
31
#define DISPATCH(NAME, CLASS) \
32
752k
  return static_cast<ImplClass *>(this)->Visit ## NAME(V.castAs<CLASS>())
33
34
134k
  RetTy Visit(SVal V) {
35
134k
    // Dispatch to VisitFooVal for each FooVal.
36
134k
    // Take namespaces (loc:: and nonloc::) into account.
37
134k
    switch (V.getBaseKind()) {
38
268k
#define BASIC_SVAL(Id, Parent) 
case SVal::Id ## Kind: 8
DISPATCH(Id, Id);
39
134k
#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.def"
40
134k
    case SVal::LocKind:
41
25
      switch (V.getSubKind()) {
42
25
#define LOC_SVAL(Id, Parent) \
43
50
      
case loc::Id ## Kind: 25
DISPATCH(Loc ## Id, loc :: Id);
44
25
#include 
"clang/StaticAnalyzer/Core/PathSensitive/SVals.def"2
45
25
      }
46
25
      
llvm_unreachable0
("Unknown Loc sub-kind!");
47
134k
    case SVal::NonLocKind:
48
134k
      switch (V.getSubKind()) {
49
134k
#define NONLOC_SVAL(Id, Parent) \
50
204k
      
case nonloc::Id ## Kind: 134k
DISPATCH(NonLoc ## Id, nonloc :: Id);
51
134k
#include 
"clang/StaticAnalyzer/Core/PathSensitive/SVals.def"0
52
134k
      }
53
134k
      
llvm_unreachable0
("Unknown NonLoc sub-kind!");
54
134k
    }
55
134k
    
llvm_unreachable0
("Unknown SVal kind!");
56
134k
  }
clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::Visit(clang::ento::SVal)
Line
Count
Source
34
46
  RetTy Visit(SVal V) {
35
46
    // Dispatch to VisitFooVal for each FooVal.
36
46
    // Take namespaces (loc:: and nonloc::) into account.
37
46
    switch (V.getBaseKind()) {
38
46
#define BASIC_SVAL(Id, Parent) case SVal::Id ## Kind: DISPATCH(Id, Id);
39
46
#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.def"
40
46
    case SVal::LocKind:
41
25
      switch (V.getSubKind()) {
42
25
#define LOC_SVAL(Id, Parent) \
43
25
      case loc::Id ## Kind: DISPATCH(Loc ## Id, loc :: Id);
44
25
#include 
"clang/StaticAnalyzer/Core/PathSensitive/SVals.def"2
45
25
      }
46
25
      
llvm_unreachable0
("Unknown Loc sub-kind!");
47
25
    case SVal::NonLocKind:
48
20
      switch (V.getSubKind()) {
49
20
#define NONLOC_SVAL(Id, Parent) \
50
20
      case nonloc::Id ## Kind: DISPATCH(NonLoc ## Id, nonloc :: Id);
51
20
#include 
"clang/StaticAnalyzer/Core/PathSensitive/SVals.def"0
52
20
      }
53
20
      
llvm_unreachable0
("Unknown NonLoc sub-kind!");
54
46
    }
55
46
    
llvm_unreachable0
("Unknown SVal kind!");
56
  }
SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::Visit(clang::ento::SVal)
Line
Count
Source
34
134k
  RetTy Visit(SVal V) {
35
134k
    // Dispatch to VisitFooVal for each FooVal.
36
134k
    // Take namespaces (loc:: and nonloc::) into account.
37
134k
    switch (V.getBaseKind()) {
38
134k
#define BASIC_SVAL(Id, Parent) case SVal::Id ## Kind: DISPATCH(Id, Id);
39
134k
#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.def"
40
134k
    case SVal::LocKind:
41
0
      switch (V.getSubKind()) {
42
0
#define LOC_SVAL(Id, Parent) \
43
0
      case loc::Id ## Kind: DISPATCH(Loc ## Id, loc :: Id);
44
0
#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.def"
45
0
      }
46
0
      llvm_unreachable("Unknown Loc sub-kind!");
47
134k
    case SVal::NonLocKind:
48
134k
      switch (V.getSubKind()) {
49
134k
#define NONLOC_SVAL(Id, Parent) \
50
134k
      case nonloc::Id ## Kind: DISPATCH(NonLoc ## Id, nonloc :: Id);
51
134k
#include 
"clang/StaticAnalyzer/Core/PathSensitive/SVals.def"0
52
134k
      }
53
134k
      
llvm_unreachable0
("Unknown NonLoc sub-kind!");
54
134k
    }
55
134k
    
llvm_unreachable0
("Unknown SVal kind!");
56
  }
57
58
#define BASIC_SVAL(Id, Parent) \
59
209k
  RetTy Visit ## Id(Id V) { DISPATCH(Parent, Id); }
Unexecuted instantiation: clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitLoc(clang::ento::Loc)
Unexecuted instantiation: clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitDefinedSVal(clang::ento::DefinedSVal)
Unexecuted instantiation: clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitDefinedOrUnknownSVal(clang::ento::DefinedOrUnknownSVal)
Unexecuted instantiation: clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitNonLoc(clang::ento::NonLoc)
Unexecuted instantiation: SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitUndefinedVal(clang::ento::UndefinedVal)
SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitUnknownVal(clang::ento::UnknownVal)
Line
Count
Source
59
7
  RetTy Visit ## Id(Id V) { DISPATCH(Parent, Id); }
SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitDefinedOrUnknownSVal(clang::ento::DefinedOrUnknownSVal)
Line
Count
Source
59
69.8k
  RetTy Visit ## Id(Id V) { DISPATCH(Parent, Id); }
Unexecuted instantiation: SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitLoc(clang::ento::Loc)
SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitDefinedSVal(clang::ento::DefinedSVal)
Line
Count
Source
59
69.8k
  RetTy Visit ## Id(Id V) { DISPATCH(Parent, Id); }
SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitNonLoc(clang::ento::NonLoc)
Line
Count
Source
59
69.8k
  RetTy Visit ## Id(Id V) { DISPATCH(Parent, Id); }
60
#define ABSTRACT_SVAL(Id, Parent) \
61
  BASIC_SVAL(Id, Parent)
62
#define LOC_SVAL(Id, Parent) \
63
0
  RetTy VisitLoc ## Id(loc::Id V) { DISPATCH(Parent, Parent); }
Unexecuted instantiation: clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitLocGotoLabel(clang::ento::loc::GotoLabel)
Unexecuted instantiation: SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitLocConcreteInt(clang::ento::loc::ConcreteInt)
Unexecuted instantiation: SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitLocGotoLabel(clang::ento::loc::GotoLabel)
Unexecuted instantiation: SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitLocMemRegionVal(clang::ento::loc::MemRegionVal)
64
#define NONLOC_SVAL(Id, Parent) \
65
69.8k
  RetTy VisitNonLoc ## Id(nonloc::Id V) { DISPATCH(Parent, Parent); }
Unexecuted instantiation: clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitNonLocCompoundVal(clang::ento::nonloc::CompoundVal)
Unexecuted instantiation: clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitNonLocLocAsInteger(clang::ento::nonloc::LocAsInteger)
Unexecuted instantiation: clang::ento::SValVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitNonLocPointerToMember(clang::ento::nonloc::PointerToMember)
Unexecuted instantiation: SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitNonLocCompoundVal(clang::ento::nonloc::CompoundVal)
SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitNonLocConcreteInt(clang::ento::nonloc::ConcreteInt)
Line
Count
Source
65
69.8k
  RetTy VisitNonLoc ## Id(nonloc::Id V) { DISPATCH(Parent, Parent); }
Unexecuted instantiation: SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitNonLocLazyCompoundVal(clang::ento::nonloc::LazyCompoundVal)
SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitNonLocLocAsInteger(clang::ento::nonloc::LocAsInteger)
Line
Count
Source
65
3
  RetTy VisitNonLoc ## Id(nonloc::Id V) { DISPATCH(Parent, Parent); }
Unexecuted instantiation: SimpleSValBuilder.cpp:clang::ento::SValVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitNonLocPointerToMember(clang::ento::nonloc::PointerToMember)
66
#include "clang/StaticAnalyzer/Core/PathSensitive/SVals.def"
67
68
  // Base case, ignore it. :)
69
  RetTy VisitSVal(SVal V) { return RetTy(); }
70
71
#undef DISPATCH
72
};
73
74
/// SymExprVisitor - this class implements a simple visitor for SymExpr
75
/// subclasses.
76
template <typename ImplClass, typename RetTy = void> class SymExprVisitor {
77
public:
78
79
#define DISPATCH(CLASS) \
80
391k
    return static_cast<ImplClass *>(this)->Visit ## CLASS(cast<CLASS>(S))
81
82
145k
  RetTy Visit(SymbolRef S) {
83
145k
    // Dispatch to VisitSymbolFoo for each SymbolFoo.
84
145k
    switch (S->getKind()) {
85
145k
#define SYMBOL(Id, Parent) \
86
289k
    
case SymExpr::Id ## Kind: 145k
DISPATCH(Id);
87
145k
#include 
"clang/StaticAnalyzer/Core/PathSensitive/Symbols.def"170
88
145k
    }
89
145k
    
llvm_unreachable0
("Unknown SymExpr kind!");
90
145k
  }
clang::ento::SymExprVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::Visit(clang::ento::SymExpr const*)
Line
Count
Source
82
33
  RetTy Visit(SymbolRef S) {
83
33
    // Dispatch to VisitSymbolFoo for each SymbolFoo.
84
33
    switch (S->getKind()) {
85
33
#define SYMBOL(Id, Parent) \
86
33
    case SymExpr::Id ## Kind: DISPATCH(Id);
87
33
#include 
"clang/StaticAnalyzer/Core/PathSensitive/Symbols.def"0
88
33
    }
89
33
    
llvm_unreachable0
("Unknown SymExpr kind!");
90
  }
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::Visit(clang::ento::SymExpr const*)
Line
Count
Source
82
145k
  RetTy Visit(SymbolRef S) {
83
145k
    // Dispatch to VisitSymbolFoo for each SymbolFoo.
84
145k
    switch (S->getKind()) {
85
145k
#define SYMBOL(Id, Parent) \
86
145k
    case SymExpr::Id ## Kind: DISPATCH(Id);
87
145k
#include 
"clang/StaticAnalyzer/Core/PathSensitive/Symbols.def"170
88
145k
    }
89
145k
    
llvm_unreachable0
("Unknown SymExpr kind!");
90
  }
91
92
  // If the implementation chooses not to implement a certain visit method, fall
93
  // back on visiting the superclass.
94
102k
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
Unexecuted instantiation: clang::ento::SymExprVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitIntSymExpr(clang::ento::IntSymExpr const*)
Unexecuted instantiation: clang::ento::SymExprVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitBinarySymExpr(clang::ento::BinarySymExpr const*)
Unexecuted instantiation: clang::ento::SymExprVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitSymbolCast(clang::ento::SymbolCast const*)
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitIntSymExpr(clang::ento::IntSymExpr const*)
Line
Count
Source
94
170
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitBinarySymExpr(clang::ento::BinarySymExpr const*)
Line
Count
Source
94
170
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitSymbolCast(clang::ento::SymbolCast const*)
Line
Count
Source
94
20
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitSymbolConjured(clang::ento::SymbolConjured const*)
Line
Count
Source
94
65.1k
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitSymbolDerived(clang::ento::SymbolDerived const*)
Line
Count
Source
94
9.81k
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitSymbolExtent(clang::ento::SymbolExtent const*)
Line
Count
Source
94
2.53k
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitSymbolMetadata(clang::ento::SymbolMetadata const*)
Line
Count
Source
94
1.29k
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
SimpleSValBuilder.cpp:clang::ento::SymExprVisitor<(anonymous namespace)::SimpleSValBuilder::simplifySVal(llvm::IntrusiveRefCntPtr<clang::ento::ProgramState const>, clang::ento::SVal)::Simplifier, clang::ento::SVal>::VisitSymbolRegionValue(clang::ento::SymbolRegionValue const*)
Line
Count
Source
94
23.0k
#define SYMBOL(Id, Parent) RetTy Visit ## Id(const Id *S) { DISPATCH(Parent); }
95
#define ABSTRACT_SYMBOL(Id, Parent) SYMBOL(Id, Parent)
96
#include "clang/StaticAnalyzer/Core/PathSensitive/Symbols.def"
97
98
  // Base case, ignore it. :)
99
  RetTy VisitSymExpr(SymbolRef S) { return RetTy(); }
100
101
#undef DISPATCH
102
};
103
104
/// MemRegionVisitor - this class implements a simple visitor for MemRegion
105
/// subclasses.
106
template <typename ImplClass, typename RetTy = void> class MemRegionVisitor {
107
public:
108
109
#define DISPATCH(CLASS) \
110
86
  return static_cast<ImplClass *>(this)->Visit ## CLASS(cast<CLASS>(R))
111
112
43
  RetTy Visit(const MemRegion *R) {
113
43
    // Dispatch to VisitFooRegion for each FooRegion.
114
43
    switch (R->getKind()) {
115
86
#define REGION(Id, Parent) 
case MemRegion::Id ## Kind: 43
DISPATCH(Id);
116
43
#include 
"clang/StaticAnalyzer/Core/PathSensitive/Regions.def"0
117
43
    }
118
43
    
llvm_unreachable0
("Unknown MemRegion kind!");
119
43
  }
120
121
  // If the implementation chooses not to implement a certain visit method, fall
122
  // back on visiting the superclass.
123
#define REGION(Id, Parent) \
124
0
  RetTy Visit ## Id(const Id *R) { DISPATCH(Parent); }
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitCodeSpaceRegion(clang::ento::CodeSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitMemSpaceRegion(clang::ento::MemSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitGlobalImmutableSpaceRegion(clang::ento::GlobalImmutableSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitNonStaticGlobalSpaceRegion(clang::ento::NonStaticGlobalSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitGlobalsSpaceRegion(clang::ento::GlobalsSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitGlobalInternalSpaceRegion(clang::ento::GlobalInternalSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitGlobalSystemSpaceRegion(clang::ento::GlobalSystemSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitStaticGlobalSpaceRegion(clang::ento::StaticGlobalSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitHeapSpaceRegion(clang::ento::HeapSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitStackArgumentsSpaceRegion(clang::ento::StackArgumentsSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitStackSpaceRegion(clang::ento::StackSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitStackLocalsSpaceRegion(clang::ento::StackLocalsSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitUnknownSpaceRegion(clang::ento::UnknownSpaceRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitBlockDataRegion(clang::ento::BlockDataRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitTypedRegion(clang::ento::TypedRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitSubRegion(clang::ento::SubRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitBlockCodeRegion(clang::ento::BlockCodeRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitCodeTextRegion(clang::ento::CodeTextRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitFunctionCodeRegion(clang::ento::FunctionCodeRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitCXXDerivedObjectRegion(clang::ento::CXXDerivedObjectRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitTypedValueRegion(clang::ento::TypedValueRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitCXXThisRegion(clang::ento::CXXThisRegion const*)
Unexecuted instantiation: clang::ento::MemRegionVisitor<clang::ento::SValExplainer, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >::VisitObjCStringRegion(clang::ento::ObjCStringRegion const*)
125
#define ABSTRACT_REGION(Id, Parent) \
126
  REGION(Id, Parent)
127
#include "clang/StaticAnalyzer/Core/PathSensitive/Regions.def"
128
129
  // Base case, ignore it. :)
130
  RetTy VisitMemRegion(const MemRegion *R) { return RetTy(); }
131
132
#undef DISPATCH
133
};
134
135
/// FullSValVisitor - a convenient mixed visitor for all three:
136
/// SVal, SymExpr and MemRegion subclasses.
137
template <typename ImplClass, typename RetTy = void>
138
class FullSValVisitor : public SValVisitor<ImplClass, RetTy>,
139
                        public SymExprVisitor<ImplClass, RetTy>,
140
                        public MemRegionVisitor<ImplClass, RetTy> {
141
public:
142
  using SValVisitor<ImplClass, RetTy>::Visit;
143
  using SymExprVisitor<ImplClass, RetTy>::Visit;
144
  using MemRegionVisitor<ImplClass, RetTy>::Visit;
145
};
146
147
} // end namespace ento
148
149
} // end namespace clang
150
151
#endif