[clang] [Clang] Re-land Overflow Pattern Exclusions (PR #104889)
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 21 10:49:02 PDT 2024
================
@@ -367,6 +367,21 @@ class LangOptionsBase {
PerThread,
};
+ /// Exclude certain code patterns from being instrumented by arithmetic
+ /// overflow sanitizers
+ enum OverflowPatternExclusionKind {
+ /// Don't exclude any overflow patterns from sanitizers
+ None = 1 << 0,
+ /// Exclude all overflow patterns (below)
+ All = 1 << 1,
+ /// if (a + b < a)
+ AddOverflowTest = 1 << 2,
----------------
vitalybuka wrote:
As above
https://github.com/llvm/llvm-project/pull/104889
More information about the cfe-commits
mailing list