-
Notifications
You must be signed in to change notification settings - Fork 21
fix: use correct config path #784
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
Conversation
|
An automated preview of the documentation is available at https://784.mrdocs.prtest2.cppalliance.org/index.html |
|
So |
|
@alandefreitas yes... there is a way to do this in llvm itself (I think), but that requires adding features to the configuration generator |
|
That looks weird to me. Why would anyone attempt to implicitly set the In the weird case that the user does that, why would the implicit option have precedence over the explicit option? If someone is set explicitly, it needs to have precedence by definition. Maybe the commit achieves something else and I'm just missing the point. But if the only point is to make the implicit option have precedence over the explicit one, that looks like it maximizes surprise and achieves nothing in return. I'm having a hard time thinking of an example where this would solve a problem. |
|
Another point is this behavior would be in conflict with what |
I don't know. I don't think we should accept config files as positional arguments -- only via |
Yes. This is for backward compatibility. We don't really need backward compatibility at this point (0.0.3) but I just didn't want people yelling at me at the time.
I don't agree with that. The function this PR changes has access to both the inputs (toolArgs.cmdLineInputs) and the positional argument (toolArgs.config). Maybe you're talking about the normalization logic in Config.cpp. We could see if we have some bug there. But this PR doesn't touch that.
Can you provide an example command line where the current implementation would lead to an incorrect result? |
|
Once I understood the problem, I believe #785 obsoleted this PR. Please have a look. |
No description provided.