Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add heuristic message. #504

Merged
merged 3 commits into from
Apr 14, 2022
Merged

Conversation

BillyONeal
Copy link
Member

@BillyONeal
Copy link
Member Author

image

auto msg = msg::format(msgCMakeTargetsUsage, msg::package_name = bpgh.spec.name()).appendnl()
.append_indent().append(msgCMakeTargetsUsageHueristicMessage).appendnl()
.extract_data();
// clang-format on
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the clang-format is necessary, but I'm not that opinionated on it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Without that it formats like this, losing the division between lines of output:

image

I don't feel strongly about it either though.

Copy link
Member Author

Choose a reason for hiding this comment

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

I avoided it in a different way.

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we need an appendnl(message)?

Copy link
Member Author

Choose a reason for hiding this comment

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

@vicroms The cross product of different appends starts to get pretty big then; I think this is fine

@BillyONeal BillyONeal merged commit cf4232d into microsoft:main Apr 14, 2022
@BillyONeal BillyONeal deleted the hueristic-message branch April 14, 2022 21:35
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.

3 participants