[clang] 0494f93 - [Basic] Drop const from a return type (NFC) (#146382)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 30 10:42:34 PDT 2025
Author: Kazu Hirata
Date: 2025-06-30T10:42:31-07:00
New Revision: 0494f934345f105f01f01a111c1f9f529acd26f5
URL: https://github.com/llvm/llvm-project/commit/0494f934345f105f01f01a111c1f9f529acd26f5
DIFF: https://github.com/llvm/llvm-project/commit/0494f934345f105f01f01a111c1f9f529acd26f5.diff
LOG: [Basic] Drop const from a return type (NFC) (#146382)
We don't need const on a return type.
Added:
Modified:
clang/include/clang/Basic/TargetInfo.h
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/TargetInfo.h b/clang/include/clang/Basic/TargetInfo.h
index c3bce6e807f34..5c9031cc69dbb 100644
--- a/clang/include/clang/Basic/TargetInfo.h
+++ b/clang/include/clang/Basic/TargetInfo.h
@@ -1851,7 +1851,7 @@ class TargetInfo : public TransferrableTargetInfo,
/// Returns the version of the darwin target variant SDK which was used during
/// the compilation if one was specified, or an empty version otherwise.
- const std::optional<VersionTuple> getDarwinTargetVariantSDKVersion() const {
+ std::optional<VersionTuple> getDarwinTargetVariantSDKVersion() const {
return !getTargetOpts().DarwinTargetVariantSDKVersion.empty()
? getTargetOpts().DarwinTargetVariantSDKVersion
: std::optional<VersionTuple>();
More information about the cfe-commits
mailing list