This annotation indicates that the static code analysis tool accepts annotations from the declaration when analyzing a function definition.
This is useful, for example, when implementing an API that comes in the form of headers and binaries. In this case, you usually want to provide the API user with the same SAL annotations that are used in the implementation. To prevent duplication of annotations, function declarations in the common header file are decorated with SAL annotations, and a private implementation uses _Use_decl_annotations_ to reuse the same annotations for static code analysis.
Iinspectable
source share