[cfe-commits] r97020 - /cfe/trunk/include/clang/Checker/PathSensitive/Checker.h

Zhongxing Xu xuzhongxing at gmail.com
Tue Feb 23 20:54:56 PST 2010


Author: zhongxingxu
Date: Tue Feb 23 22:54:56 2010
New Revision: 97020

URL: http://llvm.org/viewvc/llvm-project?rev=97020&view=rev
Log:
Add comments.

Modified:
    cfe/trunk/include/clang/Checker/PathSensitive/Checker.h

Modified: cfe/trunk/include/clang/Checker/PathSensitive/Checker.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Checker/PathSensitive/Checker.h?rev=97020&r1=97019&r2=97020&view=diff
==============================================================================
--- cfe/trunk/include/clang/Checker/PathSensitive/Checker.h (original)
+++ cfe/trunk/include/clang/Checker/PathSensitive/Checker.h Tue Feb 23 22:54:56 2010
@@ -147,6 +147,8 @@
   
   void addTransition(const GRState *state) {
     assert(state);
+    // If the 'state' is not new, we need to check if the cached state 'ST'
+    // is new.
     if (state != getState() || (ST && ST != B.GetState(Pred)))
       GenerateNode(state, true);
     else





More information about the cfe-commits mailing list