[PATCH] D32486: Cleanup pragma handlers after DoPrintPreprocessedInput

Yaron Keren via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 25 07:19:38 PDT 2017


yaron.keren added a comment.

Please move the =new out of the PP.AddPragmaHandler calls.
While at it, this code still (as the original) leaks the PragmaHandlers. These should be deleted after RemovePragmaHandler or instead, simply use std::unique_ptr.


https://reviews.llvm.org/D32486





More information about the cfe-commits mailing list