-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instead of 'IsDefaultNewOrDelete' which uses heuristics and string parsing, use FunctionDecl::isReplaceableGlobalAllocationFunction from the Clang API. It returns true for any replaceable allocation function, which happens to coincide nicely with all allocation functions except placement new. Fixes #777 and improves behavior for the modern allocation functions: - Sized deallocation in C++14 - Aligned allocation in C++17 This small improvement fixes a number of TODOs in the new placement_new testcase, and makes it possible to add a testcase for implicit aligned allocation in operator_new, as aligned allocation no longer requires <new>. Patch based on work and lots of good input from Adar Dembo.
- Loading branch information
Showing
5 changed files
with
24 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters