diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 9179c7736a9a483d54117e8e227d26b4babaad26..7f98f005feb7487243e5a5021c8ad34643bce4b5 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(); }