[PATCH] D112119: [ObjC Availability] Add missing const to getVersion function of ObjCAvailabilityCheckExpr class

Kyungwoo Lee via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 24 14:53:29 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGf1c9e7bdc921: [ObjC Availability] Add missing const to getVersion function of… (authored by lcs, committed by kyulee).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112119/new/

https://reviews.llvm.org/D112119

Files:
  clang/include/clang/AST/ExprObjC.h


Index: clang/include/clang/AST/ExprObjC.h
===================================================================
--- clang/include/clang/AST/ExprObjC.h
+++ clang/include/clang/AST/ExprObjC.h
@@ -1706,7 +1706,7 @@
 
   /// This may be '*', in which case this should fold to true.
   bool hasVersion() const { return !VersionToCheck.empty(); }
-  VersionTuple getVersion() { return VersionToCheck; }
+  VersionTuple getVersion() const { return VersionToCheck; }
 
   child_range children() {
     return child_range(child_iterator(), child_iterator());


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112119.402676.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220124/1d6e1d76/attachment.bin>


More information about the cfe-commits mailing list