[compiler-rt] [compiler-rt][rtsan] NFC: Refactor context helper functions (PR #106869)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 2 07:25:36 PDT 2024
================
@@ -22,17 +22,22 @@ class Context {
void BypassPush();
void BypassPop();
- void ExpectNotRealtime(const char *intercepted_function_name);
-
-private:
bool InRealtimeContext() const;
bool IsBypassed() const;
- void PrintDiagnostics(const char *intercepted_function_name);
+ Context(const Context &) = delete;
+ Context(Context &&) = delete;
+ Context &operator=(const Context &) = delete;
+ Context &operator=(Context &&) = delete;
+
+private:
int realtime_depth{0};
----------------
davidtrevelyan wrote:
Minor style nit: private members I think should have trailing underscores :)
https://github.com/llvm/llvm-project/pull/106869
More information about the llvm-commits
mailing list