From: Vedant Kumar Date: Wed, 24 Aug 2016 06:44:57 +0000 (+0000) Subject: [AST] Make InitListExpr::isExplicit const (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a298b6919862309f130f496e5f36e2e0c22f72d5;p=clang [AST] Make InitListExpr::isExplicit const (NFC) Patch by Alexander Shaposhnikov! Differential Revision: https://reviews.llvm.org/D23828 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279613 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 9179c7736a..7f98f005fe 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -3862,7 +3862,7 @@ public: // 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(); }