Lines Matching defs:Self

2249       // turn this into Self->ivar, just return a BareIVarExpr or something.
5779 static void SuggestParentheses(Sema &Self, SourceLocation Loc,
5782 SourceLocation EndLoc = Self.PP.getLocForEndOfToken(ParenRange.getEnd());
5785 Self.Diag(Loc, Note)
5790 Self.Diag(Loc, Note) << ParenRange;
5865 static void DiagnoseConditionalPrecedence(Sema &Self,
5881 Self.Diag(OpLoc, diag::warn_precedence_conditional)
5885 SuggestParentheses(Self, OpLoc,
5886 Self.PDiag(diag::note_precedence_silence)
5890 SuggestParentheses(Self, OpLoc,
5891 Self.PDiag(diag::note_precedence_conditional_first),
6949 static void diagnoseStringPlusInt(Sema &Self, SourceLocation OpLoc,
6964 if (IndexExpr->EvaluateAsInt(index, Self.getASTContext())) {
6973 Self.Diag(OpLoc, diag::warn_string_plus_int)
6978 SourceLocation EndLoc = Self.PP.getLocForEndOfToken(RHSExpr->getLocEnd());
6979 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence)
6984 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence);
6988 static void diagnoseStringPlusChar(Sema &Self, SourceLocation OpLoc,
7012 ASTContext &Ctx = Self.getASTContext();
7019 Self.Diag(OpLoc, diag::warn_string_plus_char)
7022 Self.Diag(OpLoc, diag::warn_string_plus_char)
7028 SourceLocation EndLoc = Self.PP.getLocForEndOfToken(RHSExpr->getLocEnd());
7029 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence)
7034 Self.Diag(OpLoc, diag::note_string_plus_scalar_silence);
9237 static void DiagnoseBitwisePrecedence(Sema &Self, BinaryOperatorKind Opc,
9264 Self.Diag(OpLoc, diag::warn_precedence_bitwise_rel)
9266 SuggestParentheses(Self, OpLoc,
9267 Self.PDiag(diag::note_precedence_silence) << OpStr,
9269 SuggestParentheses(Self, OpLoc,
9270 Self.PDiag(diag::note_precedence_bitwise_first)
9279 EmitDiagnosticForBitwiseAndInBitwiseOr(Sema &Self, SourceLocation OpLoc,
9282 Self.Diag(Bop->getOperatorLoc(), diag::warn_bitwise_and_in_bitwise_or)
9284 SuggestParentheses(Self, Bop->getOperatorLoc(),
9285 Self.PDiag(diag::note_precedence_silence)
9294 EmitDiagnosticForLogicalAndInLogicalOr(Sema &Self, SourceLocation OpLoc,
9297 Self.Diag(Bop->getOperatorLoc(), diag::warn_logical_and_in_logical_or)
9299 SuggestParentheses(Self, Bop->getOperatorLoc(),
9300 Self.PDiag(diag::note_precedence_silence)
9410 static void DiagnoseBinOpPrecedence(Sema &Self, BinaryOperatorKind Opc,
9415 DiagnoseBitwisePrecedence(Self, Opc, OpLoc, LHSExpr, RHSExpr);
9419 DiagnoseBitwiseAndInBitwiseOr(Self, OpLoc, LHSExpr);
9420 DiagnoseBitwiseAndInBitwiseOr(Self, OpLoc, RHSExpr);
9426 DiagnoseLogicalAndInLogicalOrLHS(Self, OpLoc, LHSExpr, RHSExpr);
9427 DiagnoseLogicalAndInLogicalOrRHS(Self, OpLoc, LHSExpr, RHSExpr);
9430 if ((Opc == BO_Shl && LHSExpr->getType()->isIntegralType(Self.getASTContext()))
9433 DiagnoseAdditionInShift(Self, OpLoc, LHSExpr, Shift);
9434 DiagnoseAdditionInShift(Self, OpLoc, RHSExpr, Shift);
9440 DiagnoseShiftCompare(Self, OpLoc, LHSExpr, RHSExpr);