summaryrefslogtreecommitdiffhomepage
path: root/tools/checklocks/annotations.go
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2021-11-02 18:01:24 -0700
committergVisor bot <gvisor-bot@google.com>2021-11-02 18:04:26 -0700
commit7551b0590d87588deda562a959e09ada425bfea5 (patch)
treeebf5e58fd75233e06cbf7edbb26b1f8d1ae854a7 /tools/checklocks/annotations.go
parenta8eb1895bbc4e1d41cdd621b8eca3f3e4912a446 (diff)
Minor checklocks improvements.
* Support sync.Locker. * Prevent runaway recursion when locks are acquired in a loop. * Allowing ignoring of anonymous functions (inherited from parent function). * Add support for aliases. PiperOrigin-RevId: 407221521
Diffstat (limited to 'tools/checklocks/annotations.go')
-rw-r--r--tools/checklocks/annotations.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/checklocks/annotations.go b/tools/checklocks/annotations.go
index 1f679e5be..950168ee1 100644
--- a/tools/checklocks/annotations.go
+++ b/tools/checklocks/annotations.go
@@ -32,6 +32,7 @@ const (
checkLocksIgnore = "// +checklocksignore"
checkLocksForce = "// +checklocksforce"
checkLocksFail = "// +checklocksfail"
+ checkLocksAlias = "// +checklocksalias:"
checkAtomicAnnotation = "// +checkatomic"
)