Previously, this argument had no effect, since it didn't proceeded.
For more information, check this review: https://reviews.llvm.org/D41535
Details
- Reviewers
bkramer alexfh ilya-biryukov
Diff Detail
- Repository
- rC Clang
Event Timeline
lib/Tooling/Tooling.cpp | ||
---|---|---|
287 | Agree. |
lib/Tooling/Tooling.cpp | ||
---|---|---|
287 | Using IntrusiveRefCntPtr<FileManager> locally should do the trick, the clients can take ownership if they want and FileManager will be properly freed if they don't do that. CompilerInstance::createFileManager stores IntrusiveRefCntPtr as a field before returning a raw pointer, so it seems to properly manage memory there. |
Files is a raw pointer, so we're leaking memory here.