-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
[REQUEST] Continued implementation of fmtlib #535
Comments
You should think about adding a .clang-format file to the project, so the multi-line statements like
are formatted correctly by everyone without the need to add manual line breaks. |
Not a fan of the switch to fmt. A non-standard library with a requirement for cmake to build makes life difficult for building btop on smaller devices. Perhaps enough of fmt can be brought into your source tree and incorporated with your makefile system that brop won't require a non-standard library to build? |
@VA1DER Lines 41 to 45 in 4689938
@nobounce My example above was just an example. As long as the |
I don't really understand what you're saying but this is probably the wrong issue to discuss this. Is there any reason against using the standards |
@nobounce
You suggested adding a .clang-format file above 👀
Regarding |
Yes I did, but I realised we should keep this issue about
That's right, I'll live on the edge with my distros so I hardly notice that some other distros take some time to include newer packages. It might be an option to enable |
@nobounce
That's no problem, I would say it's related to this issue and suggestions are always welcome :)
Implementing that would probably not be that hard, some macro checks and |
@aristocratos |
@nobounce |
@aristocratos |
Continued implementation of https://github.com/fmtlib/fmt for better string building readability.
Should also make some of the custom string functions redundant.
Help is appreciated since there is a lot of string concatenations to convert.
Example of how to format short strings:
Example of how to format longer strings with repeated variables:
fmtlib reference: https://hackingcpp.com/cpp/libs/fmt.html
Some examples of formatting options:
String options:
Floating-Point options:
Signed Integer options:
Unsigned Integer options:
The text was updated successfully, but these errors were encountered: