OSDN Git Service

Import clang-tsa.h
authorKevin Wolf <kwolf@redhat.com>
Wed, 7 Dec 2022 13:18:25 +0000 (14:18 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 15 Dec 2022 15:07:43 +0000 (16:07 +0100)
commit702152d1c72225d318bb1626b457f87719cc2f25
treeea08efa3d241120ad14685668beef156e580a457
parent587d82fae258794e33cacc9bf4ba61949184e822
Import clang-tsa.h

This defines macros that allow clang to perform Thread Safety Analysis
based on function and variable annotations that specify the locking
rules. On non-clang compilers, the annotations are ignored.

Imported tsa.h from the original repository with the pthread_mutex_t
wrapper removed:

https://github.com/jhi/clang-thread-safety-analysis-for-c.git

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20221207131838.239125-6-kwolf@redhat.com>
Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
include/qemu/clang-tsa.h [new file with mode: 0644]