]> granicus.if.org Git - clang/commit
Removed "ObserverTy" from core DataflowValues types. The observer
authorTed Kremenek <kremenek@apple.com>
Mon, 17 Sep 2007 17:14:52 +0000 (17:14 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 17 Sep 2007 17:14:52 +0000 (17:14 +0000)
commit56d516d18a789a13696a310dbca67d4b5d9fc798
treeb2dc096a31a7c9bb116cba293ec8464257fe6d8c
parent122596667e21173505d0d45a47d682b311a44b71
Removed "ObserverTy" from core DataflowValues types.  The observer
mechanism can be implemented simply by affixing the Observer to an
analysis meta data, so it doesn't need to be a required type.  This
also permits analyses not to implement an Observer if it doesn't make
sense.

Changed "DataflowValues::MetaDataTy" to
"DataflowValues::AnalysisDataTy" to reflect that the type
enscapsulated the data associated with analyzing a given CFG.

Changed CFGStmtVisitor::BlockStmt_VisitImplicitControlFlowStmt(Stmt*)
to ...VisitImplicitControlFlowExpr(Expr*).  The type narrowing is more
precise and more useful to clients.

Added CFGStmtVisitor::BlockStmt_VisitExpr to reflect the visitation of
expressions at the block statement level.  This captures all implicit
control-flow statements as well as other expressions that are hoisted
to the block level (such as conditions for terminators and function
calls).  This is especially useful for dataflow analysis.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42034 91177308-0d34-0410-b5e6-96231b3b80d8
Analysis/DataflowSolver.h
Analysis/UnintializedValues.cpp
include/clang/Analysis/CFGStmtVisitor.h
include/clang/Analysis/CFGVarDeclVisitor.h
include/clang/Analysis/DataflowValues.h
include/clang/Analysis/UninitializedValues.h