Lines Matching defs:assert

221   assert(Res && "Unexpected conversion failure");
233 assert(*I == 'u' || *I == 'U');
241 assert(I + NumHexDigits <= E);
246 assert(Value != -1U);
381 assert((CharByteWidth == 1 || CharByteWidth == 2 || CharByteWidth == 4) &&
385 assert((UcnLen== 4 || UcnLen== 8) && "only ucn length of 4 or 8 supported");
415 assert(CharByteWidth == 1 && "UTF-8 encoding is only for 1 byte characters");
514 assert(!isPreprocessingNumberBody(*ThisTokEnd) && "didn't maximally munch?");
753 assert(s[0] == '0' && "Invalid method call");
946 assert(C < radix && "NumericLiteralParser ctor should have rejected this");
1039 assert(begin[0] == '\'' && "Invalid token lexed");
1054 assert(end != begin && "Invalid token lexed");
1060 assert(PP.getTargetInfo().getCharWidth() == 8 &&
1062 assert(PP.getTargetInfo().getIntWidth() <= 64 &&
1065 assert(PP.getTargetInfo().getWCharWidth() <= 64 &&
1277 assert(!StringToks.empty() && "expected at least one token");
1279 assert(StringToks[0].getLength() >= 2 && "literal token is invalid!");
1293 assert(StringToks[i].getLength() >= 2 && "literal token is invalid!");
1321 assert((CharByteWidth & 7) == 0 && "Assumes character size is byte multiple");
1423 assert(ThisTokEnd >= ThisTokBuf && "malformed raw string literal");
1491 assert(CharByteWidth == 1 && "Unexpected char width");
1510 assert(CharByteWidth == 1 && "Unexpected char width");
1624 assert(SpellingPtr[0] != 'L' && SpellingPtr[0] != 'u' &&
1629 assert(SpellingPtr[1] == '"' && "Should be a raw string literal!");
1634 assert(SpellingPtr < SpellingEnd && "Missing ( for raw string literal");
1642 assert(SpellingPtr[0] == '"' && "Should be a string literal!");
1647 assert(SpellingPtr < SpellingEnd && "Didn't find byte offset!");
1674 assert(!HadError && "This method isn't valid on erroneous strings");