[clang][extract-api] Emit "navigator" property of "name" in SymbolGraph
[llvm-project.git] / compiler-rt / lib / tsan / rtl / tsan_ignoreset.h
blob4e2511291ce4d608c83dac318156748bd9682d23
1 //===-- tsan_ignoreset.h ----------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file is a part of ThreadSanitizer (TSan), a race detector.
11 // IgnoreSet holds a set of stack traces where ignores were enabled.
12 //===----------------------------------------------------------------------===//
13 #ifndef TSAN_IGNORESET_H
14 #define TSAN_IGNORESET_H
16 #include "tsan_defs.h"
18 namespace __tsan {
20 class IgnoreSet {
21 public:
22 IgnoreSet();
23 void Add(StackID stack_id);
24 void Reset() { size_ = 0; }
25 uptr Size() const { return size_; }
26 StackID At(uptr i) const;
28 private:
29 static constexpr uptr kMaxSize = 16;
30 uptr size_;
31 StackID stacks_[kMaxSize];
34 } // namespace __tsan
36 #endif // TSAN_IGNORESET_H