forked from OSchip/llvm-project
parent
09cc564310
commit
c3f36af8d0
|
@ -46,7 +46,7 @@ TIL_OPCODE_DEF(Phi)
|
|||
TIL_OPCODE_DEF(Goto)
|
||||
TIL_OPCODE_DEF(Branch)
|
||||
|
||||
// psuedo-terms
|
||||
// pseudo-terms
|
||||
TIL_OPCODE_DEF(Identifier)
|
||||
TIL_OPCODE_DEF(IfThenElse)
|
||||
TIL_OPCODE_DEF(Let)
|
||||
|
|
|
@ -1278,7 +1278,7 @@ private:
|
|||
}
|
||||
|
||||
// Tries to merge an escape sequence, i.e. a "\\" and the following
|
||||
// charachter. Use e.g. inside JavaScript regex literals.
|
||||
// character. Use e.g. inside JavaScript regex literals.
|
||||
bool tryMergeEscapeSequence() {
|
||||
if (Tokens.size() < 2)
|
||||
return false;
|
||||
|
|
|
@ -404,7 +404,7 @@ void WalkAST::checkCall_mktemp(const CallExpr *CE, const FunctionDecl *FD) {
|
|||
if (PT->getPointeeType().getUnqualifiedType() != BR.getContext().CharTy)
|
||||
return;
|
||||
|
||||
// Issue a waring.
|
||||
// Issue a warning.
|
||||
PathDiagnosticLocation CELoc =
|
||||
PathDiagnosticLocation::createBegin(CE, BR.getSourceManager(), AC);
|
||||
BR.EmitBasicReport(AC->getDecl(), filter.checkName_mktemp,
|
||||
|
|
|
@ -115,7 +115,7 @@ stream &operator<(stream &s, int);
|
|||
bool operator<(stream &s, stream &s2);
|
||||
|
||||
void test() {
|
||||
cout < 5; // no waring, operator returns a reference
|
||||
cout < 5; // no warning, operator returns a reference
|
||||
cout < cin; // expected-warning {{relational comparison result unused}}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue