Evaluate type traits in valueflow#7393
Evaluate type traits in valueflow#7393chrchr-github merged 5 commits intocppcheck-opensource:mainfrom
Conversation
|
@danmar @orbitcowboy @chrchr-github Any feedback? |
|
Is this something that can grow into a generalized type trait evaluation? Seems like a huge task in any case. |
|
This is just a start, but the idea is to handle more traits in the future, somewhat similar to how we do math evaluations. We can also add some library support in the future so we can handle the traits from other libraries that work the same as the std traits. I started with |
|
In addition to |
Thats already supported with a |
Ah ok, must have missed that test. Does that mean |
Yes |
Right now it just evaluates
is_void,is_lvalue_reference, andis_rvalue_reference. More work needed to handle library types in the type traits