[PATCH] D23828: Make InitListExpr::isExplicit const

Alexander Shaposhnikov via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 23 23:22:33 PDT 2016


alexshap created this revision.
alexshap added reviewers: djasper, bkramer.
alexshap added a subscriber: cfe-commits.
alexshap set the repository for this revision to rL LLVM.
alexshap changed the visibility of this Differential Revision from "Public (No Login Required)" to "All Users".

Mark the method InitListExpr::isExplicit as const.
Test plan: make -j8 check-clang.

Repository:
  rL LLVM

https://reviews.llvm.org/D23828

Files:
  include/clang/AST/Expr.h

Index: include/clang/AST/Expr.h
===================================================================
--- include/clang/AST/Expr.h
+++ include/clang/AST/Expr.h
@@ -3862,7 +3862,7 @@
 
   // Explicit InitListExpr's originate from source code (and have valid source
   // locations). Implicit InitListExpr's are created by the semantic analyzer.
-  bool isExplicit() {
+  bool isExplicit() const {
     return LBraceLoc.isValid() && RBraceLoc.isValid();
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23828.69083.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160824/c31cd3e7/attachment.bin>


More information about the cfe-commits mailing list