reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Analysis/CFGPrinter.h
   87     if (OutStr[0] == '\n') OutStr.erase(OutStr.begin());
   93       if (OutStr[i] == '\n') {                            // Left justify
   94         OutStr[i] = '\\';
   98       } else if (OutStr[i] == ';') {                      // Delete comments!
  113       if (OutStr[i] == ' ')
include/llvm/ExecutionEngine/Orc/RawByteChannel.h
  176     return C.readBytes(&S[0], Count);
include/llvm/TableGen/StringToOffsetTable.h
   57       O << AggregateString[i];
   61       if (AggregateString[i] != '\\')
   65       if (isdigit(AggregateString[i + 1])) {
   66         assert(isdigit(AggregateString[i + 2]) &&
   67                isdigit(AggregateString[i + 3]) &&
   69         O << AggregateString[++i];
   70         O << AggregateString[++i];
   71         O << AggregateString[++i];
   74         O << AggregateString[++i];
lib/AsmParser/LLLexer.cpp
  117   char *Buffer = &Str[0], *EndBuffer = Buffer+Str.size();
lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp
   62   SymName[Letter] = toupper(SymName[Letter]);
   62   SymName[Letter] = toupper(SymName[Letter]);
lib/CodeGen/MachineFunction.cpp
  547       if (OutStr[0] == '\n') OutStr.erase(OutStr.begin());
  551         if (OutStr[i] == '\n') {                            // Left justify
  552           OutStr[i] = '\\';
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4043   char ConstraintLetter = Constraint[0];
lib/DebugInfo/PDB/PDBSymbolCompiland.cpp
   64         if (EnvWorkingDir[Len - 1] != '/' && EnvWorkingDir[Len - 1] != '\\') {
   64         if (EnvWorkingDir[Len - 1] != '/' && EnvWorkingDir[Len - 1] != '\\') {
lib/DebugInfo/PDB/PDBSymbolFunc.cpp
   91   if (Name[0] == '~')
lib/IR/Mangler.cpp
  199     if (Flag[0] == GV->getParent()->getDataLayout().getGlobalPrefix())
lib/LineEditor/LineEditor.cpp
   46       if (CommonPrefix[CommonLen] != I->TypedText[CommonLen])
lib/MC/MCSubtargetInfo.cpp
  283     if (F[0] == '-')
  284       F[0] = '+';
lib/ObjectYAML/COFFEmitter.cpp
  307   *reinterpret_cast<support::ulittle32_t *>(&CP.StringTable[0]) =
  590     OS.write(&CP.StringTable[0], CP.StringTable.size());
lib/ProfileData/InstrProf.cpp
  299     VarName[found] = '_';
lib/Support/ConvertUTFWrapper.cpp
  117   UTF8 *Dst = reinterpret_cast<UTF8 *>(&Out[0]);
  129   Out.resize(reinterpret_cast<char *>(Dst) - &Out[0]);
  191   char *ResultPtr = reinterpret_cast<char *>(&Result[0]);
  197   Result.resize(reinterpret_cast<wchar_t *>(ResultPtr) - &Result[0]);
  221     memcpy(&Result[0], Source.data(), Source.size());
  233     UTF8 *ResultPtr = reinterpret_cast<UTF8 *>(&Result[0]);
  234     UTF8 *ResultEnd = reinterpret_cast<UTF8 *>(&Result[0] + Result.size());
  237       Result.resize(reinterpret_cast<char *>(ResultPtr) - &Result[0]);
lib/Support/FileCheck.cpp
 1797       SubstitutionStr[EqIdx] = ':';
lib/Support/GraphWriter.cpp
   38   switch (Str[i]) {
   42       Str[i] = 'n';
   47       Str[i] = ' ';
   51         switch (Str[i+1]) {
lib/Support/JSON.cpp
  556   UTF8 *Out8 = reinterpret_cast<UTF8 *>(&Res[0]);
lib/Support/Regex.cpp
   63   llvm_regerror(error, preg, &Error[0], len);
lib/Support/ScaledNumber.cpp
  292   bool Carry = doesRoundUp(Str[Truncate]);
lib/Support/SourceMgr.cpp
  336     std::fill(&CaretLine[FirstCol], &CaretLine[LastCol], '~');
  336     std::fill(&CaretLine[FirstCol], &CaretLine[LastCol], '~');
  431     std::fill(&CaretLine[R.first],
  432               &CaretLine[std::min((size_t)R.second, CaretLine.size())],
  445     CaretLine[ColumnNo] = '^';
  447     CaretLine[NumColumns] = '^';
  462         S << CaretLine[i];
  469         S << CaretLine[i];
  482       OS << FixItInsertionLine[i];
  489       OS << FixItInsertionLine[i];
  495       if (FixItInsertionLine[i] != ' ')
lib/Support/StringRef.cpp
  110     Result[i] = toLower(Data[i]);
  118     Result[i] = toUpper(Data[i]);
lib/Target/AArch64/AArch64ISelLowering.cpp
 6072   char ConstraintLetter = Constraint[0];
lib/Target/ARM/ARMISelLowering.cpp
15760   char ConstraintLetter = Constraint[0];
lib/Target/AVR/AVRISelLowering.cpp
 1915   char ConstraintLetter = Constraint[0];
lib/Target/Lanai/LanaiISelLowering.cpp
  293   char ConstraintLetter = Constraint[0];
lib/Target/Mips/MipsISelLowering.cpp
 4030   char ConstraintLetter = Constraint[0];
lib/Target/Mips/MipsOs16.cpp
  130         switch (Mips32FunctionMask[functionIndex]) {
lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
   58     RN[0] = 'f';
lib/Target/PowerPC/PPCISelLowering.cpp
14401   char Letter = Constraint[0];
lib/Target/RISCV/RISCVISelLowering.cpp
 2688     switch (Constraint[0]) {
lib/Target/Sparc/SparcISelLowering.cpp
 3233   char ConstraintLetter = Constraint[0];
lib/Target/SystemZ/SystemZISelLowering.cpp
 1157     switch (Constraint[0]) {
lib/Target/X86/X86ISelLowering.cpp
45622   char ConstraintLetter = Constraint[0];
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
  165       if (!E.AliasTarget.empty() || (!E.Name.empty() && E.Name[0] == '?'))
tools/clang/lib/ARCMigrate/ObjCMT.cpp
  537     bool NoLowering = (isUppercase(PropertyNameString[0]) &&
  539                        isUppercase(PropertyNameString[1]));
  541       PropertyNameString[0] = toLowercase(PropertyNameString[0]);
  541       PropertyNameString[0] = toLowercase(PropertyNameString[0]);
  548     char LastChar = TypeString[TypeString.size()-1];
 1160   NameString[0] = toLowercase(NameString[0]);
 1160   NameString[0] = toLowercase(NameString[0]);
tools/clang/lib/AST/FormatString.cpp
  550       Alias += (Alias[Alias.size()-1] == '*') ? "*" : " *";
tools/clang/lib/AST/StmtViz.cpp
   46     if (OutStr[0] == '\n') OutStr.erase(OutStr.begin());
   50       if (OutStr[i] == '\n') {                            // Left justify
   51         OutStr[i] = '\\';
tools/clang/lib/Analysis/CFG.cpp
 5990     if (OutStr[0] == '\n') OutStr.erase(OutStr.begin());
 5994       if (OutStr[i] == '\n') {                            // Left justify
 5995         OutStr[i] = '\\';
tools/clang/lib/Basic/Targets/X86.cpp
 1689     if (Info.ConstraintStr[0] == '=')
tools/clang/lib/CodeGen/CGObjCMac.cpp
 2822       unsigned char inst = BitMap[i];
tools/clang/lib/CodeGen/TargetInfo.cpp
 1177     OS << StringRef(&AsmString[Pos], DollarEnd - Pos);
 1186       StringRef OperandStr(&AsmString[DigitStart], DigitEnd - DigitStart);
tools/clang/lib/Driver/ToolChains/Clang.cpp
 5748       switch (EHVal[I]) {
tools/clang/lib/Driver/ToolChains/MSVC.cpp
 1479   NewVal[Hash] = '=';
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp
  696       Callbacks->OS.write(&TokSpell[0], TokSpell.size());
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
  567         if (From[i] == '"')
  570           To += From[i];
 1257       if (selString[i] == ':')
 1258         selString[i] = '_';
 2563       tmpName[i] = '_';
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
  473         if (From[i] == '"')
  476           To += From[i];
 1089       if (selString[i] == ':')
 1090         selString[i] = '_';
 2488       tmpName[i] = '_';
tools/clang/lib/Frontend/TextDiagnostic.cpp
  166     if (SourceLine[i]!='\t')
  342     if (!isWhitespace(CaretLine[CaretStart]))
  346     if (!isWhitespace(CaretLine[CaretEnd - 1]))
  357       if (!isWhitespace(FixItInsertionLine[FixItStart]))
  361       if (!isWhitespace(FixItInsertionLine[FixItEnd - 1]))
  424       while (NewStart && isWhitespace(SourceLine[NewStart]))
  430         if (isWhitespace(SourceLine[Prev]))
  450       while (NewEnd < SourceLine.size() && isWhitespace(SourceLine[NewEnd]))
  454       while (NewEnd < SourceLine.size() && isWhitespace(SourceLine[NewEnd]))
 1232       CaretLine[CaretColNo] = '^';
 1255     while (!CaretLine.empty() && CaretLine[CaretLine.size() - 1] == ' ')
tools/clang/lib/Lex/Lexer.cpp
  233     if (Str[i] == '\\' || Str[i] == Quote) {
  233     if (Str[i] == '\\' || Str[i] == Quote) {
  237     } else if (Str[i] == '\n' || Str[i] == '\r') {
  237     } else if (Str[i] == '\n' || Str[i] == '\r') {
  239       if ((i < e - 1) && (Str[i + 1] == '\n' || Str[i + 1] == '\r') &&
  239       if ((i < e - 1) && (Str[i + 1] == '\n' || Str[i + 1] == '\r') &&
  240           Str[i] != Str[i + 1]) {
  240           Str[i] != Str[i + 1]) {
  241         Str[i] = '\\';
  242         Str[i + 1] = 'n';
  245         Str[i] = '\\';
 2400   assert(Spelling[0] == '/' && Spelling[1] == '/' && "Not line comment?");
 2400   assert(Spelling[0] == '/' && Spelling[1] == '/' && "Not line comment?");
 2401   Spelling[1] = '*';   // Change prefix to "/*".
tools/clang/lib/Lex/PPDirectives.cpp
  511       memcpy(DirectiveBuf, &DirectiveStr[0], IdLen);
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1733         if (WarningName.size() < 3 || WarningName[0] != '-' ||
 1734             WarningName[1] != 'W') {
tools/clang/lib/Lex/Pragma.cpp
  264   if (StrVal[0] == 'L' || StrVal[0] == 'U' ||
  264   if (StrVal[0] == 'L' || StrVal[0] == 'U' ||
  265       (StrVal[0] == 'u' && StrVal[1] != '8'))
  265       (StrVal[0] == 'u' && StrVal[1] != '8'))
  267   else if (StrVal[0] == 'u')
  270   if (StrVal[0] == 'R') {
  273     assert(StrVal[1] == '"' && StrVal[StrVal.size() - 1] == '"' &&
  273     assert(StrVal[1] == '"' && StrVal[StrVal.size() - 1] == '"' &&
  278     while (StrVal[2 + NumDChars] != '(') {
  283     assert(StrVal[StrVal.size() - 2 - NumDChars] == ')');
  290     assert(StrVal[0] == '"' && StrVal[StrVal.size()-1] == '"' &&
  290     assert(StrVal[0] == '"' && StrVal[StrVal.size()-1] == '"' &&
  297       if (StrVal[i] == '\\' && i + 1 < e &&
  298           (StrVal[i + 1] == '\\' || StrVal[i + 1] == '"'))
  298           (StrVal[i + 1] == '\\' || StrVal[i + 1] == '"'))
  300       StrVal[ResultPos++] = StrVal[i];
  300       StrVal[ResultPos++] = StrVal[i];
  307   StrVal[0] = ' ';
  310   StrVal[StrVal.size()-1] = '\n';
  582   assert(StrVal[0] == '"' && StrVal[StrVal.size()-1] == '"' &&
  582   assert(StrVal[0] == '"' && StrVal[StrVal.size()-1] == '"' &&
  589   CreateString(StringRef(&StrVal[1], StrVal.size() - 2), MacroTok);
 1217     if (WarningName.size() < 3 || WarningName[0] != '-' ||
 1218         (WarningName[1] != 'W' && WarningName[1] != 'R')) {
 1218         (WarningName[1] != 'W' && WarningName[1] != 'R')) {
 1223     diag::Flavor Flavor = WarningName[1] == 'W' ? diag::Flavor::WarningOrError
tools/clang/lib/Lex/TokenConcatenation.cpp
  145     return PP.getSpelling(Tok)[0];
tools/clang/lib/Parse/ParseObjc.cpp
 1024     if (isLetter(ThisTok[0])) {
tools/clang/lib/Sema/SemaCodeComplete.cpp
 7580     UpperKey[0] = toUppercase(UpperKey[0]);
 7580     UpperKey[0] = toUppercase(UpperKey[0]);
tools/clang/lib/Sema/SemaInit.cpp
 2902         llvm::APInt CodeUnit(PromotedCharTyWidth, Str[i]);
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
 2497   Message[0] = toupper(Message[0]);
 2497   Message[0] = toupper(Message[0]);
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp
  286         (Args[1][0] != '-') &&
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  332         ((FilePath[0] == '"' || FilePath[0] == '<') ? FilePath
  332         ((FilePath[0] == '"' || FilePath[0] == '<') ? FilePath
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
  363       Symbol.SetFilePath(((HeaderPath[0] == '"' || HeaderPath[0] == '<')
  363       Symbol.SetFilePath(((HeaderPath[0] == '"' || HeaderPath[0] == '<')
tools/clang/tools/extra/clang-move/Move.cpp
  376       if (!isAlphanumeric(GuardName[i]))
  377         GuardName[i] = '_';
tools/clang/tools/extra/clang-tidy/abseil/FasterStrsplitDelimiterCheck.cpp
   49   Result[Pos] = '\'';
   53   Result[Pos] = '\'';
tools/clang/tools/extra/clang-tidy/google/FunctionNamingCheck.cpp
   63     char ch = NewName[Index];
   67         NewName[Index] = toupper(NewName[Index]);
   67         NewName[Index] = toupper(NewName[Index]);
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  358            std::isspace(ReturnType[TOffsetInRT + TLengthWithWS]))
tools/clang/tools/extra/clang-tidy/objc/PropertyDeclarationCheck.cpp
   50     NewName[Index] = tolower(NewName[Index]);
   50     NewName[Index] = tolower(NewName[Index]);
tools/clang/tools/extra/clang-tidy/performance/FasterStringFindCheck.cpp
   34   Result[pos] = '\'';
   38   Result[pos] = '\'';
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp
 1294     return (*Code)[*Offset - 2] == '-'; // trigger only on '->'.
 1296     return (*Code)[*Offset - 2] == ':'; // trigger only on '::'.
tools/clang/tools/extra/clangd/Diagnostics.cpp
  222     Message[0] = llvm::toUpper(Message[0]);
  222     Message[0] = llvm::toUpper(Message[0]);
tools/clang/tools/extra/clangd/JSONTransport.cpp
  178     if (!llvm::sys::RetryAfterSignal(nullptr, ::fgets, &Out[Size], BufSize, In))
  183     size_t Read = std::strlen(&Out[Size]);
  184     if (Read > 0 && Out[Size + Read - 1] == '\n') {
  247     Read = llvm::sys::RetryAfterSignal(0u, ::fread, &JSON[Pos], 1,
  254     InMirror << llvm::StringRef(&JSON[Pos], Read);
tools/clang/tools/extra/clangd/index/dex/Trigram.cpp
   67         Add({{LowercaseIdentifier[I], LowercaseIdentifier[J],
   67         Add({{LowercaseIdentifier[I], LowercaseIdentifier[J],
   68               LowercaseIdentifier[K]}});
   74     Add({LowercaseIdentifier[0]});
   76     Add({LowercaseIdentifier[0], LowercaseIdentifier[1]});
   76     Add({LowercaseIdentifier[0], LowercaseIdentifier[1]});
   79       Add({LowercaseIdentifier[0], LowercaseIdentifier[I]});
   79       Add({LowercaseIdentifier[0], LowercaseIdentifier[I]});
  102     Chars.push_back(LowercaseQuery[I]);
tools/clang/tools/extra/clangd/unittests/JSONTransportTests.cpp
   36     In = {fmemopen(&InBuf[0], InBuf.size(), "r"), &fclose};
tools/clang/tools/extra/modularize/ModuleAssistant.cpp
  159   if (isdigit(SafeName[0]))
tools/clang/unittests/Format/FormatTestJS.cpp
 1444   MpegTS[0] = 0x47;
 1445   MpegTS[188] = 0x47;
tools/clang/unittests/Format/FormatTestUtils.h
   28     if (MessedUp[i] == '/' && MessedUp[i + 1] == '/') {
   28     if (MessedUp[i] == '/' && MessedUp[i + 1] == '/') {
   30         MessedUp[i - 1] = '\n';
   32     } else if (MessedUp[i] == '#' &&
   33                (JustReplacedNewline || i == 0 || MessedUp[i - 1] == '\n')) {
   35         MessedUp[i - 1] = '\n';
   37     } else if (MessedUp[i] == '\\' && MessedUp[i + 1] == '\n') {
   37     } else if (MessedUp[i] == '\\' && MessedUp[i + 1] == '\n') {
   38       MessedUp[i] = ' ';
   39       MessedUp[i + 1] = ' ';
   40     } else if (MessedUp[i] == '\n') {
   47         MessedUp[i] = ' ';
   49     } else if (MessedUp[i] != ' ') {
   54   if (MessedUp[0] != ' ')
   55     WithoutWhitespace.push_back(MessedUp[0]);
   57     if (MessedUp[i] != ' ' || MessedUp[i - 1] != ' ')
   57     if (MessedUp[i] != ' ' || MessedUp[i - 1] != ' ')
   58       WithoutWhitespace.push_back(MessedUp[i]);
tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp
   44       S[i] = std::toupper(S[i]);
   44       S[i] = std::toupper(S[i]);
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
  202         lowerName[0] = std::tolower(lowerName[0]);
  202         lowerName[0] = std::tolower(lowerName[0]);
  203         upperName[0] = std::toupper(upperName[0]);
  203         upperName[0] = std::toupper(upperName[0]);
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
 1774         Severity[0] = tolower(Severity[0]);
 1774         Severity[0] = tolower(Severity[0]);
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp
   90       if (Name.substr(1, 3) == "no-" && OptionsByName[Name[0] + Name.substr(4)]) {
   91         Aliases[OptionsByName[Name[0] + Name.substr(4)]].push_back(R);
tools/clang/utils/TableGen/NeonEmitter.cpp
 1107     bool ForcedVectorFloatingType = isFloatingPointProtoModifier(Proto[0]);
 1120     bool ForcedFloatingType = isFloatingPointProtoModifier(Proto[I + 1]);
 1165         Name[Name.length() - 2] == 'x' && Name[Name.length() - 3] == '_')
 1165         Name[Name.length() - 2] == 'x' && Name[Name.length() - 3] == '_')
 1208     while (isalpha(S[End]))
 1346     if (hasImmediate() && Proto[I+1] == 'i')
 1460     if (Proto[0] == 'v' || isFloatingPointProtoModifier(Proto[0]))
 1460     if (Proto[0] == 'v' || isFloatingPointProtoModifier(Proto[0]))
 2161     if (Def->getProto()[0] == 'v' ||
 2162         isFloatingPointProtoModifier(Def->getProto()[0]))
 2174       char ArgType = Proto[I + 1];
tools/lld/ELF/InputFiles.cpp
 1455     if (!isAlnum(s[i]))
 1456       s[i] = '_';
tools/lld/ELF/Relocations.cpp
  732       newName[i] = c;
  742       newName[i] = c;
  750       newName[i] = name[i + 1];
  751       newName[i + 1] = name[i];
tools/lldb/source/API/SBStream.cpp
  106     m_opaque_up->Write(&local_data[0], local_data.size());
  141     m_opaque_up->Write(&local_data[0], local_data.size());
  162     m_opaque_up->Write(&local_data[0], local_data.size());
tools/lldb/source/Commands/CommandObjectMemory.cpp
  413           if (type_str[idx + keyword_len] == ' ' ||
  414               type_str[idx + keyword_len] == '\t') {
  432           switch (type_str[type_str.size() - 1]) {
  727         size_t read = target->ReadCStringFromMemory(data_addr, &buffer[0],
  746         memcpy(data_ptr, &buffer[0], read);
tools/lldb/source/Commands/CommandObjectPlatform.cpp
  597           fd, m_options.m_offset, &buffer[0], m_options.m_count, error);
  683           platform_sp->WriteFile(fd, m_options.m_offset, &m_options.m_data[0],
tools/lldb/source/Core/Disassembler.cpp
  795     if (line[len - 1] == '\n') {
  796       line[len - 1] = '\0';
  800     if ((line.size() == 1) && line[0] == ']') {
  856     if (line[len - 1] == '\n') {
  857       line[len - 1] = '\0';
  861     if ((line.size() == 1) && (line[0] == '}')) {
  894       if (value[0] == '{') {
  902       } else if (value[0] == '[') {
  913       } else if ((value[0] == '0') && (value[1] == 'x')) {
  913       } else if ((value[0] == '0') && (value[1] == 'x')) {
  918         if ((value[0] == '"') && (value[len - 1] == '"'))
  918         if ((value[0] == '"') && (value[len - 1] == '"'))
tools/lldb/source/Core/DumpDataExtractor.cpp
  247             binary_value[64 - 1 - i] = '1';
tools/lldb/source/Core/FormatEntity.cpp
  628   ::sprintf(&ptr_deref_buffer[0], ptr_deref_format, index);
 2164                 switch (entry.printf_format[0]) {
tools/lldb/source/Core/IOHandler.cpp
  194     switch (line[0]) {
tools/lldb/source/Core/SourceManager.cpp
  213           s->PutChar(src_line[i] == '\t' ? '\t' : ' ');
tools/lldb/source/Expression/IRInterpreter.cpp
   56   while (s[0] == ' ' || s[0] == '\t')
   56   while (s[0] == ' ' || s[0] == '\t')
tools/lldb/source/Expression/REPL.cpp
  205     if (code[0] == ':') {
tools/lldb/source/Host/linux/Host.cpp
  171   ssize_t len = readlink(ProcExe.c_str(), &ExePath[0], PATH_MAX);
tools/lldb/source/Interpreter/CommandInterpreter.cpp
 1323     const char first_char = command_string[0];
 1355     if (command[0] != '-' && command[0] != '_') {
 1355     if (command[0] != '-' && command[0] != '_') {
 1451     if (start_backtick > 0 && command[start_backtick - 1] == '\\') {
 1634     else if (command_string[non_space] == m_comment_char)
 1636     else if (command_string[non_space] == CommandHistory::g_repeat_char) {
 3060         switch (suffix[0]) {
tools/lldb/source/Interpreter/OptionArgParser.cpp
  225           if (sign[0] == '+')
tools/lldb/source/Interpreter/Options.cpp
  299       while ((start < final_end) && (actual_text[start] == ' '))
  308         while (end > start && actual_text[end] != ' ' &&
  309                actual_text[end] != '\t' && actual_text[end] != '\n')
  309                actual_text[end] != '\t' && actual_text[end] != '\n')
  674           opt_str[1] = def.short_option;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
  237     if (!decl_name.empty() && decl_name[0] == '$') {
tools/lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.cpp
 1007   result[0] = toupper(result[0]);
 1007   result[0] = toupper(result[0]);
tools/lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.cpp
  197     stop_reason_description[0] = toupper(stop_reason_description[0]);
  197     stop_reason_description[0] = toupper(stop_reason_description[0]);
  199       if (stop_reason_description[I] == '-')
  200         stop_reason_description[I] = ' ';
tools/lldb/source/Plugins/Language/ObjC/CF.cpp
   38   if (strftime(&buffer[0], 1023, "%Z", tm_date) == 0)
tools/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
  863   if (strftime(&buffer[0], 1023, "%Z", tm_date) == 0)
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 3911                     so_dir.SetFile(&full_so_path[double_slash_pos + 1],
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp
  502     error = ReadAllBytes(&error_message[0], data_len);
  645     error = ReadAllBytes(&error_message[0], data_len);
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
 1205   if (m_developer_directory[0])
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
  358   if (m_device_support_directory[0])
  388   if (m_device_support_directory_for_os_version[0])
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
  425   if (m_bytes[0] != '$' && m_bytes[0] != '%')
  425   if (m_bytes[0] != '$' && m_bytes[0] != '%')
  427   if (m_bytes[1] != 'C' && m_bytes[1] != 'N')
  427   if (m_bytes[1] != 'C' && m_bytes[1] != 'N')
  436   if (!::isxdigit(m_bytes[hash_mark_idx + 1]) ||
  437       !::isxdigit(m_bytes[hash_mark_idx + 2]))
  461   if (m_bytes[1] == 'C') {
  463     while (i < hash_mark_idx && isdigit(m_bytes[i]))
  465     if (i < hash_mark_idx && m_bytes[i] == ':') {
  481     packet_checksum_cstr[0] = m_bytes[checksum_idx];
  482     packet_checksum_cstr[1] = m_bytes[checksum_idx + 1];
  505   if (m_bytes[1] == 'N') {
  518     if (m_bytes[i] == '}') {
  520       unescaped_content.push_back(m_bytes[i] ^ 0x20);
  522       unescaped_content.push_back(m_bytes[i]);
  619   new_packet.push_back(m_bytes[0]);
  677     switch (m_bytes[0]) {
  720         switch (m_bytes[idx]) {
  762         if (m_bytes[0] == '$' && total_length > 4) {
  764             unsigned char c = m_bytes[i];
  776                         m_bytes[0]);
  779                         (uint64_t)total_length, m_bytes[0]);
  782             const char ch = m_bytes[i];
  786               const char escapee = m_bytes[++i] ^ 0x20;
  793           strm.Printf("%c%c%c", m_bytes[total_length - 3],
  794                       m_bytes[total_length - 2], m_bytes[total_length - 1]);
  794                       m_bytes[total_length - 2], m_bytes[total_length - 1]);
  839       if (m_bytes[0] == '$' || m_bytes[0] == '%') {
  839       if (m_bytes[0] == '$' || m_bytes[0] == '%') {
  841         if (::isxdigit(m_bytes[checksum_idx + 0]) ||
  842             ::isxdigit(m_bytes[checksum_idx + 1])) {
  844             const char *packet_checksum_cstr = &m_bytes[checksum_idx];
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
 3030           memcpy(dst, &buffer[0], data_to_write);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
  586       Status error = file.Read(static_cast<void *>(&buffer[0]), count, offset);
  595         response.PutEscapedBytes(&buffer[0], bytes_read);
  620             file.Write(static_cast<const void *>(&buffer[0]), count, offset);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
 2305       read_addr, &buf[0], byte_count, bytes_read);
 2332       response.PutHex8(buf[i]);
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
 1535     value[comma_pos] = '\0';
 1554     value[comma_pos] = '\0';
tools/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
  311       if (corefile_identifier[p] == '0' && corefile_identifier[p + 1] == 'x') {
  311       if (corefile_identifier[p] == '0' && corefile_identifier[p + 1] == 'x') {
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
 1826                                              &param_format[0], tid, context));
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  188   qname[3] = child.asTag().getUniqueName()[3];
  190   if (qname[3] == 'W')
tools/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp
  146             m_process->ReadMemory(label_addr, &dispatch_queue_name[0],
tools/lldb/source/Target/ModuleCache.cpp
   42     if ((result[i] >= 1 && result[i] <= 31) ||
   42     if ((result[i] >= 1 && result[i] <= 31) ||
   43         strchr(kFSIllegalChars, result[i]) != nullptr)
   44       result[i] = '_';
tools/lldb/source/Utility/StringExtractor.cpp
   46     char ch = m_packet[m_index];
   64   const int hi_nibble = xdigit_to_sint(m_packet[m_index]);
   65   const int lo_nibble = xdigit_to_sint(m_packet[m_index + 1]);
  162     while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  170       uint8_t nibble_hi = xdigit_to_sint(m_packet[m_index]);
  172       if (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  173         nibble_lo = xdigit_to_sint(m_packet[m_index]);
  186     while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  193       uint8_t nibble = xdigit_to_sint(m_packet[m_index]);
  213     while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  221       uint8_t nibble_hi = xdigit_to_sint(m_packet[m_index]);
  223       if (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  224         nibble_lo = xdigit_to_sint(m_packet[m_index]);
  237     while (m_index < m_packet.size() && ::isxdigit(m_packet[m_index])) {
  244       uint8_t nibble = xdigit_to_sint(m_packet[m_index]);
  368   while (m_index < n && isspace(m_packet[m_index]))
tools/lldb/source/Utility/StringLexer.cpp
   18 StringLexer::Character StringLexer::Peek() { return m_data[m_position]; }
tools/lldb/source/Utility/StringList.cpp
  110       if (prefix[count] != arg[count])
tools/lldb/tools/lldb-vscode/IOStream.cpp
   96   char *ptr = &data[0];
tools/lldb/unittests/Utility/CompletionRequestTest.cpp
  267   Temporary[0] = 'f';
tools/lli/lli.cpp
  239         this->CacheDir[this->CacheDir.size() - 1] != '/')
tools/llvm-ar/llvm-ar.cpp
  297     switch (Options[i]) {
  392       fail(std::string("unknown option ") + Options[i]);
unittests/Support/JSONTest.cpp
   62   Y[1] = 'a';
unittests/Support/RegexTest.cpp
   47   String[2] = '\0';
   55   NulPattern[7] = '\0';
   59   String[3]='\0';
usr/include/c++/7.4.0/bits/basic_string.h
 1114 	return operator[](0);
 1136 	return operator[](this->size() - 1);
usr/include/c++/7.4.0/bits/locale_facets_nonio.tcc
  319 	    if (__negative && __res[0] != '0')
usr/include/c++/7.4.0/bits/regex_compiler.h
  472 	_M_char_set.push_back(_M_translator._M_translate(__st[0]));
usr/include/c++/7.4.0/bits/regex_compiler.tcc
  159 	      _M_insert_word_bound(_M_value[0] == 'n')));
  162 	  auto __neg = _M_value[0] == 'n';
  401 	    (_M_value[0], _M_traits))));
  412 	(_M_ctype.is(_CtypeT::upper, _M_value[0]), _M_traits);
  433 	      __last_char.second = _M_value[0];
  481 	    __push_char(__symbol[0]);
  496 	__push_char(_M_value[0]);
  530 		  __matcher._M_make_range(__last_char.second, _M_value[0]);
  554 						       _M_value[0]));
  606 	__v =__v * __radix + _M_traits.value(_M_value[__i], __radix);
utils/TableGen/AsmWriterEmitter.cpp
  248     if (Str[i] == '\\' && i != Str.size()-1) {
  249       switch (Str[i+1]) {
  251       case 'a': Str[i] = '\a'; break;
  252       case 'b': Str[i] = '\b'; break;
  253       case 'e': Str[i] = 27; break;
  254       case 'f': Str[i] = '\f'; break;
  255       case 'n': Str[i] = '\n'; break;
  256       case 'r': Str[i] = '\r'; break;
  257       case 't': Str[i] = '\t'; break;
  258       case 'v': Str[i] = '\v'; break;
  259       case '"': Str[i] = '\"'; break;
  260       case '\'': Str[i] = '\''; break;
  261       case '\\': Str[i] = '\\'; break;
utils/TableGen/AsmWriterInst.cpp
   69         switch (AsmString[LastEmitted]) {
   83             AddLiteralString(std::string(1, AsmString[LastEmitted]));
   86     } else if (AsmString[DollarPos] == '\\') {
   88         if (AsmString[DollarPos+1] == 'n') {
   90         } else if (AsmString[DollarPos+1] == 't') {
   92         } else if (std::string("${|}\\").find(AsmString[DollarPos+1])
   94           AddLiteralString(std::string(1, AsmString[DollarPos+1]));
  105                AsmString[DollarPos+1] == '$') {
  116       if (VarEnd < AsmString.size() && '{' == AsmString[VarEnd]) {
  122       while (VarEnd < AsmString.size() && isIdentChar(AsmString[VarEnd]))
  142         if (AsmString[VarEnd] == ':') {
  151           while (VarEnd < AsmString.size() && isIdentChar(AsmString[VarEnd]))
  161         if (AsmString[VarEnd] != '}')
utils/TableGen/CodeGenSchedule.cpp
  110         if (pat[0] != '^') {
utils/TableGen/CodeGenTarget.cpp
  639       Name += (EnumName[i] == '_') ? '.' : EnumName[i];
  639       Name += (EnumName[i] == '_') ? '.' : EnumName[i];
utils/benchmark/src/benchmark_register.cc
  118   if(spec[0] == '-') {