This is an archive of the discontinued LLVM Phabricator instance.

Add some documentation stating that the memory allocated by the ASTContext.h placement new does not need to be explicitly freed
ClosedPublic

Authored by ehsan on Sep 18 2014, 5:22 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

ehsan updated this revision to Diff 13826.Sep 18 2014, 5:22 AM
ehsan retitled this revision from to Add some documentation stating that the memory allocated by the ASTContext.h placement new does not need to be explicitly freed.
ehsan updated this object.
ehsan edited the test plan for this revision. (Show Details)
ehsan added a reviewer: rnk.
ehsan added a subscriber: Unknown Object (MLST).
rnk accepted this revision.Sep 18 2014, 9:29 AM
rnk edited edge metadata.

Thanks, lgtm!

include/clang/AST/ASTContext.h
2360–2361 ↗(On Diff #13826)

Context.Deallocate() is a noop, so I think this last sentence is incorrect. I'd delete it or shorten to "Note that you cannot use delete on the pointer."

2399–2400 ↗(On Diff #13826)

Ditto

This revision is now accepted and ready to land.Sep 18 2014, 9:29 AM
ehsan closed this revision.Sep 21 2014, 7:36 PM
ehsan updated this revision to Diff 13918.

Closed by commit rL218232 (authored by @ehsan).