[PATCH] D86027: [analyzer] Add bool operator modeling for unque_ptr
    Artem Dergachev via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sat Aug 15 15:44:07 PDT 2020
    
    
  
NoQ added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Checkers/SmartPtrModeling.cpp:400
+      ProgramStateRef NotNullState, NullState;
+      std::tie(NotNullState, NullState) = State->assume(CallExprVal.getValue());
+
----------------
It's always `UnknownVal` because the call has not been evaluated yet. This `assume()` does nothing.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86027/new/
https://reviews.llvm.org/D86027
    
    
More information about the cfe-commits
mailing list