aboutsummaryrefslogtreecommitdiff
path: root/include/clang/StaticAnalyzer/Core
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-08-09 02:57:02 +0000
committerAnna Zaks <ganna@apple.com>2012-08-09 02:57:02 +0000
commitfc05decf08feefd2ffe8cc250219aee6eab3119c (patch)
treef876157828a188ba3a7b4a6342093f2a145c23de /include/clang/StaticAnalyzer/Core
parent431e35c279972a28be8adc31e127a207e666498d (diff)
Unbreak the build.
Declaring "const Decl *Decl" is not a good idea. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core')
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
index ab1bcf1152..67bc1423db 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
@@ -68,12 +68,15 @@ public:
}
};
-struct RuntimeDefinition {
- const Decl *Decl;
- const MemRegion *Reg;
- RuntimeDefinition(): Decl(0), Reg(0) {}
- RuntimeDefinition(const class Decl *D): Decl(D), Reg(0) {}
- RuntimeDefinition(const class Decl *D, const MemRegion *R): Decl(D), Reg(R){}
+class RuntimeDefinition {
+ const Decl *D;
+ const MemRegion *R;
+public:
+ RuntimeDefinition(): D(0), R(0) {}
+ RuntimeDefinition(const Decl *InD): D(InD), R(0) {}
+ RuntimeDefinition(const Decl *InD, const MemRegion *InR): D(InD), R(InR) {}
+ const Decl *getDecl() { return D;}
+ const MemRegion *getReg() {return R;}
};
/// \brief Represents an abstract call to a function or method along a