njames93 added a comment.
Herald added a subscriber: carlosgalvezp.

Sorry its been so long, How does this handle cases where the variable contains 
resources. Like a vector being used in a loop where you don't want to release 
its memory between each iteration.

  void foo(){
    std::vector<char> Buffer;
    for (int i = 0; i < limit;++i) {
      Buffer.clear();
      // Do something with buffer
    }
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100092/new/

https://reviews.llvm.org/D100092

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to