Skip to content

Handle empty source strings in SourceReferenceExtractor#8121

Merged
chriseth merged 1 commit intodevelopfrom
sourceReferenceExtractorWithoutSource
Jan 9, 2020
Merged

Handle empty source strings in SourceReferenceExtractor#8121
chriseth merged 1 commit intodevelopfrom
sourceReferenceExtractorWithoutSource

Conversation

@ekpyron
Copy link
Collaborator

@ekpyron ekpyron commented Jan 9, 2020

This may or may not be needed for proper reporting in #7153
But I think it's generally a good idea to have some safe-guards for handling cases like this gracefully.


/// Constructs a SourceReference containing a message only.
static SourceReference MessageOnly(std::string _msg)
static SourceReference MessageOnly(std::string _msg, std::string _sourceName = {})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if you think it's unbearable to have something called MessageOnly optionally handle a source name as well, then I'll rename stuff :-).

@chriseth chriseth merged commit ba4a724 into develop Jan 9, 2020
@chriseth chriseth deleted the sourceReferenceExtractorWithoutSource branch January 9, 2020 13:53
@ekpyron ekpyron mentioned this pull request Jan 9, 2020
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments