comparison clang/lib/Parse/ParseExpr.cpp @ 176:de4ac79aef9d

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 17:13:11 +0900
parents f935e5e0dbe7
children dd44ba33042e
comparison
equal deleted inserted replaced
175:f03c953ab258 176:de4ac79aef9d
1705 Actions.CodeCompleteExpression(getCurScope(), 1705 Actions.CodeCompleteExpression(getCurScope(),
1706 PreferredType.get(Tok.getLocation())); 1706 PreferredType.get(Tok.getLocation()));
1707 cutOffParsing(); 1707 cutOffParsing();
1708 return ExprError(); 1708 return ExprError();
1709 } 1709 }
1710 #ifndef noCbC
1711 case tok::kw__CbC_return:
1712 Res = Prepare__retForGotoWithTheEnvExpr();
1713 break;
1714 case tok::kw__CbC_environment:
1715 Res = Prepare__envForGotoWithTheEnvExpr();
1716 break;
1717 #endif
1710 case tok::l_square: 1718 case tok::l_square:
1711 if (getLangOpts().CPlusPlus11) { 1719 if (getLangOpts().CPlusPlus11) {
1712 if (getLangOpts().ObjC) { 1720 if (getLangOpts().ObjC) {
1713 // C++11 lambda expressions and Objective-C message sends both start with a 1721 // C++11 lambda expressions and Objective-C message sends both start with a
1714 // square bracket. There are three possibilities here: 1722 // square bracket. There are three possibilities here:
1730 } 1738 }
1731 if (getLangOpts().ObjC) { 1739 if (getLangOpts().ObjC) {
1732 Res = ParseObjCMessageExpression(); 1740 Res = ParseObjCMessageExpression();
1733 break; 1741 break;
1734 } 1742 }
1735 #ifndef noCbC
1736 case tok::kw__CbC_return:
1737 Res = Prepare__retForGotoWithTheEnvExpr();
1738 break;
1739 case tok::kw__CbC_environment:
1740 Res = Prepare__envForGotoWithTheEnvExpr();
1741 break;
1742 #endif
1743 LLVM_FALLTHROUGH; 1743 LLVM_FALLTHROUGH;
1744 default: 1744 default:
1745 NotCastExpr = true; 1745 NotCastExpr = true;
1746 return ExprError(); 1746 return ExprError();
1747 } 1747 }