[PATCH] D26435: Use unique_ptr for cached tokens for default arguments in C++.

Alex Lorenz via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 9 02:09:54 PST 2016


arphaman added inline comments.


================
Comment at: include/clang/Sema/DeclSpec.h:1313
     void freeParams() {
       for (unsigned I = 0; I < NumParams; ++I) {
+        Params[I].DefaultArgTokens.release();
----------------
You can elide the curly braces here now that the loop has just one statement.


https://reviews.llvm.org/D26435





More information about the cfe-commits mailing list