[clang] 45a0433 - [-Wunsafe-buffer-usage] Add [[fallthrough]] after D143206
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 22 21:02:05 PDT 2023
Author: Fangrui Song
Date: 2023-03-22T21:02:00-07:00
New Revision: 45a0433b39ffbd7cee9cc8a92f2300324b3548e0
URL: https://github.com/llvm/llvm-project/commit/45a0433b39ffbd7cee9cc8a92f2300324b3548e0
DIFF: https://github.com/llvm/llvm-project/commit/45a0433b39ffbd7cee9cc8a92f2300324b3548e0.diff
LOG: [-Wunsafe-buffer-usage] Add [[fallthrough]] after D143206
Added:
Modified:
clang/lib/Analysis/UnsafeBufferUsage.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/UnsafeBufferUsage.cpp b/clang/lib/Analysis/UnsafeBufferUsage.cpp
index 95e4c8388bc44..4a8358af68ec5 100644
--- a/clang/lib/Analysis/UnsafeBufferUsage.cpp
+++ b/clang/lib/Analysis/UnsafeBufferUsage.cpp
@@ -973,6 +973,7 @@ PointerDereferenceGadget::getFixits(const Strategy &S) const {
endOfOperand.value().getLocWithOffset(1), "[0]")}};
}
}
+ [[fallthrough]];
case Strategy::Kind::Iterator:
case Strategy::Kind::Array:
case Strategy::Kind::Vector:
More information about the cfe-commits
mailing list