Reviewed By: peterogithub Differential Revision: D4662764 fbshipit-source-id: c202509master
parent
1ef7c253b2
commit
5134ea36ed
@ -0,0 +1,19 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) 2017 - present Facebook, Inc.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the BSD style license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
*)
|
||||||
|
|
||||||
|
open! IStd
|
||||||
|
|
||||||
|
module F = Format
|
||||||
|
|
||||||
|
module AnnotationAliases = struct
|
||||||
|
|
||||||
|
let of_json = function
|
||||||
|
| `List aliases -> List.map ~f:Yojson.Basic.Util.to_string aliases
|
||||||
|
| _ -> failwith "Couldn't parse thread-safety annotation aliases; expected list of strings"
|
||||||
|
end
|
@ -0,0 +1,18 @@
|
|||||||
|
(*
|
||||||
|
* Copyright (c) 2017 - present Facebook, Inc.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the BSD style license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||||||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
*)
|
||||||
|
|
||||||
|
open! IStd
|
||||||
|
|
||||||
|
module F = Format
|
||||||
|
|
||||||
|
(** List of annotations that should be considered aliases of @ThreadSafe *)
|
||||||
|
module AnnotationAliases : sig
|
||||||
|
|
||||||
|
val of_json : Yojson.Basic.json -> string list
|
||||||
|
end
|
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"threadsafe-aliases": ["MyThreadSafeAlias1", "codetoanalyze.java.checkers.MyThreadSafeAlias2"]
|
||||||
|
}
|
Loading…
Reference in new issue