Bug 125247
Summary: | Headers that use std::unique_ptr should #include <memory> | ||
---|---|---|---|
Product: | WebKit | Reporter: | Brian Burg <burg> |
Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | darin, llango.u-szeged |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Brian Burg
This needs to go into the style guide and style checker if it is something we want to encourage going forward.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Darin Adler
I don’t agree that this belongs in the style guide.
This follows the general rule that headers that use something need to include the file that something is defined in. I wouldn’t make a style rule for each thing.
Why is it OK to use std::unique_ptr without including <memory>? Because <memory> is included in "config.h" perhaps?
László Langó
I agree with Darin. This doesn't belong in the style guide. But this just an opinion. :)