0b293ad804
* Fix code analysis annotations for _In_ and _In_opt_ parameters, add const where appropriate or change to _Inout_ where appropriate. The following regex expressions were used to find the problems: Find _In_ or _In_opt_ that are not const and are not followed by _Post_invalid_ or _Frees_ptr_ or _Post_ptr_invalid_: ```_In_[ ]+(?!.*(const|_Post_invalid_|_Frees_ptr_|_Post_ptr_invalid_))``` ```_In_opt_[ ]+(?!.*(const|_Post_invalid_|_Frees_ptr_|_Post_ptr_invalid_))``` Some of the _In_ and _In_opt_ parameters are not const due to required compatibility with the Windows API. Pointers to functions are const by definition, so the const qualifier is not required. Signed-off-by: Alan Jowett <alanjo@microsoft.com> * PR feedback Signed-off-by: Alan Jowett <alanjo@microsoft.com> * Fix code analysis failure Signed-off-by: Alan Jowett <alanjo@microsoft.com> * PR feedback Signed-off-by: Alan Jowett <alanjo@microsoft.com> * PR feedback Signed-off-by: Alan Jowett <alanjo@microsoft.com> * PR feedback Signed-off-by: Alan Jowett <alanjo@microsoft.com> Signed-off-by: Alan Jowett <alanjo@microsoft.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Source.def | ||
dllmain.cpp | ||
ebpfapi.vcxproj | ||
ebpfapi.vcxproj.filters | ||
pch.h | ||
resource.h | ||
rpc_client.cpp |