Added cfg information about std::span#4762
Added cfg information about std::span#4762orbitcowboy merged 6 commits intocppcheck-opensource:mainfrom
Conversation
|
Thanks for contributing. Can you add a test case to show that it works? |
|
Since With this change, will we warn for the code below? |
|
Yeah, I already found it but thanks :) As for the snippet i will add it - I admit I missed that now I should provide such tests but I will add then in this PR |
|
I added tests for back/front/last/first operations and I started copying string_view tests since span sues similar process. During tests I also found that int example |
|
Seems like c++20 flag is not supported for Ubuntu 20.04 (too old g++), should I change it to 2a or is there different way you guys are handing those issues? |
|
You could try if the 2a flag is sufficient for |
|
Could you aprprove test run here? |
|
Maybe @firewave can do that. |
Basic information about std::span type, I was not sure how to approach its std::dynamic_extent so I omitted it