Lines Matching refs:ErrorInfo

11594   bool checkStmt(Stmt *S, ErrorInfoTy &ErrorInfo);
11622 bool checkCondUpdateStmt(IfStmt *S, ErrorInfoTy &ErrorInfo);
11625 bool checkCondExprStmt(Stmt *S, ErrorInfoTy &ErrorInfo);
11628 bool checkType(ErrorInfoTy &ErrorInfo) const;
11630 static bool CheckValue(const Expr *E, ErrorInfoTy &ErrorInfo, in CheckValue() argument
11636 ErrorInfo.Error = ErrorTy::XNotLValue; in CheckValue()
11637 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = E->getExprLoc(); in CheckValue()
11638 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = E->getSourceRange(); in CheckValue()
11644 ErrorInfo.Error = ErrorTy::NotScalar; in CheckValue()
11645 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = E->getExprLoc(); in CheckValue()
11646 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = E->getSourceRange(); in CheckValue()
11650 ErrorInfo.Error = ErrorTy::NotInteger; in CheckValue()
11651 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = E->getExprLoc(); in CheckValue()
11652 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = E->getSourceRange(); in CheckValue()
11661 ErrorInfoTy &ErrorInfo) { in checkCondUpdateStmt() argument
11665 ErrorInfo.Error = ErrorTy::NoStmt; in checkCondUpdateStmt()
11666 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkCondUpdateStmt()
11667 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CS->getSourceRange(); in checkCondUpdateStmt()
11671 ErrorInfo.Error = ErrorTy::MoreThanOneStmt; in checkCondUpdateStmt()
11672 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkCondUpdateStmt()
11673 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getSourceRange(); in checkCondUpdateStmt()
11681 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkCondUpdateStmt()
11682 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Then->getBeginLoc(); in checkCondUpdateStmt()
11683 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Then->getSourceRange(); in checkCondUpdateStmt()
11687 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkCondUpdateStmt()
11688 ErrorInfo.ErrorLoc = BO->getExprLoc(); in checkCondUpdateStmt()
11689 ErrorInfo.NoteLoc = BO->getOperatorLoc(); in checkCondUpdateStmt()
11690 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = BO->getSourceRange(); in checkCondUpdateStmt()
11698 ErrorInfo.Error = ErrorTy::NotABinaryOp; in checkCondUpdateStmt()
11699 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S->getCond()->getExprLoc(); in checkCondUpdateStmt()
11700 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getCond()->getSourceRange(); in checkCondUpdateStmt()
11713 ErrorInfo.Error = ErrorTy::InvalidComparison; in checkCondUpdateStmt()
11714 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Cond->getExprLoc(); in checkCondUpdateStmt()
11715 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in checkCondUpdateStmt()
11731 ErrorInfo.Error = ErrorTy::InvalidComparison; in checkCondUpdateStmt()
11732 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Cond->getExprLoc(); in checkCondUpdateStmt()
11733 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in checkCondUpdateStmt()
11739 ErrorInfo.Error = ErrorTy::InvalidBinaryOp; in checkCondUpdateStmt()
11740 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Cond->getExprLoc(); in checkCondUpdateStmt()
11741 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in checkCondUpdateStmt()
11746 ErrorInfo.Error = ErrorTy::UnexpectedElse; in checkCondUpdateStmt()
11747 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S->getElse()->getBeginLoc(); in checkCondUpdateStmt()
11748 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getElse()->getSourceRange(); in checkCondUpdateStmt()
11756 ErrorInfoTy &ErrorInfo) { in checkCondExprStmt() argument
11759 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkCondExprStmt()
11760 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S->getBeginLoc(); in checkCondExprStmt()
11761 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getSourceRange(); in checkCondExprStmt()
11765 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkCondExprStmt()
11766 ErrorInfo.ErrorLoc = BO->getExprLoc(); in checkCondExprStmt()
11767 ErrorInfo.NoteLoc = BO->getOperatorLoc(); in checkCondExprStmt()
11768 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = BO->getSourceRange(); in checkCondExprStmt()
11776 ErrorInfo.Error = ErrorTy::NotCondOp; in checkCondExprStmt()
11777 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = BO->getRHS()->getExprLoc(); in checkCondExprStmt()
11778 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = BO->getRHS()->getSourceRange(); in checkCondExprStmt()
11783 ErrorInfo.Error = ErrorTy::WrongFalseExpr; in checkCondExprStmt()
11784 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CO->getFalseExpr()->getExprLoc(); in checkCondExprStmt()
11785 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = in checkCondExprStmt()
11792 ErrorInfo.Error = ErrorTy::NotABinaryOp; in checkCondExprStmt()
11793 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CO->getCond()->getExprLoc(); in checkCondExprStmt()
11794 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = in checkCondExprStmt()
11808 ErrorInfo.Error = ErrorTy::InvalidComparison; in checkCondExprStmt()
11809 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Cond->getExprLoc(); in checkCondExprStmt()
11810 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in checkCondExprStmt()
11826 ErrorInfo.Error = ErrorTy::InvalidComparison; in checkCondExprStmt()
11827 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Cond->getExprLoc(); in checkCondExprStmt()
11828 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in checkCondExprStmt()
11834 ErrorInfo.Error = ErrorTy::InvalidBinaryOp; in checkCondExprStmt()
11835 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Cond->getExprLoc(); in checkCondExprStmt()
11836 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in checkCondExprStmt()
11843 bool OpenMPAtomicCompareChecker::checkType(ErrorInfoTy &ErrorInfo) const { in checkType()
11847 if (!CheckValue(X, ErrorInfo, true)) in checkType()
11850 if (!CheckValue(E, ErrorInfo, false)) in checkType()
11853 if (D && !CheckValue(D, ErrorInfo, false)) in checkType()
11860 Stmt *S, OpenMPAtomicCompareChecker::ErrorInfoTy &ErrorInfo) { in checkStmt() argument
11864 ErrorInfo.Error = ErrorTy::NoStmt; in checkStmt()
11865 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkStmt()
11866 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CS->getSourceRange(); in checkStmt()
11871 ErrorInfo.Error = ErrorTy::MoreThanOneStmt; in checkStmt()
11872 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkStmt()
11873 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CS->getSourceRange(); in checkStmt()
11887 Res = checkCondUpdateStmt(IS, ErrorInfo); in checkStmt()
11893 Res = checkCondExprStmt(S, ErrorInfo); in checkStmt()
11899 return checkType(ErrorInfo); in checkStmt()
11913 bool checkStmt(Stmt *S, ErrorInfoTy &ErrorInfo);
11916 bool checkType(ErrorInfoTy &ErrorInfo);
11928 bool checkForm3(IfStmt *S, ErrorInfoTy &ErrorInfo);
11932 bool checkForm45(Stmt *S, ErrorInfoTy &ErrorInfo);
11944 bool OpenMPAtomicCompareCaptureChecker::checkType(ErrorInfoTy &ErrorInfo) { in checkType() argument
11945 if (!OpenMPAtomicCompareChecker::checkType(ErrorInfo)) in checkType()
11948 if (V && !CheckValue(V, ErrorInfo, true)) in checkType()
11951 if (R && !CheckValue(R, ErrorInfo, true, true)) in checkType()
11958 ErrorInfoTy &ErrorInfo) { in checkForm3() argument
11964 ErrorInfo.Error = ErrorTy::NoStmt; in checkForm3()
11965 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkForm3()
11966 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CS->getSourceRange(); in checkForm3()
11970 ErrorInfo.Error = ErrorTy::MoreThanOneStmt; in checkForm3()
11971 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkForm3()
11972 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CS->getSourceRange(); in checkForm3()
11980 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkForm3()
11981 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Then->getBeginLoc(); in checkForm3()
11982 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Then->getSourceRange(); in checkForm3()
11986 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkForm3()
11987 ErrorInfo.ErrorLoc = BO->getExprLoc(); in checkForm3()
11988 ErrorInfo.NoteLoc = BO->getOperatorLoc(); in checkForm3()
11989 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = BO->getSourceRange(); in checkForm3()
11998 ErrorInfo.Error = ErrorTy::NotABinaryOp; in checkForm3()
11999 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S->getCond()->getExprLoc(); in checkForm3()
12000 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getCond()->getSourceRange(); in checkForm3()
12004 ErrorInfo.Error = ErrorTy::NotEQ; in checkForm3()
12005 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Cond->getExprLoc(); in checkForm3()
12006 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in checkForm3()
12015 ErrorInfo.Error = ErrorTy::InvalidComparison; in checkForm3()
12016 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Cond->getExprLoc(); in checkForm3()
12017 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in checkForm3()
12024 ErrorInfo.Error = ErrorTy::NoElse; in checkForm3()
12025 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S->getBeginLoc(); in checkForm3()
12026 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getSourceRange(); in checkForm3()
12033 ErrorInfo.Error = ErrorTy::NoStmt; in checkForm3()
12034 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkForm3()
12035 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CS->getSourceRange(); in checkForm3()
12039 ErrorInfo.Error = ErrorTy::MoreThanOneStmt; in checkForm3()
12040 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkForm3()
12041 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getSourceRange(); in checkForm3()
12049 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkForm3()
12050 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Else->getBeginLoc(); in checkForm3()
12051 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Else->getSourceRange(); in checkForm3()
12055 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkForm3()
12056 ErrorInfo.ErrorLoc = ElseBO->getExprLoc(); in checkForm3()
12057 ErrorInfo.NoteLoc = ElseBO->getOperatorLoc(); in checkForm3()
12058 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = ElseBO->getSourceRange(); in checkForm3()
12063 ErrorInfo.Error = ErrorTy::InvalidAssignment; in checkForm3()
12064 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = ElseBO->getRHS()->getExprLoc(); in checkForm3()
12065 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = in checkForm3()
12072 return checkType(ErrorInfo); in checkForm3()
12076 ErrorInfoTy &ErrorInfo) { in checkForm45() argument
12086 ErrorInfo.Error = ErrorTy::InvalidCondition; in checkForm45()
12087 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S2->getCond()->getExprLoc(); in checkForm45()
12088 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S1->getLHS()->getSourceRange(); in checkForm45()
12097 ErrorInfo.Error = ErrorTy::NoStmt; in checkForm45()
12098 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = ThenCS->getBeginLoc(); in checkForm45()
12099 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = ThenCS->getSourceRange(); in checkForm45()
12103 ErrorInfo.Error = ErrorTy::MoreThanOneStmt; in checkForm45()
12104 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = ThenCS->getBeginLoc(); in checkForm45()
12105 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = ThenCS->getSourceRange(); in checkForm45()
12113 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkForm45()
12114 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S2->getBeginLoc(); in checkForm45()
12115 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S2->getSourceRange(); in checkForm45()
12119 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkForm45()
12120 ErrorInfo.ErrorLoc = ThenBO->getExprLoc(); in checkForm45()
12121 ErrorInfo.NoteLoc = ThenBO->getOperatorLoc(); in checkForm45()
12122 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = ThenBO->getSourceRange(); in checkForm45()
12131 ErrorInfo.Error = ErrorTy::NotEQ; in checkForm45()
12132 ErrorInfo.ErrorLoc = BO->getExprLoc(); in checkForm45()
12133 ErrorInfo.NoteLoc = BO->getOperatorLoc(); in checkForm45()
12134 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = BO->getSourceRange(); in checkForm45()
12145 ErrorInfo.Error = ErrorTy::InvalidComparison; in checkForm45()
12146 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = BO->getExprLoc(); in checkForm45()
12147 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = BO->getSourceRange(); in checkForm45()
12157 ErrorInfo.Error = ErrorTy::NoStmt; in checkForm45()
12158 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = ElseCS->getBeginLoc(); in checkForm45()
12159 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = ElseCS->getSourceRange(); in checkForm45()
12163 ErrorInfo.Error = ErrorTy::MoreThanOneStmt; in checkForm45()
12164 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = ElseCS->getBeginLoc(); in checkForm45()
12165 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = ElseCS->getSourceRange(); in checkForm45()
12173 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkForm45()
12174 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = Else->getBeginLoc(); in checkForm45()
12175 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Else->getSourceRange(); in checkForm45()
12179 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkForm45()
12180 ErrorInfo.ErrorLoc = ElseBO->getExprLoc(); in checkForm45()
12181 ErrorInfo.NoteLoc = ElseBO->getOperatorLoc(); in checkForm45()
12182 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = ElseBO->getSourceRange(); in checkForm45()
12186 ErrorInfo.Error = ErrorTy::InvalidAssignment; in checkForm45()
12187 ErrorInfo.ErrorLoc = ElseBO->getRHS()->getExprLoc(); in checkForm45()
12188 ErrorInfo.NoteLoc = X->getExprLoc(); in checkForm45()
12189 ErrorInfo.ErrorRange = ElseBO->getRHS()->getSourceRange(); in checkForm45()
12190 ErrorInfo.NoteRange = X->getSourceRange(); in checkForm45()
12197 return checkType(ErrorInfo); in checkForm45()
12201 ErrorInfoTy &ErrorInfo) { in checkStmt() argument
12204 return checkForm3(IS, ErrorInfo); in checkStmt()
12208 ErrorInfo.Error = ErrorTy::NotCompoundStmt; in checkStmt()
12209 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = S->getBeginLoc(); in checkStmt()
12210 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = S->getSourceRange(); in checkStmt()
12214 ErrorInfo.Error = ErrorTy::NoStmt; in checkStmt()
12215 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkStmt()
12216 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CS->getSourceRange(); in checkStmt()
12224 ErrorInfo.Error = ErrorTy::NotIfStmt; in checkStmt()
12225 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->body_front()->getBeginLoc(); in checkStmt()
12226 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = in checkStmt()
12231 return checkForm3(IS, ErrorInfo); in checkStmt()
12250 return checkForm45(CS, ErrorInfo); in checkStmt()
12271 auto CheckCondUpdateStmt = [this, &ErrorInfo](Stmt *CUS) { in checkStmt()
12274 ErrorInfo.Error = ErrorTy::NotIfStmt; in checkStmt()
12275 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CUS->getBeginLoc(); in checkStmt()
12276 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CUS->getSourceRange(); in checkStmt()
12280 return checkCondUpdateStmt(IS, ErrorInfo); in checkStmt()
12284 auto CheckUpdateStmt = [this, &ErrorInfo](Stmt *US) { in checkStmt()
12287 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkStmt()
12288 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = US->getBeginLoc(); in checkStmt()
12289 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = US->getSourceRange(); in checkStmt()
12293 ErrorInfo.Error = ErrorTy::NotAnAssignment; in checkStmt()
12294 ErrorInfo.ErrorLoc = BO->getExprLoc(); in checkStmt()
12295 ErrorInfo.NoteLoc = BO->getOperatorLoc(); in checkStmt()
12296 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = BO->getSourceRange(); in checkStmt()
12300 ErrorInfo.Error = ErrorTy::InvalidAssignment; in checkStmt()
12301 ErrorInfo.ErrorLoc = BO->getRHS()->getExprLoc(); in checkStmt()
12302 ErrorInfo.NoteLoc = this->X->getExprLoc(); in checkStmt()
12303 ErrorInfo.ErrorRange = BO->getRHS()->getSourceRange(); in checkStmt()
12304 ErrorInfo.NoteRange = this->X->getSourceRange(); in checkStmt()
12315 if (CondExprStmt && !checkCondExprStmt(CondExprStmt, ErrorInfo)) in checkStmt()
12320 ErrorInfo.Error = ErrorTy::MoreThanTwoStmts; in checkStmt()
12321 ErrorInfo.ErrorLoc = ErrorInfo.NoteLoc = CS->getBeginLoc(); in checkStmt()
12322 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = CS->getSourceRange(); in checkStmt()
12326 return checkType(ErrorInfo); in checkStmt()
12841 OpenMPAtomicCompareCaptureChecker::ErrorInfoTy ErrorInfo; in ActOnOpenMPAtomicDirective() local
12843 if (!Checker.checkStmt(Body, ErrorInfo)) { in ActOnOpenMPAtomicDirective()
12844 Diag(ErrorInfo.ErrorLoc, diag::err_omp_atomic_compare_capture) in ActOnOpenMPAtomicDirective()
12845 << ErrorInfo.ErrorRange; in ActOnOpenMPAtomicDirective()
12846 Diag(ErrorInfo.NoteLoc, diag::note_omp_atomic_compare) in ActOnOpenMPAtomicDirective()
12847 << ErrorInfo.Error << ErrorInfo.NoteRange; in ActOnOpenMPAtomicDirective()
12861 OpenMPAtomicCompareChecker::ErrorInfoTy ErrorInfo; in ActOnOpenMPAtomicDirective() local
12863 if (!Checker.checkStmt(Body, ErrorInfo)) { in ActOnOpenMPAtomicDirective()
12864 Diag(ErrorInfo.ErrorLoc, diag::err_omp_atomic_compare) in ActOnOpenMPAtomicDirective()
12865 << ErrorInfo.ErrorRange; in ActOnOpenMPAtomicDirective()
12866 Diag(ErrorInfo.NoteLoc, diag::note_omp_atomic_compare) in ActOnOpenMPAtomicDirective()
12867 << ErrorInfo.Error << ErrorInfo.NoteRange; in ActOnOpenMPAtomicDirective()
12885 ErrorInfo.Error = Checker.ErrorTy::NotAnAssignment; in ActOnOpenMPAtomicDirective()
12886 ErrorInfo.ErrorLoc = Cond->getExprLoc(); in ActOnOpenMPAtomicDirective()
12887 ErrorInfo.NoteLoc = Cond->getOperatorLoc(); in ActOnOpenMPAtomicDirective()
12888 ErrorInfo.ErrorRange = ErrorInfo.NoteRange = Cond->getSourceRange(); in ActOnOpenMPAtomicDirective()
12890 Diag(ErrorInfo.ErrorLoc, diag::err_omp_atomic_weak_no_equality) in ActOnOpenMPAtomicDirective()
12891 << ErrorInfo.ErrorRange; in ActOnOpenMPAtomicDirective()