PTAL; found that when reading generated code and seeing lots of " - " suffixes.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[assembler] Fix code comments without source position
The `FileName()` of an empty (default initialized) `SourceLocation` is
the empty string, but not nullptr.
To check if a filename is set, we would need to check if the first
character is '\0', or we check the line number instead, which is what
`SourceLocation::ToString` already did internally.
For convenience (to make it easier to use the right check the next
time), this introduces an `operator bool` on `v8::SourceLocation` to
check if the source location is initialized.
R=les...@chromium.org
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return (std::ostringstream{} << loc_.function_name() << '@'Is it important to using ostringstream here? This CL transitively adds <sstream> to 15% of translation units when building the Linux chrome binary. Too bad there's no .cc file to stash the ToString() impl.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return (std::ostringstream{} << loc_.function_name() << '@'Is it important to using ostringstream here? This CL transitively adds <sstream> to 15% of translation units when building the Linux chrome binary. Too bad there's no .cc file to stash the ToString() impl.
ToString could be moved to api.cc
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return (std::ostringstream{} << loc_.function_name() << '@'Leszek SwirskiIs it important to using ostringstream here? This CL transitively adds <sstream> to 15% of translation units when building the Linux chrome binary. Too bad there's no .cc file to stash the ToString() impl.
ToString could be moved to api.cc
Ack, I just uploaded the CL: https://crrev.com/c/7277346
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |