diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-23 23:44:04 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-23 23:44:04 +0000 |
commit | 633caca35396864f9de09b3dae6e165d917ce698 (patch) | |
tree | 2a5540826621e653e8bc0e50db0bccc8b9d7ec9c /clang/lib/Sema/Sema.h | |
parent | 8a9fa3af6911f61fe71df752aaba6d6f292563ae (diff) | |
download | bcm5719-llvm-633caca35396864f9de09b3dae6e165d917ce698.tar.gz bcm5719-llvm-633caca35396864f9de09b3dae6e165d917ce698.zip |
Explicitly track the condition variable within an "if" statement,
rather than burying it in a CXXConditionDeclExpr (that occassionally
hides behind implicit conversions). Similar changes for
switch, while, and do-while will follow, then the removal of
CXXConditionDeclExpr. This commit is the canary.
llvm-svn: 89717
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 9e20771b826..1df1ec681e0 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -1879,7 +1879,8 @@ public: Declarator &D, SourceLocation EqualLoc, ExprArg AssignExprVal); - + OwningExprResult CheckConditionVariable(VarDecl *ConditionVar); + /// ActOnUnaryTypeTrait - Parsed one of the unary type trait support /// pseudo-functions. virtual OwningExprResult ActOnUnaryTypeTrait(UnaryTypeTrait OTT, |