enum ProtectedOperationKind
Description
This enum distinguishes between different kinds of operations that may need to be protected by locks. We use this enum in error handling.
Declared at: clang/include/clang/Analysis/Analyses/ThreadSafety.h:36
Enumerators
| Name | Value | Comment |
|---|---|---|
| POK_VarDereference | 0 | Dereferencing a variable (e.g. p in *p = 5;) |
| POK_VarAccess | 1 | Reading or writing a variable (e.g. x in x = 5;) |
| POK_FunctionCall | 2 | Making a function call (e.g. fool()) |
| POK_PassByRef | 3 | Passing a guarded variable by reference. |
| POK_PtPassByRef | 4 | Passing a pt-guarded variable by reference. |