[clang] 87fe37d - [-Wunsafe-buffer-usage] Changing the use of None with std::nullopt to address a warning.
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 6 12:31:22 PST 2023
Author: MalavikaSamak
Date: 2023-01-06T12:31:14-08:00
New Revision: 87fe37d9f8b668f537006a2bf6921cf2ad3fb2a2
URL: https://github.com/llvm/llvm-project/commit/87fe37d9f8b668f537006a2bf6921cf2ad3fb2a2
DIFF: https://github.com/llvm/llvm-project/commit/87fe37d9f8b668f537006a2bf6921cf2ad3fb2a2.diff
LOG: [-Wunsafe-buffer-usage] Changing the use of None with std::nullopt to address a warning.
Added:
Modified:
clang/lib/Analysis/UnsafeBufferUsage.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/UnsafeBufferUsage.cpp b/clang/lib/Analysis/UnsafeBufferUsage.cpp
index d5423d81ee30..d941cf5fe74f 100644
--- a/clang/lib/Analysis/UnsafeBufferUsage.cpp
+++ b/clang/lib/Analysis/UnsafeBufferUsage.cpp
@@ -196,7 +196,7 @@ class FixableGadget : public Gadget {
/// the current strategy. Returns None if the fix cannot be produced;
/// returns an empty list if no fixes are necessary.
virtual Optional<FixItList> getFixits(const Strategy &) const {
- return None;
+ return std::nullopt;
}
};
More information about the cfe-commits
mailing list