u/AndreasFertig

1 post karma · 32 comment karma · joined May 2018

AndreasFertig

A typical clang-tooling issue. The clang-tool expects the headers in a different location, i.e., the expected version was not found.

It depends on what OS you're using it with. The sad but best approach is to compile it yourself. The other option is teaching the tool where the headers are. For me, that usually ends up in a mess.

AndreasFertig

On Linux/macOS try:

insights YOUR_FOLDER/*.cpp -- -std=c++20

Is that what you are looking for?

AndreasFertig

I just added gcc/g++ 7 headers which include std::byte. Also the web client runs with -std=c++17 now. See here

AndreasFertig

It uses clang 6. It can check if even std=c++17 is possible. And I'm surprised that std::byte is not available. Can be that I got the include headers wrong. I have to check.

AndreasFertig

Could be. I tried to emulate the clang AST dump behaviour. This shows normal decimal numbers. But I can imagine that you have a valid point here. I'll look into it.

AndreasFertig

Hi, no it works. The load was just to much for the server. Sorry for that.

AndreasFertig

Thank you! I'm would be open to provide it as an add-on. Unfortunately I don't know much about this. I'm more the Linux / Mac-user :-) Feel free to provide a PR (or a series of PR's).

AndreasFertig

Wow that's some lambda. Please open an issue for that. May take some time to tackle this down.

AndreasFertig

Thank you! And thanks for reporting. Rebooted the server. Looks like I need a bigger one. Amazon probably. Didn't except so much traffic in the beginning.

AndreasFertig

Uh I didn't came up with this :-( It's brilliant:-)

AndreasFertig

In theory it can. The web interface enforces std=c++1z. I did skip checking for the language in the transformations, so it may show C++ stuff even without the std-option. Are there any special things you have in mind for C?

AndreasFertig

Hi, I will have a look into it. It looks strange.

AndreasFertig

Thanks for sharing my work!

AndreasFertig

Hi, I'm Andreas the creator of C++ Insights. I'm glad you like it. I would love to see pull requests coming. Also feel free to open issues for things that look wrong.