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

Apply code style #59

Open
rpavlik opened this issue Jul 8, 2015 · 2 comments
Open

Apply code style #59

rpavlik opened this issue Jul 8, 2015 · 2 comments

Comments

@rpavlik
Copy link
Member

rpavlik commented Jul 8, 2015

Right now code style is kind of hit and miss and inconsistent. Doesn't look like there were a ton of tools for this in C# besides having Visual Studio do it for you (surprisingly enough, given I figured it was easier to parse/lex/sema than C++), but the Roslyn .net core project apparently recently open source a tool that they're using to apply and enforce a code style, and it's probably worth looking into: https://github.com/dotnet/codeformatter

@JeroMiya
Copy link
Contributor

JeroMiya commented Jul 8, 2015

I don't have any experience with this tool in particular, but based on my general experience, I would caution against an automated tool to reformat code. These tools tend to be quite fragile, even when they're based on a robust code-AST API like roslyn.

@rpavlik
Copy link
Member Author

rpavlik commented Jul 8, 2015

Well, we're using clang-format on all the C++ code with good results - there again, built on a compiler infrastructure.

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

No branches or pull requests

2 participants