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

Derived Classes

tools/clang/utils/TableGen/NeonEmitter.cpp
  116 class TypeSpec : public std::string {

References

benchmarks/DummyYAML.cpp
    5   std::string x = "hello";
    7     std::string copy(x);
examples/BrainF/BrainFDriver.cpp
   60 static cl::opt<std::string>
   63 static cl::opt<std::string>
  121       std::string base = InputFilename;
examples/Fibonacci/fibonacci.cpp
  117   std::string errStr;
examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp
   63 static std::string IdentifierStr; // Filled in if tok_identifier
  103     std::string NumStr;
  159   std::string Name;
  162   VariableExprAST(const std::string &Name) : Name(Name) {}
  165   const std::string &getName() const { return Name; }
  195   std::string Callee;
  199   CallExprAST(const std::string &Callee,
  220   std::string VarName;
  224   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  235   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  240       std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
  251   std::string Name;
  252   std::vector<std::string> Args;
  257   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  257   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  263   const std::string &getName() const { return Name; }
  354   std::string IdName = IdentifierStr;
  423   std::string IdName = IdentifierStr;
  467   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  474     std::string Name = IdentifierStr;
  605   std::string FnName;
  649   std::vector<std::string> ArgNames;
  703 static std::map<std::string, AllocaInst *> NamedValues;
  704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  712 Function *getFunction(std::string Name) {
  730                                           const std::string &VarName) {
  994     const std::string &VarName = VarNames[i].first;
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
   63 static std::string IdentifierStr; // Filled in if tok_identifier
  103     std::string NumStr;
  159   std::string Name;
  162   VariableExprAST(const std::string &Name) : Name(Name) {}
  165   const std::string &getName() const { return Name; }
  195   std::string Callee;
  199   CallExprAST(const std::string &Callee,
  220   std::string VarName;
  224   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  235   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  240       std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
  251   std::string Name;
  252   std::vector<std::string> Args;
  257   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  257   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  263   const std::string &getName() const { return Name; }
  354   std::string IdName = IdentifierStr;
  423   std::string IdName = IdentifierStr;
  467   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  474     std::string Name = IdentifierStr;
  605   std::string FnName;
  649   std::vector<std::string> ArgNames;
  703 static std::map<std::string, AllocaInst *> NamedValues;
  704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  712 Function *getFunction(std::string Name) {
  730                                           const std::string &VarName) {
  994     const std::string &VarName = VarNames[i].first;
examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h
  120   JITSymbol findSymbol(const std::string Name) {
  121     std::string MangledName;
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp
   63 static std::string IdentifierStr; // Filled in if tok_identifier
  103     std::string NumStr;
  159   std::string Name;
  162   VariableExprAST(const std::string &Name) : Name(Name) {}
  165   const std::string &getName() const { return Name; }
  195   std::string Callee;
  199   CallExprAST(const std::string &Callee,
  220   std::string VarName;
  224   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  235   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  240       std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
  251   std::string Name;
  252   std::vector<std::string> Args;
  257   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  257   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  263   const std::string &getName() const { return Name; }
  354   std::string IdName = IdentifierStr;
  423   std::string IdName = IdentifierStr;
  467   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  474     std::string Name = IdentifierStr;
  605   std::string FnName;
  649   std::vector<std::string> ArgNames;
  702 static std::map<std::string, AllocaInst *> NamedValues;
  704 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  711 Function *getFunction(std::string Name) {
  729                                           const std::string &VarName) {
  993     const std::string &VarName = VarNames[i].first;
examples/Kaleidoscope/BuildingAJIT/Chapter4/KaleidoscopeJIT.h
   59   const std::string& getName() const;
   68 irgenAndTakeOwnership(FunctionAST &FnAST, const std::string &Suffix);
  192   JITSymbol findSymbol(const std::string Name) {
  201   std::string mangle(const std::string &Name) {
  201   std::string mangle(const std::string &Name) {
  202     std::string MangledName;
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp
   65 static std::string IdentifierStr; // Filled in if tok_identifier
  105     std::string NumStr;
  159   std::string Name;
  162   VariableExprAST(const std::string &Name) : Name(Name) {}
  165   const std::string &getName() const { return Name; }
  195   std::string Callee;
  199   CallExprAST(const std::string &Callee,
  220   std::string VarName;
  224   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  235   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  240       std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
  251   std::string Name;
  252   std::vector<std::string> Args;
  257   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  257   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  263   const std::string &getName() const { return Name; }
  339   std::string IdName = IdentifierStr;
  408   std::string IdName = IdentifierStr;
  452   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  459     std::string Name = IdentifierStr;
  590   std::string FnName;
  634   std::vector<std::string> ArgNames;
  687 static std::map<std::string, AllocaInst *> NamedValues;
  689 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  697 Function *getFunction(std::string Name) {
  715                                           const std::string &VarName) {
  979     const std::string &VarName = VarNames[i].first;
 1041 const std::string& FunctionAST::getName() const {
 1103 irgenAndTakeOwnership(FunctionAST &FnAST, const std::string &Suffix) {
examples/Kaleidoscope/BuildingAJIT/Chapter5/KaleidoscopeJIT.h
   61   const std::string& getName() const;
   70 irgenAndTakeOwnership(FunctionAST &FnAST, const std::string &Suffix);
  209   JITSymbol findSymbol(const std::string Name) {
  218   std::string mangle(const std::string &Name) {
  218   std::string mangle(const std::string &Name) {
  219     std::string MangledName;
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
   41 cl::opt<std::string> HostName("hostname",
   82 static std::string IdentifierStr; // Filled in if tok_identifier
  122     std::string NumStr;
  176   std::string Name;
  179   VariableExprAST(const std::string &Name) : Name(Name) {}
  182   const std::string &getName() const { return Name; }
  212   std::string Callee;
  216   CallExprAST(const std::string &Callee,
  237   std::string VarName;
  241   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  252   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  257       std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
  268   std::string Name;
  269   std::vector<std::string> Args;
  274   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  274   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  280   const std::string &getName() const { return Name; }
  356   std::string IdName = IdentifierStr;
  425   std::string IdName = IdentifierStr;
  469   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  476     std::string Name = IdentifierStr;
  607   std::string FnName;
  651   std::vector<std::string> ArgNames;
  711 static std::map<std::string, AllocaInst *> NamedValues;
  713 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  721 Function *getFunction(std::string Name) {
  739                                           const std::string &VarName) {
 1003     const std::string &VarName = VarNames[i].first;
 1065 const std::string& FunctionAST::getName() const {
 1127 irgenAndTakeOwnership(FunctionAST &FnAST, const std::string &Suffix) {
examples/Kaleidoscope/Chapter2/toy.cpp
   29 static std::string IdentifierStr; // Filled in if tok_identifier
   53     std::string NumStr;
  105   std::string Name;
  108   VariableExprAST(const std::string &Name) : Name(Name) {}
  124   std::string Callee;
  128   CallExprAST(const std::string &Callee,
  137   std::string Name;
  138   std::vector<std::string> Args;
  141   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
  141   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
  144   const std::string &getName() const { return Name; }
  222   std::string IdName = IdentifierStr;
  325   std::string FnName = IdentifierStr;
  331   std::vector<std::string> ArgNames;
examples/Kaleidoscope/Chapter3/toy.cpp
   41 static std::string IdentifierStr; // Filled in if tok_identifier
   65     std::string NumStr;
  121   std::string Name;
  124   VariableExprAST(const std::string &Name) : Name(Name) {}
  144   std::string Callee;
  148   CallExprAST(const std::string &Callee,
  159   std::string Name;
  160   std::vector<std::string> Args;
  163   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
  163   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
  167   const std::string &getName() const { return Name; }
  248   std::string IdName = IdentifierStr;
  351   std::string FnName = IdentifierStr;
  357   std::vector<std::string> ArgNames;
  405 static std::map<std::string, Value *> NamedValues;
examples/Kaleidoscope/Chapter4/toy.cpp
   51 static std::string IdentifierStr; // Filled in if tok_identifier
   75     std::string NumStr;
  131   std::string Name;
  134   VariableExprAST(const std::string &Name) : Name(Name) {}
  154   std::string Callee;
  158   CallExprAST(const std::string &Callee,
  169   std::string Name;
  170   std::vector<std::string> Args;
  173   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
  173   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
  177   const std::string &getName() const { return Name; }
  258   std::string IdName = IdentifierStr;
  361   std::string FnName = IdentifierStr;
  367   std::vector<std::string> ArgNames;
  415 static std::map<std::string, Value *> NamedValues;
  418 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  425 Function *getFunction(std::string Name) {
examples/Kaleidoscope/Chapter5/toy.cpp
   59 static std::string IdentifierStr; // Filled in if tok_identifier
   93     std::string NumStr;
  149   std::string Name;
  152   VariableExprAST(const std::string &Name) : Name(Name) {}
  172   std::string Callee;
  176   CallExprAST(const std::string &Callee,
  197   std::string VarName;
  201   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  214   std::string Name;
  215   std::vector<std::string> Args;
  218   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
  218   PrototypeAST(const std::string &Name, std::vector<std::string> Args)
  222   const std::string &getName() const { return Name; }
  303   std::string IdName = IdentifierStr;
  372   std::string IdName = IdentifierStr;
  488   std::string FnName = IdentifierStr;
  494   std::vector<std::string> ArgNames;
  542 static std::map<std::string, Value *> NamedValues;
  545 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  552 Function *getFunction(std::string Name) {
examples/Kaleidoscope/Chapter6/toy.cpp
   63 static std::string IdentifierStr; // Filled in if tok_identifier
  101     std::string NumStr;
  157   std::string Name;
  160   VariableExprAST(const std::string &Name) : Name(Name) {}
  192   std::string Callee;
  196   CallExprAST(const std::string &Callee,
  217   std::string VarName;
  221   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  234   std::string Name;
  235   std::vector<std::string> Args;
  240   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  240   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  246   const std::string &getName() const { return Name; }
  337   std::string IdName = IdentifierStr;
  406   std::string IdName = IdentifierStr;
  537   std::string FnName;
  581   std::vector<std::string> ArgNames;
  634 static std::map<std::string, Value *> NamedValues;
  637 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  644 Function *getFunction(std::string Name) {
examples/Kaleidoscope/Chapter7/toy.cpp
   68 static std::string IdentifierStr; // Filled in if tok_identifier
  108     std::string NumStr;
  164   std::string Name;
  167   VariableExprAST(const std::string &Name) : Name(Name) {}
  170   const std::string &getName() const { return Name; }
  200   std::string Callee;
  204   CallExprAST(const std::string &Callee,
  225   std::string VarName;
  229   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  240   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  245       std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
  256   std::string Name;
  257   std::vector<std::string> Args;
  262   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  262   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  268   const std::string &getName() const { return Name; }
  359   std::string IdName = IdentifierStr;
  428   std::string IdName = IdentifierStr;
  472   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  479     std::string Name = IdentifierStr;
  610   std::string FnName;
  654   std::vector<std::string> ArgNames;
  707 static std::map<std::string, AllocaInst *> NamedValues;
  710 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  717 Function *getFunction(std::string Name) {
  735                                           const std::string &VarName) {
  999     const std::string &VarName = VarNames[i].first;
examples/Kaleidoscope/Chapter8/toy.cpp
   69 static std::string IdentifierStr; // Filled in if tok_identifier
  109     std::string NumStr;
  165   std::string Name;
  168   VariableExprAST(const std::string &Name) : Name(Name) {}
  171   const std::string &getName() const { return Name; }
  201   std::string Callee;
  205   CallExprAST(const std::string &Callee,
  226   std::string VarName;
  230   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  241   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  246       std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
  257   std::string Name;
  258   std::vector<std::string> Args;
  263   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  263   PrototypeAST(const std::string &Name, std::vector<std::string> Args,
  269   const std::string &getName() const { return Name; }
  360   std::string IdName = IdentifierStr;
  429   std::string IdName = IdentifierStr;
  473   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  480     std::string Name = IdentifierStr;
  611   std::string FnName;
  655   std::vector<std::string> ArgNames;
  708 static std::map<std::string, AllocaInst *> NamedValues;
  709 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  716 Function *getFunction(std::string Name) {
  734                                           const std::string &VarName) {
  998     const std::string &VarName = VarNames[i].first;
 1225   std::string Error;
examples/Kaleidoscope/Chapter9/toy.cpp
   54 std::string getTokName(int Tok) {
  119 static std::string IdentifierStr; // Filled in if tok_identifier
  161     std::string NumStr;
  229   std::string Name;
  232   VariableExprAST(SourceLocation Loc, const std::string &Name)
  234   const std::string &getName() const { return Name; }
  277   std::string Callee;
  281   CallExprAST(SourceLocation Loc, const std::string &Callee,
  314   std::string VarName;
  318   ForExprAST(const std::string &VarName, std::unique_ptr<ExprAST> Start,
  336   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  341       std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames,
  358   std::string Name;
  359   std::vector<std::string> Args;
  365   PrototypeAST(SourceLocation Loc, const std::string &Name,
  366                std::vector<std::string> Args, bool IsOperator = false,
  371   const std::string &getName() const { return Name; }
  467   std::string IdName = IdentifierStr;
  540   std::string IdName = IdentifierStr;
  584   std::vector<std::pair<std::string, std::unique_ptr<ExprAST>>> VarNames;
  591     std::string Name = IdentifierStr;
  723   std::string FnName;
  769   std::vector<std::string> ArgNames;
  860 static std::map<std::string, AllocaInst *> NamedValues;
  862 static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
  869 Function *getFunction(std::string Name) {
  887                                           const std::string &VarName) {
 1163     const std::string &VarName = VarNames[i].first;
examples/Kaleidoscope/include/KaleidoscopeJIT.h
   75   JITSymbol findSymbol(const std::string Name) {
   80   std::string mangle(const std::string &Name) {
   80   std::string mangle(const std::string &Name) {
   81     std::string MangledName;
   89   JITSymbol findMangledSymbol(const std::string &Name) {
examples/LLJITExamples/ExampleModules.h
   43     std::string ErrMsg;
examples/SpeculativeJIT/SpeculativeJIT.cpp
   26 static cl::list<std::string> InputFiles(cl::Positional, cl::OneOrMore,
   29 static cl::list<std::string> InputArgv("args", cl::Positional,
gen/lib/Target/AArch64/AArch64GenAsmMatcher.inc
40900 static std::string AArch64MnemonicSpellCheck(StringRef S, const FeatureBitset &FBS, unsigned VariantID) {
40933   std::string Res = ", did you mean: ";
gen/lib/Target/AArch64/AArch64GenGICombiner.inc
   82 cl::list<std::string> AArch64PreLegalizerCombinerHelperOption(
gen/lib/Target/AArch64/AArch64GenMCCodeEmitter.inc
15588     std::string msg;
gen/lib/Target/AArch64/AArch64GenSystemOperands.inc
 1097     std::string Name;
 1182     std::string Name;
 1274     std::string Name;
 1407     std::string Name;
 1525     std::string Repr;
 1568     std::string Name;
 1638     std::string Name;
 1706     std::string Name;
 1808     std::string Name;
 1893     std::string Name;
 1975     std::string Name;
 2082     std::string Name;
 2188     std::string Name;
 3803     std::string Name;
 4793     std::string Name;
 4938     std::string Name;
gen/lib/Target/AMDGPU/AMDGPUGenAsmMatcher.inc
80452 static std::string AMDGPUMnemonicSpellCheck(StringRef S, const FeatureBitset &FBS, unsigned VariantID) {
80488   std::string Res = ", did you mean: ";
gen/lib/Target/AMDGPU/AMDGPUGenMCCodeEmitter.inc
34499     std::string msg;
gen/lib/Target/AMDGPU/AMDGPUGenSearchableTables.inc
  754     std::string AsmSuffix;
gen/lib/Target/AMDGPU/R600GenMCCodeEmitter.inc
 1755     std::string msg;
gen/lib/Target/ARM/ARMGenAsmMatcher.inc
15300     std::string Info;
16386 static std::string ARMMnemonicSpellCheck(StringRef S, const FeatureBitset &FBS, unsigned VariantID) {
16418   std::string Res = ", did you mean: ";
gen/lib/Target/ARM/ARMGenMCCodeEmitter.inc
16192     std::string msg;
gen/lib/Target/ARM/ARMGenSystemRegister.inc
  165     std::string Name;
  339     std::string Name;
gen/lib/Target/AVR/AVRGenMCCodeEmitter.inc
  758     std::string msg;
gen/lib/Target/BPF/BPFGenMCCodeEmitter.inc
  619     std::string msg;
gen/lib/Target/Hexagon/HexagonGenMCCodeEmitter.inc
11535     std::string msg;
gen/lib/Target/Lanai/LanaiGenMCCodeEmitter.inc
  711     std::string msg;
gen/lib/Target/MSP430/MSP430GenMCCodeEmitter.inc
 1087     std::string msg;
gen/lib/Target/Mips/MipsGenAsmMatcher.inc
11725 static std::string MipsMnemonicSpellCheck(StringRef S, const FeatureBitset &FBS, unsigned VariantID) {
11757   std::string Res = ", did you mean: ";
gen/lib/Target/Mips/MipsGenMCCodeEmitter.inc
 8859     std::string msg;
gen/lib/Target/PowerPC/PPCGenAsmMatcher.inc
 7182     std::string Info;
 7212 static std::string PPCMnemonicSpellCheck(StringRef S, const FeatureBitset &FBS, unsigned VariantID) {
 7244   std::string Res = ", did you mean: ";
gen/lib/Target/PowerPC/PPCGenMCCodeEmitter.inc
 6239     std::string msg;
gen/lib/Target/RISCV/RISCVGenMCCodeEmitter.inc
 1377     std::string msg;
gen/lib/Target/RISCV/RISCVGenSystemOperands.inc
  482     std::string Name;
gen/lib/Target/Sparc/SparcGenMCCodeEmitter.inc
 1673     std::string msg;
gen/lib/Target/SystemZ/SystemZGenAsmMatcher.inc
 9248 static std::string SystemZMnemonicSpellCheck(StringRef S, const FeatureBitset &FBS, unsigned VariantID) {
 9280   std::string Res = ", did you mean: ";
gen/lib/Target/SystemZ/SystemZGenMCCodeEmitter.inc
 8725     std::string msg;
gen/lib/Target/WebAssembly/WebAssemblyGenMCCodeEmitter.inc
 2473     std::string msg;
gen/tools/clang/include/clang/AST/Attrs.inc
 6203   std::string getValueString(const PrintingPolicy &Policy) const {
 6204     std::string ValueName;
 6222   std::string getDiagnosticName(const PrintingPolicy &Policy) const {
13715       std::vector<std::string> Features;
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc
   86     SmallVector<std::string, 4> tagsStorage;
  144     std::string aliasee= Record.readString();
  224     std::string annotation= Record.readString();
  294     std::string label= Record.readString();
  358     std::string message= Record.readString();
  360     std::string replacement= Record.readString();
  561     std::string name= Record.readString();
  595     std::string name= Record.readString();
  710     std::string message= Record.readString();
  711     std::string replacement= Record.readString();
  730     std::string message= Record.readString();
  759     std::string message= Record.readString();
  799     std::string language= Record.readString();
  800     std::string definedIn= Record.readString();
  933     std::string resolver= Record.readString();
  949     std::string section= Record.readString();
 1321     SmallVector<std::string, 4> sanitizersStorage;
 1485     SmallVector<std::string, 4> implVendorsStorage;
 1731     std::string metadataName= Record.readString();
 1912     std::string name= Record.readString();
 1921     std::string name= Record.readString();
 1930     std::string name= Record.readString();
 1939     std::string name= Record.readString();
 1948     std::string name= Record.readString();
 2125     std::string name= Record.readString();
 2193     SmallVector<std::string, 4> diagnosticIdentifiersStorage;
 2246     std::string model= Record.readString();
 2255     std::string featuresStr= Record.readString();
 2362     std::string message= Record.readString();
 2396     std::string guid= Record.readString();
 2447     std::string message= Record.readString();
 2472     std::string aliasee= Record.readString();
 2481     std::string importModule= Record.readString();
 2490     std::string importName= Record.readString();
gen/tools/lldb/scripts/LLDBWrapPython.cpp
79636     std::string& retval
79772     std::string &error_string,
80361 std::string& output)
80389 std::string& output)
80417 std::string& output)
80445 std::string& output)
80473 std::string& output)
80504     std::string python_function_name_string = python_module_name;
gen/unittests/TableGen/AutomataAutomata.inc
 9740 using TupleAutomatonAction = std::tuple<SymKind, SymKind, std::string>;
include/llvm/ADT/APInt.h
 1703   std::string toString(unsigned Radix, bool Signed) const;
include/llvm/ADT/APSInt.h
   87   std::string toString(unsigned Radix) const {
include/llvm/ADT/StringExtras.h
  124 inline std::string utohexstr(uint64_t X, bool LowerCase = false) {
  141 inline std::string toHex(StringRef Input, bool LowerCase = false) {
  146   std::string Output;
  156 inline std::string toHex(ArrayRef<uint8_t> Input, bool LowerCase = false) {
  170 inline std::string fromHex(StringRef Input) {
  174   std::string Output;
  223 inline std::string utostr(uint64_t X, bool isNeg = false) {
  238 inline std::string itostr(int64_t X) {
  298 inline std::string join_impl(IteratorT Begin, IteratorT End,
  300   std::string S;
  313 inline std::string join_impl(IteratorT Begin, IteratorT End,
  315   std::string S;
  332 inline void join_items_impl(std::string &Result, Sep Separator) {}
  335 inline void join_items_impl(std::string &Result, Sep Separator,
  341 inline void join_items_impl(std::string &Result, Sep Separator, const Arg1 &A1,
  370 inline std::string join(IteratorT Begin, IteratorT End, StringRef Separator) {
  378 inline std::string join(Range &&R, StringRef Separator) {
  387 inline std::string join_items(Sep Separator, Args &&... Items) {
  388   std::string Result;
include/llvm/ADT/StringRef.h
  110     /*implicit*/ StringRef(const std::string &Str)
  238     std::string str() const {
  258     typename std::enable_if<std::is_same<T, std::string>::value,
  266     operator std::string() const {
  578     std::string lower() const;
  582     std::string upper() const;
  908   inline std::string &operator+=(std::string &buffer, StringRef string) {
  908   inline std::string &operator+=(std::string &buffer, StringRef string) {
include/llvm/ADT/Triple.h
  232   std::string Data;
  286   static std::string normalize(StringRef Str);
  289   std::string normalize() const { return normalize(Data); }
  365   const std::string &str() const { return Data; }
  367   const std::string &getTriple() const { return Data; }
  840   std::string merge(const Triple &Other) const;
include/llvm/ADT/Twine.h
  140       const std::string *stdString;
  281     /*implicit*/ Twine(const std::string &Str) : LHSKind(StdStringKind) {
  432     std::string str() const;
include/llvm/Analysis/BlockFrequencyInfoImpl.h
  513   virtual std::string getBlockName(const BlockNode &Node) const;
  514   std::string getLoopName(const LoopData &Loop) const;
  567 template <class BlockT> std::string getBlockName(const BlockT *BB) {
  575 template <> inline std::string getBlockName(const BasicBlock *BB) {
  954   std::string getBlockName(const BlockNode &Node) const override {
 1378   static std::string getGraphName(const BlockFrequencyInfoT *G) {
 1382   std::string getNodeAttributes(NodeRef Node, const BlockFrequencyInfoT *Graph,
 1384     std::string Result;
 1412   std::string getNodeLabel(NodeRef Node, const BlockFrequencyInfoT *Graph,
 1414     std::string Result;
 1443   std::string getEdgeAttributes(NodeRef Node, EdgeIter EI,
 1447     std::string Str;
include/llvm/Analysis/CFGPrinter.h
   58   static std::string getGraphName(const Function *F) {
   62   static std::string getSimpleNodeLabel(const BasicBlock *Node,
   67     std::string Str;
   74   static std::string getCompleteNodeLabel(const BasicBlock *Node,
   77     std::string Str;
   86     std::string OutStr = OS.str();
  119   std::string getNodeLabel(const BasicBlock *Node,
  127   static std::string getEdgeSourceLabel(const BasicBlock *Node,
  140       std::string Str;
  150   std::string getEdgeAttributes(const BasicBlock *Node, succ_const_iterator I,
include/llvm/Analysis/CallGraphSCCPass.h
   41                           const std::string &Banner) const override;
include/llvm/Analysis/DDG.h
  209   DependenceGraphInfo(const std::string &N, const DependenceInfo &DepInfo)
  227   std::string Name;
include/llvm/Analysis/DOTGraphTraitsPass.h
   55     std::string GraphName = DOTGraphTraits<GraphT>::getGraphName(Graph);
   56     std::string Title = GraphName + " for '" + F.getName().str() + "' function";
   69   std::string Name;
   97     std::string Filename = Name + "." + F.getName().str() + ".dot";
  103     std::string GraphName = DOTGraphTraits<GraphT>::getGraphName(Graph);
  104     std::string Title = GraphName + " for '" + F.getName().str() + "' function";
  121   std::string Name;
  134     std::string Title = DOTGraphTraits<GraphT>::getGraphName(Graph);
  147   std::string Name;
  160     std::string Filename = Name + ".dot";
  166     std::string Title = DOTGraphTraits<GraphT>::getGraphName(Graph);
  183   std::string Name;
include/llvm/Analysis/LazyCallGraph.h
  525     std::string getName() const {
  526       std::string Name;
  662     std::string getName() const {
  663       std::string Name;
include/llvm/Analysis/LoopInfo.h
 1234 void printLoop(Loop &L, raw_ostream &OS, const std::string &Banner = "");
include/llvm/Analysis/LoopPass.h
   35                           const std::string &Banner) const override;
include/llvm/Analysis/RegionInfo.h
  424   std::string getNameStr() const;
include/llvm/Analysis/RegionInfoImpl.h
  230 std::string RegionBase<Tr>::getNameStr() const {
  231   std::string exitName;
  232   std::string entryName;
include/llvm/Analysis/RegionPass.h
   58                           const std::string &Banner) const override;
include/llvm/Analysis/TargetLibraryInfo.h
   51   llvm::DenseMap<unsigned, std::string> CustomNames;
include/llvm/BinaryFormat/MsgPackDocument.h
  181   std::string toString() const;
  359   void writeToBlob(std::string &Blob);
include/llvm/BinaryFormat/Wasm.h
   47   std::vector<std::pair<std::string, std::string>> Languages;
   47   std::vector<std::pair<std::string, std::string>> Languages;
   48   std::vector<std::pair<std::string, std::string>> Tools;
   48   std::vector<std::pair<std::string, std::string>> Tools;
   49   std::vector<std::pair<std::string, std::string>> SDKs;
   49   std::vector<std::pair<std::string, std::string>> SDKs;
   54   std::string Name;
  384 std::string toString(WasmSymbolType type);
  385 std::string relocTypetoString(uint32_t type);
include/llvm/Bitcode/BitcodeReader.h
  154   Expected<std::string> getBitcodeTargetTriple(MemoryBufferRef Buffer);
  163   Expected<std::string> getBitcodeProducerString(MemoryBufferRef Buffer);
include/llvm/Bitcode/BitcodeWriter.h
  104         const std::map<std::string, GVSummaryMapTy> *ModuleToSummariesForIndex);
  151                         const std::map<std::string, GVSummaryMapTy>
include/llvm/Bitstream/BitstreamReader.h
   44     std::string Name;
   45     std::vector<std::pair<unsigned, std::string>> RecordNames;
include/llvm/CodeGen/CommandFlags.inc
   29 static cl::opt<std::string>
   33 static cl::opt<std::string>
   38 static cl::list<std::string>
  218 static cl::opt<std::string> TrapFuncName(
  319 LLVM_ATTRIBUTE_UNUSED static std::string getCPUStr() {
  329 LLVM_ATTRIBUTE_UNUSED static std::string getFeaturesStr() {
  349 LLVM_ATTRIBUTE_UNUSED static std::vector<std::string> getFeatureList() {
include/llvm/CodeGen/GCStrategy.h
   70   std::string Name;
   86   const std::string &getName() const { return Name; }
include/llvm/CodeGen/MIRYamlMapping.h
   35   std::string Value;
   39   StringValue(std::string Value) : Value(std::move(Value)) {}
   65   FlowStringValue(std::string Value) : StringValue(std::move(Value)) {}
include/llvm/CodeGen/MachineBasicBlock.h
  156   std::string getFullName() const;
include/llvm/CodeGen/MachineFunctionPass.h
   73                           const std::string &Banner) const override;
include/llvm/CodeGen/MachineRegisterInfo.h
   80   IndexedMap<std::string, VirtReg2IndexFunctor> VReg2Name;
include/llvm/CodeGen/MachineScheduler.h
  529   std::string Name;
include/llvm/CodeGen/Passes.h
   49                                    const std::string &Banner ="");
  327   FunctionPass *createMachineVerifierPass(const std::string& Banner);
include/llvm/CodeGen/ScheduleDAG.h
  595     virtual std::string getGraphNodeLabel(const SUnit *SU) const = 0;
  598     virtual std::string getDAGName() const = 0;
include/llvm/CodeGen/ScheduleDAGInstrs.h
  339     std::string getGraphNodeLabel(const SUnit *SU) const override;
  342     std::string getDAGName() const override;
include/llvm/CodeGen/SelectionDAG.h
  428   void viewGraph(const std::string &Title);
  432   std::map<const SDNode *, std::string> NodeGraphAttrs;
  444   const std::string getGraphAttrs(const SDNode *N) const;
 1752   std::map<std::pair<std::string, unsigned>, SDNode *> TargetExternalSymbols;
include/llvm/CodeGen/SelectionDAGNodes.h
 1035   std::string getOperationName(const SelectionDAG *G = nullptr) const;
include/llvm/CodeGen/TargetLowering.h
 3872     std::string ConstraintCode;
 3958   virtual void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
include/llvm/CodeGen/TargetPassConfig.h
  169   std::string
  300   void printAndVerify(const std::string &Banner);
  303   void addPrintPass(const std::string &Banner);
  307   void addVerifyPass(const std::string &Banner);
include/llvm/CodeGen/ValueTypes.h
  378     std::string getEVTString() const;
include/llvm/DebugInfo/CodeView/CodeViewRecordIO.h
   38   virtual std::string getTypeName(TypeIndex TI) = 0;
include/llvm/DebugInfo/CodeView/RecordName.h
   18 std::string computeTypeName(TypeCollection &Types, TypeIndex Index);
include/llvm/DebugInfo/DIContext.h
   35   std::string FileName;
   36   std::string FunctionName;
  112   std::string Name;
  120   std::string FunctionName;
  121   std::string Name;
  122   std::string DeclFile;
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
  483     std::string Key;         ///< The Key we are searching for.
include/llvm/DebugInfo/DWARF/DWARFContext.h
   90   std::string DWPName;
  110                std::string DWPName = "");
  352          std::string DWPName = "");
include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
  135                        std::string &Result,
  268                             std::string &Result) const {
include/llvm/DebugInfo/PDB/IPDBDataStream.h
   30   virtual std::string getName() const = 0;
include/llvm/DebugInfo/PDB/IPDBFrameData.h
   27   virtual std::string getProgram() const = 0;
include/llvm/DebugInfo/PDB/IPDBInjectedSource.h
   31   virtual std::string getFileName() const = 0;
   32   virtual std::string getObjectFileName() const = 0;
   33   virtual std::string getVirtualFileName() const = 0;
   38   virtual std::string getCode() const = 0;
include/llvm/DebugInfo/PDB/IPDBRawSymbol.h
  103   virtual std::string getCompilerName() const = 0;
  109   virtual std::string getLibraryName() const = 0;
  116   virtual std::string getName() const = 0;
  122   virtual std::string getObjectFileName() const = 0;
  135   virtual std::string getSourceFileName() const = 0;
  140   virtual std::string getSymbolsFileName() const = 0;
  151   virtual std::string getUndecoratedName() const = 0;
  152   virtual std::string getUndecoratedNameEx(PDB_UndnameFlags Flags) const = 0;
  255   virtual std::string getUnused() const = 0;
include/llvm/DebugInfo/PDB/IPDBSourceFile.h
   29   virtual std::string getFileName() const = 0;
   31   virtual std::string getChecksum() const = 0;
include/llvm/DebugInfo/PDB/IPDBTable.h
   20   virtual std::string getName() const = 0;
include/llvm/DebugInfo/PDB/Native/DbiModuleDescriptorBuilder.h
   67   ArrayRef<std::string> source_files() const {
   91   std::string ModuleName;
   92   std::string ObjFileName;
   93   std::vector<std::string> SourceFiles;
include/llvm/DebugInfo/PDB/Native/NativeCompilandSymbol.h
   29   std::string getLibraryName() const override;
   30   std::string getName() const override;
include/llvm/DebugInfo/PDB/Native/NativeExeSymbol.h
   31   std::string getSymbolsFileName() const override;
include/llvm/DebugInfo/PDB/Native/NativeRawSymbol.h
   79   std::string getCompilerName() const override;
   84   std::string getLibraryName() const override;
   91   std::string getName() const override;
   97   std::string getObjectFileName() const override;
  110   std::string getSourceFileName() const override;
  114   std::string getSymbolsFileName() const override;
  125   std::string getUndecoratedName() const override;
  126   std::string getUndecoratedNameEx(PDB_UndnameFlags Flags) const override;
  229   std::string getUnused() const override;
include/llvm/DebugInfo/PDB/Native/NativeSymbolEnumerator.h
   33   std::string getName() const override;
include/llvm/DebugInfo/PDB/Native/NativeTypeEnum.h
   46   std::string getName() const override;
include/llvm/DebugInfo/PDB/Native/NativeTypeTypedef.h
   31   std::string getName() const override;
include/llvm/DebugInfo/PDB/Native/NativeTypeUDT.h
   38   std::string getName() const override;
include/llvm/DebugInfo/PDB/Native/PDBFile.h
  125   std::string FilePath;
include/llvm/DebugInfo/PDB/Native/PDBFileBuilder.h
   68     std::string StreamName;
  105   DenseMap<uint32_t, std::string> NamedStreamData;
include/llvm/DebugInfo/PDB/PDBContext.h
   59     std::string getFunctionName(uint64_t Address, DINameKind NameKind) const;
include/llvm/DebugInfo/PDB/PDBSymbolCompiland.h
   31   std::string getSourceFileName() const;
   32   std::string getSourceFileFullPath() const;
include/llvm/DebugInfo/PDB/PDBSymbolCompilandEnv.h
   26   std::string getValue() const;
include/llvm/DebugInfo/PDB/UDTLayout.h
   37                  const std::string &Name, uint32_t OffsetInParent,
   65   std::string Name;
  115                 const std::string &Name, uint32_t OffsetInParent, uint32_t Size,
include/llvm/DebugInfo/Symbolize/DIPrinter.h
   41   void printContext(const std::string &FileName, int64_t Line);
include/llvm/DebugInfo/Symbolize/Symbolize.h
   43     std::string DefaultArch;
   44     std::vector<std::string> DsymHints;
   45     std::string FallbackDebugPath;
   46     std::string DWPName;
   58   Expected<DILineInfo> symbolizeCode(const std::string &ModuleName,
   61   symbolizeInlinedCode(const std::string &ModuleName,
   63   Expected<DIGlobal> symbolizeData(const std::string &ModuleName,
   66   symbolizeFrame(const std::string &ModuleName,
   70   static std::string
   71   DemangleName(const std::string &Name,
   88   getOrCreateModuleInfo(const std::string &ModuleName);
   95   ObjectFile *lookUpDsymFile(const std::string &Path,
   97                              const std::string &ArchName);
   98   ObjectFile *lookUpDebuglinkObject(const std::string &Path,
  100                                     const std::string &ArchName);
  103   Expected<ObjectPair> getOrCreateObjectPair(const std::string &Path,
  104                                             const std::string &ArchName);
  109   Expected<ObjectFile *> getOrCreateObject(const std::string &Path,
  110                                           const std::string &ArchName);
  112   std::map<std::string, std::unique_ptr<SymbolizableModule>> Modules;
  115   std::map<std::pair<std::string, std::string>, ObjectPair>
  115   std::map<std::pair<std::string, std::string>, ObjectPair>
  119   std::map<std::string, OwningBinary<Binary>> BinaryForPath;
  123   std::map<std::pair<std::string, std::string>, std::unique_ptr<ObjectFile>>
  123   std::map<std::pair<std::string, std::string>, std::unique_ptr<ObjectFile>>
include/llvm/Demangle/Demangle.h
   51 std::string demangle(const std::string &MangledName);
   51 std::string demangle(const std::string &MangledName);
include/llvm/Demangle/MicrosoftDemangleNodes.h
  264   std::string toString(OutputFlags Flags = OF_Default) const;
include/llvm/ExecutionEngine/ExecutionEngine.h
   78   std::map<uint64_t, std::string> GlobalAddressReverseMap;
   85   std::map<uint64_t, std::string> &getGlobalAddressReverseMap() {
   95 using FunctionCreator = std::function<void *(const std::string &)>;
  140       std::unique_ptr<Module> M, std::string *ErrorStr,
  146       std::string *ErrorStr, std::shared_ptr<MCJITMemoryManager> MM,
  151                                         std::string *ErrorStr);
  159   std::string getMangledName(const GlobalValue *GV);
  296   int runFunctionAsMain(Function *Fn, const std::vector<std::string> &argv,
  368   virtual uint64_t getGlobalValueAddress(const std::string &Name) {
  376   virtual uint64_t getFunctionAddress(const std::string &Name) {
  530   std::string *ErrorStr;
  537   std::string MArch;
  538   std::string MCPU;
  539   SmallVector<std::string, 4> MAttrs;
  576   EngineBuilder &setErrorStr(std::string *e) {
  659                               const SmallVectorImpl<std::string>& MAttrs);
include/llvm/ExecutionEngine/JITLink/JITLink.h
   49   const std::string &getErrorMessage() const { return ErrMsg; }
   53   std::string ErrMsg;
  707   LinkGraph(std::string Name, unsigned PointerSize,
  716   const std::string &getName() { return Name; }
  902   std::string Name;
include/llvm/ExecutionEngine/JITSymbol.h
  375   virtual JITSymbol findSymbolInLogicalDylib(const std::string &Name) = 0;
  383   virtual JITSymbol findSymbol(const std::string &Name) = 0;
include/llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h
  228     JITSymbol findSymbol(BaseLayerT &BaseLayer, const std::string &Name,
  351   JITSymbol findSymbolIn(VModuleKey K, const std::string &Name,
  365   Error updatePointer(std::string FuncName, JITTargetAddress FnBodyAddr) {
  372         std::string CalledFnName = mangle(FuncName, SrcM.getDataLayout());
  481           std::string FName = mangle(F->getName(), DL);
  570   static std::string mangle(StringRef Name, const DataLayout &DL) {
  571     std::string MangledName;
  590     std::string CalledFnName = mangle(F.getName(), SrcM.getDataLayout());
  597         std::string FnName = mangle(SubF->getName(), SrcM.getDataLayout());
  634     std::string NewName = SrcM.getName();
include/llvm/ExecutionEngine/Orc/Core.h
  516   const std::string &getName() const { return JITDylibName; }
  708   JITDylib(ExecutionSession &ES, std::string Name);
  752   std::string JITDylibName;
  803   JITDylib &createJITDylib(std::string Name,
include/llvm/ExecutionEngine/Orc/ExecutionUtils.h
  110                        std::vector<std::string> CtorDtorNames, VModuleKey K)
  137   std::vector<std::string> CtorDtorNames;
  143     std::vector<std::string> CtorDtorNames, VModuleKey K)
  211   JITEvaluatedSymbol searchOverrides(const std::string &Name) {
  219   void addOverride(const std::string &Name, JITTargetAddress Addr) {
include/llvm/ExecutionEngine/Orc/GlobalMappingLayer.h
   58   void setGlobalMapping(const std::string &Name, JITTargetAddress Addr) {
   63   void eraseGlobalMapping(const std::string &Name) {
   76   JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) {
   91   JITSymbol findSymbolIn(ModuleHandleT H, const std::string &Name,
  105   std::map<std::string, JITTargetAddress> SymbolTable;
include/llvm/ExecutionEngine/Orc/IRCompileLayer.h
  107   JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) {
  119   JITSymbol findSymbolIn(VModuleKey K, const std::string &Name,
include/llvm/ExecutionEngine/Orc/IRTransformLayer.h
   89   JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) {
  101   JITSymbol findSymbolIn(VModuleKey K, const std::string &Name,
include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
   71   JITTargetMachineBuilder &setCPU(std::string CPU) {
   96   addFeatures(const std::vector<std::string> &FeatureVec);
  118   std::string CPU;
include/llvm/ExecutionEngine/Orc/LLJIT.h
   66   JITDylib &createJITDylib(std::string Name) {
  130   std::string mangle(StringRef UnmangledName);
include/llvm/ExecutionEngine/Orc/LambdaResolver.h
   41   JITSymbol findSymbolInLogicalDylib(const std::string &Name) final {
   45   JITSymbol findSymbol(const std::string &Name) final {
include/llvm/ExecutionEngine/Orc/LazyEmittingLayer.h
  147       std::string MangledName;
  228   JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) {
  246   JITSymbol findSymbolIn(VModuleKey K, const std::string &Name,
include/llvm/ExecutionEngine/Orc/NullResolver.h
   35   JITSymbol findSymbol(const std::string &Name) final;
   37   JITSymbol findSymbolInLogicalDylib(const std::string &Name) final;
include/llvm/ExecutionEngine/Orc/ObjectTransformLayer.h
   80   JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) {
   92   JITSymbol findSymbolIn(VModuleKey K, const std::string &Name,
include/llvm/ExecutionEngine/Orc/OrcError.h
   47   DuplicateDefinition(std::string SymbolName);
   50   const std::string &getSymbolName() const;
   52   std::string SymbolName;
   59   JITSymbolNotFound(std::string SymbolName);
   62   const std::string &getSymbolName() const;
   64   std::string SymbolName;
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetClient.h
  179     bool finalizeMemory(std::string *ErrMsg = nullptr) override {
  524                          const std::vector<std::string> &Args) {
  581   const std::string &getTargetTriple() const { return RemoteTargetTriple; }
  687   std::string RemoteTargetTriple;
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetRPCAPI.h
   35                    std::string ResourceDescription = "")
   52   std::string ResourceDescription;
  203                                                std::vector<std::string> Args)> {
  333             std::tuple<std::string, uint32_t, uint32_t, uint32_t, uint32_t>()> {
  341                              JITTargetAddress(std::string SymbolName)> {
include/llvm/ExecutionEngine/Orc/OrcRemoteTargetServer.h
   51       std::function<JITTargetAddress(const std::string &Name)>;
  171                                    std::vector<std::string> Args) {
  327   Expected<JITTargetAddress> handleGetSymbolAddress(const std::string &Name) {
  334   Expected<std::tuple<std::string, uint32_t, uint32_t, uint32_t, uint32_t>>
  336     std::string ProcessTriple = sys::getProcessTriple();
include/llvm/ExecutionEngine/Orc/RPCSerialization.h
  130     static std::string Name = [] {
  131       std::string Name;
  145     static std::string Name = [] {
  146       std::string Name;
  159     static std::string Name = [] {
  160       std::string Name;
  173     static std::string Name = [] {
  174       std::string Name;
  186     static std::string Name = [] {
  187       std::string Name;
  199     static std::string Name = [] {
  200       std::string Name;
  340   static void registerErrorType(std::string Name, SerializeFtor Serialize,
  345     const std::string *KeyName = nullptr;
  392     std::string Key;
  410     std::string ErrMsg;
  422   static std::map<std::string, WrappedErrorDeserializer> Deserializers;
  437 std::map<std::string,
  445 void registerErrorSerialization(std::string Name, SerializeFtor &&Serialize,
  465         std::string Msg;
include/llvm/ExecutionEngine/Orc/RPCUtils.h
  130   CouldNotNegotiate(std::string Signature);
  133   const std::string &getSignature() const { return Signature; }
  135   std::string Signature;
  154     static std::string Name = [] {
  155       std::string Name;
  954       : public Function<OrcRPCNegotiate, FunctionIdT(std::string)> {
 1219   FunctionIdT handleNegotiate(const std::string &Name) {
 1342   std::map<std::string, FunctionIdT> LocalFunctionIds;
include/llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h
  159     getSymbolMaterializer(std::string Name) = 0;
  271     JITSymbol::GetAddressFtor getSymbolMaterializer(std::string Name) override {
include/llvm/ExecutionEngine/Orc/RawByteChannel.h
  134 class SerializationTraits<ChannelT, std::string, StringRef,
  147 class SerializationTraits<ChannelT, std::string, T,
  154     return SerializationTraits<ChannelT, std::string, StringRef>::serialize(C,
  160 class SerializationTraits<ChannelT, std::string, std::string,
  160 class SerializationTraits<ChannelT, std::string, std::string,
  165   static Error serialize(RawByteChannel &C, const std::string &S) {
  166     return SerializationTraits<ChannelT, std::string, StringRef>::serialize(C,
  171   static Error deserialize(RawByteChannel &C, std::string &S) {
include/llvm/ExecutionEngine/Orc/RemoteObjectLayer.h
   47     : public rpc::Function<AddObject, Expected<ObjHandleT>(std::string)> {
   59     : public rpc::Function<FindSymbol, Expected<RemoteSymbol>(std::string,
   67                            Expected<RemoteSymbol>(ObjHandleT, std::string,
   82                            Expected<RemoteSymbol>(ObjHandleT, std::string)> {
   89                            Expected<RemoteSymbol>(ObjHandleT, std::string)> {
  371   Expected<RemoteSymbol> lookup(ObjHandleT H, const std::string &Name) {
  380                                               const std::string &Name) {
  448     StringMemoryBuffer(std::string Buffer)
  456     std::string Buffer;
  459   JITSymbol lookup(ObjHandleT Id, const std::string &Name) {
  464   JITSymbol lookupInLogicalDylib(ObjHandleT Id, const std::string &Name) {
  469   Expected<ObjHandleT> addObject(std::string ObjBuffer) {
  499   Expected<RemoteSymbol> findSymbol(const std::string &Name,
  508   Expected<RemoteSymbol> findSymbolIn(ObjHandleT H, const std::string &Name,
include/llvm/ExecutionEngine/RTDyldMemoryManager.h
   79   static uint64_t getSymbolAddressInProcess(const std::string &Name);
   85   virtual uint64_t getSymbolAddress(const std::string &Name) {
  100   JITSymbol findSymbol(const std::string &Name) override {
  108   virtual uint64_t getSymbolAddressInLogicalDylib(const std::string &Name) {
  123   findSymbolInLogicalDylib(const std::string &Name) override {
  137   virtual void *getPointerToNamedFunction(const std::string &Name,
include/llvm/ExecutionEngine/RuntimeDyld.h
   46   RuntimeDyldError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {}
   49   const std::string &getErrorMessage() const { return ErrMsg; }
   53   std::string ErrMsg;
  152     virtual bool finalizeMemory(std::string *ErrMsg = nullptr) = 0;
include/llvm/ExecutionEngine/RuntimeDyldChecker.h
  170   std::pair<uint64_t, std::string> getSectionAddr(StringRef FileName,
include/llvm/ExecutionEngine/SectionMemoryManager.h
  142   bool finalizeMemory(std::string *ErrMsg = nullptr) override;
include/llvm/IR/Attributes.h
  174   std::string getAsString(bool InAttrGrp = false) const;
  294   std::string getAsString(bool InAttrGrp = false) const;
  642   std::string getAsString(unsigned Index, bool InAttrGrp = false) const;
  708   std::map<std::string, std::string, std::less<>> TargetDepAttrs;
  708   std::map<std::string, std::string, std::less<>> TargetDepAttrs;
  845   using td_type = std::pair<std::string, std::string>;
  845   using td_type = std::pair<std::string, std::string>;
  846   using td_iterator = std::map<std::string, std::string>::iterator;
  846   using td_iterator = std::map<std::string, std::string>::iterator;
  847   using td_const_iterator = std::map<std::string, std::string>::const_iterator;
  847   using td_const_iterator = std::map<std::string, std::string>::const_iterator;
include/llvm/IR/AutoUpgrade.h
   41   void UpgradeInlineAsmString(std::string *AsmStr);
   92   std::string UpgradeDataLayoutString(StringRef DL, StringRef Triple);
include/llvm/IR/DataLayout.h
  157   std::string StringRepresentation;
  240   const std::string &getStringRepresentation() const {
include/llvm/IR/DiagnosticInfo.h
  357   std::string getAbsolutePath() const;
  382   const std::string getLocationStr() const;
  390   std::string getAbsolutePath() const;
  419     std::string Key;
  420     std::string Val;
  471   std::string getMsg() const;
include/llvm/IR/DiagnosticPrinter.h
   41   virtual DiagnosticPrinter &operator<<(const std::string &Str) = 0;
   74   DiagnosticPrinter &operator<<(const std::string &Str) override;
include/llvm/IR/Function.h
  357   const std::string &getGC() const;
  358   void setGC(std::string Str);
include/llvm/IR/GlobalValue.h
  491   static std::string getGlobalIdentifier(StringRef Name,
  497   std::string getGlobalIdentifier() const;
include/llvm/IR/IRPrintingPasses.h
   38                                   const std::string &Banner = "",
   44                                       const std::string &Banner = "");
   49                                           const std::string &Banner = "");
   82   std::string Banner;
   87   PrintModulePass(raw_ostream &OS, const std::string &Banner = "",
  101   std::string Banner;
  105   PrintFunctionPass(raw_ostream &OS, const std::string &Banner = "");
include/llvm/IR/InlineAsm.h
   41   std::string AsmString, Constraints;
   47   InlineAsm(FunctionType *Ty, const std::string &AsmString,
   48             const std::string &Constraints, bool hasSideEffects,
   80   const std::string &getAsmString() const { return AsmString; }
   81   const std::string &getConstraintString() const { return Constraints; }
   96   using ConstraintCodeVector = std::vector<std::string>;
include/llvm/IR/InstrTypes.h
 1059   std::string Tag;
 1063   explicit OperandBundleDefT(std::string Tag, std::vector<InputTy> Inputs)
 1065   explicit OperandBundleDefT(std::string Tag, ArrayRef<InputTy> Inputs)
include/llvm/IR/Intrinsics.h
   56   std::string getName(ID id, ArrayRef<Type*> Tys);
include/llvm/IR/LLVMContext.h
  120   void setGC(const Function &Fn, std::string GCName);
  123   const std::string &getGC(const Function &Fn);
include/llvm/IR/Metadata.h
 1329   std::string Name;
include/llvm/IR/Module.h
  177   std::string GlobalScopeAsm;     ///< Inline Asm at global scope.
  185   std::string ModuleID;           ///< Human readable identifier for the module
  186   std::string SourceFileName;     ///< Original source file name for module,
  188   std::string TargetTriple;       ///< Platform target triple Module compiled on
  211   const std::string &getModuleIdentifier() const { return ModuleID; }
  222   const std::string &getSourceFileName() const { return SourceFileName; }
  232   const std::string &getDataLayoutStr() const {
  241   const std::string &getTargetTriple() const { return TargetTriple; }
  249   const std::string &getModuleInlineAsm() const { return GlobalScopeAsm; }
include/llvm/IR/ModuleSummaryIndex.h
  834   std::string SingleImplName;
  889     std::multimap<GlobalValue::GUID, std::pair<std::string, TypeIdSummary>>;
  933   std::map<std::string, TypeIdCompatibleVtableInfo> TypeIdCompatibleVtableMap;
  967   std::set<std::string> CfiFunctionDefs;
  968   std::set<std::string> CfiFunctionDecls;
 1133   std::set<std::string> &cfiFunctionDefs() { return CfiFunctionDefs; }
 1134   const std::set<std::string> &cfiFunctionDefs() const { return CfiFunctionDefs; }
 1136   std::set<std::string> &cfiFunctionDecls() { return CfiFunctionDecls; }
 1137   const std::set<std::string> &cfiFunctionDecls() const { return CfiFunctionDecls; }
 1235   static std::string getGlobalNameForLocal(StringRef Name, ModuleHash ModHash) {
 1304   const std::map<std::string, TypeIdCompatibleVtableInfo> &
include/llvm/IR/ModuleSummaryIndexYAML.h
   85       std::string Key;
  281       std::vector<std::string> CfiFunctionDefs(index.CfiFunctionDefs.begin(),
  284       std::vector<std::string> CfiFunctionDecls(index.CfiFunctionDecls.begin(),
  288       std::vector<std::string> CfiFunctionDefs;
  291       std::vector<std::string> CfiFunctionDecls;
include/llvm/IR/RemarkStreamer.h
   33   const Optional<std::string> Filename;
   62   std::string Msg;
include/llvm/LTO/Config.h
   38   std::string CPU;
   40   std::vector<std::string> MAttrs;
   64   std::string OptPipeline;
   69   std::string AAPipeline;
   73   std::string OverrideTriple;
   77   std::string DefaultTriple;
   80   std::string CSIRProfile;
   83   std::string SampleProfile;
   86   std::string ProfileRemapping;
   89   std::string DwoDir;
   95   std::string SplitDwarfFile;
  100   std::string SplitDwarfOutput;
  103   std::string RemarksFilename = "";
  106   std::string RemarksPasses = "";
  112   std::string RemarksFormat = "";
  118   std::string StatsFile;
  205   Error addSaveTemps(std::string OutputFileName,
include/llvm/LTO/LTO.h
   84 std::string getThinLTOOutputFile(const std::string &Path,
   84 std::string getThinLTOOutputFile(const std::string &Path,
   85                                  const std::string &OldPrefix,
   86                                  const std::string &NewPrefix);
  245 using IndexWriteCallback = std::function<void(const std::string &)>;
  246 ThinBackend createWriteIndexesThinBackend(std::string OldPrefix,
  247                                           std::string NewPrefix,
  316     std::map<std::string, CommonResolution> Commons;
  352     std::string IRName;
include/llvm/LTO/legacy/LTOCodeGenerator.h
  210   void emitError(const std::string &ErrMsg);
  211   void emitWarning(const std::string &ErrMsg);
  226   std::vector<std::string> CodegenOptions;
  227   std::string FeatureStr;
  228   std::string MCpu;
  229   std::string MAttr;
  230   std::string NativeObjectPath;
  234   std::string TripleStr;
include/llvm/LTO/legacy/LTOModule.h
   49   std::string LinkerOpts;
   51   std::string DependentLibraries;
   85   static std::string getProducerString(MemoryBuffer *Buffer);
  123   const std::string &getTargetTriple() {
  162                                          const char *path, std::string &out_error);
  210   bool objcClassNameFromExpression(const Constant *c, std::string &name);
include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
   38   std::string MCpu;
   39   std::string MAttr;
   97   std::vector<std::string> &getProducedBinaryFiles() {
  127     std::string Path;                    // Path to the cache, empty to disable.
  133   void setCacheDir(std::string Path) { CacheOptions.Path = std::move(Path); }
  189   void setSaveTempsDir(std::string Path) { SaveTempsDir = std::move(Path); }
  195   void setGeneratedObjectsDirectory(std::string Path) {
  200   void setCpu(std::string Cpu) { TMBuilder.MCpu = std::move(Cpu); }
  203   void setAttr(std::string MAttr) { TMBuilder.MAttr = std::move(MAttr); }
  276       std::map<std::string, GVSummaryMapTy> &ModuleToSummariesForIndex,
  295   std::string writeGeneratedObject(int count, StringRef CacheEntryPath,
  308   std::vector<std::string> ProducedBinaryFiles;
  325   std::string SaveTempsDir;
  328   std::string SavedObjectsDirectoryPath;
include/llvm/LineEditor/LineEditor.h
   40   llvm::Optional<std::string> readLine() const;
   45   static std::string getDefaultHistoryPath(StringRef ProgName);
   59     std::string Text;
   62     std::vector<std::string> Completions;
   68     Completion(const std::string &TypedText, const std::string &DisplayText)
   68     Completion(const std::string &TypedText, const std::string &DisplayText)
   73     std::string TypedText;
   77     std::string DisplayText;
  105   const std::string &getPrompt() const { return Prompt; }
  106   void setPrompt(const std::string &P) { Prompt = P; }
  112   std::string Prompt;
  113   std::string HistoryPath;
  124     static std::string getCommonPrefix(const std::vector<Completion> &Comps);
include/llvm/LinkAllPasses.h
  199       std::string buf;
include/llvm/MC/MCAssembler.h
  119   std::vector<std::vector<std::string>> LinkerOptions;
  122   std::vector<std::string> FileNames;
  391   std::vector<std::vector<std::string>> &getLinkerOptions() {
  442   ArrayRef<std::string> getFileNames() { return FileNames; }
include/llvm/MC/MCContext.h
  147     std::map<const std::string, const std::string> DebugPrefixMap;
  147     std::map<const std::string, const std::string> DebugPrefixMap;
  150     std::string MainFileName;
  197       std::string SectionName;
  216       std::string SectionName;
  238       std::string SectionName;
  257       std::string SectionName;
  533     void addDebugPrefixMapEntry(const std::string &From, const std::string &To);
  533     void addDebugPrefixMapEntry(const std::string &From, const std::string &To);
  541     const std::string &getMainFileName() const { return MainFileName; }
  572     const SmallVectorImpl<std::string> &getMCDwarfDirs(unsigned CUID = 0) {
include/llvm/MC/MCDwarf.h
   54   std::string Name;
  215   SmallVector<std::string, 3> MCDwarfDirs;
  218   std::string CompilationDir;
  354   const SmallVectorImpl<std::string> &getMCDwarfDirs() const {
  358   SmallVectorImpl<std::string> &getMCDwarfDirs() {
include/llvm/MC/MCInstrDesc.h
  199                                  std::string &);
  216                          std::string &Info) const;
include/llvm/MC/MCMachObjectWriter.h
  206   void writeLinkerOptionsLoadCommand(const std::vector<std::string> &Options);
include/llvm/MC/MCParser/AsmLexer.h
   57   AsmToken ReturnError(const char *Loc, const std::string &Msg);
include/llvm/MC/MCParser/MCAsmLexer.h
   45   std::string Err;
   59   void SetError(SMLoc errLoc, const std::string &err) {
  127   const std::string &getErr() {
include/llvm/MC/MCParser/MCAsmParser.h
  173       void *AsmLoc, std::string &AsmString, unsigned &NumOutputs,
  175       SmallVectorImpl<std::string> &Constraints,
  176       SmallVectorImpl<std::string> &Clobbers, const MCInstrInfo *MII,
  251   virtual bool parseEscapedString(std::string &Data) = 0;
include/llvm/MC/MCParser/MCParsedAsmOperand.h
   31   std::string Constraint;
include/llvm/MC/MCSectionMachO.h
   71   static std::string ParseSectionSpecifier(StringRef Spec,       // In.
include/llvm/MC/MCStreamer.h
  454   virtual void EmitLinkerOptions(ArrayRef<std::string> Kind) {}
include/llvm/MC/MCSubtargetInfo.h
   76   std::string CPU; // CPU being targeted.
include/llvm/MC/MCSymbolWasm.h
   22   Optional<std::string> ImportModule;
   23   Optional<std::string> ImportName;
include/llvm/MC/MCTargetOptions.h
   59   std::string ABIName;
   60   std::string SplitDwarfFile;
   64   std::vector<std::string> IASSearchPaths;
include/llvm/MC/MCTargetOptionsCommandFlags.inc
   49 static cl::opt<std::string>
include/llvm/MC/SubtargetFeature.h
  184   std::vector<std::string> Features;    ///< Subtarget features as a vector
  190   std::string getString() const;
  196   const std::vector<std::string> &getFeatures() const { return Features; }
  217   static std::string StripFlag(StringRef Feature) {
  231   static void Split(std::vector<std::string> &V, StringRef S);
include/llvm/MCA/Support.h
   29   std::string Message;
   32   InstructionError(std::string M, const T &MCI)
include/llvm/Object/Archive.h
  113     Expected<std::string> getFullName() const;
include/llvm/Object/ArchiveWriter.h
   39 Expected<std::string> computeArchiveRelativePath(StringRef From, StringRef To);
include/llvm/Object/COFFImportFile.h
   75   std::string Name;
   79   std::string ExtName;
   83   std::string SymbolName;
   87   std::string AliasTarget;
include/llvm/Object/COFFModuleDefinition.h
   29   std::string OutputFile;
   30   std::string ImportName;
include/llvm/Object/ELF.h
   54 std::string getSecIndexForError(const ELFFile<ELFT> *Obj,
  144   std::string getDynamicTagAsString(unsigned Arch, uint64_t Type) const;
  145   std::string getDynamicTagAsString(uint64_t Type) const;
include/llvm/Object/Error.h
   70   const std::string &getMessage() const { return Msg; }
   73   std::string Msg;
include/llvm/Object/MachO.h
  606   static std::string getBuildPlatform(uint32_t platform) {
  618       std::string ret;
  625   static std::string getBuildTool(uint32_t tools) {
  631       std::string ret;
  638   static std::string getVersionString(uint32_t version) {
include/llvm/Object/MachOUniversal.h
   93     std::string getArchFlagName() const {
  106         std::string ArchFlagName(ArchFlag);
  109         std::string ArchFlagName("");
include/llvm/Object/Minidump.h
   56   Expected<std::string> getString(size_t Offset) const;
include/llvm/Object/ModuleSymbolTable.h
   34   using AsmSymbol = std::pair<std::string, uint32_t>;
include/llvm/Object/TapiUniversal.h
   54     std::string getArchFlagName() const {
include/llvm/Object/WindowsResource.h
  157   Error parse(WindowsResource *WR, std::vector<std::string> &Duplicates);
  159               std::vector<std::string> &Duplicates);
  160   void cleanUpManifests(std::vector<std::string> &Duplicates);
  182     const Children<std::string> &getStringChildren() const {
  226     Children<std::string> StringChildren;
  249                     std::vector<std::string> &Duplicates);
  257   std::vector<std::string> InputFilenames;
include/llvm/ObjectYAML/MachOYAML.h
   64   std::string PayloadString;
   93   std::string Name;
   97   std::string ImportName;
include/llvm/ObjectYAML/MinidumpYAML.h
   78   std::string Name;
  164   std::string CSDVersion;
  172                             std::string CSDVersion)
include/llvm/ObjectYAML/WasmYAML.h
  128   std::string Name;
  129   std::string Version;
  134   std::string Name;
include/llvm/Option/Arg.h
  144   std::string getAsString(const ArgList &Args) const;
include/llvm/Option/ArgList.h
  285   std::vector<std::string> getAllArgValues(OptSpecifier Id) const;
  382   mutable std::list<std::string> SynthesizedStrings;
include/llvm/Option/OptTable.h
   73   std::string PrefixChars;
  133   std::vector<std::string> suggestValueCompletions(StringRef Option,
  142   std::vector<std::string> findByPrefix(StringRef Cur,
  161   unsigned findNearest(StringRef Option, std::string &NearestString,
include/llvm/Option/Option.h
  132   std::string getPrefixedName() const {
  133     std::string Ret = getPrefix();
include/llvm/Pass.h
  124                                   const std::string &Banner) const = 0;
  233                           const std::string &Banner) const override;
  290                           const std::string &Banner) const override;
  327                           const std::string &Banner) const override;
include/llvm/Passes/PassBuilder.h
   36   PGOOptions(std::string ProfileFile = "", std::string CSProfileGenFile = "",
   36   PGOOptions(std::string ProfileFile = "", std::string CSProfileGenFile = "",
   37              std::string ProfileRemappingFile = "", PGOAction Action = NoAction,
   61   std::string ProfileFile;
   62   std::string CSProfileGenFile;
   63   std::string ProfileRemappingFile;
  635                               std::string ProfileFile,
  636                               std::string ProfileRemappingFile);
  667                          std::string ProfileFile,
  668                          std::string ProfileRemappingFile);
include/llvm/Passes/PassPlugin.h
   67   static Expected<PassPlugin> Load(const std::string &Filename);
   87   PassPlugin(const std::string &Filename, const sys::DynamicLibrary &Library)
   90   std::string Filename;
include/llvm/Passes/StandardInstrumentations.h
   45   using PrintModuleDesc = std::tuple<const Module *, std::string, StringRef>;
include/llvm/ProfileData/Coverage/CoverageMapping.h
   72   std::string message() const override;
  303   std::string Name;
  310   std::vector<std::string> Filenames;
  481   std::string Filename;
  517   std::vector<std::pair<std::string, uint64_t>> FuncHashMismatches;
  558   ArrayRef<std::pair<std::string, uint64_t>> getHashMismatches() const {
include/llvm/ProfileData/GCOV.h
  444   std::string getCoveragePath(StringRef Filename, StringRef MainFilename);
  463   using FileCoverageList = SmallVector<std::pair<std::string, GCOVCoverage>, 4>;
include/llvm/ProfileData/InstrProf.h
   66 std::string getInstrProfSectionName(InstrProfSectKind IPSK,
  162 std::string getPGOFuncName(const Function &F, bool InLTO = false,
  169 std::string getPGOFuncName(StringRef RawFuncName,
  177 std::string getPGOFuncNameVarName(StringRef FuncName,
  210 Error collectPGOFuncNameStrings(ArrayRef<std::string> NameStrs,
  211                                 bool doCompression, std::string &Result);
  216                                 std::string &Result, bool doCompression = true);
  307   std::string message() const override;
  616   const std::string *BaseFilename;
  617   const std::string *TestFilename;
  633   Error accumulateCounts(const std::string &BaseFilename,
  634                          const std::string &TestFilename, bool IsCS);
  650   const std::string NameFilter;
include/llvm/ProfileData/SampleProf.h
  106                                        std::string &GUIDBuf) {
  129 static inline std::string getSecName(SecType Type) {
  292 using FunctionSamplesMap = std::map<std::string, FunctionSamples, std::less<>>;
  380     std::string CalleeGUID;
include/llvm/ProfileData/SampleProfReader.h
  255   create(const std::string Filename, SampleProfileReader &Reader,
  367     std::string FGUID;
  387   create(const std::string Filename, LLVMContext &C,
  388          const std::string RemapFilename = "");
  394          const std::string RemapFilename = "");
  637   std::vector<std::string> NameTable;
  713   std::vector<std::string> Names;
include/llvm/Remarks/Remark.h
   97   std::string getArgsAsMsg() const;
include/llvm/Remarks/RemarkParser.h
   43   std::string ExternalFilePrependPath;
include/llvm/Support/AMDGPUMetadata.h
  126   std::string mVecTypeHint = std::string();
  129   std::string mRuntimeHandle = std::string();
  189   std::string mName = std::string();
  191   std::string mTypeName = std::string();
  388   std::string mName = std::string();
  390   std::string mSymbolName = std::string();
  392   std::string mLanguage = std::string();
  424   std::vector<std::string> mPrintf = std::vector<std::string>();
  433 std::error_code fromString(std::string String, Metadata &HSAMetadata);
  436 std::error_code toString(Metadata HSAMetadata, std::string &String);
include/llvm/Support/BinaryStreamError.h
   42   std::string ErrMsg;
include/llvm/Support/CommandLine.h
  598 struct OptionValue<std::string> final : OptionValueCopy<std::string> {
  603   OptionValue(const std::string &V) { this->setValue(V); }
  605   OptionValue<std::string> &operator=(const std::string &V) {
  605   OptionValue<std::string> &operator=(const std::string &V) {
 1070 template <> class parser<std::string> : public basic_parser<std::string> {
 1075   bool parse(Option &, StringRef, StringRef Arg, std::string &Value) {
include/llvm/Support/ConvertUTF.h
  215 bool convertWideToUTF8(const std::wstring &Source, std::string &Result);
  270 bool convertUTF16ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out);
  279 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out);
include/llvm/Support/DOTGraphTraits.h
   44   static std::string getGraphName(const GraphType &) { return ""; }
   50   static std::string getGraphProperties(const GraphType &) {
   70   std::string getNodeLabel(const void *, const GraphType &) {
   78   static std::string getNodeIdentifierLabel(const void *, const GraphType &) {
   83   static std::string getNodeDescription(const void *, const GraphType &) {
   90   static std::string getNodeAttributes(const void *,
   98   static std::string getEdgeAttributes(const void *, EdgeIter,
  106   static std::string getEdgeSourceLabel(const void *, EdgeIter) {
  140   static std::string getEdgeDestLabel(const void *, unsigned) {
include/llvm/Support/DebugCounter.h
   63   void push_back(const std::string &);
  125   unsigned getCounterId(const std::string &Name) const {
  133   std::pair<std::string, std::string> getCounterInfo(unsigned ID) const {
  133   std::pair<std::string, std::string> getCounterInfo(unsigned ID) const {
  138   typedef UniqueVector<std::string> CounterVector;
  161   unsigned addCounter(const std::string &Name, const std::string &Desc) {
  161   unsigned addCounter(const std::string &Name, const std::string &Desc) {
  173     std::string Desc;
include/llvm/Support/DynamicLibrary.h
   68                                               std::string *errMsg = nullptr);
   78                                               std::string *errMsg = nullptr);
   86                                        std::string *ErrMsg = nullptr) {
  116     static void *SearchForAddressOfSymbol(const std::string &symbolName) {
include/llvm/Support/Errno.h
   27 std::string StrError();
   30 std::string StrError(int errnum);
include/llvm/Support/Error.h
   56   virtual std::string message() const {
   57     std::string Msg;
  708     std::string Str;
  738     std::string Str;
  769     std::string Str;
  986 inline std::string toString(Error E) {
  987   SmallVector<std::string, 2> Errors;
 1187   const std::string &getMessage() const { return Msg; }
 1190   std::string Msg;
 1199   std::string Buffer;
 1258   std::string FileName;
 1296   ExitOnError(std::string Banner = "", int DefaultErrorExitCode = 1)
 1301   void setBanner(std::string Banner) { this->Banner = std::move(Banner); }
 1334   std::string Banner;
include/llvm/Support/ErrorHandling.h
   26                                         const std::string& reason,
   73 LLVM_ATTRIBUTE_NORETURN void report_fatal_error(const std::string &reason,
include/llvm/Support/FileCheck.h
   27   std::vector<std::string> CheckPrefixes;
   29   std::vector<std::string> ImplicitCheckNot;
   30   std::vector<std::string> GlobalDefines;
   81   std::string getDescription(StringRef Prefix) const;
include/llvm/Support/FileCollector.h
   26   FileCollector(std::string Root, std::string OverlayRoot);
   26   FileCollector(std::string Root, std::string OverlayRoot);
   62   std::string Root;
   65   std::string OverlayRoot;
   74   StringMap<std::string> SymlinkMap;
include/llvm/Support/FileOutputBuffer.h
   80   std::string FinalPath;
include/llvm/Support/FileSystem.h
  857   std::string TmpName;
 1204 std::string getMainExecutable(const char *argv0, void *MainExecAddr);
 1217   std::string Path;
 1234   const std::string &path() const { return Path; }
include/llvm/Support/FileUtilities.h
   35                              std::string *Error = nullptr);
include/llvm/Support/FormatProviders.h
  219     format_provider<std::string>::format(V.str(), Stream, Style);
include/llvm/Support/FormatVariadic.h
  128   std::string str() const {
  129     std::string Result;
  145   operator std::string() const { return str(); }
include/llvm/Support/GraphWriter.h
   42 std::string EscapeString(const std::string &Label);
   42 std::string EscapeString(const std::string &Label);
   90       std::string label = DTraits.getEdgeSourceLabel(Node, EI);
  114   void writeGraph(const std::string &Title = "") {
  128   void writeHeader(const std::string &Title) {
  129     std::string GraphName = DTraits.getGraphName(G);
  166     std::string NodeAttributes = DTraits.getNodeAttributes(Node, G);
  176       std::string Id = DTraits.getNodeIdentifierLabel(Node, G);
  180       std::string NodeDesc = DTraits.getNodeDescription(Node, G);
  185     std::string edgeSourceLabels;
  201       std::string Id = DTraits.getNodeIdentifierLabel(Node, G);
  205       std::string NodeDesc = DTraits.getNodeDescription(Node, G);
  260   void emitSimpleNode(const void *ID, const std::string &Attr,
  261                    const std::string &Label, unsigned NumEdgeSources = 0,
  262                    const std::vector<std::string> *EdgeSourceLabels = nullptr) {
  285                 const std::string &Attrs) {
  321 std::string createGraphFilename(const Twine &Name, int &FD);
  328 std::string WriteGraph(const GraphType &G, const Twine &Name,
  331                        std::string Filename = "") {
  334   std::string N = Name.str();
  369   std::string Filename = llvm::WriteGraph(G, Name, ShortNames, Title);
include/llvm/Support/Host.h
   30   std::string getDefaultTargetTriple();
   34   std::string getProcessTriple();
include/llvm/Support/JSON.h
   81 std::string fixUTF8(llvm::StringRef S);
  306   Value(const std::map<std::string, Elt> &C) : Value(json::Object(C)) {}
  308   Value(std::string V) : Type(T_String) {
  313     create<std::string>(std::move(V));
  425       return llvm::StringRef(as<std::string>());
  478                                       std::string, json::Array, json::Object>
  493   ObjectKey(std::string S) : Owned(new std::string(std::move(S))) {
  493   ObjectKey(std::string S) : Owned(new std::string(std::move(S))) {
  514       Owned.reset(new std::string(*C.Owned));
  524   std::string str() const { return Data.str(); }
  529   std::unique_ptr<std::string> Owned;
  561 inline bool fromJSON(const Value &E, std::string &Out) {
  619 bool fromJSON(const Value &E, std::map<std::string, T> &Out) {
include/llvm/Support/LockFileManager.h
   57   Optional<std::pair<std::string, int> > Owner;
   59   std::string ErrorDiagMsg;
   64   static Optional<std::pair<std::string, int> >
   87   std::string getErrorMessage() const;
include/llvm/Support/Path.h
  226 std::string convert_to_slash(StringRef path, Style style = Style::native);
include/llvm/Support/PluginLoader.h
   23     void operator=(const std::string &Filename);
   25     static std::string& getPlugin(unsigned num);
   30   static cl::opt<PluginLoader, false, cl::parser<std::string> >
include/llvm/Support/Process.h
   95   static Optional<std::string> GetEnv(StringRef name);
  103   static Optional<std::string> FindInEnvPath(StringRef EnvName,
  105                                              ArrayRef<std::string> IgnoreList);
  107   static Optional<std::string> FindInEnvPath(StringRef EnvName,
include/llvm/Support/Program.h
   68   ErrorOr<std::string>
  115       std::string *ErrMsg = nullptr, ///< If non-zero, provides a pointer to a
  130                             std::string *ErrMsg = nullptr,
  192       std::string *ErrMsg = nullptr ///< If non-zero, provides a pointer to a
include/llvm/Support/Regex.h
   62     bool isValid(std::string &Error) const;
   81                std::string *Error = nullptr) const;
   93     std::string sub(StringRef Repl, StringRef String,
   94                     std::string *Error = nullptr) const;
  101     static std::string escape(StringRef String);
include/llvm/Support/ScaledNumber.h
  426   static std::string toString(uint64_t D, int16_t E, int Width,
  595   std::string toString(unsigned Precision = DefaultPrecision) {
include/llvm/Support/ScopedPrinter.h
   59 const std::string to_hexString(uint64_t Value, bool UpperCase = true);
   61 template <class T> const std::string to_string(const T &Value) {
   62   std::string number;
  264   void printString(StringRef Label, const std::string &Value) {
include/llvm/Support/Signals.h
   32   bool RemoveFileOnSignal(StringRef Filename, std::string* ErrMsg = nullptr);
include/llvm/Support/SmallVectorMemoryBuffer.h
   60   std::string BufferName;
include/llvm/Support/SourceMgr.h
   98   std::vector<std::string> IncludeDirectories;
  113   void setIncludeDirs(const std::vector<std::string> &Dirs) {
  168   unsigned AddIncludeFile(const std::string &Filename, SMLoc IncludeLoc,
  169                           std::string &IncludedFile);
  232   std::string Text;
  264   std::string Filename;
  268   std::string Message, LineContents;
include/llvm/Support/SpecialCaseList.h
   71   create(const std::vector<std::string> &Paths, std::string &Error);
   71   create(const std::vector<std::string> &Paths, std::string &Error);
   75                                                  std::string &Error);
   79   createOrDie(const std::vector<std::string> &Paths);
  105   bool createInternal(const std::vector<std::string> &Paths,
  106                       std::string &Error);
  107   bool createInternal(const MemoryBuffer *MB, std::string &Error);
  119     bool insert(std::string Regexp, unsigned LineNumber, std::string &REError);
  119     bool insert(std::string Regexp, unsigned LineNumber, std::string &REError);
  143              std::string &Error);
include/llvm/Support/StringSaver.h
   31   StringRef save(const std::string &S) { return save(StringRef(S)); }
   53   StringRef save(const std::string &S) { return save(StringRef(S)); }
include/llvm/Support/SymbolRemappingReader.h
   88   std::string File;
   90   std::string Message;
include/llvm/Support/TarWriter.h
   28   std::string BaseDir;
include/llvm/Support/TargetRegistry.h
  652   static const Target *lookupTarget(const std::string &Triple,
  653                                     std::string &Error);
  666   static const Target *lookupTarget(const std::string &ArchName,
  667                                     Triple &TheTriple, std::string &Error);
include/llvm/Support/TimeProfiler.h
   43                             llvm::function_ref<std::string()> Detail);
   64   TimeTraceScope(StringRef Name, llvm::function_ref<std::string()> Detail) {
include/llvm/Support/Timer.h
   79   std::string Name;         ///< The name of this time variable.
   80   std::string Description;  ///< Description of this time variable.
  108   const std::string &getName() const { return Name; }
  109   const std::string &getDescription() const { return Description; }
  173     std::string Name;
  174     std::string Description;
  177     PrintRecord(const TimeRecord &Time, const std::string &Name,
  178                 const std::string &Description)
  185   std::string Name;
  186   std::string Description;
include/llvm/Support/ToolOutputFile.h
   32     std::string Filename;
include/llvm/Support/TrigramIndex.h
   42   void insert(std::string Regex);
include/llvm/Support/VersionTuple.h
  141   std::string getAsString() const;
include/llvm/Support/VirtualFileSystem.h
   46   std::string Name;
  109   virtual llvm::ErrorOr<std::string> getName() {
  128   std::string Path;
  133   directory_entry(std::string Path, llvm::sys::fs::file_type Type)
  271   virtual llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const = 0;
  338   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override;
  384   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override {
  417   std::string WorkingDirectory;
  471   std::string toString() const;
  481   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override {
  511   std::string VPath;
  512   std::string RPath;
  580     std::string Name;
  624     std::string ExternalContentsPath;
  658   std::string WorkingDirectory;
  669   std::string ExternalContentsPrefixDir;
  730   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override;
  764   std::string OverlayDir;
include/llvm/Support/YAMLParser.h
   79 std::string escape(StringRef Input, bool EscapePrintable = true);
  157   std::string getVerbatimTag() const;
include/llvm/Support/YAMLTraits.h
  786   virtual void scalarTag(std::string &) = 0;
  991     std::string Storage;
 1011     std::string Storage;
 1030     std::string ScalarStorage, TagStorage;
 1039     std::string Tag;
 1171   static void output(const std::string &, void *, raw_ostream &);
 1172   static StringRef input(StringRef, void *, std::string &);
 1432   void scalarTag(std::string &) override;
 1494     SmallVector<std::string, 6> ValidKeys;
 1579   void scalarTag(std::string &) override;
 1936   using map_type = std::map<std::string, T>;
include/llvm/Support/raw_ostream.h
  201   raw_ostream &operator<<(const std::string &Str) {
  504   std::string &OS;
  514   explicit raw_string_ostream(std::string &O) : OS(O) {}
  519   std::string& str() {
include/llvm/TableGen/Record.h
   78   virtual std::string getAsString() const = 0;
  112   std::string getAsString() const override { return "bit"; }
  132   std::string getAsString() const override;
  152   std::string getAsString() const override { return "code"; }
  170   std::string getAsString() const override { return "int"; }
  188   std::string getAsString() const override;
  210   std::string getAsString() const override;
  230   std::string getAsString() const override;
  271   std::string getAsString() const override;
  362   virtual std::string getAsString() const = 0;
  367   virtual std::string getAsUnquotedString() const { return getAsString(); }
  479   std::string getAsString() const override { return "?"; }
  508   std::string getAsString() const override { return Value ? "1" : "0"; }
  553   std::string getAsString() const override;
  586   std::string getAsString() const override;
  615   std::string getAsString() const override { return "\"" + Value.str() + "\""; }
  617   std::string getAsUnquotedString() const override { return Value; }
  648   std::string getAsString() const override {
  652   std::string getAsUnquotedString() const override { return Value; }
  708   std::string getAsString() const override;
  797   std::string getAsString() const override;
  855   std::string getAsString() const override;
  917   std::string getAsString() const override;
  977   std::string getAsString() const override;
 1031   std::string getAsString() const override;
 1064   std::string getAsString() const override;
 1088   std::string getNameInitAsString() const {
 1101   std::string getAsString() const override { return getName(); }
 1131   std::string getAsString() const override;
 1167   std::string getAsString() const override;
 1200   std::string getAsString() const override;
 1237   std::string getAsString() const override;
 1294   std::string getAsString() const override {
 1369   std::string getAsString() const override;
 1408   std::string getNameInitAsString() const {
 1486   const std::string getNameInitAsString() const {
 1697   using RecordMap = std::map<std::string, std::unique_ptr<Record>, std::less<>>;
 1700   std::map<std::string, Init *, std::less<>> ExtraGlobals;
include/llvm/TableGen/StringMatcher.h
   32   using StringPair = std::pair<std::string, std::string>;
   32   using StringPair = std::pair<std::string, std::string>;
include/llvm/TableGen/StringToOffsetTable.h
   26   std::string AggregateString;
include/llvm/Target/TargetIntrinsicInfo.h
   43   virtual std::string getName(unsigned IID, Type **Tys = nullptr,
include/llvm/Target/TargetMachine.h
   85   std::string TargetCPU;
   86   std::string TargetFS;
include/llvm/Testing/Support/Annotations.h
   80   std::string Code;
include/llvm/TextAPI/ELF/ELFStub.h
   38   ELFSymbol(std::string SymbolName) : Name(SymbolName) {}
   39   std::string Name;
   44   Optional<std::string> Warning;
   56   Optional<std::string> SoName;
   58   std::vector<std::string> NeededLibs;
include/llvm/TextAPI/MachO/ArchitectureSet.h
  148   operator std::string() const;
include/llvm/TextAPI/MachO/InterfaceFile.h
  121   std::string InstallName;
  275   const std::vector<std::pair<Target, std::string>> &umbrellas() const {
  280   const std::vector<std::pair<Target, std::string>> getParentUmbrellas() const {
  330   const std::vector<std::pair<Target, std::string>> &uuids() const {
  396   std::string Path;
  398   std::string InstallName;
  406   std::vector<std::pair<Target, std::string>> ParentUmbrellas;
  409   std::vector<std::pair<Target, std::string>> UUIDs;
include/llvm/TextAPI/MachO/Target.h
   34   operator std::string() const;
include/llvm/Transforms/IPO/Attributor.h
 1463   virtual const std::string getAsStr() const = 0;
include/llvm/Transforms/IPO/DeadArgumentElimination.h
   62     std::string getDescription() const {
include/llvm/Transforms/IPO/FunctionImport.h
  204     std::map<std::string, GVSummaryMapTy> &ModuleToSummariesForIndex);
  209     const std::map<std::string, GVSummaryMapTy> &ModuleToSummariesForIndex);
include/llvm/Transforms/IPO/PassManagerBuilder.h
  180   std::string PGOInstrGen;
  182   std::string PGOInstrUse;
  184   std::string PGOSampleUse;
include/llvm/Transforms/IPO/SampleProfile.h
   27   SampleProfileLoaderPass(std::string File = "", std::string RemappingFile = "",
   27   SampleProfileLoaderPass(std::string File = "", std::string RemappingFile = "",
   35   std::string ProfileFileName;
   36   std::string ProfileRemappingFileName;
include/llvm/Transforms/Instrumentation.h
   49                                   const std::string &ModuleId);
   81   std::string Filter;
   84   std::string Exclude;
  143   std::string InstrProfileOutput;
  157     const std::vector<std::string> &ABIListFiles = std::vector<std::string>(),
include/llvm/Transforms/Instrumentation/PGOInstrumentation.h
   38   PGOInstrumentationGenCreateVar(std::string CSInstrName = "")
   43   std::string CSInstrName;
   60   PGOInstrumentationUse(std::string Filename = "",
   61                         std::string RemappingFilename = "", bool IsCS = false);
   66   std::string ProfileFileName;
   67   std::string ProfileRemappingFileName;
include/llvm/Transforms/Scalar/LoopPassManager.h
  421   std::string Banner;
  425   PrintLoopPass(raw_ostream &OS, const std::string &Banner = "");
include/llvm/Transforms/Utils/CodeExtractor.h
  106     std::string Suffix;
  124                   std::string Suffix = "");
  134                   std::string Suffix = "");
include/llvm/Transforms/Utils/FunctionImportUtils.h
   74   std::string getName(const GlobalValue *SGV, bool DoPromote);
include/llvm/Transforms/Utils/ModuleUtils.h
  109 std::string getUniqueModuleId(Module *M);
include/llvm/Transforms/Utils/SSAUpdater.h
   50   std::string ProtoName;
include/llvm/Transforms/Utils/SymbolRewriter.h
   96   bool parse(const std::string &MapFile, RewriteDescriptorList *Descriptors);
include/llvm/WindowsManifest/WindowsManifestMerger.h
   45   std::string Msg;
include/llvm/XRay/FDRRecords.h
  210   std::string Data{};
  218   explicit CustomEventRecord(uint64_t S, uint64_t T, uint16_t C, std::string D)
  238   std::string Data{};
  246   explicit CustomEventRecordV5(int32_t S, int32_t D, std::string P)
  266   std::string Data{};
  274   explicit TypedEventRecord(int32_t S, int32_t D, uint16_t E, std::string P)
include/llvm/XRay/InstrumentationMap.h
   61   std::string FunctionName;
include/llvm/XRay/RecordPrinter.h
   24   std::string Delim;
   27   explicit RecordPrinter(raw_ostream &O, std::string D)
include/llvm/XRay/XRayRecord.h
   98   std::string Data;
include/llvm/XRay/YAMLXRayRecord.h
   36   std::string Function;
   41   std::string Data;
lib/Analysis/AliasAnalysisEvaluator.cpp
   46     std::string o1, o2;
lib/Analysis/Analysis.cpp
  101   std::string Messages;
lib/Analysis/BlockFrequencyInfo.cpp
   49 cl::opt<std::string>
   84 cl::opt<std::string> PrintBlockFreqFuncName(
  130   std::string getNodeLabel(const BasicBlock *Node,
  136   std::string getNodeAttributes(const BasicBlock *Node,
  142   std::string getEdgeAttributes(const BasicBlock *Node, EdgeIter EI,
lib/Analysis/BlockFrequencyInfoImpl.cpp
  605 std::string
  610 std::string
lib/Analysis/BranchProbabilityInfo.cpp
   52 cl::opt<std::string> PrintBranchProbFuncName(
lib/Analysis/CFGPrinter.cpp
   25 static cl::opt<std::string> CFGFuncName(
   30 static cl::opt<std::string> CFGDotFilenamePrefix(
   97   std::string Filename =
lib/Analysis/CallGraphSCCPass.cpp
  424       std::string Functions;
  620     std::string Banner;
  626     PrintCallGraphPass(const std::string &B, raw_ostream &OS)
  680                                           const std::string &Banner) const {
  684 static std::string getDescription(const CallGraphSCC &SCC) {
  685   std::string Desc = "SCC (";
lib/Analysis/CallPrinter.cpp
   27   static std::string getGraphName(CallGraph *Graph) { return "Call graph"; }
   29   std::string getNodeLabel(CallGraphNode *Node, CallGraph *Graph) {
lib/Analysis/DomPrinter.cpp
   33   std::string getNodeLabel(DomTreeNode *Node, DomTreeNode *Graph) {
   56   static std::string getGraphName(DominatorTree *DT) {
   60   std::string getNodeLabel(DomTreeNode *Node, DominatorTree *G) {
   72   static std::string getGraphName(PostDominatorTree *DT) {
   76   std::string getNodeLabel(DomTreeNode *Node, PostDominatorTree *G ) {
lib/Analysis/LazyCallGraph.cpp
 1791   std::string Name = "\"" + DOT::EscapeString(N.getFunction().getName()) + "\"";
lib/Analysis/Lint.cpp
  135     std::string Messages;
lib/Analysis/LoopInfo.cpp
  936 void llvm::printLoop(Loop &L, raw_ostream &OS, const std::string &Banner) {
lib/Analysis/LoopPass.cpp
   37   std::string Banner;
   42   PrintLoopPassWrapper(raw_ostream &OS, const std::string &Banner)
  328                                   const std::string &Banner) const {
  389 static std::string getDescription(const Loop &L) {
lib/Analysis/ModuleSummaryAnalysis.cpp
   73 cl::opt<std::string> ModuleSummaryDotFile(
lib/Analysis/RegionPass.cpp
  183   std::string Banner;
  188   PrintRegionPass(const std::string &B, raw_ostream &o)
  277                                   const std::string &Banner) const {
  281 static std::string getDescription(const Region &R) {
lib/Analysis/RegionPrinter.cpp
   43   std::string getNodeLabel(RegionNode *Node, RegionNode *Graph) {
   66   static std::string getGraphName(const RegionInfo *) { return "Region Graph"; }
   68   std::string getNodeLabel(RegionNode *Node, RegionInfo *G) {
   73   std::string getEdgeAttributes(RegionNode *srcNode,
  234   std::string GraphName = DOTGraphTraits<RegionInfo *>::getGraphName(RI);
lib/AsmParser/LLLexer.cpp
  114 static void UnEscapeLexed(std::string &Str) {
lib/AsmParser/LLLexer.h
   38     std::string StrVal;
   59     const std::string &getStrVal() const { return StrVal; }
lib/AsmParser/LLParser.cpp
   56 static std::string getTypeString(Type *T) {
   57   std::string Result;
  358   std::string AsmStr;
  371   std::string Str;
  420     std::string Str;
  456   std::string Name = Lex.getStrVal();
  552   std::string Name;
  592   std::string Name = Lex.getStrVal();
  616   std::string Name = Lex.getStrVal();
  667   std::string Str;
  701   std::string Name = Lex.getStrVal();
  872 bool LLParser::parseIndirectSymbol(const std::string &Name, LocTy NameLoc,
 1026 bool LLParser::ParseGlobal(const std::string &Name, LocTy NameLoc,
 1365                                               const std::string &Name) {
 1401 GlobalValue *LLParser::GetGlobalVal(const std::string &Name, Type *Ty,
 1465 Comdat *LLParser::getComdat(const std::string &Name, LocTy Loc) {
 1493 bool LLParser::ParseStringConstant(std::string &Result) {
 1581   std::string Attr = Lex.getStrVal();
 1583   std::string Val;
 2023   std::string Name = Lex.getStrVal();
 2224     std::string SSN;
 2518     std::string Tag;
 2576     std::string Name;
 2874 Value *LLParser::PerFunctionState::GetVal(const std::string &Name, Type *Ty,
 2946                                              const std::string &NameStr,
 3006 BasicBlock *LLParser::PerFunctionState::GetBB(const std::string &Name,
 3020 BasicBlock *LLParser::PerFunctionState::DefineBB(const std::string &Name,
 4298   std::string S;
 5354   std::string FunctionName;
 5377   std::string Section;
 5378   std::string Partition;
 5380   std::string GC;
 5616   std::string Name;
 5631   std::string NameStr;
 7458   std::string Path;
 7494   std::string Name;
 7554   std::string Name;
 7915     std::string Name, GlobalValue::GUID GUID, GlobalValue::LinkageTypes Linkage,
 7988   std::string Name;
 8060 bool LLParser::ParseFunctionSummary(std::string Name, GlobalValue::GUID GUID,
 8130 bool LLParser::ParseVariableSummary(std::string Name, GlobalValue::GUID GUID,
 8185 bool LLParser::ParseAliasSummary(std::string Name, GlobalValue::GUID GUID,
lib/AsmParser/LLParser.h
   63     std::string StrVal, StrVal2;
  125     std::map<std::string, std::pair<GlobalValue*, LocTy> > ForwardRefVals;
  130     std::map<std::string, LocTy> ForwardRefComdats;
  166     std::string SourceFileName;
  204     GlobalValue *GetGlobalVal(const std::string &N, Type *Ty, LocTy Loc,
  210     Comdat *getComdat(const std::string &Name, LocTy Loc);
  252     bool ParseStringConstant(std::string &Result);
  323     bool ParseGlobal(const std::string &Name, LocTy NameLoc, unsigned Linkage,
  328     bool parseIndirectSymbol(const std::string &Name, LocTy NameLoc,
  351     bool ParseFunctionSummary(std::string Name, GlobalValue::GUID, unsigned ID);
  352     bool ParseVariableSummary(std::string Name, GlobalValue::GUID, unsigned ID);
  353     bool ParseAliasSummary(std::string Name, GlobalValue::GUID, unsigned ID);
  385     void AddGlobalValueToIndex(std::string Name, GlobalValue::GUID,
  416       std::map<std::string, std::pair<Value*, LocTy> > ForwardRefVals;
  434       Value *GetVal(const std::string &Name, Type *Ty, LocTy Loc, bool IsCall);
  439       bool SetInstName(int NameID, const std::string &NameStr, LocTy NameLoc,
  445       BasicBlock *GetBB(const std::string &Name, LocTy Loc);
  451       BasicBlock *DefineBB(const std::string &Name, int NameID, LocTy Loc);
  547       std::string Name;
  548       ArgInfo(LocTy L, Type *ty, AttributeSet Attr, const std::string &N)
lib/BinaryFormat/MsgPackDocument.cpp
  179 void Document::writeToBlob(std::string &Blob) {
lib/BinaryFormat/MsgPackDocumentYAML.cpp
   36 std::string DocNode::toString() const {
   37   std::string S;
  101   std::string V;
  102   StringRef Err = yaml::ScalarTraits<std::string>::input(S, nullptr, V);
  200       return ScalarTraits<std::string>::mustQuote(ScalarStr);
lib/BinaryFormat/Wasm.cpp
   11 std::string llvm::wasm::toString(wasm::WasmSymbolType Type) {
   27 std::string llvm::wasm::relocTypetoString(uint32_t Type) {
lib/Bitcode/Reader/BitReader.cpp
   44     std::string Message;
   90     std::string Message;
lib/Bitcode/Reader/BitcodeAnalyzer.cpp
  727   std::string Indent(IndentLevel * 2, ' ');
  938           std::string Str;
lib/Bitcode/Reader/BitcodeReader.cpp
  173 static Expected<std::string> readIdentificationBlock(BitstreamCursor &Stream) {
  180   std::string ProducerIdentification;
  223 static Expected<std::string> readIdentificationCode(BitstreamCursor &Stream) {
  290       std::string S;
  294       if (S.find("__DATA,__objc_catlist") != std::string::npos ||
  295           S.find("__OBJC,__category") != std::string::npos)
  339 static Expected<std::string> readModuleTriple(BitstreamCursor &Stream) {
  345   std::string Triple;
  372       std::string S;
  384 static Expected<std::string> readTriple(BitstreamCursor &Stream) {
  445   std::string ProducerIdentification;
  453   std::string FullMsg = Message.str();
  493   std::vector<std::string> SectionTable;
  494   std::vector<std::string> GCTable;
  566   std::vector<std::string> BundleTags;
  800   std::string SourceFileName;
 2732       std::string AsmStr, ConstrStr;
 2757       std::string AsmStr, ConstrStr;
 3063   std::string OldFormatName;
 3118   std::string Section;
 3573       std::string S;
 3580       std::string S;
 3587       std::string S;
 3595       std::string S;
 3602       std::string S;
 3609       std::string S;
 3653     std::string DL = llvm::UpgradeDataLayoutString(
 5373   std::string GlobalId =
 6151       std::set<std::string> &CfiFunctionDefs = TheIndex.cfiFunctionDefs();
 6159       std::set<std::string> &CfiFunctionDecls = TheIndex.cfiFunctionDecls();
 6256   std::string message(int IE) const override {
 6447   std::string ProducerIdentification;
 6451     Expected<std::string> ProducerIdentificationOrErr =
 6669 Expected<std::string> llvm::getBitcodeTargetTriple(MemoryBufferRef Buffer) {
 6685 Expected<std::string> llvm::getBitcodeProducerString(MemoryBufferRef Buffer) {
lib/Bitcode/Reader/MetadataLoader.cpp
 1879     std::string String(Record.begin(), Record.end());
lib/Bitcode/Writer/BitWriter.cpp
   44   std::string Data;
lib/Bitcode/Writer/BitcodeWriter.cpp
  406   const std::map<std::string, GVSummaryMapTy> *ModuleToSummariesForIndex;
  421                      const std::map<std::string, GVSummaryMapTy>
 1156   const std::string &DL = M.getDataLayoutStr();
 1165   std::map<std::string, unsigned> SectionMap;
 1166   std::map<std::string, unsigned> GCMap;
 2326       const std::string &AsmStr = IA->getAsmString();
 2331       const std::string &ConstraintStr = IA->getConstraintString();
 3606                                      const std::string &Id,
 3625     const std::string &Id, const TypeIdCompatibleVtableInfo &Summary,
 4388     std::string Err;
 4450     const std::map<std::string, GVSummaryMapTy> *ModuleToSummariesForIndex) {
 4503     const std::map<std::string, GVSummaryMapTy> *ModuleToSummariesForIndex) {
lib/Bitstream/Reader/BitstreamReader.cpp
  491       std::string Name;
  501         std::string Name;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  805   std::string Str;
 1368   std::string Buf;
 1564     std::string Flags;
 2196       std::string S;
 3132     std::string GroupName;
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
  221         std::string Val(StrStart, StrEnd);
  271         std::string msg;
  363         std::string Val(StrStart, StrEnd);
  453           std::string msg;
  525   std::vector<std::string> RestrRegs;
  548     std::string Msg = "inline asm clobber list contains reserved registers: ";
  554     std::string Note = "Reserved registers on the clobber list may not be "
  595     std::string msg;
lib/CodeGen/AsmPrinter/ByteStreamer.h
   76   std::vector<std::string> &Comments;
   85                      std::vector<std::string> &Comments, bool GenerateComments)
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  118   std::string getTypeName(TypeIndex TI) {
  119     std::string TypeName;
  175   std::string &Filepath = FileToFilepathMap[File];
  209   while ((Cursor = Filepath.find("\\.\\", Cursor)) != std::string::npos)
  215   while ((Cursor = Filepath.find("\\..\\", Cursor)) != std::string::npos) {
  221     if (PrevSlash == std::string::npos)
  232   while ((Cursor = Filepath.find("\\\\", Cursor)) != std::string::npos)
  247       std::string Checksum = fromHex(F->getChecksum()->Value);
  320 static std::string getQualifiedName(ArrayRef<StringRef> QualifiedNameComponents,
  322   std::string FullyQualifiedName;
  332 static std::string getFullyQualifiedName(const DIScope *Scope, StringRef Name) {
  350 static std::string getFullyQualifiedName(const DIScope *Ty) {
  368   std::string ScopeName = getFullyQualifiedName(Scope);
  946   std::string FuncName = GlobalValue::dropLLVMManglingEscape(GV->getName());
  992   std::string FuncName;
 1475   std::string FullyQualifiedName =
 2075   std::string FullName = getFullyQualifiedName(Ty);
 2226   std::string FullName = getFullyQualifiedName(Ty);
 2257   std::string FullName = getFullyQualifiedName(Ty);
 2279   std::string FullName = getFullyQualifiedName(Ty);
 2299   std::string FullName = getFullyQualifiedName(Ty);
 2967     ArrayRef<std::pair<std::string, const DIType *>> UDTs) {
lib/CodeGen/AsmPrinter/CodeViewDebug.h
  271   std::vector<std::pair<std::string, const DIType *>> LocalUDTs;
  272   std::vector<std::pair<std::string, const DIType *>> GlobalUDTs;
  274   using FileToFilepathMapTy = std::map<const DIFile *, std::string>;
  314   emitDebugInfoForUDTs(ArrayRef<std::pair<std::string, const DIType *>> UDTs);
lib/CodeGen/AsmPrinter/DIE.cpp
  236   const std::string Indent(IndentCount, ' ');
  248   const std::string Indent(IndentCount, ' ');
lib/CodeGen/AsmPrinter/DebugLocStream.h
   51   std::vector<std::string> Comments;
  121   ArrayRef<std::string> getComments(const Entry &E) const {
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
 1127   std::string FullName = getParentContextString(Context) + Name.str();
 1135   std::string FullName = getParentContextString(Context) + Name.str();
 1148   std::string FullName = getParentContextString(Context) + Ty->getName().str();
 1156   std::string FullName = getParentContextString(Context) + Ty->getName().str();
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
  799     std::string ProducerWithFlags = Producer.str() + " " + Flags.str();
lib/CodeGen/AsmPrinter/DwarfExpression.h
  347     std::vector<std::string> Comments;
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  322   std::string ChecksumString = fromHex(Checksum->Value);
  731 std::string DwarfUnit::getParentContextString(const DIScope *Context) const {
  739   std::string CS;
lib/CodeGen/AsmPrinter/DwarfUnit.h
  103   std::string getParentContextString(const DIScope *Context) const;
lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp
   52   const std::string &MId = M.getModuleIdentifier();
   54   std::string SymName;
lib/CodeGen/FEntryInserter.cpp
   37   const std::string FEntryName =
lib/CodeGen/GCMetadata.cpp
  167     const std::string error = ("unsupported GC: " + Name).str() +
lib/CodeGen/GlobalISel/IRTranslator.cpp
 2354           std::string InstStrStorage;
lib/CodeGen/GlobalISel/InstructionSelect.cpp
   43 static const std::string CoveragePrefix = "";
lib/CodeGen/GlobalMerge.cpp
  525       std::string Name = Globals[k]->getName();
lib/CodeGen/LowerEmuTLS.cpp
   88   std::string EmuTlsVarName = ("__emutls_v." + GV->getName()).str();
  139     std::string EmuTlsTmplName = ("__emutls_t." + GV->getName()).str();
lib/CodeGen/MIRCanonicalizerPass.cpp
  104   using StringInstrPair = std::pair<std::string, MachineInstr *>;
  108     std::string S;
  115     StringInstrMap.push_back({(i == std::string::npos) ? S : S.substr(i), II});
lib/CodeGen/MIRParser/MILexer.cpp
   78 MIToken &MIToken::setOwnedStringValue(std::string StrVal) {
  117 static std::string unescapeQuotedString(StringRef Value) {
  121   std::string Str;
lib/CodeGen/MIRParser/MILexer.h
  167   std::string StringValueStorage;
  176   MIToken &setOwnedStringValue(std::string StrVal);
lib/CodeGen/MIRParser/MIParser.cpp
  448   bool parseCFIEscapeValues(std::string& Values);
  518   bool parseStringConstant(std::string &Result);
 1080 static std::string getRegisterName(const TargetRegisterInfo *TRI,
 2033 bool MIParser::parseCFIEscapeValues(std::string &Values) {
 2134     std::string Values;
 2213   std::string Name = Token.stringValue();
 2798     std::string SSN;
 3037 bool MIParser::parseStringConstant(std::string &Result) {
lib/CodeGen/MIRPrinter.cpp
   86   std::string Name;
  274   std::array<std::string *, 3> Outputs{{&Object.DebugVar.Value,
  505     std::string Str;
  529     std::string Str;
lib/CodeGen/MIRPrintingPass.cpp
   30   std::string MachineFunctions;
   43     std::string Str;
lib/CodeGen/MIRVRegNamerUtils.cpp
  336   std::string S;
lib/CodeGen/MachineBasicBlock.cpp
  264 std::string MachineBasicBlock::getFullName() const {
  265   std::string Name;
lib/CodeGen/MachineBlockFrequencyInfo.cpp
   64 extern cl::opt<std::string> ViewBlockFreqFuncName;
   76 extern cl::opt<std::string> PrintBlockFreqFuncName;
  124   std::string getNodeLabel(const MachineBasicBlock *Node,
  146   std::string getNodeAttributes(const MachineBasicBlock *Node,
  152   std::string getEdgeAttributes(const MachineBasicBlock *Node, EdgeIter EI,
lib/CodeGen/MachineBlockPlacement.cpp
  195 extern cl::opt<std::string> ViewBlockFreqFuncName;
  564 static std::string getBlockName(const MachineBasicBlock *BB) {
  565   std::string Result;
lib/CodeGen/MachineFunction.cpp
  529     static std::string getGraphName(const MachineFunction *F) {
  533     std::string getNodeLabel(const MachineBasicBlock *Node,
  535       std::string OutStr;
lib/CodeGen/MachineFunctionPass.cpp
   34                                              const std::string &Banner) const {
lib/CodeGen/MachineFunctionPrinterPass.cpp
   31   const std::string Banner;
   34   MachineFunctionPrinterPass(raw_ostream &os, const std::string &banner)
   66                                                       const std::string &Banner){
lib/CodeGen/MachineOutliner.cpp
 1096   std::string FunctionName = ("OUTLINED_FUNCTION_" + Twine(Name)).str();
 1163     std::string Dummy;
 1381     std::string Fname = F.getName();
lib/CodeGen/MachineScheduler.cpp
  103 static cl::opt<std::string> SchedOnlyFunc("misched-only-func", cl::Hidden,
 3684   static std::string getGraphName(const ScheduleDAG *G) {
 3701   static std::string getEdgeAttributes(const SUnit *Node,
 3711   static std::string getNodeLabel(const SUnit *SU, const ScheduleDAG *G) {
 3712     std::string Str;
 3723   static std::string getNodeDescription(const SUnit *SU, const ScheduleDAG *G) {
 3727   static std::string getNodeAttributes(const SUnit *N, const ScheduleDAG *G) {
 3728     std::string Str("shape=Mrecord");
lib/CodeGen/MachineVerifier.cpp
  297     const std::string Banner;
  299     MachineVerifierPass(std::string banner = std::string())
  324 FunctionPass *llvm::createMachineVerifierPass(const std::string &Banner) {
lib/CodeGen/ModuloSchedule.cpp
 1833   std::string ScheduleDump;
lib/CodeGen/PostRASchedulerList.cpp
   60 static cl::opt<std::string>
lib/CodeGen/RegAllocPBQP.cpp
  819   std::string FullyQualifiedName =
  848         std::string GraphFileName = FullyQualifiedName + "." + RS.str() +
lib/CodeGen/RegisterScavenging.cpp
  511       std::string Msg = std::string("Error while trying to spill ") +
lib/CodeGen/SafeStack.cpp
  596     std::string Name = std::string(AI->getName()) + ".unsafe";
lib/CodeGen/ScheduleDAGInstrs.cpp
 1173 std::string ScheduleDAGInstrs::getGraphNodeLabel(const SUnit *SU) const {
 1174   std::string s;
 1187 std::string ScheduleDAGInstrs::getDAGName() const {
lib/CodeGen/ScheduleDAGPrinter.cpp
   30     static std::string getGraphName(const ScheduleDAG *G) {
   42     static std::string getNodeIdentifierLabel(const SUnit *Node,
   44       std::string R;
   52     static std::string getEdgeAttributes(const SUnit *Node,
   63     std::string getNodeLabel(const SUnit *SU, const ScheduleDAG *Graph);
   64     static std::string getNodeAttributes(const SUnit *N,
   76 std::string DOTGraphTraits<ScheduleDAG*>::getNodeLabel(const SUnit *SU,
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
   96 static cl::opt<std::string>
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
 1031 std::string ScheduleDAGSDNodes::getDAGName() const {
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
  129     std::string getGraphNodeLabel(const SUnit *SU) const override;
  131     std::string getDAGName() const override;
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 8656   std::string ErrorStr;
lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
   59 std::string SDNode::getOperationName(const SelectionDAG *G) const {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
  138 static cl::opt<std::string>
  780   std::string BlockName;
 1505             std::string InstStrStorage;
 1555           std::string InstStrStorage;
 3642   std::string msg;
lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
   44     static std::string getEdgeDestLabel(const void *Node, unsigned i) {
   49     static std::string getEdgeSourceLabel(const void *Node, EdgeIter I) {
   72     static std::string getGraphName(const SelectionDAG *G) {
   80     static std::string getNodeIdentifierLabel(const SDNode *Node,
   82       std::string R;
   95     static std::string getEdgeAttributes(const void *Node, EdgeIter EI,
  107     static std::string getSimpleNodeLabel(const SDNode *Node,
  109       std::string Result = Node->getOperationName(G);
  116     std::string getNodeLabel(const SDNode *Node, const SelectionDAG *Graph);
  117     static std::string getNodeAttributes(const SDNode *N,
  120       const std::string &Attrs = Graph->getGraphAttrs(N);
  122         if (Attrs.find("shape=") == std::string::npos)
  141 std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
  150 void SelectionDAG::viewGraph(const std::string &Title) {
  193 const std::string SelectionDAG::getGraphAttrs(const SDNode *N) const {
  195   std::map<const SDNode *, std::string>::const_iterator I =
  274 std::string ScheduleDAGSDNodes::getGraphNodeLabel(const SUnit *SU) const {
  275   std::string s;
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4037                                                   std::string &Constraint,
 6830   std::string NameString = ("__emutls_v." + GA->getGlobal()->getName()).str();
lib/CodeGen/TargetLoweringBase.cpp
 1832 static std::string getReciprocalOpName(bool IsSqrt, EVT VT) {
 1833   std::string Name = VT.isVector() ? "vec-" : "";
 1908   std::string VTName = getReciprocalOpName(IsSqrt, VT);
 1909   std::string VTNameNoSize = VTName;
 1963   std::string VTName = getReciprocalOpName(IsSqrt, VT);
 1964   std::string VTNameNoSize = VTName;
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  652     std::string SizeSpec = ".rodata.str" + utostr(EntrySize) + ".";
  757   std::string Name;
  889       SmallVector<std::string, 4> StrOptions;
  909   std::string ErrorCode =
  946   std::string ErrorCode =
 1455         std::string Directive(" ");
 1532   std::string Name = IsCtor ? ".ctors" : ".dtors";
 1599 static std::string APIntToHexString(const APInt &AI) {
 1601   std::string HexString = AI.toString(16, /*Signed=*/false);
 1610 static std::string scalarConstantToHexString(const Constant *C) {
 1624     std::string HexString;
 1643     std::string COMDATSymName;
lib/CodeGen/TargetPassConfig.cpp
  137 static cl::opt<std::string> PrintMachineInstrs(
  186 static cl::opt<std::string>
  191 static cl::opt<std::string>
  196 static cl::opt<std::string>
  201 static cl::opt<std::string>
  467 std::string
  471   std::string Res;
  472   static cl::opt<std::string> *PassNames[] = {&StartAfterOpt, &StartBeforeOpt,
  532     std::string Banner;
  588 void TargetPassConfig::printAndVerify(const std::string &Banner) {
  593 void TargetPassConfig::addPrintPass(const std::string &Banner) {
  598 void TargetPassConfig::addVerifyPass(const std::string &Banner) {
lib/CodeGen/ValueTypes.cpp
  114 std::string EVT::getEVTString() const {
lib/DebugInfo/CodeView/CodeViewError.cpp
   23   std::string message(int Condition) const override {
lib/DebugInfo/CodeView/CodeViewRecordIO.cpp
  129     std::string TypeNameStr = Streamer->getTypeName(TypeInd);
lib/DebugInfo/CodeView/RecordName.cpp
  248 std::string llvm::codeview::computeTypeName(TypeCollection &Types,
lib/DebugInfo/CodeView/SymbolDumper.cpp
  243   std::string FrontendVersion;
  249   std::string BackendVersion;
  268   std::string FrontendVersion;
  275   std::string BackendVersion;
lib/DebugInfo/CodeView/TypeRecordMapping.cpp
   45 static std::string getFlagNames(CodeViewRecordIO &IO, T Value,
   62   std::string FlagLabel;
   74     std::string LabelWithBraces(" ( ");
   97 static std::string getMemberAttributes(CodeViewRecordIO &IO,
  102   std::string AccessSpecifier =
  104   std::string MemberAttrs(AccessSpecifier);
  106     std::string MethodKind =
  111     std::string MethodOptions = getFlagNames(
  123     std::string Attrs = getMemberAttributes(
  204     std::string RecordKindName =
  244     std::string MemberKindName = getLeafTypeName(Record.Kind);
  270   std::string ModifierNames =
  280   std::string CallingConvName = getEnumName(
  282   std::string FuncOptionNames =
  296   std::string CallingConvName = getEnumName(
  298   std::string FuncOptionNames =
  340     std::string PtrType = getEnumName(IO, unsigned(Record.getPointerKind()),
  344     std::string PtrMode = getEnumName(IO, unsigned(Record.getMode()),
  377     std::string PtrMemberGetRepresentation = getEnumName(
  400   std::string PropertiesNames =
  416   std::string PropertiesNames =
  430   std::string PropertiesNames =
  584   std::string ModeName =
  592   std::string Attrs = getMemberAttributes(
  603   std::string Attrs = getMemberAttributes(
  616   std::string Attrs = getMemberAttributes(
  655   std::string Attrs = getMemberAttributes(
  667   std::string Attrs = getMemberAttributes(
lib/DebugInfo/DWARF/DWARFContext.cpp
   69                            std::string DWPName)
  948                                                   std::string &FunctionName,
 1119   std::string FunctionName(DILineInfo::BadString);
 1818                      std::string DWPName) {
 1838   std::string TargetLookupError;
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
  349   std::string Str;
lib/DebugInfo/DWARF/DWARFDebugLine.cpp
 1045     std::string &Result, sys::path::Style Style) const {
lib/DebugInfo/DWARF/DWARFDie.cpp
  285   std::string File;
  319   std::string Space = DumpOpts.ShowAddresses ? " " : "";
lib/DebugInfo/DWARF/DWARFVerifier.cpp
  726       std::string FullPath;
lib/DebugInfo/MSF/MSFError.cpp
   23   std::string message(int Condition) const override {
lib/DebugInfo/PDB/GenericError.cpp
   23   std::string message(int Condition) const override {
lib/DebugInfo/PDB/IPDBSourceFile.cpp
   28     std::string Checksum = getChecksum();
lib/DebugInfo/PDB/Native/NativeCompilandSymbol.cpp
   51 std::string NativeCompilandSymbol::getLibraryName() const {
   55 std::string NativeCompilandSymbol::getName() const {
lib/DebugInfo/PDB/Native/NativeEnumInjectedSources.cpp
   20 Expected<std::string> readStreamData(BinaryStream &Stream, uint32_t Limit) {
   22   std::string Result;
   48   std::string getFileName() const override {
   54   std::string getObjectFileName() const override {
   60   std::string getVirtualFileName() const override {
   68   std::string getCode() const override {
   73     std::string StreamName = ("/src/files/" + VName).str();
lib/DebugInfo/PDB/Native/NativeExeSymbol.cpp
   75 std::string NativeExeSymbol::getSymbolsFileName() const {
lib/DebugInfo/PDB/Native/NativeRawSymbol.cpp
  150 std::string NativeRawSymbol::getCompilerName() const {
  175 std::string NativeRawSymbol::getLibraryName() const {
  201 std::string NativeRawSymbol::getName() const {
  225 std::string NativeRawSymbol::getObjectFileName() const {
  275 std::string NativeRawSymbol::getSourceFileName() const {
  290 std::string NativeRawSymbol::getSymbolsFileName() const { return {}; }
  328 std::string NativeRawSymbol::getUndecoratedName() const {
  332 std::string NativeRawSymbol::getUndecoratedNameEx(
  732 std::string NativeRawSymbol::getUnused() const {
lib/DebugInfo/PDB/Native/NativeSymbolEnumerator.cpp
   54 std::string NativeSymbolEnumerator::getName() const { return Record.Name; }
lib/DebugInfo/PDB/Native/NativeTypeEnum.cpp
  304 std::string NativeTypeEnum::getName() const {
lib/DebugInfo/PDB/Native/NativeTypeTypedef.cpp
   23 std::string NativeTypeTypedef::getName() const { return Record.Name; }
lib/DebugInfo/PDB/Native/NativeTypeUDT.cpp
   73 std::string NativeTypeUDT::getName() const {
lib/DebugInfo/PDB/Native/RawError.cpp
   15   std::string message(int Condition) const override {
lib/DebugInfo/PDB/Native/TpiStream.cpp
  170     std::string ThisName = computeTypeName(*Types, TI);
lib/DebugInfo/PDB/PDBContext.cpp
   99 std::string PDBContext::getFunctionName(uint64_t Address,
lib/DebugInfo/PDB/PDBSymbolCompiland.cpp
   28 std::string PDBSymbolCompiland::getSourceFileName() const {
   32 std::string PDBSymbolCompiland::getSourceFileFullPath() const {
   33   std::string SourceFileFullPath;
   42   std::string RecordedResult = RawSymbol->getSourceFileName();
   46       std::string EnvWorkingDir, EnvSrc;
   49         std::string Var = Env->getName();
   65           std::string Path = EnvWorkingDir + "\\" + EnvSrc;
   94       std::string FileName = File->getFileName();
lib/DebugInfo/PDB/PDBSymbolCompilandEnv.cpp
   20 std::string PDBSymbolCompilandEnv::getValue() const {
lib/DebugInfo/PDB/PDBSymbolFunc.cpp
   36     std::unordered_set<std::string> SeenNames;
   40         std::string Name = Child->getName();
   88   std::string Name = getName();
lib/DebugInfo/PDB/UDTLayout.cpp
   48                                const PDBSymbol *Symbol, const std::string &Name,
  105                              const std::string &Name, uint32_t OffsetInParent,
lib/DebugInfo/Symbolize/DIPrinter.cpp
   34 void DIPrinter::printContext(const std::string &FileName, int64_t Line) {
   65     std::string FunctionName = Info.FunctionName;
   73   std::string Filename = Info.FileName;
  112   std::string Name = Global.Name;
lib/DebugInfo/Symbolize/SymbolizableObjectFile.cpp
  224                                                     std::string &Name,
  264     std::string FunctionName;
  289     std::string FunctionName;
lib/DebugInfo/Symbolize/SymbolizableObjectFile.h
   59                               std::string &Name, uint64_t &Addr,
lib/DebugInfo/Symbolize/Symbolize.cpp
   79 LLVMSymbolizer::symbolizeCode(const std::string &ModuleName,
   88 LLVMSymbolizer::symbolizeInlinedCode(const std::string &ModuleName,
  118 LLVMSymbolizer::symbolizeData(const std::string &ModuleName,
  144 LLVMSymbolizer::symbolizeFrame(const std::string &ModuleName,
  179 std::string getDarwinDWARFResourceForPath(
  180     const std::string &Path, const std::string &Basename) {
  180     const std::string &Path, const std::string &Basename) {
  198 bool findDebugBinary(const std::string &OrigPath,
  199                      const std::string &DebuglinkName, uint32_t CRCHash,
  200                      const std::string &FallbackDebugPath,
  201                      std::string &Result) {
  243 bool getGNUDebuglinkContents(const ObjectFile *Obj, std::string &DebugName,
  289 ObjectFile *LLVMSymbolizer::lookUpDsymFile(const std::string &ExePath,
  290     const MachOObjectFile *MachExeObj, const std::string &ArchName) {
  293   std::vector<std::string> DsymPaths;
  318 ObjectFile *LLVMSymbolizer::lookUpDebuglinkObject(const std::string &Path,
  320                                                   const std::string &ArchName) {
  321   std::string DebuglinkName;
  323   std::string DebugBinaryPath;
  339 LLVMSymbolizer::getOrCreateObjectPair(const std::string &Path,
  340                                       const std::string &ArchName) {
  368 LLVMSymbolizer::getOrCreateObject(const std::string &Path,
  369                                   const std::string &ArchName) {
  426 LLVMSymbolizer::getOrCreateModuleInfo(const std::string &ModuleName) {
  431   std::string BinaryName = ModuleName;
  432   std::string ArchName = Opts.DefaultArch;
  435   if (ColonPos != std::string::npos) {
  436     std::string ArchStr = ModuleName.substr(ColonPos + 1);
  509 std::string
  510 LLVMSymbolizer::DemangleName(const std::string &Name,
  519     std::string Result = DemangledName;
  533     std::string Result = DemangledName;
lib/Demangle/Demangle.cpp
   16 static bool isItaniumEncoding(const std::string &MangledName) {
   22 std::string llvm::demangle(const std::string &MangledName) {
   22 std::string llvm::demangle(const std::string &MangledName) {
   33   std::string Ret = Demangled;
lib/Demangle/MicrosoftDemangleNodes.cpp
  115 std::string Node::toString(OutputFlags Flags) const {
lib/ExecutionEngine/ExecutionEngine.cpp
   49     std::unique_ptr<Module> M, std::string *ErrorStr,
   55     std::string *ErrorStr, std::shared_ptr<MCJITMemoryManager> MemMgr,
   60                                                 std::string *ErrorStr) =nullptr;
  191 std::string ExecutionEngine::getMangledName(const GlobalValue *GV) {
  223     std::string &V = EEState.getGlobalAddressReverseMap()[CurVal];
  269     std::string &V = EEState.getGlobalAddressReverseMap()[CurVal];
  315   std::map<uint64_t, std::string>::iterator I =
  335               const std::vector<std::string> &InputArgv);
  339                        const std::vector<std::string> &InputArgv) {
  427                                        const std::vector<std::string> &argv,
  461         std::vector<std::string> EnvVars;
 1192   std::map<std::pair<std::string, Type*>,
lib/ExecutionEngine/ExecutionEngineBindings.cpp
  106   std::string Error;
  121   std::string Error;
  137   std::string Error;
  196   std::string Error;
  235   std::vector<std::string> ArgVec(ArgV, ArgV + ArgC);
  336   bool finalizeMemory(std::string *ErrMsg) override;
  376 bool SimpleBindingMemoryManager::finalizeMemory(std::string *ErrMsg) {
lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
   64 static ManagedStatic<std::map<std::string, ExFunc> > FuncNames;
  103   std::string ExtName = "lle_";
lib/ExecutionEngine/Interpreter/Interpreter.cpp
   35                                      std::string *ErrStr) {
   38     std::string Msg;
lib/ExecutionEngine/Interpreter/Interpreter.h
  103                                  std::string *ErrorStr = nullptr);
lib/ExecutionEngine/JITLink/JITLink.cpp
   35   std::string message(int Condition) const override {
lib/ExecutionEngine/JITLink/MachO_arm64.cpp
  509     std::string ErrMsg;
lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
  469     std::string ErrMsg;
lib/ExecutionEngine/MCJIT/MCJIT.cpp
   42 MCJIT::createJIT(std::unique_ptr<Module> M, std::string *ErrorStr,
  216     std::string Buf;
  280 JITSymbol MCJIT::findExistingSymbol(const std::string &Name) {
  289 Module *MCJIT::findModuleForSymbol(const std::string &Name,
  316 uint64_t MCJIT::getSymbolAddress(const std::string &Name,
  318   std::string MangledName;
  333 JITSymbol MCJIT::findSymbol(const std::string &Name,
  390 uint64_t MCJIT::getGlobalValueAddress(const std::string &Name) {
  398 uint64_t MCJIT::getFunctionAddress(const std::string &Name) {
  670 LinkingSymbolResolver::findSymbol(const std::string &Name) {
lib/ExecutionEngine/MCJIT/MCJIT.h
   34   JITSymbol findSymbol(const std::string &Name) override;
   37   JITSymbol findSymbolInLogicalDylib(const std::string &Name) override {
  290   uint64_t getGlobalValueAddress(const std::string &Name) override;
  291   uint64_t getFunctionAddress(const std::string &Name) override;
  304   createJIT(std::unique_ptr<Module> M, std::string *ErrorStr,
  313   JITSymbol findSymbol(const std::string &Name, bool CheckFunctionsOnly);
  322   uint64_t getSymbolAddress(const std::string &Name,
  337   JITSymbol findExistingSymbol(const std::string &Name);
  338   Module *findModuleForSymbol(const std::string &Name, bool CheckFunctionsOnly);
lib/ExecutionEngine/Orc/CompileOnDemandLayer.cpp
   38       std::string AliasName = A.getName();
lib/ExecutionEngine/Orc/Core.cpp
 1728 JITDylib::JITDylib(ExecutionSession &ES, std::string Name)
 1840 JITDylib &ExecutionSession::createJITDylib(std::string Name,
 2143   std::string MangledName;
lib/ExecutionEngine/Orc/ExecutionUtils.cpp
  185   std::string ErrMsg;
  211     std::string Tmp((*Name).data() + HasGlobalPrefix,
lib/ExecutionEngine/Orc/IndirectionUtils.cpp
   91       std::string ErrMsg;
lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
   46   std::string ErrMsg;
   62     const std::vector<std::string> &FeatureVec) {
lib/ExecutionEngine/Orc/LLJIT.cpp
  143 std::string LLJIT::mangle(StringRef UnmangledName) {
  144   std::string MangledName;
lib/ExecutionEngine/Orc/NullResolver.cpp
   27 JITSymbol NullLegacyResolver::findSymbol(const std::string &Name) {
   32 NullLegacyResolver::findSymbolInLogicalDylib(const std::string &Name) {
lib/ExecutionEngine/Orc/OrcCBindings.cpp
   37   std::string Mangled = J.mangle(SymbolName);
lib/ExecutionEngine/Orc/OrcCBindingsStack.h
   56   virtual JITSymbol findSymbolIn(orc::VModuleKey K, const std::string &Name,
   65     JITSymbol findSymbolIn(orc::VModuleKey K, const std::string &Name,
   85     JITSymbol findSymbolIn(orc::VModuleKey K, const std::string &Name,
  176     JITSymbol findSymbol(const std::string &Name) {
  251   std::string mangle(StringRef Name) {
  252     std::string MangledName;
  297     std::vector<std::string> CtorNames, DtorNames;
  377   JITSymbol findSymbol(const std::string &Name,
  386   JITSymbol findSymbolIn(orc::VModuleKey K, const std::string &Name,
  392   Expected<JITTargetAddress> findSymbolAddress(const std::string &Name,
  410                                                  const std::string &Name,
  427   const std::string &getErrorMessage() const { return ErrMsg; }
  527   std::string ErrMsg;
lib/ExecutionEngine/Orc/OrcError.cpp
   29   std::string message(int condition) const override {
   82 DuplicateDefinition::DuplicateDefinition(std::string SymbolName)
   93 const std::string &DuplicateDefinition::getSymbolName() const {
   97 JITSymbolNotFound::JITSymbolNotFound(std::string SymbolName)
  110 const std::string &JITSymbolNotFound::getSymbolName() const {
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
  118     bool finalizeMemory(std::string *ErrMsg = nullptr) override {
  219   createOrcMCJITReplacement(std::string *ErrorMsg,
  270     std::vector<std::string> CtorNames, DtorNames;
  274         std::string NewCtorName = ("__ORCstatic_ctor." + Twine(CtorId++)).str();
  281         std::string NewDtorName = ("__ORCstatic_dtor." + Twine(DtorId++)).str();
  345   uint64_t getGlobalValueAddress(const std::string &Name) override {
  349   uint64_t getFunctionAddress(const std::string &Name) override {
  451   std::string mangle(StringRef Name) {
  452     std::string MangledName;
  484   std::map<VModuleKey, std::vector<std::string>> UnexecutedConstructors;
  485   std::map<VModuleKey, std::vector<std::string>> UnexecutedDestructors;
lib/ExecutionEngine/Orc/RPCUtils.cpp
   40 CouldNotNegotiate::CouldNotNegotiate(std::string Signature)
lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
   74     std::string SymName = Symbol.str();
  115     std::string SymName = Symbol.str();
lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp
  229 RTDyldMemoryManager::getSymbolAddressInProcess(const std::string &Name) {
  290 void *RTDyldMemoryManager::getPointerToNamedFunction(const std::string &Name,
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
   46   std::string message(int Condition) const override {
 1214         std::string ErrMsg;
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldChecker.cpp
  101     EvalResult(std::string ErrorMsg)
  105     const std::string &getErrorMsg() const { return ErrorMsg; }
  109     std::string ErrorMsg;
  132     std::string ErrorMsg("Encountered unexpected token '");
  258       std::string ErrMsg;
  271       std::string ErrMsg;
  354     std::string ErrorMsg = "";
  391     std::string ErrorMsg = "";
  423       std::string ErrMsg("No known address for symbol '");
  789 std::pair<uint64_t, std::string> RuntimeDyldCheckerImpl::getSectionAddr(
  794     std::string ErrMsg;
  819 std::pair<uint64_t, std::string> RuntimeDyldCheckerImpl::getStubOrGOTAddrFor(
  827     std::string ErrMsg;
  871 std::pair<uint64_t, std::string>
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldCheckerImpl.h
   52   std::pair<uint64_t, std::string> getSectionAddr(StringRef FileName,
   56   std::pair<uint64_t, std::string>
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
 1141       std::string Buf;
 1162         std::string Buf;
lib/ExecutionEngine/RuntimeDyld/RuntimeDyldImpl.h
   48   std::string Name;
  319   std::string ErrorStr;
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldCOFFThumb.h
   29     std::string Buf;
lib/ExecutionEngine/RuntimeDyld/Targets/RuntimeDyldMachOAArch64.h
   42       std::string ErrMsg;
   54         std::string ErrMsg;
lib/ExecutionEngine/SectionMemoryManager.cpp
  140 bool SectionMemoryManager::finalizeMemory(std::string *ErrMsg) {
lib/ExecutionEngine/TargetSelect.cpp
   42                               const SmallVectorImpl<std::string>& MAttrs) {
   68     std::string Error;
   78   std::string FeaturesStr;
lib/FuzzMutate/FuzzerCLI.cpp
   39   std::vector<std::string> Args{ExecName};
   68   for (std::string &S : Args)
   76   std::vector<std::string> Args{ExecName};
  132   for (std::string &S : Args)
  190   std::string Buf;
lib/IR/AsmWriter.cpp
 2584       M->getModuleIdentifier().find('\n') == std::string::npos)
 2593   const std::string &DL = M->getDataLayoutStr();
 2678   std::vector<std::pair<std::string, ModuleHash>> moduleVec;
 2679   std::string RegularLTOModuleName = "[Regular LTO]";
 2913 static std::string getLinkageName(GlobalValue::LinkageTypes LT) {
 2944 static std::string getLinkageNameWithSpace(GlobalValue::LinkageTypes LT) {
 3410     std::string AttrStr;
lib/IR/AttributeImpl.h
  150   std::string Kind;
  151   std::string Val;
  216   std::string getAsString(bool InAttrGrp) const;
lib/IR/Attributes.cpp
  276 std::string Attribute::getAsString(bool InAttrGrp) const {
  397     std::string Result;
  415     std::string Result;
  423     std::string Result;
  450     std::string Result = "allocsize(";
  466     std::string Result;
  469     std::string AttrVal = pImpl->getValueAsString();
  695 std::string AttributeSet::getAsString(bool InAttrGrp) const {
  881 std::string AttributeSetNode::getAsString(bool InAttrGrp) const {
  882   std::string Str;
 1380 std::string AttributeList::getAsString(unsigned Index, bool InAttrGrp) const {
lib/IR/AutoUpgrade.cpp
 1634 void llvm::UpgradeInlineAsmString(std::string *AsmStr) {
 1637       AsmStr->find("objc_retainAutoreleaseReturnValue") != std::string::npos &&
 1638       (Pos = AsmStr->find("# marker")) != std::string::npos) {
 3641     std::string Name = CI->getName();
 3716   std::string Name = CI->getName();
 3847           std::string NewValue = ValueComp[0].str() + ";" + ValueComp[1].str();
 4021           std::string NewValue;
 4138 std::string llvm::UpgradeDataLayoutString(StringRef DL, StringRef TT) {
 4139   std::string AddrSpaces = "-p270:32:32-p271:32:32-p272:64:64";
 4154   std::string Res = (Groups[1] + AddrSpaces + Groups[3]).toStringRef(Buf).str();
lib/IR/Core.cpp
  197   std::string MsgStorage;
  409     std::string E = "Error printing to file: " + dest.error().message();
  418   std::string buf;
  531   std::string buf;
  842   std::string buf;
lib/IR/DiagnosticHandler.cpp
   27   void operator=(const std::string &Val) {
   31       std::string RegexError;
   46 static cl::opt<PassRemarksOpt, true, cl::parser<std::string>> PassRemarks(
   55 static cl::opt<PassRemarksOpt, true, cl::parser<std::string>> PassRemarksMissed(
   64 static cl::opt<PassRemarksOpt, true, cl::parser<std::string>>
lib/IR/DiagnosticInfo.cpp
  132 std::string DiagnosticLocation::getAbsolutePath() const {
  142 std::string DiagnosticInfoWithLocationBase::getAbsolutePath() const {
  154 const std::string DiagnosticInfoWithLocationBase::getLocationStr() const {
  333   std::string Str;
  362 std::string DiagnosticInfoOptimizationBase::getMsg() const {
  363   std::string Str;
lib/IR/DiagnosticPrinter.cpp
   48     const std::string &Str) {
lib/IR/Function.cpp
  478 const std::string &Function::getGC() const {
  483 void Function::setGC(std::string Str) {
  588 static std::string getMangledTypeStr(Type* Ty) {
  589   std::string Result;
  647 std::string Intrinsic::getName(ID id, ArrayRef<Type*> Tys) {
  649   std::string Result(IntrinsicNameTable[id]);
lib/IR/Globals.cpp
  136 std::string GlobalValue::getGlobalIdentifier(StringRef Name,
  146   std::string NewName = Name;
  160 std::string GlobalValue::getGlobalIdentifier() const {
lib/IR/IRPrintingPasses.cpp
   23 PrintModulePass::PrintModulePass(raw_ostream &OS, const std::string &Banner,
   50 PrintFunctionPass::PrintFunctionPass(raw_ostream &OS, const std::string &Banner)
   72   PrintModulePassWrapper(raw_ostream &OS, const std::string &Banner,
   95   PrintFunctionPassWrapper(raw_ostream &OS, const std::string &Banner)
  114   std::string Banner;
  119   PrintBasicBlockPass(raw_ostream &Out, const std::string &Banner)
  147                                         const std::string &Banner,
  153                                             const std::string &Banner) {
  158                                                 const std::string &Banner) {
lib/IR/InlineAsm.cpp
   30 InlineAsm::InlineAsm(FunctionType *FTy, const std::string &asmString,
   31                      const std::string &constraints, bool hasSideEffects,
lib/IR/LLVMContext.cpp
  280 void LLVMContext::setGC(const Function &Fn, std::string GCName) {
  290 const std::string &LLVMContext::getGC(const Function &Fn) {
lib/IR/LLVMContextImpl.h
 1399   DenseMap<const Function*, std::string> GCNames;
lib/IR/LegacyPassManager.cpp
   93 static cl::list<std::string>
  133   static std::unordered_set<std::string> PrintFuncNames(PrintFuncsList.begin(),
  238   std::string PassName = P->getPassName().str();
  400                           const std::string &Banner) const override {
  468                           const std::string &Banner) const override {
  556                           const std::string &Banner) const override {
lib/IR/Mangler.cpp
  195     std::string Flag;
lib/IR/ModuleSummaryIndex.cpp
  221   std::string getAsString() const;
  223   std::vector<std::string> Attrs;
  224   std::string Comments;
  237   std::string A = Name.str();
  255 std::string Attributes::getAsString() const {
  259   std::string Ret = "[";
  268 static std::string linkageToString(GlobalValue::LinkageTypes LT) {
  297 static std::string fflagsToString(FunctionSummary::FFlags F) {
  307 static std::string getSummaryAttributes(GlobalValueSummary* GVS) {
  316 static std::string getNodeVisualName(GlobalValue::GUID Id) {
  320 static std::string getNodeVisualName(const ValueInfo &VI) {
  324 static std::string getNodeLabel(const ValueInfo &VI, GlobalValueSummary *GVS) {
  328   std::string Attrs = getSummaryAttributes(GVS);
  329   std::string Label =
lib/IR/Pass.cpp
   50                                     const std::string &Banner) const {
   58 static std::string getDescription(const Module &M) {
  154                                       const std::string &Banner) const {
  162 static std::string getDescription(const Function &F) {
  184                                         const std::string &Banner) const {
  198 static std::string getDescription(const BasicBlock &BB) {
lib/IR/PassTimingInfo.cpp
  123   std::string PassDescNumbered =
  175   std::string FullDesc = formatv("{0} #{1}", PassID, Count).str();
lib/IR/RemarkStreamer.cpp
   39   std::string RegexError;
lib/IR/Verifier.cpp
  500                         unsigned ArgNo, std::string &Suffix);
 4270   const std::string ExpectedName = Intrinsic::getName(ID, ArgTys);
lib/IRReader/IRReader.cpp
  126       std::string buf;
lib/LTO/Caching.cpp
   75       std::string EntryPath;
   79                   sys::fs::TempFile TempFile, std::string EntryPath,
lib/LTO/LTO.cpp
 1173 std::string lto::getThinLTOOutputFile(const std::string &Path,
 1173 std::string lto::getThinLTOOutputFile(const std::string &Path,
 1174                                       const std::string &OldPrefix,
 1175                                       const std::string &NewPrefix) {
 1192   std::string OldPrefix, NewPrefix;
 1201       std::string OldPrefix, std::string NewPrefix, bool ShouldEmitImportsFiles,
 1201       std::string OldPrefix, std::string NewPrefix, bool ShouldEmitImportsFiles,
 1215     std::string NewModulePath =
 1221     std::map<std::string, GVSummaryMapTy> ModuleToSummariesForIndex;
 1249     std::string OldPrefix, std::string NewPrefix, bool ShouldEmitImportsFiles,
 1249     std::string OldPrefix, std::string NewPrefix, bool ShouldEmitImportsFiles,
 1382   std::string Filename = RemarksFilename;
lib/LTO/LTOBackend.cpp
   56 Error Config::addSaveTemps(std::string OutputFileName,
   75       std::string PathPrefix;
   85       std::string Path = PathPrefix + PathSuffix + ".bc";
  105     std::string Path = OutputFileName + "index.bc";
  132   for (const std::string &A : Conf.MAttrs)
  227                                  std::string PipelineDesc,
  228                                  std::string AAPipelineDesc,
  407   std::string Msg;
lib/LTO/LTOCodeGenerator.cpp
   89 cl::opt<std::string>
   94 cl::opt<std::string>
  100 cl::opt<std::string> RemarksFormat(
  105 cl::opt<std::string> LTOStatsFile(
  234     std::string ErrMsg = "could not open bitcode file for writing: ";
  245     std::string ErrMsg = "could not write bitcode file: ";
  350   std::string ErrMsg;
  638     for (std::string &Arg : CodegenOptions)
  663   std::string MsgStorage;
  710 void LTOCodeGenerator::emitError(const std::string &ErrMsg) {
  717 void LTOCodeGenerator::emitWarning(const std::string &ErrMsg) {
lib/LTO/LTOModule.cpp
   88   ErrorOr<std::string> TripleOrErr =
   95 std::string LTOModule::getProducerString(MemoryBuffer *Buffer) {
  101   ErrorOr<std::string> ProducerOrErr = expectedToErrorOrAndEmitErrors(
  201   std::string TripleStr = M->getTargetTriple();
  207   std::string errMsg;
  215   std::string FeatureStr = Features.getString();
  217   std::string CPU;
  247 LTOModule::objcClassNameFromExpression(const Constant *c, std::string &name) {
  269   std::string superclassName;
  283   std::string className;
  303   std::string targetclassName;
  322   std::string targetclassName;
  654                                            std::string &outErr) {
lib/LTO/ThinLTOCodeGenerator.cpp
   75 extern cl::opt<std::string> RemarksFilename;
   76 extern cl::opt<std::string> RemarksPasses;
   78 extern cl::opt<std::string> RemarksFormat;
   92   std::string SaveTempPath = (TempDir + llvm::Twine(count) + Suffix).str();
  382               std::string ErrorMsgBuffer;
  544   std::string ErrMsg;
  554   std::string FeatureStr = Features.getString();
  715     std::map<std::string, GVSummaryMapTy> &ModuleToSummariesForIndex,
  772   std::map<std::string, GVSummaryMapTy> ModuleToSummariesForIndex;
  858 std::string
lib/LineEditor/LineEditor.cpp
   23 std::string LineEditor::getDefaultHistoryPath(StringRef ProgName) {
   35 std::string LineEditor::ListCompleterConcept::getCommonPrefix(
   39   std::string CommonPrefix = Comps[0].TypedText;
   63   std::string CommonPrefix = getCommonPrefix(Comps);
  105   std::string ContinuationOutput;
  136       std::string Prevs(Data->PrevCount, '\02');
  173         for (std::vector<std::string>::iterator I = Action.Completions.begin(),
  256 Optional<std::string> LineEditor::readLine() const {
lib/Linker/IRMover.cpp
 1309         std::string str;
 1371 static std::string adjustInlineAsm(const std::string &InlineAsm,
 1371 static std::string adjustInlineAsm(const std::string &InlineAsm,
 1417     std::string SrcModuleInlineAsm = adjustInlineAsm(SrcM->getModuleInlineAsm(),
lib/MC/ELFObjectWriter.cpp
  742   ArrayRef<std::string> FileNames = Asm.getFileNames();
  743   for (const std::string &Name : FileNames)
  750   for (const std::string &Name : FileNames)
  811   std::string RelaSectionName = hasRelocationAddend() ? ".rela" : ".rel";
lib/MC/MCAsmStreamer.cpp
  145   void EmitLinkerOptions(ArrayRef<std::string> Options) override;
  503 void MCAsmStreamer::EmitLinkerOptions(ArrayRef<std::string> Options) {
  506   for (ArrayRef<std::string>::iterator it = Options.begin() + 1,
lib/MC/MCContext.cpp
  576 void MCContext::addDebugPrefixMapEntry(const std::string &From,
  577                                        const std::string &To) {
  586         std::string RemappedPath =
  593   std::string CompDir = CompilationDir.str();
lib/MC/MCDisassembler/Disassembler.cpp
   51   std::string Error;
lib/MC/MCDisassembler/Disassembler.h
   44   std::string TripleName;
   78   std::string CPU;
   85   LLVMDisasmContext(std::string TripleName, void *DisInfo, int TagType,
  101   const std::string &getTripleName() const { return TripleName; }
lib/MC/MCDwarf.cpp
 1014   const SmallVectorImpl<std::string> &MCDwarfDirs = context.getMCDwarfDirs();
lib/MC/MCInstrDesc.cpp
   22                                     std::string &Info) const {
lib/MC/MCMachOStreamer.cpp
   89   void EmitLinkerOptions(ArrayRef<std::string> Options) override;
  247 void MCMachOStreamer::EmitLinkerOptions(ArrayRef<std::string> Options) {
lib/MC/MCParser/AsmLexer.cpp
   52 AsmToken AsmLexer::ReturnError(const char *Loc, const std::string &Msg) {
  516   std::string SavedErr = getErr();
lib/MC/MCParser/AsmParser.cpp
  242   bool parseMSInlineAsm(void *AsmLoc, std::string &AsmString,
  245                         SmallVectorImpl<std::string> &Constraints,
  246                         SmallVectorImpl<std::string> &Clobbers,
  322   bool enterIncludeFile(const std::string &Filename);
  326   bool processIncbinFile(const std::string &Filename, int64_t Skip = 0,
  650   bool parseEscapedString(std::string &Data) override;
  786 bool AsmParser::enterIncludeFile(const std::string &Filename) {
  787   std::string IncludedFile;
  801 bool AsmParser::processIncbinFile(const std::string &Filename, int64_t Skip,
  803   std::string IncludedFile;
 1389 static std::string altMacroString(StringRef AltMacroStr) {
 1390   std::string Res;
 2214   std::string OpcodeStr = IDVal.lower();
 2364   const std::string &Filename = Parser->CppHashInfo.Filename;
 2904 bool AsmParser::parseEscapedString(std::string &Data) {
 2984     std::string Data;
 3369   std::string Path;
 3380   std::string FilenameData;
 3397   std::string SourceString;
 3600   std::string Filename;
 3601   std::string Checksum;
 3982   std::string Data;
 4289   std::string Values;
 4976   std::string Filename;
 4997   std::string Filename;
 5768     void *AsmLoc, std::string &AsmString, unsigned &NumOutputs,
 5770     SmallVectorImpl<std::string> &Constraints,
 5771     SmallVectorImpl<std::string> &Clobbers, const MCInstrInfo *MII,
 5777   SmallVector<std::string, 4> InputConstraints;
 5778   SmallVector<std::string, 4> OutputConstraints;
 5890   std::string AsmStringIR;
lib/MC/MCParser/DarwinAsmParser.cpp
  609   SmallVector<std::string, 4> Args;
  614     std::string Data;
  675   std::string SectionSpec = SectionName;
  692   std::string ErrorStr =
lib/MC/MCSectionMachO.cpp
  182 std::string MCSectionMachO::ParseSectionSpecifier(StringRef Spec,        // In.
lib/MC/MCStreamer.cpp
  787       std::string SectionName =
lib/MC/MCSubtargetInfo.cpp
  184   for (const std::string &Feature : Features.getFeatures()) {
  281   for (std::string F : T.getFeatures()) {
lib/MC/MachObjectWriter.cpp
  422   const std::vector<std::string> &Options, bool is64Bit)
  425   for (const std::string &Option : Options)
  431   const std::vector<std::string> &Options)
  441   for (const std::string &Option : Options) {
lib/MC/SubtargetFeature.cpp
   33 void SubtargetFeatures::Split(std::vector<std::string> &V, StringRef S) {
   52 std::string SubtargetFeatures::getString() const {
lib/MC/WinCOFFObjectWriter.cpp
  115   std::string Name;
  373       std::string WeakName = (".weak." + MCSym.getName() + ".default").str();
  837   for (const std::string &Name : Asm.getFileNames()) {
lib/MCA/InstrBuilder.cpp
  237       std::string Message =
lib/Object/Archive.cpp
   48   std::string StringMsg = "truncated or malformed archive (" + Msg.str() + ")";
   64       std::string Msg("remaining size of archive too small for next archive "
   78       std::string Buf;
   83       std::string Msg("terminator characters in archive member \"" + Buf +
  157       std::string Buf;
  195       std::string Buf;
  230     std::string Buf;
  248     std::string Buf;
  268     std::string Buf;
  289     std::string Buf;
  308     std::string Buf;
  379       std::string Buf;
  416 Expected<std::string> Archive::Child::getFullName() const {
  445   Expected<std::string> FullNameOrErr = getFullName();
  448   const std::string &FullName = *FullNameOrErr;
  470     std::string Msg("offset to next archive member past the end of the archive "
lib/Object/ArchiveWriter.cpp
  239   std::string Header;
  248   std::string Header;
  457     std::string Header;
  482       std::string StringMsg =
  520 Expected<std::string> computeArchiveRelativePath(StringRef From, StringRef To) {
lib/Object/COFFImportFile.cpp
   67                              ArrayRef<const std::string> Strings) {
  109 static Expected<std::string> replace(StringRef S, StringRef From,
  129 static const std::string NullImportDescriptorSymbolName =
  144   std::string ImportDescriptorSymbolName;
  145   std::string NullThunkSymbolName;
  602     Expected<std::string> Name = E.ExtName.empty()
lib/Object/COFFModuleDefinition.cpp
  207       std::string Name;
  315   Error parseName(std::string *Out, uint64_t *Baseaddr) {
lib/Object/ELF.cpp
  431 std::string ELFFile<ELFT>::getDynamicTagAsString(unsigned Arch,
  495 std::string ELFFile<ELFT>::getDynamicTagAsString(uint64_t Type) const {
lib/Object/ELFObjectFile.cpp
  311   std::string Triple;
  384   std::string Err;
lib/Object/Error.cpp
   27   std::string message(int ev) const override;
   35 std::string _object_error_category::message(int EV) const {
lib/Object/IRSymtab.cpp
   89   std::string COFFLinkerOpts;
  169     std::string Name;
  293       std::string FallbackName;
lib/Object/MachOUniversal.cpp
   26   std::string StringMsg = "truncated or malformed fat file (" + Msg.str() + ")";
lib/Object/Minidump.cpp
   25 Expected<std::string> MinidumpFile::getString(size_t Offset) const {
   49   std::string Result;
lib/Object/ModuleSymbolTable.cpp
   77   std::string Err;
lib/Object/Object.cpp
  222    std::string Buf;
  304     std::string Buf;
  316     std::string Buf;
lib/Object/WasmObjectFile.cpp
  688     std::vector<std::pair<std::string, std::string>> *ProducerVec = nullptr;
  688     std::vector<std::pair<std::string, std::string>> *ProducerVec = nullptr;
  721   llvm::SmallSet<std::string, 8> FeaturesSeen;
lib/Object/WindowsResource.cpp
  170 static bool convertUTF16LEToUTF8String(ArrayRef<UTF16> Src, std::string &Out) {
  181 static std::string makeDuplicateResourceError(
  183   std::string Ret;
  190     std::string UTF8;
  199     std::string UTF8;
  216     std::string UTF8;
  228 static std::string makeDuplicateResourceError(
  231   std::string Ret;
  264     std::vector<std::string> &Duplicates) {
  330                                    std::vector<std::string> &Duplicates) {
  368                                    std::vector<std::string> &Duplicates) {
  395                                          std::vector<std::string> &Duplicates) {
  537   std::string NameString;
lib/ObjectYAML/COFFEmitter.cpp
   82         std::string str = utostr(Index);
  155   std::string StringTable;
lib/ObjectYAML/CodeViewYAMLDebugSections.cpp
  260   std::string H = fromHex(Scalar);
lib/ObjectYAML/CodeViewYAMLSymbols.cpp
  271     std::string Str;
lib/ObjectYAML/DWARFEmitter.cpp
  301   std::string Data;
lib/ObjectYAML/ELFYAML.cpp
  954   std::string UnknownFlagsHolder;
lib/ObjectYAML/WasmEmitter.cpp
   72   std::string OutString;
  466     std::string OutString;
  560     std::string OutString;
  612     std::string OutString;
lib/Option/Arg.cpp
   68 std::string Arg::getAsString(const ArgList &Args) const {
lib/Option/ArgList.cpp
   92 std::vector<std::string> ArgList::getAllArgValues(OptSpecifier Id) const {
lib/Option/OptTable.cpp
  208 std::vector<std::string>
  219     std::vector<std::string> Result;
  228 std::vector<std::string>
  230   std::vector<std::string> Ret;
  239       std::string S = std::string(In.Prefixes[I]) + std::string(In.Name) + "\t";
  249 unsigned OptTable::findNearest(StringRef Option, std::string &NearestString,
  286     std::string NormalizedName = Option;
  299       std::string Candidate = (CandidatePrefix + CandidateName).str();
  435 static std::string getOptionHelpName(const OptTable &Opts, OptSpecifier Id) {
  437   std::string Name = O.getPrefixedName();
  482   std::string Name;
  502     const std::string &Option = OptionHelp[i].Name;
  547   std::map<std::string, std::vector<OptionInfo>> GroupedOptionHelp;
  571       const std::string &OptName = getOptionHelpName(*this, Id);
lib/Passes/PassBuilder.cpp
  551                                     std::string ProfileFile,
  552                                     std::string ProfileRemappingFile) {
  620                                          bool IsCS, std::string ProfileFile,
  621                                          std::string ProfileRemappingFile) {
lib/Passes/PassPlugin.cpp
   16 Expected<PassPlugin> PassPlugin::Load(const std::string &Filename) {
   17   std::string Error;
lib/Passes/StandardInstrumentations.cpp
   34 Optional<std::pair<const Module *, std::string>> unwrapModule(Any IR) {
   64     std::string LoopName;
  130     std::string Extra = formatv(" (scc: {0})", C->getName());
  153   std::string Extra;
  208   std::string Extra;
lib/ProfileData/Coverage/CoverageMapping.cpp
  793 static std::string getCoverageMapErrString(coveragemap_error Err) {
  818   std::string message(int IE) const override {
  825 std::string CoverageMapError::message() const {
lib/ProfileData/Coverage/CoverageMappingReader.cpp
  757       std::string ObjArch = ObjForArch.getArchFlagName();
lib/ProfileData/GCOV.cpp
  645 static std::string mangleCoveragePath(StringRef Filename, bool PreservePaths) {
  678 std::string FileInfo::getCoveragePath(StringRef Filename,
  686   std::string CoveragePath;
  728     std::string CoveragePath = getCoveragePath(Filename, MainFilename);
  932     const std::string &Filename = FC.first;
lib/ProfileData/InstrProf.cpp
   76 static std::string getInstrProfErrString(instrprof_error Err) {
  128   std::string message(int IE) const override {
  165 std::string getInstrProfSectionName(InstrProfSectKind IPSK,
  168   std::string SectName;
  209 std::string InstrProfError::message() const {
  215 std::string getPGOFuncName(StringRef RawFuncName,
  253 std::string getPGOFuncName(const Function &F, bool InLTO, uint64_t Version) {
  287 std::string getPGOFuncNameVarName(StringRef FuncName,
  289   std::string VarName = getInstrProfNameVarPrefix();
  298   while (found != std::string::npos) {
  342     const std::string &PGOFuncName = getPGOFuncName(F, InLTO);
  351       if (pos != std::string::npos) {
  352         const std::string &OtherFuncName = PGOFuncName.substr(0, pos);
  378 Error collectPGOFuncNameStrings(ArrayRef<std::string> NameStrs,
  379                                 bool doCompression, std::string &Result) {
  383   std::string UncompressedNameStrings =
  427                                 std::string &Result, bool doCompression) {
  428   std::vector<std::string> NameStrs;
 1120     if (Pos != std::string::npos) {
 1167 Error OverlapStats::accumulateCounts(const std::string &BaseFilename,
 1168                                      const std::string &TestFilename,
lib/ProfileData/InstrProfReader.cpp
  100   std::string RemappingPathStr = RemappingPath.str();
lib/ProfileData/InstrProfWriter.cpp
   73       std::string &Data = SOStream.str(); // with flush
  384   std::string Data;
lib/ProfileData/SampleProf.cpp
   44   std::string message(int IE) const override {
  222   std::string OutputString;
lib/ProfileData/SampleProfReader.cpp
 1266 SampleProfileReader::create(const std::string Filename, LLVMContext &C,
 1267                             const std::string RemapFilename) {
 1285 SampleProfileReaderItaniumRemapper::create(const std::string Filename,
 1334                             const std::string RemapFilename) {
 1353       std::string Msg = "Could not create remapper: " + EC.message();
lib/ProfileData/SampleProfWriter.cpp
   98   std::string &UncompressedStrings =
  135   std::string LocalBuf;
lib/Remarks/BitstreamRemarkSerializer.cpp
  100   std::string Buf;
lib/Remarks/Remark.cpp
   21 std::string Remark::getArgsAsMsg() const {
   22   std::string Str;
lib/Remarks/RemarkParser.cpp
  113   Optional<std::string> Err;
lib/Remarks/YAMLRemarkParser.cpp
   27   std::string &Message = *static_cast<std::string *>(Ctx);
   53 static SourceMgr setupSM(std::string &LastErrorMessage) {
lib/Remarks/YAMLRemarkParser.h
   46   std::string Message;
   55   std::string LastErrorMessage;
lib/Support/AMDGPUMetadata.cpp
  209 std::error_code fromString(std::string String, Metadata &HSAMetadata) {
  215 std::error_code toString(Metadata HSAMetadata, std::string &String) {
lib/Support/APInt.cpp
 2258 std::string APInt::toString(unsigned Radix = 10, bool Signed = true) const {
lib/Support/ARMAttributeParser.cpp
  365   std::string Description;
  386   std::string Description;
lib/Support/CachePruning.cpp
   33   std::string Path;
lib/Support/Chrono.cpp
   61   std::string Format;
lib/Support/CodeGenCoverage.cpp
   92     std::string Pid =
  101     std::string CoverageFilename = (CoveragePrefix + Pid).str();
lib/Support/CommandLine.cpp
  136   std::string ProgramName;
  564                                    std::string &NearestString) {
 1053   std::string UTF8Buf;
 1202   llvm::Optional<std::string> envValue = sys::Process::GetEnv(StringRef(envVar));
 1231     if (llvm::Optional<std::string> EnvValue =
 1366     std::string NearestHandlerString;
 1977                                           const OptionValue<std::string> &D,
 2390     std::string CPU = sys::getHostCPUName();
lib/Support/ConvertUTFWrapper.cpp
   86 bool convertUTF16ToUTF8String(ArrayRef<char> SrcBytes, std::string &Out) {
  135 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out)
  213 bool convertWideToUTF8(const std::wstring &Source, std::string &Result) {
lib/Support/Debug.cpp
   45 static ManagedStatic<std::vector<std::string>> CurrentDebugType;
  101   void operator=(const std::string &Val) const {
  116 static cl::opt<DebugOnlyOpt, true, cl::parser<std::string> >
lib/Support/DebugCounter.cpp
   13 class DebugCounterList : public cl::list<std::string, DebugCounter> {
   15   using Base = cl::list<std::string, DebugCounter>;
   68 void DebugCounter::push_back(const std::string &Val) {
lib/Support/DynamicLibrary.cpp
   35   static void *DLOpen(const char *Filename, std::string *Err);
  149                                                    std::string *Err) {
  164                                                    std::string *Err) {
lib/Support/Errno.cpp
   31 std::string StrError() {
   36 std::string StrError(int errnum) {
   37   std::string str;
lib/Support/Error.cpp
   32     std::string message(int condition) const override {
  141   std::string ErrMsg;
  158   std::string Tmp = toString(unwrap(Err));
lib/Support/ErrorHandling.cpp
   85 void llvm::report_fatal_error(const std::string &Reason, bool GenCrashDiag) {
  217 static void bindingsErrorHandler(void *user_data, const std::string& reason,
lib/Support/FileCheck.cpp
   54 Expected<std::string> FileCheckNumericSubstitution::getResult() const {
   61 Expected<std::string> FileCheckStringSubstitution::getResult() const {
  594   std::string Error;
  608   std::string Backref = std::string("\\") + std::string(1, '0' + BackrefNum);
  635   std::string TmpStr;
  647       Expected<std::string> Value = Substitution->getResult();
  728       Expected<std::string> MatchedValue = Substitution->getResult();
  956 std::string Check::FileCheckType::getDescription(StringRef Prefix) const {
 1146     std::string Prefix = "-implicit-check-not='";
 1147     std::string Suffix = "'";
 1311   std::string Message = formatv("{0}: {1} string found in input",
 1374   std::string Message = formatv("{0}: {1} string not found in input",
 1769     std::vector<std::string> &CmdlineDefines, SourceMgr &SM) {
 1781   std::string CmdlineDefsDiag;
 1784     std::string DefPrefix = ("Global define #" + Twine(++I) + ": ").str();
 1796       std::string SubstitutionStr = CmdlineDef;
lib/Support/FileCheckImpl.h
  205   virtual Expected<std::string> getResult() const = 0;
  216   Expected<std::string> getResult() const override;
  235   Expected<std::string> getResult() const override;
  290   Error defineCmdlineVariables(std::vector<std::string> &CmdlineDefines,
  373   std::string RegExStr;
lib/Support/FileCollector.cpp
   35 FileCollector::FileCollector(std::string Root, std::string OverlayRoot)
   35 FileCollector::FileCollector(std::string Root, std::string OverlayRoot)
   44   std::string Directory = sys::path::parent_path(SrcPath).str();
   66   std::string FileStr = file.str();
  249   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override {
lib/Support/FileUtilities.cpp
   89                            std::string *ErrorMsg) {
  182                                  std::string *Error) {
lib/Support/GraphWriter.cpp
   35 std::string llvm::DOT::EscapeString(const std::string &Label) {
   35 std::string llvm::DOT::EscapeString(const std::string &Label) {
   36   std::string Str(Label);
   79 std::string llvm::createGraphFilename(const Twine &Name, int &FD) {
   95                             std::string &ErrMsg) {
  113   std::string LogBuffer;
  115   bool TryFindProgram(StringRef Names, std::string &ProgramPath) {
  120       if (ErrorOr<std::string> P = sys::findProgramByName(Name)) {
  150   std::string Filename = FilenameRef;
  151   std::string ErrMsg;
  152   std::string ViewerPath;
  223   std::string GeneratorPath;
  227     std::string OutputFilename =
  249     std::string StartArg;
lib/Support/Host.cpp
 1530 std::string sys::getProcessTriple() {
 1531   std::string TargetTripleString = updateTripleOSVersion(LLVM_HOST_TRIPLE);
lib/Support/JSON.cpp
  115     create<std::string>(M.as<std::string>());
  115     create<std::string>(M.as<std::string>());
  139     create<std::string>(std::move(M.as<std::string>()));
  139     create<std::string>(std::move(M.as<std::string>()));
  164     as<std::string>().~basic_string();
  238   bool parseString(std::string &Out);
  239   bool parseUnicode(std::string &Out);
  273     std::string S;
  315       std::string K;
  363 bool Parser::parseString(std::string &Out) {
  407 static void encodeUtf8(uint32_t Rune, std::string &Out) {
  440 bool Parser::parseUnicode(std::string &Out) {
  546 std::string fixUTF8(llvm::StringRef S) {
  554   std::string Res(4 * Codepoints.size(), 0); // 4 bytes per codepoint suffice
lib/Support/LockFileManager.cpp
   50 Optional<std::pair<std::string, int> >
  160     std::string S("failed to obtain absolute path for ");
  179     std::string S("failed to create unique file ");
  205       std::string S("failed to write to ");
  227       std::string S("failed to create link ");
  251       std::string S("failed to remove lockfile ");
  269 std::string LockFileManager::getErrorMessage() const {
  271     std::string Str(ErrorDiagMsg);
  272     std::string ErrCodeMsg = ErrorCode.message();
lib/Support/Path.cpp
  556 std::string convert_to_slash(StringRef path, Style style) {
  560   std::string s = path.str();
lib/Support/PluginLoader.cpp
   22 static ManagedStatic<std::vector<std::string> > Plugins;
   25 void PluginLoader::operator=(const std::string &Filename) {
   27   std::string Error;
   41 std::string &PluginLoader::getPlugin(unsigned num) {
lib/Support/Process.cpp
   30 Optional<std::string> Process::FindInEnvPath(StringRef EnvName,
   35 Optional<std::string> Process::FindInEnvPath(StringRef EnvName,
   37                                              ArrayRef<std::string> IgnoreList) {
   39   Optional<std::string> FoundPath;
   40   Optional<std::string> OptPath = Process::GetEnv(EnvName);
lib/Support/Program.cpp
   28                     unsigned MemoryLimit, std::string *ErrMsg);
   34                         std::string *ErrMsg, bool *ExecutionFailed) {
   54                                unsigned MemoryLimit, std::string *ErrMsg,
lib/Support/Regex.cpp
   59                         std::string &Error) {
   68 bool Regex::isValid(std::string &Error) const {
   83                   std::string *Error) const {
  132 std::string Regex::sub(StringRef Repl, StringRef String,
  133                        std::string *Error) const {
  142   std::string Res(String.begin(), Matches[0].begin());
  215 std::string Regex::escape(StringRef String) {
  216   std::string RegexStr;
lib/Support/ScaledNumber.cpp
  137 static void appendDigit(std::string &Str, unsigned D) {
  142 static void appendNumber(std::string &Str, uint64_t N) {
  162 static std::string toStringAPFloat(uint64_t D, int E, unsigned Precision) {
  191 static std::string stripTrailingZeros(const std::string &Float) {
  191 static std::string stripTrailingZeros(const std::string &Float) {
  201 std::string ScaledNumberBase::toString(uint64_t D, int16_t E, int Width,
  238   std::string Str;
  297   for (std::string::reverse_iterator I(Str.begin() + Truncate), E = Str.rend();
lib/Support/ScopedPrinter.cpp
   15 const std::string to_hexString(uint64_t Value, bool UpperCase) {
   16   std::string number;
lib/Support/Signals.cpp
  112   if (Argv0.find("llvm-symbolizer") != std::string::npos)
  119   ErrorOr<std::string> LLVMSymbolizerPathOrErr = std::error_code();
  129   const std::string &LLVMSymbolizerPath = *LLVMSymbolizerPathOrErr;
  133   std::string MainExecutableName =
lib/Support/SourceMgr.cpp
   40 unsigned SourceMgr::AddIncludeFile(const std::string &Filename,
   42                                    std::string &IncludedFile) {
  172   std::string LineStr;
  270 static void buildFixItLine(std::string &CaretLine, std::string &FixItLine,
  270 static void buildFixItLine(std::string &CaretLine, std::string &FixItLine,
  426   std::string CaretLine(NumColumns+1, ' ');
  438   std::string FixItInsertionLine;
lib/Support/SpecialCaseList.cpp
   28 bool SpecialCaseList::Matcher::insert(std::string Regexp,
   30                                       std::string &REError) {
   43   for (size_t pos = 0; (pos = Regexp.find('*', pos)) != std::string::npos;
   73 SpecialCaseList::create(const std::vector<std::string> &Paths,
   74                         std::string &Error) {
   82                                                          std::string &Error) {
   90 SpecialCaseList::createOrDie(const std::vector<std::string> &Paths) {
   91   std::string Error;
   97 bool SpecialCaseList::createInternal(const std::vector<std::string> &Paths,
   98                                      std::string &Error) {
  107     std::string ParseError;
  117                                      std::string &Error) {
  126                             std::string &Error) {
  150       std::string REError;
  173     std::string Regexp = SplitRegexp.first;
  179       std::string REError;
  190     std::string REError;
lib/Support/StringRef.cpp
  107 std::string StringRef::lower() const {
  108   std::string Result(size(), char());
  115 std::string StringRef::upper() const {
  116   std::string Result(size(), char());
lib/Support/TarWriter.cpp
   70 static std::string formatPax(StringRef Key, StringRef Val) {
  104   std::string PaxAttr = formatPax("path", Path);
  175   std::string Fullpath = BaseDir + "/" + sys::path::convert_to_slash(Path);
lib/Support/TargetRegistry.cpp
   24 const Target *TargetRegistry::lookupTarget(const std::string &ArchName,
   26                                            std::string &Error) {
   49     std::string TempError;
   62 const Target *TargetRegistry::lookupTarget(const std::string &TT,
   63                                            std::string &Error) {
lib/Support/TimeProfiler.cpp
   32 typedef std::pair<std::string, CountAndDurationType>
   38   std::string Name;
   39   std::string Detail;
   66   void begin(std::string Name, llvm::function_ref<std::string()> Detail) {
   66   void begin(std::string Name, llvm::function_ref<std::string()> Detail) {
  212                             llvm::function_ref<std::string()> Detail) {
lib/Support/Timer.cpp
   36 static ManagedStatic<std::string> LibSupportInfoOutputFilename;
   37 static std::string &getLibSupportInfoOutputFilename() {
   52   static cl::opt<std::string, true>
   59   const std::string &OutputFilename = getLibSupportInfoOutputFilename();
lib/Support/TrigramIndex.cpp
   32 void TrigramIndex::insert(std::string Regex) {
lib/Support/Triple.cpp
  794 std::string Triple::normalize(StringRef Str) {
  939   std::string NormalizedEnvironment;
  981   std::string Normalized;
 1586 std::string Triple::merge(const Triple &Other) const {
lib/Support/Twine.cpp
   17 std::string Twine::str() const {
   44       const std::string *str = LHS.stdString;
lib/Support/Unix/DynamicLibrary.inc
   27 void *DynamicLibrary::HandleSet::DLOpen(const char *File, std::string *Err) {
lib/Support/Unix/Host.inc
   27 static std::string getOSVersion() {
   36 static std::string updateTripleOSVersion(std::string TargetTripleString) {
   36 static std::string updateTripleOSVersion(std::string TargetTripleString) {
   38   std::string::size_type DarwinDashIdx = TargetTripleString.find("-darwin");
   39   if (DarwinDashIdx != std::string::npos) {
   44   std::string::size_type MacOSDashIdx = TargetTripleString.find("-macos");
   45   if (MacOSDashIdx != std::string::npos) {
   59         std::string NewOSName = Triple::getOSTypeName(Triple::AIX);
   72 std::string sys::getDefaultTargetTriple() {
   73   std::string TargetTripleString =
lib/Support/Unix/Path.inc
  174 std::string getMainExecutable(const char *argv0, void *MainAddr) {
  226       std::string ret = std::string(real_path);
  607   std::string User = Expr.str();
lib/Support/Unix/Process.inc
  166 Optional<std::string> Process::GetEnv(StringRef Name) {
  167   std::string NameStr = Name.str();
lib/Support/Unix/Program.inc
   68 ErrorOr<std::string> sys::findProgramByName(StringRef Name,
   96 static bool RedirectIO(Optional<StringRef> Path, int FD, std::string* ErrMsg) {
   99   std::string File;
  125 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
  125 static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg,
  179                     unsigned MemoryLimit, std::string *ErrMsg) {
  209     std::string RedirectsStorage[3];
  213       std::string *RedirectsStr[3] = {nullptr, nullptr, nullptr};
  307       std::string PathStr = Program;
  336                       bool WaitUntilTerminates, std::string *ErrMsg) {
lib/Support/Unix/Signals.inc
  103   FileToRemoveList(const std::string &str) : Filename(strdup(str.c_str())) {}
  116                      const std::string &Filename) {
  129                     const std::string &Filename) {
  408                                    std::string* ErrMsg) {
lib/Support/Unix/Unix.h
   64   std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
   64   std::string* ErrMsg, const std::string& prefix, int errnum = -1) {
   76   std::string ErrMsg;
lib/Support/VersionTuple.cpp
   18 std::string VersionTuple::getAsString() const {
   19   std::string Result;
lib/Support/VirtualFileSystem.cpp
  177   std::string RealName;
  190   ErrorOr<std::string> getName() override;
  213 ErrorOr<std::string> RealFile::getName() {
  259   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override;
  307 llvm::ErrorOr<std::string> RealFileSystem::getCurrentWorkingDirectory() const {
  421 llvm::ErrorOr<std::string>
  457   std::string Path;
  534   std::string FileName;
  544   virtual std::string toString(unsigned Indent) const = 0;
  564   std::string toString(unsigned Indent) const override {
  583   std::string toString(unsigned Indent) const override {
  599   std::string RequestedName;
  603                                std::string RequestedName)
  653   std::string toString(unsigned Indent) const override {
  654     std::string Result =
  688 std::string InMemoryFileSystem::toString() const {
  891   std::string RequestedDirName;
  919                                std::string RequestedDirName)
 1006   std::string Dir;
 1046 llvm::ErrorOr<std::string>
 1307     std::string ExternalContentsPath;
 1308     std::string Name;
lib/Support/YAMLParser.cpp
  158   std::string Value;
  690 std::string yaml::escape(StringRef Input, bool EscapePrintable) {
  691   std::string EscapedInput;
  716       std::string HexStr = utohexstr(*i);
  741         std::string HexStr = utohexstr(UnicodeScalarValue.first);
 1808 std::string Node::getVerbatimTag() const {
 1811     std::string Ret;
lib/Support/YAMLTraits.cpp
  121   std::string foundTag = CurrentNode->_node->getVerbatimTag();
  348 void Input::scalarTag(std::string &Tag) {
  726 void Output::scalarTag(std::string &Tag) {
  879 void ScalarTraits<std::string>::output(const std::string &Val, void *,
  885                                          std::string &Val) {
lib/TableGen/JSONBackend.cpp
  133   std::map<std::string, json::Array> instance_lists;
lib/TableGen/Main.cpp
   31 static cl::opt<std::string>
   35 static cl::opt<std::string>
   41 static cl::opt<std::string>
   44 static cl::list<std::string>
   48 static cl::list<std::string>
  106   std::string OutString;
lib/TableGen/Record.cpp
   94 std::string BitsRecTy::getAsString() const {
  121 std::string StringRecTy::getAsString() const {
  130 std::string ListRecTy::getAsString() const {
  146 std::string DagRecTy::getAsString() const {
  202 std::string RecordRecTy::getAsString() const {
  206   std::string Str = "{";
  411 std::string BitsInit::getAsString() const {
  412   std::string Result = "{ ";
  468 std::string IntInit::getAsString() const {
  669 std::string ListInit::getAsString() const {
  670   std::string Result = "[";
  804 std::string UnOpInit::getAsString() const {
  805   std::string Result;
 1020 std::string BinOpInit::getAsString() const {
 1021   std::string Result;
 1150       std::string Val = RHSv->getName();
 1156       std::string Val = RHSs->getValue();
 1158       std::string::size_type found;
 1159       std::string::size_type idx = 0;
 1162         if (found == std::string::npos)
 1247 std::string TernOpInit::getAsString() const {
 1248   std::string Result;
 1325 std::string FoldOpInit::getAsString() const {
 1388 std::string IsAOpInit::getAsString() const {
 1512 std::string VarBitInit::getAsString() const {
 1536 std::string VarListElementInit::getAsString() const {
 1579 std::string DefInit::getAsString() const {
 1696 std::string VarDefInit::getAsString() const {
 1697   std::string Result = Class->getNameInitAsString() + "<";
 1862 std::string CondOpInit::getAsString() const {
 1863   std::string Result = "!cond(";
 1967 std::string DagInit::getAsString() const {
 1968   std::string Result = "(" + Val->getAsString();
 2088         std::string Type;
lib/TableGen/SetTheory.cpp
  192     std::string Format;
  222       std::string Name;
lib/TableGen/StringMatcher.cpp
   52   std::string Indent(IndentCount * 2 + 4, ' ');
lib/TableGen/TGLexer.cpp
   46 TGLexer::TGLexer(SourceMgr &SM, ArrayRef<std::string> Macros) : SrcMgr(SM) {
  372   std::string Filename = CurStrVal;
  373   std::string IncludedFile;
lib/TableGen/TGLexer.h
   82   std::string CurStrVal;  // This is valid for ID, STRVAL, VARNAME, CODEFRAGMENT
   90   typedef std::map<std::string, SMLoc> DependenciesMapTy;
   96   TGLexer(SourceMgr &SrcMgr, ArrayRef<std::string> Macros);
  108   const std::string &getCurStrVal() const {
lib/TableGen/TGParser.cpp
  212     std::string InitType;
  540     std::string Msg("Couldn't find class '" + Lex.getCurStrVal() + "'");
 1794     std::string Val = Lex.getCurStrVal();
 2386   std::string Str = Lex.getCurStrVal();
 2484     std::string Type;
 2962   std::string Name = Lex.getCurStrVal();
lib/TableGen/TGParser.h
   90   std::map<std::string, std::unique_ptr<MultiClass>> MultiClasses;
  117   TGParser(SourceMgr &SrcMgr, ArrayRef<std::string> Macros,
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp
  285   std::string str() const {
  286     std::string S;
lib/Target/AArch64/AArch64AsmPrinter.cpp
  251     std::string SymName = "__hwasan_check_x" + utostr(Reg - AArch64::X0) + "_" +
lib/Target/AArch64/AArch64ISelLowering.cpp
 6064     SDValue Op, std::string &Constraint, std::vector<SDValue> &Ops,
lib/Target/AArch64/AArch64ISelLowering.h
  731   void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
lib/Target/AArch64/AArch64SIMDInstrOpt.cpp
   76   std::map<std::pair<unsigned, std::string>, bool> SIMDInstrTable;
   79   std::unordered_map<std::string, bool> InterlEarlyExit;
  222   std::string Subtarget = SchedModel.getSubtargetInfo()->getCPU();
  291     std::string Subtarget = SchedModel.getSubtargetInfo()->getCPU();
lib/Target/AArch64/AArch64Subtarget.cpp
  168 AArch64Subtarget::AArch64Subtarget(const Triple &TT, const std::string &CPU,
  169                                    const std::string &FS,
lib/Target/AArch64/AArch64Subtarget.h
  242   AArch64Subtarget(const Triple &TT, const std::string &CPU,
  243                    const std::string &FS, const TargetMachine &TM,
lib/Target/AArch64/AArch64TargetMachine.cpp
  202 static std::string computeDataLayout(const Triple &TT,
  310   std::string CPU = !CPUAttr.hasAttribute(Attribute::None)
  313   std::string FS = !FSAttr.hasAttribute(Attribute::None)
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
 2302   std::string lowerCase = Tok.getString().lower();
 2736   std::string LowerID = Tok.getString().lower();
 2837 static void setRequiredFeatureString(FeatureBitset FBS, std::string &Str) {
 2901       std::string Str("IC " + std::string(IC->Name) + " requires ");
 2911       std::string Str("DC " + std::string(DC->Name) + " requires ");
 2921       std::string Str("AT " + std::string(AT->Name) + " requires ");
 2931       std::string Str("TLBI " + std::string(TLBI->Name) + " requires ");
 2941       std::string Str(
 3236     std::string LowerCase = Parser.getTok().getIdentifier().lower();
 4163 static std::string AArch64MnemonicSpellCheck(StringRef S,
 4377     std::string Suggestion = AArch64MnemonicSpellCheck(
 4828     std::string Msg = "instruction requires:";
 5124   std::vector<std::string> ArchFeatures(AArch64Features.begin(), AArch64Features.end());
lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
  778   std::string Ins;
  779   std::string Name;
  857   std::string Str = Ins + Name;
 1315   std::string Suffix(".");
lib/Target/AArch64/Utils/AArch64BaseInfo.cpp
  130   std::string UpperName = Name.upper();
  147 std::string AArch64SysReg::genericRegisterString(uint32_t Bits) {
lib/Target/AArch64/Utils/AArch64BaseInfo.h
  542   std::string genericRegisterString(uint32_t Bits);
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  126     std::string ExpectedTarget;
  163     std::string ISAVersionString;
  556       std::string Comment = "\n";
lib/Target/AMDGPU/AMDGPUAsmPrinter.h
  147   std::vector<std::string> DisasmLines, HexLines;
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
   55   std::string ToHSAMetadataString;
  162 std::string MetadataStreamerV2::getTypeName(Type *Ty, bool Signed) const {
  455   std::string HSAMetadataString;
  504   std::string ToHSAMetadataString;
  603 std::string MetadataStreamerV3::getTypeName(Type *Ty, bool Signed) const {
  921   std::string HSAMetadataString;
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.h
   70   std::string getTypeName(Type *Ty, bool Signed) const;
  138   std::string getTypeName(Type *Ty, bool Signed) const;
lib/Target/AMDGPU/AMDGPULibCalls.cpp
   47 static cl::list<std::string> UseNative("amdgpu-use-native",
  587   std::string Name = Callee->getName();
 1312   std::string const PairName = fInfo.mangle();
lib/Target/AMDGPU/AMDGPULibFunc.cpp
  722 std::string AMDGPUMangledLibFunc::mangle() const { return mangleNameItanium(); }
  852 std::string AMDGPUMangledLibFunc::mangleNameItanium() const {
  935 std::string AMDGPUMangledLibFunc::getName() const {
  943   std::string FuncName = fInfo.mangle();
  958   std::string const FuncName = fInfo.mangle();
lib/Target/AMDGPU/AMDGPULibFunc.h
  330   virtual std::string getName() const = 0;
  342   virtual std::string mangle() const = 0;
  351   std::string Name;
  370   std::string getName() const { return Impl->getName(); }
  386   std::string mangle() const { return Impl->mangle(); }
  414   std::string getName() const override;
  424   std::string mangle() const override;
  427   std::string mangleNameItanium() const;
  429   std::string mangleName(StringRef Name) const;
  444   std::string getName() const override { return Name; }
  453   std::string mangle() const override { return Name; }
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  342       std::string &DisasmLine = DisasmLines.back();
  357       std::string &HexLine = HexLines.back();
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  202       std::string AStreamHolder;
  334       std::string fmtstr = itostr(++UniqID) + ":" + Sizes.str().c_str();
lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp
   91   std::string getFeatureString(const FeatureBitset &Features) const;
  276     std::string NewName = NewF->getName();
  290   std::string NewFeatureStr = getFeatureString(NewFeatures);
  300 std::string
  303   std::string Ret;
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
 1061                            std::string &CollectString);
 3479 static std::string AMDGPUMnemonicSpellCheck(StringRef S,
 3527     std::string Suggestion = AMDGPUMnemonicSpellCheck(
 3584   std::string Target;
 3591   std::string ExpectedTarget;
 4107   std::string ISAVersionStringFromSTI;
 4139   std::string HSAMetadataString;
 4159                                           std::string &CollectString) {
 4200   std::string String;
 6459   std::string Token;
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
  167   std::string S;
  224   std::string HSAMetadataString;
  240   std::string HSAMetadataString;
  422   std::string Blob;
  554   std::string HSAMetadataString;
  577   std::string HSAMetadataString;
lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
  545 void AMDGPUPALMetadata::toString(std::string &String) {
  576       std::string KeyName = Key.toString();
  597 void AMDGPUPALMetadata::toBlob(unsigned Type, std::string &Blob) {
  604 void AMDGPUPALMetadata::toLegacyBlob(std::string &Blob) {
  617 void AMDGPUPALMetadata::toMsgPackBlob(std::string &Blob) {
lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.h
   89   void toString(std::string &S);
  105   void toBlob(unsigned Type, std::string &S);
  129   void toLegacyBlob(std::string &Blob);
  130   void toMsgPackBlob(std::string &Blob);
lib/Target/ARC/ARCSubtarget.cpp
   27 ARCSubtarget::ARCSubtarget(const Triple &TT, const std::string &CPU,
   28                            const std::string &FS, const TargetMachine &TM)
lib/Target/ARC/ARCSubtarget.h
   41   ARCSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
   41   ARCSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
lib/Target/ARM/ARMAsmPrinter.cpp
  604   std::string ArchFS = ARM_MC::ParseARMTriple(TT, CPU);
lib/Target/ARM/ARMConstantPoolValue.h
  213   const std::string S;          // ExtSymbol being loaded.
lib/Target/ARM/ARMISelDAGToDAG.cpp
 4447   std::string SpecialReg = RegString->getString().lower();
 4563   std::string SpecialReg = RegString->getString().lower();
 4597   std::string Reg = Fields.first.str();
lib/Target/ARM/ARMISelLowering.cpp
15565   std::string AsmStr = IA->getAsmString();
15752                                                      std::string &Constraint,
lib/Target/ARM/ARMISelLowering.h
  438     void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
lib/Target/ARM/ARMSubtarget.cpp
   93 ARMSubtarget::ARMSubtarget(const Triple &TT, const std::string &CPU,
   94                            const std::string &FS,
  178   std::string ArchFS = ARM_MC::ParseARMTriple(TargetTriple, CPUString);
lib/Target/ARM/ARMSubtarget.h
  455   std::string CPUString;
  503   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
  503   ARMSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
  797   const std::string & getCPUString() const { return CPUString; }
lib/Target/ARM/ARMTargetMachine.cpp
  131 static std::string computeDataLayout(const Triple &TT, StringRef CPU,
  135   std::string Ret;
  256   std::string CPU = !CPUAttr.hasAttribute(Attribute::None)
  259   std::string FS = !FSAttr.hasAttribute(Attribute::None)
  277   std::string Key = CPU + FS;
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
 3896   std::string lowerCase = Tok.getString().lower();
 3955   std::string lowerCase = Tok.getString().lower();
 4963   std::string SpecReg = Mask.slice(Start, Next).lower();
 5054   std::string LowerOp = Op.lower();
 5055   std::string UpperOp = Op.upper();
10405 static std::string ARMMnemonicSpellCheck(StringRef S, const FeatureBitset &FBS,
10481     std::string Suggestion = ARMMnemonicSpellCheck(
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
   61 static std::string GetAEABIUnwindPersonalityName(unsigned Index) {
  285     std::string StringValue;
lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp
  950   std::string Name = TheReg->Name;
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
   38                                   std::string &Info) {
   70                                  std::string &Info) {
   82                                        std::string &Info) {
   99                                       std::string &Info) {
  136 std::string ARM_MC::ParseARMTriple(const Triple &TT, StringRef CPU) {
  137   std::string ARMArchFeature;
  166   std::string ArchFS = ARM_MC::ParseARMTriple(TT, CPU);
lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.h
   43 std::string ParseARMTriple(const Triple &TT, StringRef CPU);
lib/Target/AVR/AVRISelLowering.cpp
 1903                                                      std::string &Constraint,
lib/Target/AVR/AVRISelLowering.h
  124   void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
lib/Target/AVR/AVRSubtarget.cpp
   30 AVRSubtarget::AVRSubtarget(const Triple &TT, const std::string &CPU,
   31                            const std::string &FS, const AVRTargetMachine &TM)
lib/Target/AVR/AVRSubtarget.h
   38   AVRSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
   38   AVRSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
lib/Target/AVR/AsmParser/AVRAsmParser.cpp
   45   const std::string GENERATE_STUBS = "gs";
  464       std::string GSModName = ModifierName.str() + "_" + GENERATE_STUBS;
lib/Target/AVR/MCTargetDesc/AVRAsmBackend.cpp
   37 void signed_width(unsigned Width, uint64_t Value, std::string Description,
   40     std::string Diagnostic = "out of range " + Description;
   56 void unsigned_width(unsigned Width, uint64_t Value, std::string Description,
   59     std::string Diagnostic = "out of range " + Description;
lib/Target/BPF/BPFAbstractMemberAccess.cpp
   95 const std::string BPFCoreSharedInfo::AmaAttr = "btf_ama";
  133   std::map<std::string, GlobalVariable *> GEPGlobals;
  164                                  std::string &AccessKey, MDNode *&BaseMeta);
  696                                                         std::string &AccessKey,
  699   std::string TypeName;
  842   std::string AccessKey;
lib/Target/BPF/BPFCORE.h
   27   static const std::string AmaAttr;
lib/Target/BPF/BPFISelLowering.cpp
   48   std::string Str;
lib/Target/BPF/BPFSubtarget.cpp
   59 BPFSubtarget::BPFSubtarget(const Triple &TT, const std::string &CPU,
   60                            const std::string &FS, const TargetMachine &TM)
lib/Target/BPF/BPFSubtarget.h
   63   BPFSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
   63   BPFSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
lib/Target/BPF/BPFTargetMachine.cpp
   43 static std::string computeDataLayout(const Triple &TT) {
lib/Target/BPF/BTFDebug.cpp
  262 std::string BTFTypeStruct::getName() { return STy->getName(); }
  345 BTFKindDataSec::BTFKindDataSec(AsmPrinter *AsmPrt, std::string SecName)
  662 std::string BTFDebug::populateFileContent(const DISubprogram *SP) {
  664   std::string FileName;
  675   std::vector<std::string> Content;
  676   std::string Line;
  696   std::string FileName = populateFileContent(SP);
lib/Target/BPF/BTFDebug.h
  130   std::string getName();
  175   std::string Name;
  179   BTFKindDataSec(AsmPrinter *AsmPrt, std::string SecName);
  186   std::string getName() { return Name; }
  200   std::vector<std::string> Table;
  205   std::vector<std::string> &getTable() { return Table; }
  248   StringMap<std::vector<std::string>> FileContent;
  249   std::map<std::string, std::unique_ptr<BTFKindDataSec>> DataSecEntries;
  251   std::map<std::string, uint32_t> PatchImms;
  287   std::string populateFileContent(const DISubprogram *SP);
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
  940   std::string Collapsed = Raw;
  986   std::string Collapsed = RawString;
 1271   std::string errStr;
 1286   std::string r = "r";
 1287   std::string v = "v";
 1288   std::string Colon = ":";
 1381     std::string R1 = r + utostr(RegPairNum + 1);
 1385     std::string R2 = r + utostr(RegPairNum);
 1396     std::string R1 = r + utostr(RegPairNum + 1);
 1400     std::string R2 = r + utostr(RegPairNum);
 1412     std::string R1 = r + utostr(RegPairNum + 1);
 1416     std::string R2 = r + utostr(RegPairNum);
 1429     std::string R1 = v + utostr(RegPairNum + 1);
 1432     std::string R2 = v + utostr(RegPairNum);
 1453       std::string myCharStr;
 1463           std::string myImmStr = utohexstr(static_cast<uint32_t>(Value));
 1469           std::string myImmStr = utohexstr(Value);
 1514         std::string DotConst = ".CONST_";
 1744       std::string R1 = r + utostr(RegPairNum + 1);
 1748       std::string R2 = r + utostr(RegPairNum);
 1770       std::string Name = r + utostr(RegNum) + Colon + utostr(RegNum - 1);
 1775       std::string Name = r + utostr(RegNum + 1) + Colon + utostr(RegNum);
 1787       std::string Name = r + utostr(RegNum) + Colon + utostr(RegNum - 1);
 1792       std::string Name = r + utostr(RegNum + 1) + Colon + utostr(RegNum);
 1804       std::string Name = r + utostr(RegNum) + Colon + utostr(RegNum - 1);
 1809       std::string Name = r + utostr(RegNum + 1) + Colon + utostr(RegNum);
 1824       std::string Name = r + utostr(RegNum) + Colon + utostr(RegNum - 1);
 1829       std::string Name = r + utostr(RegNum + 1) + Colon + utostr(RegNum);
 1847       std::string Name = r + utostr(RegNum) + Colon + utostr(RegNum - 1);
 1852       std::string Name = r + utostr(RegNum + 1) + Colon + utostr(RegNum);
 1888       std::string R1 = r + utostr(RegPairNum + 1);
 1892       std::string R2 = r + utostr(RegPairNum);
lib/Target/Hexagon/HexagonAsmPrinter.cpp
  187     std::string ImmString;
  199     std::string symbolName =   // Yes, leading zeros are kept.
  201     std::string sectionName = sectionPrefix.str() + symbolName;
  229     std::string LitaName = ".CONST_" + SymbolName.str();
lib/Target/Hexagon/HexagonHardwareLoops.cpp
   71 static cl::opt<std::string> PHFn("hexagon-hwloop-phfn", cl::Hidden,
lib/Target/Hexagon/HexagonISelLowering.cpp
 1686     std::string ErrMsg;
lib/Target/Hexagon/HexagonSubtarget.h
   86   std::string CPUString;
  194   const std::string &getCPUString () const { return CPUString; }
lib/Target/Hexagon/HexagonTargetMachine.cpp
  234   std::string CPU = !CPUAttr.hasAttribute(Attribute::None)
  237   std::string FS = !FSAttr.hasAttribute(Attribute::None)
lib/Target/Hexagon/HexagonVectorPrint.cpp
   79 static std::string getStringReg(unsigned R) {
   99   std::string VDescStr = ".long 0x1dffe0" + getStringReg(Reg);
lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp
  459   std::string Text;
lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.cpp
  144     std::string Buffer;
  277 std::string selectHexagonFS(StringRef CPU, StringRef FS) {
  314 static bool isCPUValid(std::string CPU)
  316   std::vector<std::string> table {
  325 std::pair<std::string, std::string> selectCPUAndFS(StringRef CPU,
  325 std::pair<std::string, std::string> selectCPUAndFS(StringRef CPU,
  327   std::pair<std::string, std::string> Result;
  327   std::pair<std::string, std::string> Result;
  387   std::pair<std::string, std::string> Features = selectCPUAndFS(CPU, FS);
  387   std::pair<std::string, std::string> Features = selectCPUAndFS(CPU, FS);
lib/Target/Hexagon/MCTargetDesc/HexagonShuffler.h
  156   std::vector<std::pair<SMLoc, std::string>> AppliedRestrictions;
lib/Target/Lanai/LanaiISelLowering.cpp
  285     SDValue Op, std::string &Constraint, std::vector<SDValue> &Ops,
lib/Target/Lanai/LanaiISelLowering.h
  101   void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
lib/Target/Lanai/LanaiSubtarget.cpp
   26   std::string CPUName = CPU;
lib/Target/Lanai/LanaiTargetMachine.cpp
   39 static std::string computeDataLayout() {
lib/Target/Lanai/MCTargetDesc/LanaiMCTargetDesc.cpp
   55   std::string CPUName = CPU;
lib/Target/MSP430/MSP430Subtarget.cpp
   46   std::string CPUName = CPU;
   58 MSP430Subtarget::MSP430Subtarget(const Triple &TT, const std::string &CPU,
   59                                  const std::string &FS, const TargetMachine &TM)
lib/Target/MSP430/MSP430Subtarget.h
   50   MSP430Subtarget(const Triple &TT, const std::string &CPU,
   51                   const std::string &FS, const TargetMachine &TM);
lib/Target/MSP430/MSP430TargetMachine.cpp
   35 static std::string computeDataLayout(const Triple &TT, StringRef CPU,
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
 1905     std::string ISA = hasMips64r6() ? "MIPS64r6" : "MIPS32r6";
 6597 static std::string MipsMnemonicSpellCheck(StringRef S, const FeatureBitset &FBS,
 6611     std::string Suggestion = MipsMnemonicSpellCheck(Name, FBS);
lib/Target/Mips/Mips16HardFloat.cpp
  186 static std::string swapFPIntParams(FPParamVariant PV, Module *M, bool LE,
  188   std::string MI = ToFP ? "mtc1 ": "mfc1 ";
  189   std::string AsmText;
  263   std::string Name = F.getName();
  264   std::string SectionName = ".mips16.call.fp." + Name;
  265   std::string StubName = "__call_stub_fp_" + Name;
  283   std::string AsmText;
  451   std::string Name = F->getName();
  452   std::string SectionName = ".mips16.fn." + Name;
  453   std::string StubName = "__fn_stub_" + Name;
  454   std::string LocalName = "$$__fn_local_" + Name;
  466   std::string AsmText;
lib/Target/Mips/MipsAsmPrinter.cpp
  799   std::string SectionName = std::string(".mdebug.") + getCurrentABIString();
 1064   std::string x = "__call_stub_fp_" + std::string(Symbol);
lib/Target/Mips/MipsISelLowering.cpp
 4021                                                      std::string &Constraint,
lib/Target/Mips/MipsISelLowering.h
  651                                       std::string &Constraint,
lib/Target/Mips/MipsOs16.cpp
   24 static cl::opt<std::string> Mips32FunctionMask(
lib/Target/Mips/MipsRegisterBankInfo.h
  107     std::string MFName = "";
lib/Target/Mips/MipsSubtarget.cpp
  239   std::string CPUName = MIPS_MC::selectMipsCPU(TM.getTargetTriple(), CPU);
lib/Target/Mips/MipsTargetMachine.cpp
   62 static std::string computeDataLayout(const Triple &TT, StringRef CPU,
   65   std::string Ret;
  162   std::string CPU = !CPUAttr.hasAttribute(Attribute::None)
  165   std::string FS = !FSAttr.hasAttribute(Attribute::None)
lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.cpp
   28   for (const std::string &S : DwarfFiles)
lib/Target/NVPTX/MCTargetDesc/NVPTXTargetStreamer.h
   20   SmallVector<std::string, 4> DwarfFiles;
lib/Target/NVPTX/ManagedStringPool.h
   26   SmallVector<std::string *, 8> Pool;
   32     SmallVectorImpl<std::string *>::iterator Current = Pool.begin();
   39   std::string *getManagedString(const char *S) {
   40     std::string *Str = new std::string(S);
   40     std::string *Str = new std::string(S);
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  207   std::string *SymNamePtr =
  577 std::string
  581   std::string Name;
  981       std::string msg;
 1281 std::string
 1292       std::string name = "u";
 1442           std::string sname = I->getName();
 1676     std::string rcname = getNVPTXRegClassName(RC);
 1677     std::string rcStr = getNVPTXRegClassStr(RC);
 2006       std::string S;
 2020     std::string S;
lib/Target/NVPTX/NVPTXAsmPrinter.h
  201   std::string CurrentFnName;
  260   std::string getPTXFundamentalTypeStr(Type *Ty, bool = true) const;
  303   std::string getVirtualRegisterName(unsigned) const;
lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
   39   std::string cleanUpName(StringRef Name);
   72 std::string NVPTXAssignValidGlobalNames::cleanUpName(StringRef Name) {
   73   std::string ValidName;
lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
  147     std::string Name = GV->getName();
lib/Target/NVPTX/NVPTXISelLowering.cpp
 1258 std::string NVPTXTargetLowering::getPrototype(
 1697     std::string Proto = getPrototype(DL, RetTy, Args, Outs, retAlignment, CS);
 2427   std::string ParamSym;
 2433   std::string *SavedStr =
 2745     SDValue Op, std::string &Constraint, std::vector<SDValue> &Ops,
lib/Target/NVPTX/NVPTXISelLowering.h
  492   std::string getPrototype(const DataLayout &DL, Type *, const ArgListTy &,
  502   void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
lib/Target/NVPTX/NVPTXMachineFunctionInfo.h
   24   SmallVector<std::string, 8> ImageHandleList;
lib/Target/NVPTX/NVPTXRegisterInfo.cpp
   28 std::string getNVPTXRegClassName(TargetRegisterClass const *RC) {
   72 std::string getNVPTXRegClassStr(TargetRegisterClass const *RC) {
lib/Target/NVPTX/NVPTXRegisterInfo.h
   59 std::string getNVPTXRegClassName(const TargetRegisterClass *RC);
   60 std::string getNVPTXRegClassStr(const TargetRegisterClass *RC);
lib/Target/NVPTX/NVPTXReplaceImageHandles.cpp
  155     std::string ParamBaseName = MF.getName();
  159     std::string NewSym;
lib/Target/NVPTX/NVPTXSubtarget.cpp
   48 NVPTXSubtarget::NVPTXSubtarget(const Triple &TT, const std::string &CPU,
   49                                const std::string &FS,
lib/Target/NVPTX/NVPTXSubtarget.h
   33   std::string TargetName;
   54   NVPTXSubtarget(const Triple &TT, const std::string &CPU,
   55                  const std::string &FS, const NVPTXTargetMachine &TM);
   81   std::string getTargetName() const { return TargetName; }
lib/Target/NVPTX/NVPTXTargetMachine.cpp
   94 static std::string computeDataLayout(bool is64Bit, bool UseShortPointers) {
   95   std::string Ret = "e";
lib/Target/NVPTX/NVPTXUtilities.cpp
   33 typedef std::map<std::string, std::vector<unsigned> > key_val_pair_t;
   61     std::string keyname = prop->getString().str();
  105 bool findOneNVVMAnnotation(const GlobalValue *gv, const std::string &prop,
  119 bool findAllNVVMAnnotation(const GlobalValue *gv, const std::string &prop,
  227 std::string getTextureName(const Value &val) {
  232 std::string getSurfaceName(const Value &val) {
  237 std::string getSamplerName(const Value &val) {
lib/Target/NVPTX/NVPTXUtilities.h
   29 bool findOneNVVMAnnotation(const GlobalValue *, const std::string &,
   31 bool findAllNVVMAnnotation(const GlobalValue *, const std::string &,
   43 std::string getTextureName(const Value &);
   44 std::string getSurfaceName(const Value &);
   45 std::string getSamplerName(const Value &);
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
 1131 static std::string PPCMnemonicSpellCheck(StringRef S, const FeatureBitset &FBS,
 1151     std::string Suggestion = PPCMnemonicSpellCheck(
 1561   std::string NewOpcode;
lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
   56     std::string RN(RegName);
lib/Target/PowerPC/PPCISelLowering.cpp
14393                                                      std::string &Constraint,
lib/Target/PowerPC/PPCISelLowering.h
  801                                       std::string &Constraint,
lib/Target/PowerPC/PPCLoopPreIncPrep.cpp
  156 static const std::string PHINodeNameSuffix    = ".phi";
  157 static const std::string CastNodeNameSuffix   = ".cast";
  158 static const std::string GEPNodeIncNameSuffix = ".inc";
  159 static const std::string GEPNodeOffNameSuffix = ".off";
  175 static std::string getInstrName(const Value *I, const std::string Suffix) {
  175 static std::string getInstrName(const Value *I, const std::string Suffix) {
lib/Target/PowerPC/PPCSubtarget.cpp
   54 PPCSubtarget::PPCSubtarget(const Triple &TT, const std::string &CPU,
   55                            const std::string &FS, const PPCTargetMachine &TM)
  124   std::string CPUName = CPU;
lib/Target/PowerPC/PPCSubtarget.h
  159   PPCSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
  159   PPCSubtarget(const Triple &TT, const std::string &CPU, const std::string &FS,
lib/Target/PowerPC/PPCTargetMachine.cpp
  125 static std::string getDataLayoutString(const Triple &T) {
  127   std::string Ret;
  158 static std::string computeFSAdditions(StringRef FS, CodeGenOpt::Level OL,
  160   std::string FullFS = FS;
  316   std::string CPU = !CPUAttr.hasAttribute(Attribute::None)
  319   std::string FS = !FSAttr.hasAttribute(Attribute::None)
lib/Target/RISCV/MCTargetDesc/RISCVMCTargetDesc.cpp
   67   std::string CPUName = CPU;
lib/Target/RISCV/RISCVISelLowering.cpp
 2684     SDValue Op, std::string &Constraint, std::vector<SDValue> &Ops,
lib/Target/RISCV/RISCVISelLowering.h
  103   void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
lib/Target/RISCV/RISCVSubtarget.cpp
   36   std::string CPUName = CPU;
lib/Target/Sparc/SparcISelLowering.cpp
 3224                              std::string &Constraint,
 3303       std::string newConstraint = std::string(tmp);
 3309       std::string newConstraint;
lib/Target/Sparc/SparcISelLowering.h
   81                                       std::string &Constraint,
lib/Target/Sparc/SparcSubtarget.cpp
   53   std::string CPUName = CPU;
   67 SparcSubtarget::SparcSubtarget(const Triple &TT, const std::string &CPU,
   68                                const std::string &FS, const TargetMachine &TM,
lib/Target/Sparc/SparcSubtarget.h
   61   SparcSubtarget(const Triple &TT, const std::string &CPU,
   62                  const std::string &FS, const TargetMachine &TM, bool is64bit);
lib/Target/Sparc/SparcTargetMachine.cpp
   30 static std::string computeDataLayout(const Triple &T, bool is64Bit) {
   32   std::string Ret = T.getArch() == Triple::sparcel ? "e" : "E";
  113   std::string CPU = !CPUAttr.hasAttribute(Attribute::None)
  116   std::string FS = !FSAttr.hasAttribute(Attribute::None)
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp
 1237 static std::string SystemZMnemonicSpellCheck(StringRef S,
 1262     std::string Msg = "instruction requires:";
 1287     std::string Suggestion = SystemZMnemonicSpellCheck(
lib/Target/SystemZ/SystemZHazardRecognizer.cpp
  180     std::string FU(PRD.Name);
  184     if (Pos != std::string::npos)
  208 void SystemZHazardRecognizer::dumpCurrGroup(std::string Msg) const {
lib/Target/SystemZ/SystemZHazardRecognizer.h
  146   std::string CurGroupDbg; // current group as text
  148   void dumpCurrGroup(std::string Msg = "") const;
lib/Target/SystemZ/SystemZISelLowering.cpp
 1152 LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint,
lib/Target/SystemZ/SystemZISelLowering.h
  431                                     std::string &Constraint,
lib/Target/SystemZ/SystemZSubtarget.cpp
   31   std::string CPUName = CPU;
   39 SystemZSubtarget::SystemZSubtarget(const Triple &TT, const std::string &CPU,
   40                                    const std::string &FS,
lib/Target/SystemZ/SystemZSubtarget.h
   82   SystemZSubtarget(const Triple &TT, const std::string &CPU,
   83                    const std::string &FS, const TargetMachine &TM);
lib/Target/SystemZ/SystemZTargetMachine.cpp
   59 static std::string computeDataLayout(const Triple &TT, StringRef CPU,
   62   std::string Ret;
lib/Target/Target.cpp
   69   std::string StringRep = unwrap(TD)->getStringRepresentation();
lib/Target/TargetMachineC.cpp
   68   std::string Error;
  162   std::string StringRep = unwrap(T)->getTargetTriple().str();
  167   std::string StringRep = unwrap(T)->getTargetCPU();
  172   std::string StringRep = unwrap(T)->getTargetFeatureString();
  194   std::string error;
lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
  760       std::string S;
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp
  184 static std::string toString(const APFloat &FP) {
  323 std::string WebAssembly::typeListToString(ArrayRef<wasm::ValType> List) {
  324   std::string S;
  332 std::string WebAssembly::signatureToString(const wasm::WasmSignature *Sig) {
  333   std::string S("(");
lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.h
   61 std::string typeListToString(ArrayRef<wasm::ValType> List);
   62 std::string signatureToString(const wasm::WasmSignature *Sig);
lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
  135     std::string Name = OldF->getName();
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
   69 std::string WebAssemblyAsmPrinter::regToString(const MachineOperand &MO) {
  156       std::string SectionName = (".custom_section." + Name->getString()).str();
  170   llvm::SmallVector<std::pair<std::string, std::string>, 4> Languages;
  170   llvm::SmallVector<std::pair<std::string, std::string>, 4> Languages;
  182   llvm::SmallVector<std::pair<std::string, std::string>, 4> Tools;
  182   llvm::SmallVector<std::pair<std::string, std::string>, 4> Tools;
  229     std::string MDKey = (StringRef("wasm-feature-") + KV.Key).str();
lib/Target/WebAssembly/WebAssemblyAsmPrinter.h
   73   std::string regToString(const MachineOperand &MO);
lib/Target/WebAssembly/WebAssemblyLowerEmscriptenEHSjLj.cpp
  221 static cl::list<std::string>
  250   std::set<std::string> EHWhitelistSet;
  330 static std::string getSignature(FunctionType *FTy) {
  331   std::string Sig;
  458   std::string Sig = getSignature(CalleeFTy);
lib/Target/WebAssembly/WebAssemblySubtarget.cpp
   39                                            const std::string &CPU,
   40                                            const std::string &FS,
lib/Target/WebAssembly/WebAssemblySubtarget.h
   52   std::string CPUString;
   69   WebAssemblySubtarget(const Triple &TT, const std::string &CPU,
   70                        const std::string &FS, const TargetMachine &TM);
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
  139 WebAssemblyTargetMachine::getSubtargetImpl(std::string CPU,
  140                                            std::string FS) const {
  153   std::string CPU = !CPUAttr.hasAttribute(Attribute::None)
  156   std::string FS = !FSAttr.hasAttribute(Attribute::None)
  185     std::string FeatureStr = getFeatureString(Features);
  221   std::string getFeatureString(const FeatureBitset &Features) {
  222     std::string Ret;
  230   void replaceFeatures(Function &F, const std::string &Features) {
  277       std::string MDKey = (StringRef("wasm-feature-") + KV.Key).str();
lib/Target/WebAssembly/WebAssemblyTargetMachine.h
   36   const WebAssemblySubtarget *getSubtargetImpl(std::string CPU,
   37                                                std::string FS) const;
lib/Target/X86/AsmParser/X86AsmParser.cpp
 1283     SmallVector<std::pair<SMLoc, std::string>, 2> Warnings;
 1327           std::string RegName = IsSI ? "ES:(R|E)SI" : "ES:(R|E)DI";
 2358       std::string Prefix = Parser.getTok().getString().lower();
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
   49 std::string X86_MC::ParseX86Triple(const Triple &TT) {
   50   std::string FS;
  292   std::string ArchFS = X86_MC::ParseX86Triple(TT);
  300   std::string CPUName = CPU;
lib/Target/X86/MCTargetDesc/X86MCTargetDesc.h
   55 std::string ParseX86Triple(const Triple &TT);
lib/Target/X86/X86ISelLowering.cpp
45245   const std::string &AsmStr = IA->getAsmString();
45614                                                      std::string &Constraint,
lib/Target/X86/X86ISelLowering.h
  966                                       std::string &Constraint,
lib/Target/X86/X86InsertPrefetch.cpp
   34 static cl::opt<std::string>
   56   X86InsertPrefetch(const std::string &PrefetchHintsFilename);
   62   std::string Filename;
  100 X86InsertPrefetch::X86InsertPrefetch(const std::string &PrefetchHintsFilename)
  164     std::string Msg = "Could not open profile: " + EC.message();
lib/Target/X86/X86MCInstLower.cpp
 1624 static std::string getShuffleComment(const MachineInstr *MI, unsigned SrcOp1Idx,
 1626   std::string Comment;
 2282       std::string Comment;
 2363       std::string Comment;
 2473       std::string Comment;
lib/Target/X86/X86Subtarget.cpp
  230   std::string CPUName = CPU;
  234   std::string FullFS = FS;
lib/Target/X86/X86TargetMachine.cpp
  110 static std::string computeDataLayout(const Triple &TT) {
  112   std::string Ret = "e";
lib/Target/XCore/XCoreAsmPrinter.cpp
   64                        const std::string &directive = ".jmptable");
  187               const std::string &directive) {
lib/Target/XCore/XCoreSubtarget.cpp
   27 XCoreSubtarget::XCoreSubtarget(const Triple &TT, const std::string &CPU,
   28                                const std::string &FS, const TargetMachine &TM)
lib/Target/XCore/XCoreSubtarget.h
   42   XCoreSubtarget(const Triple &TT, const std::string &CPU,
   43                  const std::string &FS, const TargetMachine &TM);
lib/TextAPI/MachO/ArchitectureSet.cpp
   36 ArchitectureSet::operator std::string() const {
   40   std::string result;
lib/TextAPI/MachO/Symbol.cpp
   21   std::string Result;
lib/TextAPI/MachO/Target.cpp
   50 Target::operator std::string() const {
lib/TextAPI/MachO/TextAPIContext.h
   25   std::string ErrorMessage;
   26   std::string Path;
lib/TextAPI/MachO/TextStub.cpp
  249   std::string Umbrella;
  255   std::string Value;
  258   UUIDv4(const Target &TargetID, const std::string &Value)
  828         std::map<std::string, TargetList> valueToTargetList;
lib/TextAPI/MachO/TextStubCommon.h
   24 using UUID = std::pair<llvm::MachO::Target, std::string>;
lib/ToolDrivers/llvm-dlltool/DlltoolDriver.cpp
  149   std::string Path = Args.getLastArgValue(OPT_l);
lib/ToolDrivers/llvm-lib/LibDriver.cpp
   62 static std::string getOutputPath(opt::InputArgList *Args,
   82   Optional<std::string> EnvOpt = sys::Process::GetEnv("LIB");
   94 static std::string findInputFile(StringRef File, ArrayRef<StringRef> Paths) {
  168   Expected<std::string> TripleStr = getBitcodeTargetTriple(MB);
  193                        std::string &LibMachineSource, MemoryBufferRef MB) {
  307   std::string LibMachineSource;
  325     std::string Path = findInputFile(Arg->getValue(), SearchPaths);
  355   std::string OutputPath = getOutputPath(&Args, Members[0]);
  361       Expected<std::string> PathOrErr =
lib/Transforms/IPO/ArgumentPromotion.cpp
  455         std::string NewName = I->getName();
lib/Transforms/IPO/Attributor.cpp
  772   const std::string getAsStr() const override {
  941   const std::string getAsStr() const override;
 1018 const std::string AAReturnedValuesImpl::getAsStr() const {
 1270   const std::string getAsStr() const override {
 1481   const std::string getAsStr() const override {
 1604   const std::string getAsStr() const override {
 1729   const std::string getAsStr() const override {
 1862   const std::string getAsStr() const override {
 1909   const std::string getAsStr() const override {
 2130   const std::string getAsStr() const override {
 2508   const std::string getAsStr() const override {
 2740   const std::string getAsStr() const override {
 2860   const std::string getAsStr() const override {
 2996   const std::string getAsStr() const override {
 3312   const std::string getAsStr() const override {
 3546   const std::string getAsStr() const override {
 3838   const std::string getAsStr() const override {
lib/Transforms/IPO/BlockExtractor.cpp
   32 static cl::opt<std::string> BlockExtractorFile(
   44   SmallVector<std::pair<std::string, SmallVector<std::string, 4>>, 4>
   44   SmallVector<std::pair<std::string, SmallVector<std::string, 4>>, 4>
lib/Transforms/IPO/ForceFunctionAttrs.cpp
   20 static cl::list<std::string>
lib/Transforms/IPO/FunctionImport.cpp
  137 static cl::opt<std::string>
  148 static std::unique_ptr<Module> loadFile(const std::string &FileName,
  875     std::map<std::string, GVSummaryMapTy> &ModuleToSummariesForIndex) {
  896     const std::map<std::string, GVSummaryMapTy> &ModuleToSummariesForIndex) {
 1024       std::string OrigId = GlobalValue::getGlobalIdentifier(
lib/Transforms/IPO/Inliner.cpp
  409 static std::string inlineCostStr(const InlineCost &IC) {
lib/Transforms/IPO/Internalize.cpp
   45 static cl::opt<std::string>
   50 static cl::list<std::string>
lib/Transforms/IPO/LowerTypeTests.cpp
  109 static cl::opt<std::string> ClReadSummary(
  114 static cl::opt<std::string> ClWriteSummary(
 1050   std::string Name = F->getName();
 1354   std::string AsmStr, ConstraintStr;
lib/Transforms/IPO/SampleProfile.cpp
   96 static cl::opt<std::string> SampleProfileFile(
  103 static cl::opt<std::string> SampleProfileRemappingFile(
  381   std::string Filename;
  384   std::string RemappingFilename;
 1683     std::string Msg = "Could not open profile: " + EC.message();
lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp
   56     std::string NewName = (Name + ModuleId).str();
   95         std::string NewName = (Twine(LocalToGlobal.size()) + ModuleId).str();
  202   std::string ModuleId = getUniqueModuleId(&M);
  457     std::string ModuleId = getUniqueModuleId(&M);
lib/Transforms/IPO/WholeProgramDevirt.cpp
  114 static cl::opt<std::string> ClReadSummary(
  119 static cl::opt<std::string> ClWriteSummary(
  525   std::string getGlobalName(VTableSlot Slot, ArrayRef<uint64_t> Args,
  942     std::string NewName = (TheFn->getName() + "$merged").str();
 1222 std::string DevirtModule::getGlobalName(VTableSlot Slot,
 1225   std::string FullName = "__typeid_";
 1857   std::map<std::string, Function*> DevirtTargets;
lib/Transforms/InstCombine/InstructionCombining.cpp
 3305     std::string OrigI;
lib/Transforms/Instrumentation/AddressSanitizer.cpp
  306 static cl::opt<std::string> ClMemoryAccessCallbackPrefix(
  393 static cl::opt<std::string> ClDebugFunc("asan-debug-func", cl::Hidden,
  776                             const std::string &UniqueModuleId);
 1880       std::string ErrorCode = MCSectionMachO::ParseSectionSpecifier(
 1993       std::string Name = G->getName();
 2066     const std::string &UniqueModuleId) {
 2393   std::string ELFUniqueModuleId =
 2434   std::string AsanVersion = std::to_string(GetAsanVersion(M));
 2435   std::string VersionCheckName =
 2475       const std::string TypeStr = AccessIsWrite ? "store" : "load";
 2476       const std::string ExpStr = Exp ? "exp_" : "";
 2477       const std::string EndingStr = Recover ? "_noabort" : "";
 2496         const std::string Suffix = TypeStr + itostr(1ULL << AccessSizeIndex);
 2510   const std::string MemIntrinCallbackPrefix =
 2546   if (F.getName().find(" load]") != std::string::npos) {
 2762     std::string Suffix = itostr(i);
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
   57 static cl::opt<std::string> CHRModuleList(
   61 static cl::opt<std::string> CHRFunctionList(
lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  129 static cl::list<std::string> ClABIListFiles(
  377       const std::vector<std::string> &ABIListFiles = std::vector<std::string>(),
  469 llvm::createDataFlowSanitizerPass(const std::vector<std::string> &ABIListFiles,
  476     const std::vector<std::string> &ABIListFiles, void *(*getArgTLS)(),
  479   std::vector<std::string> AllABIListFiles(std::move(ABIListFiles));
  627   std::string GVName = GV->getName(), Prefix = "dfs$";
  635   std::string Asm = GV->getParent()->getModuleInlineAsm();
  636   std::string SearchStr = ".symver " + GVName + ",";
  638   if (Pos != std::string::npos) {
 1575         std::string CustomFName = "__dfsw_";
 1598             std::string TName = "dfst";
lib/Transforms/Instrumentation/GCOVProfiling.cpp
   51 static cl::opt<std::string>
  122   std::string mangleName(const DICompileUnit *CU, GCovFileType FileType);
  276     std::string Filename;
  360       std::string FunctionNameAndLine;
  375     std::string getEdgeDestinations() {
  376       std::string EdgeDestinations;
  461       std::string Err;
  519 std::string GCOVProfiler::mangleName(const DICompileUnit *CU,
  688     std::string EdgeDestinations;
  995     std::string FilenameGcda = mangleName(CU, GCovFileType::GCDA);
lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
   75 static cl::opt<std::string> ClMemoryAccessCallbackPrefix(
  437     const std::string TypeStr = AccessIsWrite ? "store" : "load";
  438     const std::string EndingStr = Recover ? "_noabort" : "";
  462   const std::string MemIntrinCallbackPrefix =
 1058     std::string Name =
 1464     std::string ThunkName = kHwasanPersonalityThunkName;
lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
  389     std::string SymtabFailure = toString(std::move(E));
lib/Transforms/Instrumentation/InstrOrderFile.cpp
   41 static cl::opt<std::string> ClOrderFileWriteMapping(
   81     std::string SymbolName = INSTR_PROF_ORDERFILE_BUFFER_NAME_STR;
   88     std::string IndexName = INSTR_PROF_ORDERFILE_BUFFER_IDX_NAME_STR;
   92     std::string BitMapName = "bitmap_0";
  111         std::string singleLine = "MD5 " + stream.str() + " " +
lib/Transforms/Instrumentation/InstrProfiling.cpp
   61 cl::opt<std::string> MemOPSizeRange(
  674 static std::string getVarName(InstrProfIncrementInst *Inc, StringRef Prefix) {
  911   std::string UncompressedData;
  916   std::string CompressedNameStr;
lib/Transforms/Instrumentation/Instrumentation.cpp
   77                                         const std::string &ModuleId) {
   81   std::string Name = F.getName();
lib/Transforms/Instrumentation/MemorySanitizer.cpp
  723     std::string name_load =
  725     std::string name_store =
  796     std::string FunctionName = "__msan_maybe_warning_" + itostr(AccessSize);
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  154 static cl::opt<std::string>
  159 static cl::opt<std::string> PGOTestProfileRemappingFile(
  256 extern cl::opt<std::string> ViewBlockFreqFuncName;
  260 static std::string getBranchCondString(Instruction *TI) {
  270   std::string result;
  386   PGOInstrumentationUseLegacyPass(std::string Filename = "", bool IsCS = false)
  397   std::string ProfileFileName;
  415   PGOInstrumentationGenCreateVarLegacyPass(std::string CSInstrName = "")
  427   std::string InstrProfileOutput;
  492   const std::string infoString() const {
  507   const std::string infoString() const {
  537   std::string FuncName;
  561   void dumpInfo(std::string Str = "") const {
  676   std::string OrigName = F.getName().str();
  677   std::string NewFuncName =
  697   std::string NewComdatName =
  706       std::string OrigGAName = GA->getName().str();
  888   const std::string infoString() const {
  919   const std::string infoString() const {
 1005   void dumpInfo(std::string Str = "") const {
 1046   const std::string getFuncName() const { return FuncInfo.FuncName; }
 1169       std::string Msg = IPE.message() + std::string(" ") + F.getName().str() +
 1638 PGOInstrumentationUse::PGOInstrumentationUse(std::string Filename,
 1639                                              std::string RemappingFilename,
 1686 static std::string getSimpleNodeName(const BasicBlock *Node) {
 1690   std::string SimpleNodeName;
 1715     std::string BrCondStr = getBranchCondString(TI);
 1728     std::string BranchProbStr;
 1778   static std::string getGraphName(const PGOUseFunc *G) {
 1782   std::string getNodeLabel(const BasicBlock *Node, const PGOUseFunc *Graph) {
 1783     std::string Result;
lib/Transforms/Instrumentation/PGOMemOPSizeOpt.cpp
   94 extern cl::opt<std::string> MemOPSizeRange;
lib/Transforms/Instrumentation/SanitizerCoverage.cpp
  224   std::string getSectionName(const std::string &Section) const;
  224   std::string getSectionName(const std::string &Section) const;
  225   std::string getSectionStart(const std::string &Section) const;
  225   std::string getSectionStart(const std::string &Section) const;
  226   std::string getSectionEnd(const std::string &Section) const;
  226   std::string getSectionEnd(const std::string &Section) const;
  239   std::string CurModuleUniqueId;
  571   if (F.getName().find(".module_ctor") != std::string::npos)
  907 std::string
  908 ModuleSanitizerCoverage::getSectionName(const std::string &Section) const {
  921 std::string
  922 ModuleSanitizerCoverage::getSectionStart(const std::string &Section) const {
  928 std::string
  929 ModuleSanitizerCoverage::getSectionEnd(const std::string &Section) const {
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
  220     std::string ByteSizeStr = utostr(ByteSize);
  221     std::string BitSizeStr = utostr(BitSize);
lib/Transforms/Scalar/JumpThreading.cpp
 2119     std::string NewName = std::string(Suffix) + ".split-lp";
lib/Transforms/Scalar/LoopDeletion.cpp
  214   std::string LoopName = L.getName();
lib/Transforms/Scalar/LoopPassManager.cpp
   97 PrintLoopPass::PrintLoopPass(raw_ostream &OS, const std::string &Banner)
lib/Transforms/Scalar/LoopUnrollPass.cpp
 1317   std::string LoopName = L.getName();
 1460     std::string LoopName = L.getName();
lib/Transforms/Scalar/NewGVN.cpp
  899 static std::string getBlockName(const BasicBlock *B) {
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
  362 static std::string suffixed_name_or(Value *V, StringRef Suffix,
  967         std::string Name = suffixed_name_or(I, ".base", "base_phi");
  972         std::string Name = suffixed_name_or(I, ".base", "base_select");
  976         std::string Name = suffixed_name_or(I, ".base", "base_ee");
  982         std::string Name = suffixed_name_or(I, ".base", "base_ie");
  988         std::string Name = suffixed_name_or(I, ".base", "base_sv");
lib/Transforms/Scalar/SROA.cpp
  132   std::string Prefix;
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
 1215         std::string ErrMessage;
lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
 2854   std::string LoopName = L.getName();
lib/Transforms/Utils/ASanStackFrameLayout.cpp
  104     std::string Name = Var.Name;
lib/Transforms/Utils/BasicBlockUtils.cpp
  408   std::string Name = BBName.str();
  607     std::string NewName = std::string(Suffix) + ".split-lp";
lib/Transforms/Utils/CodeExtractor.cpp
  248                              std::string Suffix)
  257                              std::string Suffix)
  818   std::string SuffixToUse =
lib/Transforms/Utils/FunctionImportUtils.cpp
   94 std::string FunctionImportGlobalProcessing::getName(const GlobalValue *SGV,
lib/Transforms/Utils/ImportedFunctionsInliningStatistics.cpp
   70 static std::string getStatString(const char *Msg, int32_t Fraction, int32_t All,
   96   std::string Out;
lib/Transforms/Utils/InlineFunction.cpp
  954     std::string Name = CalledFunc->getName();
lib/Transforms/Utils/ModuleUtils.cpp
  171       std::string Err;
  252 std::string llvm::getUniqueModuleId(Module *M) {
lib/Transforms/Utils/NameAnonGlobals.cpp
   28   std::string TheHash;
   34   std::string &get() {
lib/Transforms/Utils/PredicateInfo.cpp
  523   std::string Name = "llvm.ssa.copy." + utostr((uintptr_t) Ty);
lib/Transforms/Utils/SimplifyLibCalls.cpp
  123   std::string nptr = Str.str();
lib/Transforms/Utils/SymbolRewriter.cpp
   90 static cl::list<std::string> RewriteMapFiles("rewrite-map-file",
   96                           const std::string &Source,
   97                           const std::string &Target) {
  115   const std::string Source;
  116   const std::string Target;
  157   const std::string Pattern;
  158   const std::string Transform;
  180     std::string Error;
  182     std::string Name = Regex(Pattern).sub(Transform, C.getName(), &Error);
  250 bool RewriteMapParser::parse(const std::string &MapFile,
  327   std::string Source;
  328   std::string Target;
  329   std::string Transform;
  352       std::string Error;
  364       std::string Undecorated;
  396   std::string Source;
  397   std::string Target;
  398   std::string Transform;
  421       std::string Error;
  459   std::string Source;
  460   std::string Target;
  461   std::string Transform;
  484       std::string Error;
  567   const std::vector<std::string> MapFiles(RewriteMapFiles);
lib/Transforms/Vectorize/LoopVectorize.cpp
  885 static std::string getDebugLocString(const Loop *L) {
  886   std::string Result;
 6987   std::string RegionName = (Twine("pred.") + Instr->getOpcodeName()).str();
 7210   std::string PlanName;
 7511   const std::string DebugLocStr = getDebugLocString(L);
 7653   std::pair<StringRef, std::string> VecDiagMsg, IntDiagMsg;
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2046   std::string getNodeLabel(const TreeEntry *Entry, const BoUpSLP *R) {
 2047     std::string Str;
 2064   static std::string getNodeAttributes(const TreeEntry *Entry,
 3493   std::string Str;
 5535         std::string type_str;
lib/Transforms/Vectorize/VPlan.cpp
  496   const std::string &Name = Block->getName();
  627   std::string IngredientString;
lib/Transforms/Vectorize/VPlan.h
  340   std::string Name;
  385   VPBlockBase(const unsigned char SC, const std::string &N)
  399   const std::string &getName() const { return Name; }
 1085                 const std::string &Name = "", bool IsReplicator = false)
 1093   VPRegionBlock(const std::string &Name = "", bool IsReplicator = false)
 1162   std::string Name;
 1221   const std::string &getName() const { return Name; }
 1272   std::string Indent;
tools/bugpoint/BugDriver.cpp
   52 cl::opt<std::string> OutputFile("output",
   67 std::string llvm::getPassesString(const std::vector<std::string> &Passes) {
   67 std::string llvm::getPassesString(const std::vector<std::string> &Passes) {
   68   std::string Result;
  132 bool BugDriver::addSources(const std::vector<std::string> &Filenames) {
  210   std::string ROF(ReferenceOutputFile);
tools/bugpoint/BugDriver.h
   51   std::string ReferenceOutputFile; // Name of `good' output file
   53   std::vector<std::string> PassesToRun;
   78   bool addSources(const std::vector<std::string> &FileNames);
   79   void addPass(std::string p) { PassesToRun.push_back(std::move(p)); }
   80   void setPassesToRun(const std::vector<std::string> &PTR) {
   83   const std::vector<std::string> &getPassesToRun() const { return PassesToRun; }
   95   Error debugOptimizerCrash(const std::string &ID = "passes");
  114                                const std::string &ReferenceOutput);
  119   Expected<std::string> compileSharedObject(const std::string &BitcodeFile);
  119   Expected<std::string> compileSharedObject(const std::string &BitcodeFile);
  154   Expected<std::string> executeProgram(const Module &Program,
  155                                        std::string OutputFilename,
  156                                        std::string Bitcode,
  157                                        const std::string &SharedObjects,
  163   Expected<std::string>
  165                        const std::string &OutputFile) const;
  170   Error createReferenceFile(Module &M, const std::string &Filename =
  178                              const std::string &BitcodeFile = "",
  179                              const std::string &SharedObj = "",
  183   void EmitProgressBitcode(const Module &M, const std::string &ID,
  219                                       const std::vector<std::string> &Passes,
  220                                       ArrayRef<std::string> ExtraArgs = {});
  231   bool runPasses(Module &Program, const std::vector<std::string> &PassesToRun,
  232                  std::string &OutputFilename, bool DeleteOutput = false,
  234                  ArrayRef<std::string> ExtraArgs = {}) const;
  240   bool runPasses(Module &M, const std::vector<std::string> &PassesToRun) const {
  241     std::string Filename;
  251   Error runManyPasses(const std::vector<std::string> &AllPasses);
  255   bool writeProgramToFile(const std::string &Filename, const Module &M) const;
  256   bool writeProgramToFile(const std::string &Filename, int FD,
  281 std::string getPassesString(const std::vector<std::string> &Passes);
  281 std::string getPassesString(const std::vector<std::string> &Passes);
tools/bugpoint/CrashDebugger.cpp
   69 class ReducePassList : public ListReducer<std::string> {
   78   Expected<TestResult> doTest(std::vector<std::string> &Removed,
   79                               std::vector<std::string> &Kept) override;
   84 ReducePassList::doTest(std::vector<std::string> &Prefix,
   85                        std::vector<std::string> &Suffix) {
   86   std::string PrefixOutput;
  323   std::string FnName;
  327   ReduceCrashingFunctionAttributes(BugDriver &bd, const std::string &FnName,
  489   std::vector<std::pair<std::string, std::string>> BlockInfo;
  489   std::vector<std::pair<std::string, std::string>> BlockInfo;
  503   std::vector<std::string> Passes;
  596   std::vector<std::pair<std::string, std::string>> BlockInfo;
  596   std::vector<std::pair<std::string, std::string>> BlockInfo;
  610   std::vector<std::string> Passes;
  686   std::vector<std::pair<std::string, std::string>> BlockInfo;
  686   std::vector<std::pair<std::string, std::string>> BlockInfo;
  702   std::vector<std::string> Passes;
  811 class ReduceCrashingNamedMD : public ListReducer<std::string> {
  819   Expected<TestResult> doTest(std::vector<std::string> &Prefix,
  820                               std::vector<std::string> &Kept) override {
  828   bool TestNamedMDs(std::vector<std::string> &NamedMDs);
  832 bool ReduceCrashingNamedMD::TestNamedMDs(std::vector<std::string> &NamedMDs) {
  847   for (const std::string &Name : NamedMDs)
 1119   std::vector<std::string> FunctionNames;
 1129     for (std::string &Name : FunctionNames) {
 1227       std::vector<std::string> NamedMDNames;
 1276 Error BugDriver::debugOptimizerCrash(const std::string &ID) {
tools/bugpoint/ExecutionDriver.cpp
   74 cl::opt<std::string> SafeInterpreterPath(
   83 cl::opt<std::string>
   87 cl::list<std::string>
   91 cl::list<std::string> AdditionalLinkerArgs(
   94 cl::opt<std::string> CustomCompileCommand(
   99 cl::opt<std::string> CustomExecCommand(
  108 cl::list<std::string> InputArgv("args", cl::Positional,
  112 cl::opt<std::string>
  118 cl::list<std::string> ToolArgv("tool-args", cl::Positional,
  122 cl::list<std::string> SafeToolArgv("safe-tool-args", cl::Positional,
  126 cl::opt<std::string> CCBinary("gcc", cl::init(""),
  129 cl::list<std::string> CCToolArgv("gcc-tool-args", cl::Positional,
  147   std::string Message;
  150     if (ErrorOr<std::string> ClangPath =
  208   std::string Path = SafeInterpreterPath;
  211   std::vector<std::string> SafeToolArgs = SafeToolArgv;
  294 Expected<std::string> BugDriver::executeProgram(const Module &Program,
  295                                                 std::string OutputFile,
  296                                                 std::string BitcodeFile,
  297                                                 const std::string &SharedObj,
  325   std::string BitcodePath(BitcodeFile);
  342   std::vector<std::string> SharedObjs(AdditionalSOs);
  381 Expected<std::string>
  383                                 const std::string &OutputFile) const {
  387 Expected<std::string>
  388 BugDriver::compileSharedObject(const std::string &BitcodeFile) {
  390   std::string OutputFile;
  398   std::string SharedObjectFile;
  412 Error BugDriver::createReferenceFile(Module &M, const std::string &Filename) {
  416   Expected<std::string> Result = executeProgramSafely(*Program, Filename);
  440                                       const std::string &BitcodeFile,
  441                                       const std::string &SharedObject,
  444   Expected<std::string> Output =
  449   std::string Error;
tools/bugpoint/ExtractFunction.cpp
   40 extern cl::opt<std::string> OutputPrefix;
  111   std::vector<std::string> Passes;
  135   std::vector<std::string> CleanupPasses;
  152   std::vector<std::string> LoopExtractPasses;
  408   std::string uniqueFN = "--extract-blocks-file=";
  411   std::vector<std::string> PI;
tools/bugpoint/FindBugs.cpp
   23 BugDriver::runManyPasses(const std::vector<std::string> &AllPasses) {
   54     std::string Filename;
tools/bugpoint/Miscompilation.cpp
   32 extern cl::opt<std::string> OutputPrefix;
   33 extern cl::list<std::string> InputArgv;
   46 class ReduceMiscompilingPasses : public ListReducer<std::string> {
   52   Expected<TestResult> doTest(std::vector<std::string> &Prefix,
   53                               std::vector<std::string> &Suffix) override;
   61 ReduceMiscompilingPasses::doTest(std::vector<std::string> &Prefix,
   62                                  std::vector<std::string> &Suffix) {
   68   std::string BitcodeResult;
  390       std::vector<std::pair<std::string, FunctionType *>> MisCompFunctions;
  413     std::vector<std::pair<std::string, FunctionType *>> MisCompFunctions;
  585   std::vector<std::pair<std::string, FunctionType *>> MisCompFunctions;
  982   Expected<std::string> SharedObject =
 1008     Expected<std::string> Result =
 1069   Expected<std::string> SharedObject = compileSharedObject(SafeModuleBC.str());
tools/bugpoint/OptimizerDriver.cpp
   38 extern cl::opt<std::string> OutputPrefix;
   46 static cl::opt<std::string>
   63 bool BugDriver::writeProgramToFile(const std::string &Filename, int FD,
   79 bool BugDriver::writeProgramToFile(const std::string &Filename,
   90 void BugDriver::EmitProgressBitcode(const Module &M, const std::string &ID,
   95   std::string Filename = OutputPrefix + "-" + ID + ".bc";
  118 static cl::list<std::string> OptArgs("opt-args", cl::Positional,
  131                           const std::vector<std::string> &Passes,
  132                           std::string &OutputFilename, bool DeleteOutput,
  133                           bool Quiet, ArrayRef<std::string> ExtraArgs) const {
  166   std::string tool = OptCmd;
  168     if (ErrorOr<std::string> Path =
  183   std::string Prog;
  185     if (ErrorOr<std::string> Path = sys::findProgramByName("valgrind"))
  211   std::vector<std::string> pass_args;
  216   for (std::vector<std::string>::const_iterator I = Passes.begin(),
  220   for (std::vector<std::string>::const_iterator I = pass_args.begin(),
  239   std::string ErrMsg;
  268 BugDriver::runPassesOn(Module *M, const std::vector<std::string> &Passes,
  269                        ArrayRef<std::string> ExtraArgs) {
  270   std::string BitcodeResult;
tools/bugpoint/ToolRunner.cpp
   34 cl::opt<std::string>
   38 cl::opt<std::string> RemoteHost("remote-host",
   41 cl::opt<std::string> RemotePort("remote-port",
   44 cl::opt<std::string> RemoteUser("remote-user",
   47 cl::opt<std::string>
   60                                  std::string *ErrMsg = nullptr) {
   91     std::string StdOutFileName = StdOutFile.str();
  145   std::string LLIPath;               // The path to the LLI executable
  146   std::vector<std::string> ToolArgs; // Args to pass to LLI
  148   LLI(const std::string &Path, const std::vector<std::string> *Args)
  148   LLI(const std::string &Path, const std::vector<std::string> *Args)
  157       const std::string &Bitcode, const std::vector<std::string> &Args,
  157       const std::string &Bitcode, const std::vector<std::string> &Args,
  158       const std::string &InputFile, const std::string &OutputFile,
  158       const std::string &InputFile, const std::string &OutputFile,
  159       const std::vector<std::string> &CCArgs,
  160       const std::vector<std::string> &SharedLibs = std::vector<std::string>(),
  165 Expected<int> LLI::ExecuteProgram(const std::string &Bitcode,
  166                                   const std::vector<std::string> &Args,
  167                                   const std::string &InputFile,
  168                                   const std::string &OutputFile,
  169                                   const std::vector<std::string> &CCArgs,
  170                                   const std::vector<std::string> &SharedLibs,
  176   for (std::vector<std::string>::const_iterator i = SharedLibs.begin(),
  204 ErrorOr<std::string> llvm::FindProgramByName(const std::string &ExeName,
  204 ErrorOr<std::string> llvm::FindProgramByName(const std::string &ExeName,
  210   std::string Main = sys::fs::getMainExecutable(Argv0, MainAddr);
  212   if (ErrorOr<std::string> Path = sys::findProgramByName(ExeName, Result))
  221 AbstractInterpreter::createLLI(const char *Argv0, std::string &Message,
  222                                const std::vector<std::string> *ToolArgs) {
  223   if (ErrorOr<std::string> LLIPath =
  241   std::string CompilerCommand;
  242   std::vector<std::string> CompilerArgs;
  245   CustomCompiler(const std::string &CompilerCmd,
  246                  std::vector<std::string> CompArgs)
  249   Error compileProgram(const std::string &Bitcode, unsigned Timeout = 0,
  253       const std::string &Bitcode, const std::vector<std::string> &Args,
  253       const std::string &Bitcode, const std::vector<std::string> &Args,
  254       const std::string &InputFile, const std::string &OutputFile,
  254       const std::string &InputFile, const std::string &OutputFile,
  255       const std::vector<std::string> &CCArgs = std::vector<std::string>(),
  256       const std::vector<std::string> &SharedLibs = std::vector<std::string>(),
  265 Error CustomCompiler::compileProgram(const std::string &Bitcode,
  293   std::string ExecutionCommand;
  294   std::vector<std::string> ExecutorArgs;
  297   CustomExecutor(const std::string &ExecutionCmd,
  298                  std::vector<std::string> ExecArgs)
  302       const std::string &Bitcode, const std::vector<std::string> &Args,
  302       const std::string &Bitcode, const std::vector<std::string> &Args,
  303       const std::string &InputFile, const std::string &OutputFile,
  303       const std::string &InputFile, const std::string &OutputFile,
  304       const std::vector<std::string> &CCArgs,
  305       const std::vector<std::string> &SharedLibs = std::vector<std::string>(),
  311     const std::string &Bitcode, const std::vector<std::string> &Args,
  311     const std::string &Bitcode, const std::vector<std::string> &Args,
  312     const std::string &InputFile, const std::string &OutputFile,
  312     const std::string &InputFile, const std::string &OutputFile,
  313     const std::vector<std::string> &CCArgs,
  314     const std::vector<std::string> &SharedLibs, unsigned Timeout,
  353 static void lexCommand(const char *Argv0, std::string &Message,
  354                        const std::string &CommandLine, std::string &CmdPath,
  354                        const std::string &CommandLine, std::string &CmdPath,
  355                        std::vector<std::string> &Args) {
  357   std::string Token;
  358   std::string Command;
  402     const char *Argv0, std::string &Message,
  403     const std::string &CompileCommandLine) {
  405   std::string CmdPath;
  406   std::vector<std::string> Args;
  418                                           std::string &Message,
  419                                           const std::string &ExecCommandLine) {
  421   std::string CmdPath;
  422   std::vector<std::string> Args;
  433 Expected<CC::FileType> LLC::OutputCode(const std::string &Bitcode,
  434                                        std::string &OutputAsmFile,
  471 Error LLC::compileProgram(const std::string &Bitcode, unsigned Timeout,
  473   std::string OutputAsmFile;
  482 Expected<int> LLC::ExecuteProgram(const std::string &Bitcode,
  483                                   const std::vector<std::string> &Args,
  484                                   const std::string &InputFile,
  485                                   const std::string &OutputFile,
  486                                   const std::vector<std::string> &ArgsForCC,
  487                                   const std::vector<std::string> &SharedLibs,
  490   std::string OutputAsmFile;
  497   std::vector<std::string> CCArgs(ArgsForCC);
  507 LLC *AbstractInterpreter::createLLC(const char *Argv0, std::string &Message,
  508                                     const std::string &CCBinary,
  509                                     const std::vector<std::string> *Args,
  510                                     const std::vector<std::string> *CCArgs,
  512   ErrorOr<std::string> LLCPath =
  533   std::string LLIPath;               // The path to the LLI executable
  534   std::vector<std::string> ToolArgs; // Args to pass to LLI
  536   JIT(const std::string &Path, const std::vector<std::string> *Args)
  536   JIT(const std::string &Path, const std::vector<std::string> *Args)
  545       const std::string &Bitcode, const std::vector<std::string> &Args,
  545       const std::string &Bitcode, const std::vector<std::string> &Args,
  546       const std::string &InputFile, const std::string &OutputFile,
  546       const std::string &InputFile, const std::string &OutputFile,
  547       const std::vector<std::string> &CCArgs = std::vector<std::string>(),
  548       const std::vector<std::string> &SharedLibs = std::vector<std::string>(),
  553 Expected<int> JIT::ExecuteProgram(const std::string &Bitcode,
  554                                   const std::vector<std::string> &Args,
  555                                   const std::string &InputFile,
  556                                   const std::string &OutputFile,
  557                                   const std::vector<std::string> &CCArgs,
  558                                   const std::vector<std::string> &SharedLibs,
  592 AbstractInterpreter::createJIT(const char *Argv0, std::string &Message,
  593                                const std::vector<std::string> *Args) {
  594   if (ErrorOr<std::string> LLIPath =
  622 Expected<int> CC::ExecuteProgram(const std::string &ProgramFile,
  623                                  const std::vector<std::string> &Args,
  625                                  const std::string &InputFile,
  626                                  const std::string &OutputFile,
  627                                  const std::vector<std::string> &ArgsForCC,
  636   for (std::vector<std::string>::const_iterator I = ccArgs.begin(),
  698   std::string Exec;
  744     std::string Error;
  765 Error CC::MakeSharedObject(const std::string &InputFile, FileType fileType,
  766                            std::string &OutputFile,
  767                            const std::vector<std::string> &ArgsForCC) {
  784   for (std::vector<std::string>::const_iterator I = ccArgs.begin(),
  842 CC *CC::create(const char *Argv0, std::string &Message,
  843                const std::string &CCBinary,
  844                const std::vector<std::string> *Args) {
  852   std::string RemoteClientPath;
tools/bugpoint/ToolRunner.h
   38   std::string CCPath;              // The path to the cc executable.
   39   std::string RemoteClientPath;    // The path to the rsh / ssh executable.
   40   std::vector<std::string> ccArgs; // CC-specific arguments.
   42      const std::vector<std::string> *CCArgs)
   51   static CC *create(const char *Argv0, std::string &Message,
   52                     const std::string &CCBinary,
   53                     const std::vector<std::string> *Args);
   63       const std::string &ProgramFile, const std::vector<std::string> &Args,
   63       const std::string &ProgramFile, const std::vector<std::string> &Args,
   64       FileType fileType, const std::string &InputFile,
   65       const std::string &OutputFile,
   66       const std::vector<std::string> &CCArgs = std::vector<std::string>(),
   72   Error MakeSharedObject(const std::string &InputFile, FileType fileType,
   73                          std::string &OutputFile,
   74                          const std::vector<std::string> &ArgsForCC);
   86   static LLC *createLLC(const char *Argv0, std::string &Message,
   87                         const std::string &CCBinary,
   88                         const std::vector<std::string> *Args = nullptr,
   89                         const std::vector<std::string> *CCArgs = nullptr,
   93   createLLI(const char *Argv0, std::string &Message,
   94             const std::vector<std::string> *Args = nullptr);
   97   createJIT(const char *Argv0, std::string &Message,
   98             const std::vector<std::string> *Args = nullptr);
  101   createCustomCompiler(const char *Argv0, std::string &Message,
  102                        const std::string &CompileCommandLine);
  105   createCustomExecutor(const char *Argv0, std::string &Message,
  106                        const std::string &ExecCommandLine);
  113   virtual Error compileProgram(const std::string &Bitcode, unsigned Timeout = 0,
  121   virtual Expected<CC::FileType> OutputCode(const std::string &Bitcode,
  122                                             std::string &OutFile,
  136       const std::string &Bitcode, const std::vector<std::string> &Args,
  136       const std::string &Bitcode, const std::vector<std::string> &Args,
  137       const std::string &InputFile, const std::string &OutputFile,
  137       const std::string &InputFile, const std::string &OutputFile,
  138       const std::vector<std::string> &CCArgs = std::vector<std::string>(),
  139       const std::vector<std::string> &SharedLibs = std::vector<std::string>(),
  147   std::string LLCPath;               // The path to the LLC executable.
  148   std::vector<std::string> ToolArgs; // Extra args to pass to LLC.
  153   LLC(const std::string &llcPath, CC *cc, const std::vector<std::string> *Args,
  153   LLC(const std::string &llcPath, CC *cc, const std::vector<std::string> *Args,
  166   Error compileProgram(const std::string &Bitcode, unsigned Timeout = 0,
  170       const std::string &Bitcode, const std::vector<std::string> &Args,
  170       const std::string &Bitcode, const std::vector<std::string> &Args,
  171       const std::string &InputFile, const std::string &OutputFile,
  171       const std::string &InputFile, const std::string &OutputFile,
  172       const std::vector<std::string> &CCArgs = std::vector<std::string>(),
  173       const std::vector<std::string> &SharedLibs = std::vector<std::string>(),
  176   Expected<CC::FileType> OutputCode(const std::string &Bitcode,
  177                                     std::string &OutFile, unsigned Timeout = 0,
  185 ErrorOr<std::string> FindProgramByName(const std::string &ExeName,
  185 ErrorOr<std::string> FindProgramByName(const std::string &ExeName,
tools/bugpoint/bugpoint.cpp
   44 static cl::list<std::string>
   90 static cl::opt<std::string>
tools/clang/examples/AnnotateFunctions/AnnotateFunctions.cpp
   48                  const std::vector<std::string> &args) override {
tools/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp
   27   std::set<std::string> ParsedTemplates;
   31                          std::set<std::string> ParsedTemplates)
   56       const std::set<std::string> &ParsedTemplates;
   57       Visitor(const std::set<std::string> &ParsedTemplates)
   80   std::set<std::string> ParsedTemplates;
   88                  const std::vector<std::string> &args) override {
tools/clang/examples/clang-interpreter/main.cpp
   44 std::string GetExecutablePath(const char *Argv0, void *MainAddr) {
  122   std::string Path = GetExecutablePath(argv[0], MainAddr);
  130   const std::string TripleStr = llvm::sys::getProcessTriple();
tools/clang/include/clang/ARCMigrate/ARCMT.h
   78 bool getFileRemappings(std::vector<std::pair<std::string,std::string> > &remap,
   78 bool getFileRemappings(std::vector<std::pair<std::string,std::string> > &remap,
   87                         std::vector<std::pair<std::string,std::string> > &remap,
   87                         std::vector<std::pair<std::string,std::string> > &remap,
tools/clang/include/clang/ARCMigrate/ARCMTActions.h
   44   std::string MigrateDir;
   45   std::string PlistOut;
   59   std::string MigrateDir;
tools/clang/include/clang/ARCMigrate/FileRemapper.h
   69   std::string getRemapInfoFile(StringRef outputDir);
tools/clang/include/clang/AST/APValue.h
  378   std::string getAsString(const ASTContext &Ctx, QualType Ty) const;
tools/clang/include/clang/AST/ASTContext.h
 1802   void getObjCEncodingForType(QualType T, std::string &S,
 1808   void getObjCEncodingForPropertyType(QualType T, std::string &S) const;
 1814                                        std::string &S) const;
 1822   std::string getObjCEncodingForFunctionDecl(const FunctionDecl *Decl) const;
 1826   std::string getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl,
 1830   std::string getObjCEncodingForBlock(const BlockExpr *blockExpr) const;
 1836   std::string getObjCEncodingForPropertyDecl(const ObjCPropertyDecl *PD,
 2940   void getObjCEncodingForTypeImpl(QualType t, std::string &S,
 2946   void getObjCEncodingForStructureImpl(RecordDecl *RD, std::string &S,
 2954                                          QualType T, std::string& S,
tools/clang/include/clang/AST/ASTImporter.h
   67     std::string toString() const;
tools/clang/include/clang/AST/CommentBriefParser.h
   47   std::string Parse();
tools/clang/include/clang/AST/DataCollection.h
   39 std::string getMacroStack(SourceLocation Loc, ASTContext &Context);
tools/clang/include/clang/AST/Decl.h
  292   std::string getNameAsString() const { return Name.getAsString(); }
  323   std::string getQualifiedNameAsString() const;
tools/clang/include/clang/AST/DeclBase.h
  654   getAvailability(std::string *Message = nullptr,
  671   bool isDeprecated(std::string *Message = nullptr) const {
  680   bool isUnavailable(std::string *Message = nullptr) const {
tools/clang/include/clang/AST/DeclObjC.h
 2680   std::string getNameAsString() const {
tools/clang/include/clang/AST/DeclarationName.h
  406   std::string getAsString() const;
  792   std::string getAsString() const;
tools/clang/include/clang/AST/Expr.h
 1494   std::string getValueAsString(unsigned Radix) const;
 1946   static std::string ComputeName(IdentKind IK, const Decl *CurrentDecl);
tools/clang/include/clang/AST/ExternalASTSource.h
  187     std::string getModuleName() const;
tools/clang/include/clang/AST/FormatString.h
  322   std::string getRepresentativeTypeName(ASTContext &C) const;
tools/clang/include/clang/AST/JSONNodeDumper.h
   66     std::string LabelStr = !Label.empty() ? Label : "inner";
  155   std::string createPointerRepresentation(const void *Ptr);
  161   std::string createAccessSpecifier(AccessSpecifier AS);
tools/clang/include/clang/AST/LocInfoType.h
   50   void getAsStringInternal(std::string &Str,
tools/clang/include/clang/AST/Mangle.h
  259   std::string getName(const Decl *D);
  263   std::vector<std::string> getAllManglings(const Decl *D);
tools/clang/include/clang/AST/PrettyPrinter.h
  234   std::function<std::string(StringRef)> remapPath;
tools/clang/include/clang/AST/QualTypeNames.h
   75 std::string getFullyQualifiedName(QualType QT, const ASTContext &Ctx,
tools/clang/include/clang/AST/RawCommentList.h
  137   std::string getFormattedText(const SourceManager &SourceMgr,
tools/clang/include/clang/AST/Stmt.h
 2748   std::string generateAsmString(const ASTContext &C) const;
 2906     std::string Str;
 2913     AsmStringPiece(const std::string &S) : MyKind(String), Str(S) {}
 2914     AsmStringPiece(unsigned OpNo, const std::string &S, SourceLocation Begin,
 2922     const std::string &getString() const { return Str; }
 2948   std::string generateAsmString(const ASTContext &C) const;
 3122   std::string generateAsmString(const ASTContext &C) const;
tools/clang/include/clang/AST/TextNodeDumper.h
   43   std::string Prefix;
   71     std::string LabelStr = Label;
tools/clang/include/clang/AST/Type.h
  553   std::string getAsString() const;
  554   std::string getAsString(const PrintingPolicy &Policy) const;
  979   static std::string getAsString(SplitQualType split,
  983   static std::string getAsString(const Type *ty, Qualifiers qs,
  986   std::string getAsString() const;
  987   std::string getAsString(const PrintingPolicy &Policy) const;
 1004   void getAsStringInternal(std::string &Str,
 1007   static void getAsStringInternal(SplitQualType split, std::string &out,
 1013                                   std::string &out,
tools/clang/include/clang/ASTMatchers/ASTMatchers.h
 2536 inline internal::Matcher<NamedDecl> hasName(const std::string &Name) {
 2572   std::string FullNameString = "::" + Node.getQualifiedNameAsString();
 3161   std::string SelectorString = Node.getSelector().getAsString();
tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  187       std::map<std::string, ast_type_traits::DynTypedNode, std::less<>>;
  699   std::string Name;
  707   explicit HasNameMatcher(std::vector<std::string> Names);
  734   const std::vector<std::string> Names;
 1761   std::string ID;
tools/clang/include/clang/ASTMatchers/Dynamic/Diagnostics.h
   85     ArgStream(std::vector<std::string> *Out) : Out(Out) {}
   92     std::vector<std::string> *Out;
  145     std::vector<std::string> Args;
  154       std::vector<std::string> Args;
  164   std::string toString() const;
  170   std::string toStringFull() const;
tools/clang/include/clang/ASTMatchers/Dynamic/Parser.h
  236   bool parseBindID(std::string &BindID);
tools/clang/include/clang/ASTMatchers/Dynamic/Registry.h
   52   std::string TypedText;
   55   std::string MatcherDecl;
tools/clang/include/clang/ASTMatchers/Dynamic/VariantValue.h
   70   std::string asString() const;
  127     virtual std::string getTypeAsString() const = 0;
  209   std::string getTypeAsString() const;
  289   const std::string &getString() const;
  316   std::string getTypeAsString() const;
  336     std::string *String;
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyCommon.h
   89 inline std::string toString(const til::SExpr *E) {
  315   std::string toString() const {
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyTIL.h
  958   mutable llvm::Optional<std::string> SlotName;
tools/clang/include/clang/Analysis/Analyses/ThreadSafetyUtil.h
   78 std::string getSourceLiteralString(const Expr *CE);
tools/clang/include/clang/Analysis/CloneDetection.h
  295                                  const std::string &ParentMacroStack = "");
tools/clang/include/clang/Analysis/PathDiagnostic.h
  371   const std::string str;
  540   std::string CallStackMessage;
  728   std::string CheckerName;
  730   std::string BugType;
  731   std::string VerboseDesc;
  732   std::string ShortDesc;
  733   std::string Category;
  734   std::deque<std::string> OtherDesc;
  805   using meta_iterator = std::deque<std::string>::const_iterator;
tools/clang/include/clang/Analysis/ProgramPoint.h
   53   std::string Desc;
tools/clang/include/clang/Basic/CodeGenOptions.h
  127   std::string CodeModel;
  132   std::string CoverageDataFile;
  135   std::string CoverageNotesFile;
  138   std::string ProfileFilterFiles;
  141   std::string ProfileExcludeFiles;
  147   std::string DebugPass;
  150   std::string DebugCompilationDir;
  154   std::string DwarfDebugFlags;
  158   std::string RecordCommandLine;
  160   std::map<std::string, std::string> DebugPrefixMap;
  160   std::map<std::string, std::string> DebugPrefixMap;
  163   std::string FloatABI;
  166   std::string FPDenormalMode;
  169   std::string LimitFloatPrecision;
  173     std::string Filename;
  190   std::string MainFileName;
  194   std::string SplitDwarfFile;
  197   std::string SplitDwarfOutput;
  203   std::string ThreadModel;
  207   std::string TrapFuncName;
  210   std::vector<std::string> DependentLibraries;
  213   std::vector<std::string> LinkerOptions;
  217   std::string InstrProfileOutput;
  220   std::string SampleProfileFile;
  223   std::string ProfileInstrumentUsePath;
  227   std::string ProfileRemappingFile;
  231   std::string ThinLTOIndexFile;
  236   std::string ThinLinkBitcodeFile;
  239   std::string SaveTempsFilePrefix;
  243   std::string CudaGpuBinaryFileName;
  247   std::string OptRecordFile;
  251   std::string OptRecordPasses;
  254   std::string OptRecordFormat;
  258   std::string SymbolPartition;
  283   std::vector<std::string> RewriteMapFiles;
  296   std::vector<std::string> NoBuiltinFuncs;
  298   std::vector<std::string> Reciprocals;
  303   std::string PreferVectorWidth;
  308   std::vector<std::string> DefaultFunctionAttrs;
  311   std::vector<std::string> PassPlugins;
  327   const std::vector<std::string> &getNoBuiltinFuncs() const {
tools/clang/include/clang/Basic/CommentOptions.h
   24   using BlockCommandNamesTy = std::vector<std::string>;
tools/clang/include/clang/Basic/Diagnostic.h
   78   std::string CodeToInsert;
  471   std::string DelayedDiagArg1;
  474   std::string DelayedDiagArg2;
  481   std::string FlagValue;
  934   std::string DiagArgumentsStr[MaxArguments];
 1347   const std::string &getArgStdStr(unsigned Idx) const {
 1442   std::string Message;
tools/clang/include/clang/Basic/DiagnosticIDs.h
  288   static std::vector<std::string> getDiagnosticFlags();
tools/clang/include/clang/Basic/DiagnosticOptions.h
   92   std::string DiagnosticLogFile;
   95   std::string DiagnosticSerializationFile;
   99   std::vector<std::string> Warnings;
  103   std::vector<std::string> Remarks;
  107   std::vector<std::string> VerifyPrefixes;
tools/clang/include/clang/Basic/FileManager.h
   82   std::string RealPathName;   // Real path to the file; could be empty.
tools/clang/include/clang/Basic/FileSystemOptions.h
   26   std::string WorkingDir;
tools/clang/include/clang/Basic/FixedPoint.h
  165   std::string toString() const {
tools/clang/include/clang/Basic/IdentifierTable.h
  788   std::string getAsString() const;
  859   static std::string getPropertyNameFromSetterSelector(Selector Sel);
tools/clang/include/clang/Basic/JsonSupport.h
   27 inline std::string JsonFormat(StringRef RawSR, bool AddQuotes) {
   32   std::string Str = RawSR.trim().str();
   38     if (Pos == std::string::npos)
   57     if (Pos == std::string::npos)
tools/clang/include/clang/Basic/LangOptions.h
  204   std::vector<std::string> SanitizerBlacklistFiles;
  210   std::vector<std::string> XRayAlwaysInstrumentFiles;
  216   std::vector<std::string> XRayNeverInstrumentFiles;
  221   std::vector<std::string> XRayAttrListFiles;
  227   std::string ObjCConstantStringClass;
  233   std::string OverflowHandler;
  236   std::string ModuleName;
  243   std::string CurrentModule;
  249   std::vector<std::string> ModuleFeatures;
  255   std::vector<std::string> NoBuiltinFuncs;
  263   std::string OMPHostIRFile;
tools/clang/include/clang/Basic/Module.h
   51 using ModuleId = SmallVector<std::pair<std::string, SourceLocation>, 2>;
   67   std::string Name;
  101   std::string PresumedModuleMapFile;
  110   std::string UmbrellaAsWritten;
  114   std::string ExportAsModule;
  137   std::vector<std::string> TopHeaderNames;
  158     std::string NameAsWritten;
  167     std::string NameAsWritten;
  181     std::string FileName;
  198   using Requirement = std::pair<std::string, bool>;
  327     LinkLibrary(const std::string &Library, bool IsFramework)
  334     std::string Library;
  350   std::vector<std::string> ConfigMacros;
  358     std::string Message;
  371     std::string Message;
  447   std::string getFullModuleName(bool AllowStringLiterals = false) const;
tools/clang/include/clang/Basic/ObjCRuntime.h
  455   std::string getAsString() const;
tools/clang/include/clang/Basic/PartialDiagnostic.h
   71     std::string DiagArgumentsStr[MaxArguments];
tools/clang/include/clang/Basic/SanitizerBlacklist.h
   31   SanitizerBlacklist(const std::vector<std::string> &BlacklistPaths,
tools/clang/include/clang/Basic/SanitizerSpecialCaseList.h
   27   create(const std::vector<std::string> &Paths, std::string &Error);
   27   create(const std::vector<std::string> &Paths, std::string &Error);
   30   createOrDie(const std::vector<std::string> &Paths);
tools/clang/include/clang/Basic/SourceLocation.h
  179   std::string printToString(const SourceManager &SM) const;
  223   std::string printToString(const SourceManager &SM) const;
tools/clang/include/clang/Basic/SourceManager.h
  582 using ModuleBuildStack = ArrayRef<std::pair<std::string, FullSourceLoc>>;
  756   SmallVector<std::pair<std::string, FullSourceLoc>, 2> StoredModuleBuildStack;
tools/clang/include/clang/Basic/TargetInfo.h
  848     std::string ConstraintStr;  // constraint: "=rm"
  849     std::string Name;           // Operand name: [foo] with no []'s.
  858     const std::string &getConstraintStr() const { return ConstraintStr; }
  859     const std::string &getName() const { return Name; }
  960                              std::string &/*SuggestedModifier*/) const {
  974   virtual std::string convertConstraint(const char *&Constraint) const {
 1033   virtual std::string isValidSectionSpecifier(StringRef SR) const {
 1054                               const std::vector<std::string> &FeatureVec) const;
 1067   virtual bool setCPU(const std::string &Name) {
 1082   virtual bool setABI(const std::string &Name) {
 1117   virtual bool handleTargetFeatures(std::vector<std::string> &Features,
tools/clang/include/clang/Basic/TargetOptions.h
   29   std::string Triple;
   33   std::string HostTriple;
   36   std::string CPU;
   39   std::string FPMath;
   42   std::string ABI;
   48   std::string LinkerVersion;
   51   std::vector<std::string> FeaturesAsWritten;
   55   std::vector<std::string> Features;
   62   std::vector<std::string> OpenCLExtensionsAsWritten;
   75   std::string CodeModel;
tools/clang/include/clang/Basic/Version.h
   25   std::string getClangRepositoryPath();
   30   std::string getLLVMRepositoryPath();
   34   std::string getClangRevision();
   41   std::string getLLVMRevision();
   45   std::string getClangFullRepositoryVersion();
   50   std::string getClangFullVersion();
   53   std::string getClangToolFullVersion(llvm::StringRef ToolName);
   58   std::string getClangFullCPPVersion();
tools/clang/include/clang/Basic/XRayLists.h
   32   XRayFunctionFilter(ArrayRef<std::string> AlwaysInstrumentPaths,
   33                      ArrayRef<std::string> NeverInstrumentPaths,
   34                      ArrayRef<std::string> AttrListPaths, SourceManager &SM);
tools/clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h
   26                               const std::string &MainFileName,
   27                               const std::string &OutputFileName,
tools/clang/include/clang/CrossTU/CrossTranslationUnit.h
   57   IndexError(index_error_code C, std::string FileName, int LineNo = 0)
   59   IndexError(index_error_code C, std::string FileName, std::string TripleToName,
   59   IndexError(index_error_code C, std::string FileName, std::string TripleToName,
   60              std::string TripleFromName)
   68   std::string getFileName() const { return FileName; }
   69   std::string getTripleToName() const { return TripleToName; }
   70   std::string getTripleFromName() const { return TripleFromName; }
   74   std::string FileName;
   76   std::string TripleToName;
   77   std::string TripleFromName;
   88 llvm::Expected<llvm::StringMap<std::string>>
   91 std::string createCrossTUIndexString(const llvm::StringMap<std::string> &Index);
   91 std::string createCrossTUIndexString(const llvm::StringMap<std::string> &Index);
  163   static llvm::Optional<std::string> getLookupName(const NamedDecl *ND);
  271     llvm::Expected<std::string> getFileForFunction(StringRef FunctionName,
  287     using IndexMapTy = BaseMapTy<std::string>;
tools/clang/include/clang/DirectoryWatcher/DirectoryWatcher.h
   96     std::string Filename;
tools/clang/include/clang/Driver/Action.h
  169   std::string getOffloadingKindPrefix() const;
  174   static std::string
tools/clang/include/clang/Driver/Driver.h
  115   std::string Name;
  119   std::string Dir;
  122   std::string ClangExecutable;
  128   std::string InstalledDir;
  131   std::string ResourceDir;
  134   std::string SystemConfigDir;
  137   std::string UserConfigDir;
  143   typedef SmallVector<std::string, 4> prefix_list;
  147   std::string SysRoot;
  150   std::string DyldPrefix;
  153   std::string DriverTitle;
  156   std::string HostBits, HostMachine, HostSystem, HostRelease;
  204   std::string TargetTriple;
  207   std::string CCCGenericGCCName;
  210   std::string ConfigFile;
  268                                  SmallVectorImpl<std::string> &Names) const;
  288   static std::string GetResourcesPath(StringRef BinaryPath,
  299   const std::string &getCCCGenericGCCName() const { return CCCGenericGCCName; }
  301   const std::string &getConfigFile() const { return ConfigFile; }
  315   const std::string &getTitle() { return DriverTitle; }
  316   void setTitle(std::string Value) { DriverTitle = std::move(Value); }
  318   std::string getTargetTriple() const { return TargetTriple; }
  428     llvm::SmallVector<std::string, 4> TemporaryFiles;
  460   std::string GetFilePath(StringRef Name, const ToolChain &TC) const;
  468   std::string GetProgramPath(StringRef Name, const ToolChain &TC) const;
  496                      std::map<std::pair<const Action *, std::string>, InputInfo>
  524   std::string GetTemporaryPath(StringRef Prefix, StringRef Suffix) const;
  528   std::string GetTemporaryDirectory(StringRef Prefix) const;
  531   std::string GetClPchPath(Compilation &C, StringRef BaseName) const;
  583       std::map<std::pair<const Action *, std::string>, InputInfo>
tools/clang/include/clang/Driver/Job.h
   71   std::string ResponseFileFlag;
  101                       std::string *ErrMsg, bool *ExecutionFailed) const;
  148   int Execute(ArrayRef<Optional<StringRef>> Redirects, std::string *ErrMsg,
  166   int Execute(ArrayRef<Optional<StringRef>> Redirects, std::string *ErrMsg,
tools/clang/include/clang/Driver/Multilib.h
   30   using flags_list = std::vector<std::string>;
   33   std::string GCCSuffix;
   34   std::string OSSuffix;
   35   std::string IncludeSuffix;
   45   const std::string &gccSuffix() const {
   56   const std::string &osSuffix() const {
   67   const std::string &includeSuffix() const {
  120       std::function<std::vector<std::string>(const Multilib &M)>;
tools/clang/include/clang/Driver/SanitizerArgs.h
   28   std::vector<std::string> BlacklistFiles;
   29   std::vector<std::string> ExtraDeps;
   44   std::string HwasanAbi;
tools/clang/include/clang/Driver/ToolChain.h
   63   std::string TargetPrefix;
   66   std::string ModeSuffix;
   75   ParsedClangName(std::string Suffix, const char *Mode)
   77   ParsedClangName(std::string Target, std::string Suffix, const char *Mode,
   77   ParsedClangName(std::string Target, std::string Suffix, const char *Mode,
   90   using path_list = SmallVector<std::string, 16>;
  211   virtual std::string getInputFilename(const InputInfo &Input) const;
  222   std::string getTripleString() const {
  302   std::string GetFilePath(const char *Name) const;
  303   std::string GetProgramPath(const char *Name) const;
  307   std::string GetLinkerPath() const;
  386   virtual std::string getCompilerRTPath() const;
  388   virtual std::string getCompilerRT(const llvm::opt::ArgList &Args,
  397   virtual Optional<std::string> getRuntimePath() const;
  400   virtual Optional<std::string> getCXXStdlibPath() const;
  404   std::string getArchSpecificLibPath() const;
  481   virtual std::string getThreadModel() const { return "posix"; }
  488   virtual std::string
  497   virtual std::string ComputeEffectiveClangTriple(
tools/clang/include/clang/Driver/XRayArgs.h
   22   std::vector<std::string> AlwaysInstrumentFiles;
   23   std::vector<std::string> NeverInstrumentFiles;
   24   std::vector<std::string> AttrListFiles;
   25   std::vector<std::string> ExtraDeps;
   26   std::vector<std::string> Modes;
   41   llvm::ArrayRef<std::string> modeList() const { return Modes; }
tools/clang/include/clang/Format/Format.h
   42   std::string message(int EV) const override;
 1106   std::string CommentPragmas;
 1264   std::vector<std::string> ForEachMacros;
 1280   std::vector<std::string> TypenameMacros;
 1290   std::vector<std::string> StatementMacros;
 1302   std::vector<std::string> NamespaceMacros;
 1427   std::vector<std::string> JavaImportGroups;
 1538   std::string MacroBlockBegin;
 1541   std::string MacroBlockEnd;
 1695     std::vector<std::string> Delimiters;
 1697     std::vector<std::string> EnclosingFunctions;
 1699     std::string CanonicalDelimiter;
 1703     std::string BasedOnStyle;
 2226 std::string configurationAsText(const FormatStyle &Style);
tools/clang/include/clang/Frontend/ASTUnit.h
   94     std::string CodeToInsert;
  101     std::string Message;
  102     std::string Filename;
  182   std::string OriginalSourceFile;
  652   getBufferForFile(StringRef Filename, std::string *ErrorStr = nullptr);
  662   using RemappedFile = std::pair<std::string, llvm::MemoryBuffer *>;
  692       const std::string &Filename, const PCHContainerReader &PCHContainerRdr,
tools/clang/include/clang/Frontend/CommandLineSourceLoc.h
   25   std::string FileName;
   55   std::string FileName;
tools/clang/include/clang/Frontend/CompilerInstance.h
  135   std::map<std::string, std::string> BuiltModules;
  135   std::map<std::string, std::string> BuiltModules;
  170     std::string Filename;
  171     std::string TempFilename;
  173     OutputFile(std::string filename, std::string tempFilename)
  173     OutputFile(std::string filename, std::string tempFilename)
  658   std::string getSpecificModuleCachePath();
  751                    bool CreateMissingDirectories, std::string *ResultPathName,
  752                    std::string *TempPathName);
tools/clang/include/clang/Frontend/CompilerInvocation.h
  169   static std::string GetResourcesPath(const char *Argv0, void *MainAddr);
  185   std::string getModuleHash() const;
tools/clang/include/clang/Frontend/DependencyOutputOptions.h
   42   std::string OutputFile;
   48   std::string HeaderIncludeOutputFile;
   52   std::vector<std::string> Targets;
   55   std::vector<std::string> ExtraDeps;
   58   std::string ShowIncludesPretendHeader;
   61   std::string DOTOutputFile;
   64   std::string ModuleDependencyOutputDir;
tools/clang/include/clang/Frontend/FrontendAction.h
  270                          const std::vector<std::string> &arg) = 0;
tools/clang/include/clang/Frontend/FrontendActions.h
   96                                           std::string &Sysroot);
  102                    std::string &OutputFile);
  154   std::vector<std::string> ModuleHeaders;
  222   std::vector<std::string> ASTFiles;
  235                  ArrayRef<std::string> ASTFiles);
tools/clang/include/clang/Frontend/FrontendOptions.h
  186   std::string File;
  363   std::string ObjCMTWhiteListPath;
  365   std::string MTMigrateDir;
  366   std::string ARCMTMigrateReportOut;
  373   std::string OriginalModuleMap;
  376   std::string OutputFile;
  379   std::string FixItSuffix;
  382   std::string ASTDumpFilter;
  391   std::string ActionName;
  394   std::unordered_map<std::string,std::vector<std::string>> PluginArgs;
  394   std::unordered_map<std::string,std::vector<std::string>> PluginArgs;
  397   std::vector<std::string> AddPluginActions;
  400   std::vector<std::string> Plugins;
  406   std::vector<std::string> ModuleMapFiles;
  410   std::vector<std::string> ModuleFiles;
  413   std::vector<std::string> ModulesEmbedFiles;
  416   std::vector<std::string> ASTMergeFiles;
  420   std::vector<std::string> LLVMArgs;
  424   std::string OverrideRecordLayoutsFile;
  427   std::string AuxTriple;
  430   std::string StatsFile;
tools/clang/include/clang/Frontend/LogDiagnosticPrinter.h
   24     std::string Message;
   27     std::string Filename;
   39     std::string WarningOption;
   61   std::string MainFilename;
   62   std::string DwarfDebugFlags;
tools/clang/include/clang/Frontend/PrecompiledPreamble.h
  146     TempPCHFile(std::string FilePath);
  162     llvm::Optional<std::string> FilePath;
  167     std::string Data;
  301   std::string message(int condition) const override;
tools/clang/include/clang/Frontend/TextDiagnosticBuffer.h
   27   using DiagList = std::vector<std::pair<SourceLocation, std::string>>;
tools/clang/include/clang/Frontend/TextDiagnosticPrinter.h
   35   std::string Prefix;
   47   void setPrefix(std::string Value) { Prefix = std::move(Value); }
tools/clang/include/clang/Frontend/Utils.h
   87   ArrayRef<std::string> getDependencies() const { return Dependencies; }
  115   std::vector<std::string> Dependencies;
  141   std::string OutputFile;
  142   std::vector<std::string> Targets;
  155   std::string DestDir;
  159   llvm::StringMap<std::string> SymLinkMap;
  165   ModuleDependencyCollector(std::string DestDir)
tools/clang/include/clang/Frontend/VerifyDiagnosticConsumer.h
  204     const std::string Text;
  214     virtual bool isValid(std::string &Error) = 0;
tools/clang/include/clang/Lex/HeaderSearch.h
  184   std::vector<std::pair<std::string, bool>> SystemHeaderPrefixes;
  187   std::string ModuleCachePath;
  225       llvm::StringMap<std::string, llvm::BumpPtrAllocator>;
  291   void SetSystemHeaderPrefixes(ArrayRef<std::pair<std::string, bool>> P) {
  484   void getHeaderMapFileNames(SmallVectorImpl<std::string> &Names) const;
  493   std::string getCachedModuleFileName(Module *Module);
  505   std::string getPrebuiltModuleFileName(StringRef ModuleName,
  518   std::string getCachedModuleFileName(StringRef ModuleName,
  711   std::string suggestPathToFileForDiagnostics(const FileEntry *File,
  724   std::string suggestPathToFileForDiagnostics(llvm::StringRef File,
tools/clang/include/clang/Lex/HeaderSearchOptions.h
   70     std::string Path;
   87     std::string Prefix;
   99   std::string Sysroot;
  109   std::string ResourceDir;
  112   std::string ModuleCachePath;
  115   std::string ModuleUserBuildPath;
  118   std::map<std::string, std::string> PrebuiltModuleFiles;
  118   std::map<std::string, std::string> PrebuiltModuleFiles;
  121   std::vector<std::string> PrebuiltModulePaths;
  124   std::string ModuleFormat;
  174   std::vector<std::string> VFSOverlayFiles;
tools/clang/include/clang/Lex/Lexer.h
  286   static std::string Stringify(StringRef Str, bool Charify = false);
  312   static std::string getSpelling(const Token &Tok,
tools/clang/include/clang/Lex/ModuleMap.h
  258     SmallVector<std::string, 2> ExcludedModules;
tools/clang/include/clang/Lex/Pragma.h
   66   std::string Name;
tools/clang/include/clang/Lex/Preprocessor.h
  799   std::string Predefines;
 1151   const std::string &getPredefines() const { return Predefines; }
 1377   bool LexStringLiteral(Token &Result, std::string &String,
 1389   bool FinishLexStringLiteral(Token &Result, std::string &String,
 1680   std::string getSpelling(const Token &Tok, bool *Invalid = nullptr) const {
tools/clang/include/clang/Lex/PreprocessorOptions.h
   45   std::vector<std::pair<std::string, bool/*isUndef*/>> Macros;
   46   std::vector<std::string> Includes;
   47   std::vector<std::string> MacroIncludes;
   72   std::string PCHThroughHeader;
   75   std::string ImplicitPCHInclude;
   78   std::vector<std::string> ChainedIncludes;
   92   std::set<std::string> DeserializedPCHDeclsToErrorOn;
  131   std::vector<std::pair<std::string, std::string>> RemappedFiles;
  131   std::vector<std::pair<std::string, std::string>> RemappedFiles;
  136   std::vector<std::pair<std::string, llvm::MemoryBuffer *>> RemappedFileBuffers;
tools/clang/include/clang/Rewrite/Core/HTMLRewrite.h
   60   std::string EscapeText(StringRef s,
tools/clang/include/clang/Rewrite/Core/Rewriter.h
   98   std::string getRewrittenText(CharSourceRange Range) const;
  105   std::string getRewrittenText(SourceRange Range) const {
tools/clang/include/clang/Rewrite/Frontend/ASTConsumers.h
   30 CreateObjCRewriter(const std::string &InFile, std::unique_ptr<raw_ostream> OS,
   34 CreateModernObjCRewriter(const std::string &InFile,
tools/clang/include/clang/Rewrite/Frontend/FixItRewriter.h
   44   virtual std::string RewriteFilename(const std::string &Filename, int &fd) = 0;
   44   virtual std::string RewriteFilename(const std::string &Filename, int &fd) = 0;
  115     std::vector<std::pair<std::string, std::string>> *RewrittenFiles = nullptr);
  115     std::vector<std::pair<std::string, std::string>> *RewrittenFiles = nullptr);
tools/clang/include/clang/Sema/CodeCompleteConsumer.h
  632   std::string getAsString() const;
  972   StringRef getOrderedName(std::string &Saved) const;
tools/clang/include/clang/Sema/Initialization.h
 1085   std::string ZeroInitializationFixit;
 1091   void SetZeroInitializationFixit(const std::string& Fixit, SourceLocation L) {
tools/clang/include/clang/Sema/Sema.h
  433     std::string SectionName;
 1407   std::string
 1409   std::string getFixItZeroLiteralForType(QualType T, SourceLocation Loc) const;
 1645   static const std::string &getPrintable(const std::string &S) { return S; }
 1645   static const std::string &getPrintable(const std::string &S) { return S; }
 3194   std::pair<Expr *, std::string> findFailedBooleanCondition(Expr *Cond);
 6479   std::string getAmbiguousPathsDisplayString(CXXBasePaths &Paths);
 7085   std::string
 7089   std::string
 9178   std::string CurrOpenCLExtension;
 9180   llvm::DenseMap<const Type*, std::set<std::string>> OpenCLTypeExtMap;
 9182   llvm::DenseMap<const Decl*, std::set<std::string>> OpenCLDeclExtMap;
 9191   std::string getOpenCLExtensionsFromDeclExtMap(FunctionDecl *FD);
 9196   std::string getOpenCLExtensionsFromTypeExtMap(FunctionType *FT);
 9200   std::string getOpenCLExtensionsFromExtMap(T* FT, MapT &Map);
11051   std::string getCudaConfigureFuncName() const;
tools/clang/include/clang/Sema/SemaInternal.h
  219     std::string CurNameSpecifier;
tools/clang/include/clang/Sema/TypoCorrection.h
  181   std::string getAsString(const LangOptions &LO) const;
  183   std::string getQuoted(const LangOptions &LO) const {
tools/clang/include/clang/Serialization/ASTReader.h
  198                                        std::string &SuggestedPredefines) {
  273                                std::string &SuggestedPredefines) override;
  303                                std::string &SuggestedPredefines) override;
  324                                std::string &SuggestedPredefines) override;
  876   llvm::SmallVector<std::string, 2> PragmaPackStrings;
  882   llvm::DenseMap<const Type *, std::set<std::string>> OpenCLTypeExtMap;
  885   llvm::DenseMap<const Decl *, std::set<std::string>> OpenCLDeclExtMap;
  917   std::string isysroot;
 1200   std::string SuggestedPredefines;
 1208     std::string Filename;
 1226   void ResolveImportedPath(ModuleFile &M, std::string &Filename);
 1227   static void ResolveImportedPath(std::string &Filename, StringRef Prefix);
 1288       std::string &SuggestedPredefines);
 1330                                        std::string &SuggestedPredefines);
 1679   static std::string
 1680   getOriginalSourceFile(const std::string &ASTFileName, FileManager &FileMgr,
 1706   const std::string &getSuggestedPredefines() { return SuggestedPredefines; }
 1832   std::string getOwningModuleNameForDiagnostic(const Decl *D);
 2236   static std::string ReadString(const RecordData &Record, unsigned &Idx);
 2244   std::string ReadPath(ModuleFile &F, const RecordData &Record, unsigned &Idx);
 2247   std::string ReadPath(StringRef BaseDirectory, const RecordData &Record,
 2646   std::string readString() {
 2651   std::string readPath() {
tools/clang/include/clang/Serialization/ASTWriter.h
  150   std::string BaseDirectory;
  461                          StringRef isysroot, const std::string &OutputFile);
  538                                 const std::string &OutputFile,
  571   ASTFileSignature WriteAST(Sema &SemaRef, const std::string &OutputFile,
  974   std::string OutputFile;
  975   std::string isysroot;
tools/clang/include/clang/Serialization/GlobalModuleIndex.h
   78     std::string FileName;
tools/clang/include/clang/Serialization/Module.h
  122   std::string FileName;
  125   std::string ModuleName;
  128   std::string BaseDirectory;
  130   std::string getTimestampFilename() const {
  137   std::string OriginalSourceFileName;
  141   std::string ActualOriginalSourceFileName;
  149   std::string OriginalDir;
  151   std::string ModuleMapPath;
tools/clang/include/clang/Serialization/ModuleFileExtension.h
   39   std::string BlockName;
   49   std::string UserInfo;
tools/clang/include/clang/Serialization/ModuleManager.h
  255                             std::string &ErrorStr);
tools/clang/include/clang/Serialization/PCHContainerOperations.h
   48                               const std::string &MainFileName,
   49                               const std::string &OutputFileName,
   75                               const std::string &MainFileName,
   76                               const std::string &OutputFileName,
tools/clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h
   25 class SValExplainer : public FullSValVisitor<SValExplainer, std::string> {
   29   std::string printStmt(const Stmt *S) {
   30     std::string Str;
   46   std::string VisitUnknownVal(UnknownVal V) {
   50   std::string VisitUndefinedVal(UndefinedVal V) {
   54   std::string VisitLocMemRegionVal(loc::MemRegionVal V) {
   65   std::string VisitLocConcreteInt(loc::ConcreteInt V) {
   67     std::string Str;
   73   std::string VisitNonLocSymbolVal(nonloc::SymbolVal V) {
   77   std::string VisitNonLocConcreteInt(nonloc::ConcreteInt V) {
   79     std::string Str;
   86   std::string VisitNonLocLazyCompoundVal(nonloc::LazyCompoundVal V) {
   90   std::string VisitSymbolRegionValue(const SymbolRegionValue *S) {
   99   std::string VisitSymbolConjured(const SymbolConjured *S) {
  104   std::string VisitSymbolDerived(const SymbolDerived *S) {
  109   std::string VisitSymbolExtent(const SymbolExtent *S) {
  113   std::string VisitSymbolMetadata(const SymbolMetadata *S) {
  118   std::string VisitSymIntExpr(const SymIntExpr *S) {
  119     std::string Str;
  130   std::string VisitSymSymExpr(const SymSymExpr *S) {
  139   std::string VisitSymbolicRegion(const SymbolicRegion *R) {
  155   std::string VisitAllocaRegion(const AllocaRegion *R) {
  159   std::string VisitCompoundLiteralRegion(const CompoundLiteralRegion *R) {
  163   std::string VisitStringRegion(const StringRegion *R) {
  167   std::string VisitElementRegion(const ElementRegion *R) {
  168     std::string Str;
  181   std::string VisitVarRegion(const VarRegion *R) {
  183     std::string Name = VD->getQualifiedNameAsString();
  198   std::string VisitObjCIvarRegion(const ObjCIvarRegion *R) {
  203   std::string VisitFieldRegion(const FieldRegion *R) {
  208   std::string VisitCXXTempObjectRegion(const CXXTempObjectRegion *R) {
  213   std::string VisitCXXBaseObjectRegion(const CXXBaseObjectRegion *R) {
  218   std::string VisitSVal(SVal V) {
  219     std::string Str;
  226   std::string VisitSymExpr(SymbolRef S) {
  227     std::string Str;
  234   std::string VisitMemRegion(const MemRegion *R) {
  235     std::string Str;
tools/clang/include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
  164   using ConfigTable = llvm::StringMap<std::string>;
  199   std::vector<std::pair<std::string, bool>> CheckersAndPackages;
  202   std::vector<std::string> SilencedCheckersAndPackages;
  212   std::string AnalyzeSpecificFunction;
  215   std::string DumpExplodedGraphTo;
  219   std::string FullCompilerInvocation;
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
   82   virtual std::string getMessage(const ExplodedNode *N) = 0;
   94   std::string Msg;
  102   std::string getMessage(const ExplodedNode *N) override;
  106   virtual std::string getMessageForArg(const Expr *ArgE, unsigned ArgIndex);
  108   virtual std::string getMessageForReturn(const CallExpr *CallExpr) {
  112   virtual std::string getMessageForSymbolNotFound() {
  129   std::string ShortDescription;
  130   std::string Description;
  522   std::string
  725       std::function<std::string(BugReporterContext &, BugReport &)>;
  741   Optional<std::string> generateMessage(BugReporterContext &BRC,
  743     std::string Msg = Cb(BRC, R);
tools/clang/include/clang/StaticAnalyzer/Core/BugReporter/BugType.h
   32   const std::string Description;
   33   const std::string Category;
   70   const std::string desc;
tools/clang/include/clang/StaticAnalyzer/Core/IssueHash.h
   45 std::string GetIssueString(const SourceManager &SM, FullSourceLoc &IssueLoc,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h
  243   const NoteTag *getNoteTag(std::function<std::string(BugReport &)> &&Cb,
  257   const NoteTag *getNoteTag(std::function<std::string()> &&Cb,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
  218   std::string DumpGraph(bool trim = false, StringRef Filename="");
  223   std::string DumpGraph(ArrayRef<const ExplodedNode *> Nodes,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h
  147   std::string getString() const;
  184   std::string getDescriptiveName(bool UseQuotes = true) const;
tools/clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h
   30       ArrayRef<std::string> plugins,
tools/clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistry.h
   84   CheckerRegistry(ArrayRef<std::string> plugins, DiagnosticsEngine &diags,
tools/clang/include/clang/StaticAnalyzer/Frontend/FrontendActions.h
   55                       ArrayRef<std::string> plugins,
   59 void printEnabledCheckerList(raw_ostream &OS, ArrayRef<std::string> plugins,
   64 void printCheckerConfigList(raw_ostream &OS, ArrayRef<std::string> plugins,
tools/clang/include/clang/Tooling/ASTDiff/ASTDiff.h
   48   llvm::Optional<std::string> getQualifiedIdentifier() const;
   96   std::string getNodeValue(NodeId Id) const;
   97   std::string getNodeValue(const Node &Node) const;
tools/clang/include/clang/Tooling/AllTUsExecution.h
   68   llvm::StringMap<std::string> OverlayFiles;
   73 extern llvm::cl::opt<std::string> Filter;
tools/clang/include/clang/Tooling/ArgumentsAdjusters.h
   29 using CommandLineArguments = std::vector<std::string>;
tools/clang/include/clang/Tooling/CommonOptionsParser.h
  107   const std::vector<std::string> &getSourcePathList() const {
  126   std::vector<std::string> SourcePathList;
  141   std::vector<std::string> getAllFiles() const override;
tools/clang/include/clang/Tooling/CompilationDatabase.h
   46                  std::vector<std::string> CommandLine, Twine Output)
   51   std::string Directory;
   54   std::string Filename;
   57   std::vector<std::string> CommandLine;
   60   std::string Output;
   65   std::string Heuristic;
  103   loadFromDirectory(StringRef BuildDirectory, std::string &ErrorMessage);
  110   autoDetectFromSource(StringRef SourceFile, std::string &ErrorMessage);
  117   autoDetectFromDirectory(StringRef SourceDir, std::string &ErrorMessage);
  135   virtual std::vector<std::string> getAllFiles() const { return {}; }
  183       int &Argc, const char *const *Argv, std::string &ErrorMsg,
  189   loadFromFile(StringRef Path, std::string &ErrorMsg);
  193   FixedCompilationDatabase(Twine Directory, ArrayRef<std::string> CommandLine);
tools/clang/include/clang/Tooling/CompilationDatabasePluginRegistry.h
   36   loadFromDirectory(StringRef Directory, std::string &ErrorMessage) = 0;
tools/clang/include/clang/Tooling/Core/Diagnostic.h
   42   std::string Message;
   43   std::string FilePath;
   68   std::string DiagnosticName;
   86   std::string BuildDirectory;
   92   std::string MainSourceFile;
tools/clang/include/clang/Tooling/Core/Lookup.h
   41 std::string replaceNestedName(const NestedNameSpecifier *Use,
tools/clang/include/clang/Tooling/Core/Replacement.h
  130   std::string toString() const;
  140   std::string FilePath;
  142   std::string ReplacementText;
  168   std::string message() const override;
  328 llvm::Expected<std::string> applyAllReplacements(StringRef Code,
  334   std::string MainSourceFile;
  354 std::map<std::string, Replacements> groupReplacementsByFile(
  356     const std::map<std::string, Replacements> &FileToReplaces);
tools/clang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h
   39   llvm::Expected<std::string> getDependencyFile(const std::string &Input,
   39   llvm::Expected<std::string> getDependencyFile(const std::string &Input,
tools/clang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h
   58   llvm::Error computeDependencies(const std::string &Input,
tools/clang/include/clang/Tooling/DiagnosticsYaml.h
   68     std::string DiagnosticName;
   73     std::string BuildDirectory;
tools/clang/include/clang/Tooling/Execution.h
   39 extern llvm::cl::opt<std::string> ExecutorName;
   89   virtual std::string getRevision() { return ""; }
   93   virtual std::string getCorpus() { return ""; }
   96   virtual std::string getCurrentCompilationUnit() { return ""; }
tools/clang/include/clang/Tooling/Inclusions/HeaderIncludes.h
   42   std::string FileName;
   89     std::string Name;
   97   std::string FileName;
   98   std::string Code;
tools/clang/include/clang/Tooling/Inclusions/IncludeStyle.h
   58     std::string Regex;
  122   std::string IncludeIsMainRegex;
tools/clang/include/clang/Tooling/JSONCompilationDatabase.h
   68   loadFromFile(StringRef FilePath, std::string &ErrorMessage,
   75   loadFromBuffer(StringRef DatabaseString, std::string &ErrorMessage,
   89   std::vector<std::string> getAllFiles() const override;
  106   bool parse(std::string &ErrorMessage);
tools/clang/include/clang/Tooling/Refactoring.h
   41                   ArrayRef<std::string> SourcePaths,
   47   std::map<std::string, Replacements> &getReplacements();
   71   std::map<std::string, Replacements> FileToReplaces;
   93     const std::map<std::string, Replacements> &FileToReplaces,
tools/clang/include/clang/Tooling/Refactoring/AtomicChange.h
   57   std::string toYAMLString();
   64   const std::string &getKey() const { return Key; }
   67   const std::string &getFilePath() const { return FilePath; }
   79   const std::string &getError() const { return Error; }
  115   llvm::ArrayRef<std::string> getInsertedHeaders() const {
  119   llvm::ArrayRef<std::string> getRemovedHeaders() const {
  126   AtomicChange(std::string Key, std::string FilePath, std::string Error,
  126   AtomicChange(std::string Key, std::string FilePath, std::string Error,
  126   AtomicChange(std::string Key, std::string FilePath, std::string Error,
  127                std::vector<std::string> InsertedHeaders,
  128                std::vector<std::string> RemovedHeaders,
  132   std::string Key;
  133   std::string FilePath;
  134   std::string Error;
  135   std::vector<std::string> InsertedHeaders;
  136   std::vector<std::string> RemovedHeaders;
  170 llvm::Expected<std::string>
tools/clang/include/clang/Tooling/Refactoring/Extract/Extract.h
   29                                             Optional<std::string> DeclName);
   34   ExtractFunction(CodeRangeASTSelection Code, Optional<std::string> DeclName)
   46   std::string DeclName;
tools/clang/include/clang/Tooling/Refactoring/RefactoringOptionVisitor.h
   30                      Optional<std::string> &Value) = 0;
tools/clang/include/clang/Tooling/Refactoring/Rename/RenamingAction.h
   32   RenamingAction(const std::vector<std::string> &NewNames,
   33                  const std::vector<std::string> &PrevNames,
   34                  const std::vector<std::vector<std::string>> &USRList,
   35                  std::map<std::string, tooling::Replacements> &FileToReplaces,
   43   const std::vector<std::string> &NewNames, &PrevNames;
   44   const std::vector<std::vector<std::string>> &USRList;
   45   std::map<std::string, tooling::Replacements> &FileToReplaces;
   53                                               std::string NewName);
   60   RenameOccurrences(const NamedDecl *ND, std::string NewName)
   67   std::string NewName;
   73                                                 std::string OldQualifiedName,
   74                                                 std::string NewQualifiedName);
   80                       std::string NewQualifiedName)
   89   std::string NewQualifiedName;
  102       const std::vector<std::string> &NewNames,
  103       const std::vector<std::vector<std::string>> &USRList,
  104       std::map<std::string, tooling::Replacements> &FileToReplaces)
  111   const std::vector<std::string> &NewNames;
  114   const std::vector<std::vector<std::string>> &USRList;
  117   std::map<std::string, tooling::Replacements> &FileToReplaces;
tools/clang/include/clang/Tooling/Refactoring/Rename/SymbolName.h
   39   ArrayRef<std::string> getNamePieces() const { return Name; }
   42   llvm::SmallVector<std::string, 1> Name;
tools/clang/include/clang/Tooling/Refactoring/Rename/USRFinder.h
   41                                  const std::string &Name);
   44 std::string getUSRForDecl(const Decl *Decl);
tools/clang/include/clang/Tooling/Refactoring/Rename/USRFindingAction.h
   41 std::vector<std::string> getUSRsForDeclaration(const NamedDecl *ND,
   46                    ArrayRef<std::string> QualifiedNames, bool Force)
   51   ArrayRef<std::string> getUSRSpellings() { return SpellingNames; }
   52   ArrayRef<std::vector<std::string>> getUSRList() { return USRList; }
   57   std::vector<std::string> QualifiedNames;
   58   std::vector<std::string> SpellingNames;
   59   std::vector<std::vector<std::string>> USRList;
tools/clang/include/clang/Tooling/Refactoring/Rename/USRLocFinder.h
   38 createRenameAtomicChanges(llvm::ArrayRef<std::string> USRs,
   46 SymbolOccurrences getOccurrencesOfUSRs(ArrayRef<std::string> USRs,
tools/clang/include/clang/Tooling/RefactoringCallbacks.h
   56     std::map<std::string, Replacements> &FileToReplaces);
   73   std::map<std::string, Replacements> &FileToReplaces;
   84   std::string FromId;
   85   std::string ToText;
  103     std::string Value;
  107   std::string FromId;
  119   std::string FromId;
  120   std::string ToId;
  132   std::string Id;
tools/clang/include/clang/Tooling/ReplacementsYaml.h
   40       while (lineBreakPos != std::string::npos) {
   51     std::string FilePath;
   54     std::string ReplacementText;
tools/clang/include/clang/Tooling/StandaloneExecution.h
   38       llvm::ArrayRef<std::string> SourcePaths,
   71   llvm::ArrayRef<std::string> getSourcePaths() const {
tools/clang/include/clang/Tooling/Syntax/Tokens.h
  133   std::string dumpForTests(const SourceManager &SM) const;
  135   std::string str() const;
  251   std::string dumpForTests() const;
  273     std::string str() const;
tools/clang/include/clang/Tooling/Syntax/Tree.h
   89   std::string dump(const Arena &A) const;
   91   std::string dumpTokens(const Arena &A) const;
tools/clang/include/clang/Tooling/Tooling.h
  164 using FileContentMappings = std::vector<std::pair<std::string, std::string>>;
  164 using FileContentMappings = std::vector<std::pair<std::string, std::string>>;
  181     const std::vector<std::string> &Args, const Twine &FileName = "input.cc",
  191     const std::vector<std::string> &Args, const Twine &FileName = "input.cc",
  223     StringRef Code, const std::vector<std::string> &Args,
  243   ToolInvocation(std::vector<std::string> CommandLine,
  255   ToolInvocation(std::vector<std::string> CommandLine, ToolAction *Action,
  286   std::vector<std::string> CommandLine;
  318             ArrayRef<std::string> SourcePaths,
  373   llvm::ArrayRef<std::string> getSourcePaths() const { return SourcePaths; }
  377   std::vector<std::string> SourcePaths;
  475 std::string getAbsolutePath(StringRef File);
  478 llvm::Expected<std::string> getAbsolutePath(llvm::vfs::FileSystem &FS,
  501 void addTargetAndModeForProgramName(std::vector<std::string> &CommandLine,
tools/clang/include/clang/Tooling/Transformer/MatchConsumer.h
   47 MatchConsumer<T> ifBound(std::string ID, MatchConsumer<T> TrueC,
tools/clang/include/clang/Tooling/Transformer/RangeSelector.h
   38 RangeSelector range(std::string BeginID, std::string EndID);
   38 RangeSelector range(std::string BeginID, std::string EndID);
   51 RangeSelector node(std::string ID);
   55 RangeSelector statement(std::string ID);
   59 RangeSelector member(std::string ID);
   68 RangeSelector name(std::string ID);
   72 RangeSelector callArgs(std::string ID);
   76 RangeSelector statements(std::string ID);
   80 RangeSelector initListElements(std::string ID);
   84 RangeSelector elseBranch(std::string ID);
tools/clang/include/clang/Tooling/Transformer/RewriteRule.h
   33 using TextGenerator = MatchConsumer<std::string>;
  114     std::vector<std::pair<std::string, IncludeFormat>> AddedIncludes;
  263   std::string Replacement;
  289 inline TextGenerator text(std::string M) {
tools/clang/include/clang/Tooling/Transformer/SourceCodeBuilders.h
   53 llvm::Optional<std::string> buildParens(const Expr &E,
   58 llvm::Optional<std::string> buildDereference(const Expr &E,
   63 llvm::Optional<std::string> buildAddressOf(const Expr &E,
   72 llvm::Optional<std::string> buildDot(const Expr &E, const ASTContext &Context);
   80 llvm::Optional<std::string> buildArrow(const Expr &E,
tools/clang/include/clang/Tooling/Transformer/Stencil.h
   48                            std::string *Result) const = 0;
   53   virtual std::string toString() const = 0;
   73                    std::string *Result) const {
   77   std::string toString() const {
  107   llvm::Expected<std::string>
  112   llvm::Expected<std::string>
  119   std::string toString() const {
  120     std::vector<std::string> PartStrings;
  189 StencilPart run(MatchConsumer<std::string> C);
tools/clang/lib/ARCMigrate/ARCMT.cpp
  186     std::string OriginalFile = ASTReader::getOriginalSourceFile(
  192   std::string define = getARCMTMacroName();
  201   std::vector<std::string> WarnOpts;
  202   for (std::vector<std::string>::iterator
  401 bool arcmt::getFileRemappings(std::vector<std::pair<std::string,std::string> > &
  401 bool arcmt::getFileRemappings(std::vector<std::pair<std::string,std::string> > &
  601     std::string newFname = file->getName();
tools/clang/lib/ARCMigrate/FileRemapper.cpp
   37     std::string infoFile = getRemapInfoFile(outputDir);
   42 std::string FileRemapper::getRemapInfoFile(StringRef outputDir) {
   51   std::string infoFile = getRemapInfoFile(outputDir);
   59   std::string infoFile = filePath;
  115   std::string infoFile = getRemapInfoFile(outputDir);
  123   std::string infoFile = outputPath;
tools/clang/lib/ARCMigrate/Internals.h
   43 void writeARCDiagsToPlist(const std::string &outPath,
tools/clang/lib/ARCMigrate/ObjCMT.cpp
   92   std::string MigrateDir;
  124                          ArrayRef<std::string> WhiteList)
  133     for (const std::string &Val : WhiteList)
  279       std::string PropertyDotString;
  297       std::string PropertyDotString = ".";
  394 static void append_attr(std::string &PropertyString, const char *attr,
  406 void MigrateBlockOrFunctionPointerTypeVariable(std::string & PropertyString,
  407                                                const std::string& TypeString,
  471   std::string PropertyString = "@property ";
  480   std::string PropertyNameString = Getter->getNameAsString();
  530   std::string TypeString = RT.getAsString(SubPolicy);
  677   std::string ClassString;
  721   std::string ClassString;
  780   std::string TypeString = DesignatedEnumType.getAsString(Policy);
  781   std::string ClassString = IsNSIntegerType ? "NS_ENUM(" : "NS_OPTIONS(";
  973   std::string ClassString;
  993   std::string ClassString;
 1017   std::string ClassName;
 1159   std::string NameString = Name;
 1323   std::string StringClassName = IDecl->getName();
 1325   std::string StringLoweredClassName = LoweredClassName.lower();
 1333   std::string MethodName = MethodIdName->getName();
 1347   std::string MethodNameSubStr = MethodName.substr(0, 3);
 1349   std::string StringLoweredMethodNamePrefix = MethodNamePrefix.lower();
 1354   std::string ClassNamePostfix = LoweredClassName.substr(Ix);
 1356   std::string StringLoweredMethodName = LoweredMethodName.lower();
 2000 static std::vector<std::string> getWhiteListFilenames(StringRef DirPath) {
 2004   std::vector<std::string> Filenames;
 2035   std::vector<std::string> WhiteList =
 2048   std::string Text;
 2172 static std::string applyEditsToTemp(const FileEntry *FE,
 2231                         std::vector<std::pair<std::string,std::string> > &remap,
 2231                         std::vector<std::pair<std::string,std::string> > &remap,
 2273     std::string TempFile = applyEditsToTemp(I->first, I->second,
tools/clang/lib/ARCMigrate/PlistReporter.cpp
   34 void arcmt::writeARCDiagsToPlist(const std::string &outPath,
tools/clang/lib/ARCMigrate/TransRetainReleaseDealloc.cpp
   89             std::string err = "it is not safe to remove '";
   98             std::string err = "it is not safe to remove '";
  151       std::string str = " = ";
tools/clang/lib/ARCMigrate/TransUnbridgedCasts.cpp
  363       std::string err = "it is not safe to cast to '";
  377         std::string note = "remove the cast and change return type of function "
tools/clang/lib/ARCMigrate/TransUnusedInitDelegate.cpp
   59       std::string retStr = ")) return ";
tools/clang/lib/ARCMigrate/Transforms.cpp
  541         std::string str = "\n#endif\n";
tools/clang/lib/AST/APValue.cpp
  705 std::string APValue::getAsString(const ASTContext &Ctx, QualType Ty) const {
  706   std::string Result;
tools/clang/lib/AST/ASTContext.cpp
 6315 static std::string charUnitsToString(const CharUnits &CU) {
 6321 std::string ASTContext::getObjCEncodingForBlock(const BlockExpr *Expr) const {
 6322   std::string S;
 6376 std::string
 6378   std::string S;
 6419                                                    QualType T, std::string& S,
 6435 std::string ASTContext::getObjCEncodingForMethodDecl(const ObjCMethodDecl *Decl,
 6439   std::string S;
 6531 std::string
 6547   std::string S = "T";
 6615 void ASTContext::getObjCEncodingForType(QualType T, std::string& S,
 6631                                                 std::string& S) const {
 6756 static void EncodeBitField(const ASTContext *Ctx, std::string& S,
 6800 void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string &S,
 7140                                                  std::string &S,
 7204       std::string recname = CXXRec->getNameAsString();
 7281                                                  std::string& S) const {
tools/clang/lib/AST/ASTDiagnostic.cpp
  231 static std::string
  238   std::string S = Ty.getAsString(Context.getPrintingPolicy());
  239   std::string CanS = CanTy.getAsString(Context.getPrintingPolicy());
  251     std::string CompareS = CompareTy.getAsString(Context.getPrintingPolicy());
  254     std::string CompareDesugarStr =
  259     std::string CompareCanS =
  293       std::string akaStr = DesugaredTy.getAsString(Context.getPrintingPolicy());
  305       std::string DecoratedString;
 1634     std::string FromTypeStr = FromType.isNull() ? "(no argument)"
 1636     std::string ToTypeStr = ToType.isNull() ? "(no argument)"
 1641       std::string FromCanTypeStr =
 1643       std::string ToCanTypeStr = ToType.getCanonicalType().getAsString(Policy);
 1705     std::string FromName = FromTD ? FromTD->getName() : "(no argument)";
 1706     std::string ToName = ToTD ? ToTD->getName() : "(no argument)";
tools/clang/lib/AST/ASTImporter.cpp
   85   std::string ImportError::toString() const {
tools/clang/lib/AST/CommentBriefParser.cpp
   23 void cleanupBrief(std::string &S) {
   25   std::string::iterator O = S.begin();
   26   for (std::string::iterator I = S.begin(), E = S.end();
   62 std::string BriefParser::Parse() {
   63   std::string FirstParagraphOrBrief;
   64   std::string ReturnsParagraph;
tools/clang/lib/AST/CommentSema.cpp
  231   std::string ArgLower = Arg.lower();
tools/clang/lib/AST/DataCollection.cpp
   33 std::string getMacroStack(SourceLocation Loc, ASTContext &Context) {
   34   std::string MacroStack;
tools/clang/lib/AST/Decl.cpp
 1550 std::string NamedDecl::getQualifiedNameAsString() const {
 1551   std::string QualName;
tools/clang/lib/AST/DeclBase.cpp
  492                                             std::string *Message,
  513   std::string HintMessage;
  574 AvailabilityResult Decl::getAvailability(std::string *Message,
  582   std::string ResultMessage;
tools/clang/lib/AST/DeclPrinter.cpp
   41                                       std::string &Proto);
  299                                                std::string &Proto) {
  572   std::string Proto = "explicit";
  623   std::string Proto;
 1273   std::string name = OMD->getSelector().getAsString();
 1274   std::string::size_type pos, lastPos = 0;
 1305   std::string I = OID->getNameAsString();
 1336   std::string I = OID->getNameAsString();
 1550   std::string TypeStr = PDecl->getASTContext().getUnqualifiedObjCPointerType(T).
tools/clang/lib/AST/DeclarationName.cpp
  222 std::string DeclarationName::getAsString() const {
  223   std::string Result;
  447 std::string DeclarationNameInfo::getAsString() const {
  448   std::string Result;
tools/clang/lib/AST/Expr.cpp
  670 std::string PredefinedExpr::ComputeName(IdentKind IK, const Decl *CurrentDecl) {
  729     std::string Proto;
  797     std::string TemplateParams;
  955 std::string FixedPointLiteral::getValueAsString(unsigned Radix) const {
tools/clang/lib/AST/ExprConstant.cpp
 1527     std::string toString(ASTContext &Ctx, QualType T) const {
 2936     std::string Str;
tools/clang/lib/AST/ExternalASTSource.cpp
   47 std::string ExternalASTSource::ASTSourceDescriptor::getModuleName() const {
tools/clang/lib/AST/FormatString.cpp
  541 std::string ArgType::getRepresentativeTypeName(ASTContext &C) const {
  542   std::string S = getRepresentativeType(C).getAsString();
  544   std::string Alias;
tools/clang/lib/AST/InheritViz.cpp
   79   std::string TypeName = Type.getAsString();
tools/clang/lib/AST/Interp/Disasm.cpp
   28       const std::string &Name = Cons->getParent()->getNameAsString();
tools/clang/lib/AST/ItaniumMangle.cpp
 2547   std::string type_name;
 3165   std::string TypeName =
tools/clang/lib/AST/JSONNodeDumper.cpp
  259 std::string JSONNodeDumper::createPointerRepresentation(const void *Ptr) {
  459 std::string JSONNodeDumper::createAccessSpecifier(AccessSpecifier AS) {
  566   std::string Str = AT->getIndexTypeQualifiers().getAsString();
  650   std::string Str;
  672     std::string Str;
  725   std::string Name;
 1043   std::string Str;
 1074     std::string Str;
 1083   std::string Str;
 1275     std::string Str;
 1407   std::string Buffer;
tools/clang/lib/AST/Mangle.cpp
  328   std::string getName(const Decl *D) {
  329     std::string Name;
  349   std::vector<std::string> getAllManglings(const ObjCContainerDecl *OCD) {
  372   std::vector<std::string> getAllManglings(const Decl *D) {
  384     std::vector<std::string> Manglings;
  446   std::string getMangledStructor(const NamedDecl *ND, unsigned StructorType) {
  447     std::string FrontendBuf;
  455     std::string BackendBuf;
  463   std::string getMangledThunk(const CXXMethodDecl *MD, const ThunkInfo &T) {
  464     std::string FrontendBuf;
  469     std::string BackendBuf;
  487 std::string ASTNameGenerator::getName(const Decl *D) {
  491 std::vector<std::string> ASTNameGenerator::getAllManglings(const Decl *D) {
tools/clang/lib/AST/MicrosoftMangle.cpp
  265   typedef llvm::SmallVector<std::string, 10> BackRefVec;
 1060         std::string Buffer;
 1393     std::string Name = "_GUID_" + Uuid.lower();
 1803     std::string Name =
tools/clang/lib/AST/PrintfFormatString.cpp
  129       std::string Match = "^[[:space:]]*"
tools/clang/lib/AST/QualTypeNames.cpp
  463 std::string getFullyQualifiedName(QualType QT,
tools/clang/lib/AST/RawCommentList.cpp
  192   const std::string Result = P.Parse();
  358 std::string RawComment::getFormattedText(const SourceManager &SourceMgr,
  373   std::string Result;
tools/clang/lib/AST/Stmt.cpp
  372 std::string AsmStmt::generateAsmString(const ASTContext &C) const {
  544     std::string Result;
  561   std::string CurStringPiece;
  652       std::string Str(Begin, CurPtr - Begin);
  688       std::string Str(Begin, NameEnd + 1 - Begin);
  711 std::string GCCAsmStmt::generateAsmString(const ASTContext &C) const {
  718   std::string AsmString;
  732 std::string MSAsmStmt::generateAsmString(const ASTContext &C) const {
tools/clang/lib/AST/StmtPrinter.cpp
   72     std::string NL;
 1969       std::string ParamStr = P->getNameAsString();
 2028   std::string TypeS;
 2413       std::string ParamStr = (*AI)->getNameAsString();
 2461   std::string Buf;
tools/clang/lib/AST/StmtViz.cpp
   34   static std::string getNodeLabel(const Stmt* Node, const Stmt* Graph) {
   37     std::string OutSStr;
   45     std::string OutStr = Out.str();
tools/clang/lib/AST/TemplateName.cpp
  255   std::string NameStr;
  269   std::string NameStr;
tools/clang/lib/AST/TypePrinter.cpp
 1743 std::string Qualifiers::getAsString() const {
 1751 std::string Qualifiers::getAsString(const PrintingPolicy &Policy) const {
 1863 std::string QualType::getAsString() const {
 1867 std::string QualType::getAsString(const PrintingPolicy &Policy) const {
 1868   std::string S;
 1873 std::string QualType::getAsString(const Type *ty, Qualifiers qs,
 1875   std::string buffer;
 1895 void QualType::getAsStringInternal(std::string &Str,
 1902                                    std::string &buffer,
 1907   std::string str = StrOS.str();
tools/clang/lib/AST/VTableBuilder.cpp
 1937       std::string Str =
 2017       std::string Str =
 2045         std::set<std::string> ClassNames;
 2054         for (const std::string &Name : ClassNames) {
 2071     std::map<std::string, CharUnits> ClassNamesAndOffsets;
 2073       std::string ClassName = I.first->getQualifiedNameAsString();
 2092     std::map<std::string, const CXXMethodDecl *> MethodNamesAndDecls;
 2096       std::string MethodName =
 2104       const std::string &MethodName = I.first;
 2154   std::map<uint64_t, std::string> IndicesMap;
 2162     std::string MethodName =
 2186       const std::string &MethodName = I.second;
 3125       std::string Str = PredefinedExpr::ComputeName(
 3176     std::map<std::string, const CXXMethodDecl *> MethodNamesAndDecls;
 3180       std::string MethodName = PredefinedExpr::ComputeName(
 3187       const std::string &MethodName = MethodNameAndDecl.first;
 3607   std::map<MethodVFTableLocation, std::string> IndicesMap;
 3614     std::string MethodName = PredefinedExpr::ComputeName(
 3652       const std::string &MethodName = I.second;
tools/clang/lib/ASTMatchers/ASTMatchersInternal.cpp
   43   std::string SelString = Node.getSelector().getAsString();
   44   for (const std::string &S : Matches)
  116   const std::string ID;
  328 std::vector<std::string> vectorFromRefs(ArrayRef<const StringRef *> NameRefs) {
  329   std::vector<std::string> Names;
  336   std::vector<std::string> Names = vectorFromRefs(NameRefs);
  345 HasNameMatcher::HasNameMatcher(std::vector<std::string> N)
  405   PatternSet(ArrayRef<std::string> Names) {
tools/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp
  132                               ArrayRef<std::string> Args,
  193 std::string Diagnostics::toString() const {
  194   std::string S;
  212 std::string Diagnostics::toStringFull() const {
  213   std::string S;
tools/clang/lib/ASTMatchers/Dynamic/Marshallers.h
   60   static const std::string &get(const VariantValue &Value) {
   70 struct ArgTypeTraits<StringRef> : public ArgTypeTraits<std::string> {
  299   const std::string MatcherName;
  456   const std::string MatcherName;
  674       const std::string MaxStr =
tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp
  221       std::string Text = Result->Text.str();
  351       std::string BindID;
  384 bool Parser::parseBindID(std::string &BindID) {
  485   std::string BindID;
  525       std::string Decl =
tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  618       std::string Decl;
  651       std::string TypedText = Name;
tools/clang/lib/ASTMatchers/Dynamic/VariantValue.cpp
   22 std::string ArgKind::asString() const {
   91   std::string getTypeAsString() const override {
  127   std::string getTypeAsString() const override {
  128     std::string Inner;
  190   std::string getTypeAsString() const override {
  191     std::string Inner;
  244 std::string VariantMatcher::getTypeAsString() const {
  368 const std::string &VariantValue::getString() const {
  376   Value.String = new std::string(NewValue);
  443 std::string VariantValue::getTypeAsString() const {
tools/clang/lib/Analysis/CFG.cpp
 5798   std::string Buf;
 5983   static std::string getNodeLabel(const CFGBlock *Node, const CFG* Graph) {
 5985     std::string OutSStr;
 5988     std::string& OutStr = Out.str();
tools/clang/lib/Analysis/CallGraph.cpp
  266   static std::string getNodeLabel(const CallGraphNode *Node,
tools/clang/lib/Analysis/CloneDetection.cpp
  420     const std::string &ParentMacroStack) {
  429   std::string MacroStack =
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp
   79 template <> struct NodeID<Expr> { static const std::string value; };
   80 template <> struct NodeID<Decl> { static const std::string value; };
   81 const std::string NodeID<Expr>::value = "expr";
   82 const std::string NodeID<Decl>::value = "decl";
tools/clang/lib/Analysis/RetainSummaryManager.cpp
  292   std::string RetTyName = RetTy.getAsString();
tools/clang/lib/Analysis/ThreadSafety.cpp
 1657       std::string PartMatchStr = LDat->toString();
tools/clang/lib/Analysis/ThreadSafetyCommon.cpp
   40 std::string threadSafety::getSourceLiteralString(const Expr *CE) {
   45       std::string ret("\"");
tools/clang/lib/Basic/Diagnostic.cpp
  783     const std::string &S = getArgStdStr(0);
  893       const std::string &S = getArgStdStr(ArgNo);
tools/clang/lib/Basic/DiagnosticIDs.cpp
  270       typedef std::pair<DiagnosticIDs::Level, std::string> DiagDesc;
  536 std::vector<std::string> DiagnosticIDs::getDiagnosticFlags() {
  537   std::vector<std::string> Res;
  539     std::string Diag(DiagGroupNames + I + 1, DiagGroupNames[I]);
tools/clang/lib/Basic/IdentifierTable.cpp
  382   std::string getName() const;
  457 std::string MultiKeywordSelector::getName() const {
  469 std::string Selector::getAsString() const {
  640 std::string SelectorTable::getPropertyNameFromSetterSelector(Selector Sel) {
tools/clang/lib/Basic/Module.cpp
  184     const std::pair<std::string, SourceLocation> &IdComponent) {
  213 std::string Module::getFullModuleName(bool AllowStringLiterals) const {
  220   std::string Result;
  247     for (std::vector<std::string>::iterator
tools/clang/lib/Basic/ObjCRuntime.cpp
   23 std::string ObjCRuntime::getAsString() const {
   24   std::string Result;
tools/clang/lib/Basic/SanitizerBlacklist.cpp
   18     const std::vector<std::string> &BlacklistPaths, SourceManager &SM)
tools/clang/lib/Basic/SanitizerSpecialCaseList.cpp
   18 SanitizerSpecialCaseList::create(const std::vector<std::string> &Paths,
   19                                  std::string &Error) {
   30 SanitizerSpecialCaseList::createOrDie(const std::vector<std::string> &Paths) {
   31   std::string Error;
tools/clang/lib/Basic/SourceLocation.cpp
   69 LLVM_DUMP_METHOD std::string
   71   std::string S;
  128 LLVM_DUMP_METHOD std::string
  130   std::string S;
tools/clang/lib/Basic/TargetInfo.cpp
  404     const std::vector<std::string> &FeatureVec) const {
  631   std::string SymbolicName(Start, Name - Start);
tools/clang/lib/Basic/Targets.cpp
   92       std::string GCCSpelling = "__attribute__((__";
tools/clang/lib/Basic/Targets/AArch64.cpp
   98 bool AArch64TargetInfo::setABI(const std::string &Name) {
  111 bool AArch64TargetInfo::setCPU(const std::string &Name) {
  273 bool AArch64TargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
  470     std::string &SuggestedModifier) const {
tools/clang/lib/Basic/Targets/AArch64.h
   44   std::string ABI;
   50   bool setABI(const std::string &Name) override;
   54   bool setCPU(const std::string &Name) override;
   76   bool handleTargetFeatures(std::vector<std::string> &Features,
   91                              std::string &SuggestedModifier) const override;
tools/clang/lib/Basic/Targets/AMDGPU.cpp
  129     const std::vector<std::string> &FeatureVec) const {
tools/clang/lib/Basic/Targets/AMDGPU.h
  196   std::string convertConstraint(const char *&Constraint) const override {
  209                  const std::vector<std::string> &FeatureVec) const override;
  231   bool setCPU(const std::string &Name) override {
tools/clang/lib/Basic/Targets/ARM.cpp
  333 bool ARMTargetInfo::setABI(const std::string &Name) {
  354     const std::vector<std::string> &FeaturesVec) const {
  356   std::string ArchFeature;
  391   std::vector<std::string> UpdatedFeaturesVec;
  412 bool ARMTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
  549 bool ARMTargetInfo::setCPU(const std::string &Name) {
 1017 std::string ARMTargetInfo::convertConstraint(const char *&Constraint) const {
 1018   std::string R;
 1036     std::string &SuggestedModifier) const {
tools/clang/lib/Basic/Targets/ARM.h
   51   std::string ABI, CPU;
  119   bool setABI(const std::string &Name) override;
  125                  const std::vector<std::string> &FeaturesVec) const override;
  133   bool handleTargetFeatures(std::vector<std::string> &Features,
  141   bool setCPU(const std::string &Name) override;
  166   std::string convertConstraint(const char *&Constraint) const override;
  169                              std::string &SuggestedModifier) const override;
tools/clang/lib/Basic/Targets/AVR.h
  170   bool setCPU(const std::string &Name) override {
  178   std::string CPU;
tools/clang/lib/Basic/Targets/BPF.h
   93   bool setCPU(const std::string &Name) override {
tools/clang/lib/Basic/Targets/Hexagon.cpp
   72     const std::vector<std::string> &FeaturesVec) const {
   78 bool HexagonTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
   85     else if (F.find("+hvxv") != std::string::npos) {
  129   std::string VS = "hvxv" + HVXVersion;
tools/clang/lib/Basic/Targets/Hexagon.h
   30   std::string CPU;
   31   std::string HVXVersion;
   93                  const std::vector<std::string> &FeaturesVec) const override;
   95   bool handleTargetFeatures(std::vector<std::string> &Features,
  116   bool setCPU(const std::string &Name) override {
tools/clang/lib/Basic/Targets/Lanai.cpp
   47 bool LanaiTargetInfo::setCPU(const std::string &Name) {
tools/clang/lib/Basic/Targets/Lanai.h
   69   bool setCPU(const std::string &Name) override;
tools/clang/lib/Basic/Targets/Mips.cpp
   96   const std::string ISARev = std::to_string(getISARev());
tools/clang/lib/Basic/Targets/Mips.h
   44   std::string CPU;
   60   std::string ABI;
   98   bool setABI(const std::string &Name) override {
  169   bool setCPU(const std::string &Name) override {
  174   const std::string &getCPU() const { return CPU; }
  178                  const std::vector<std::string> &FeaturesVec) const override {
  266   std::string convertConstraint(const char *&Constraint) const override {
  267     std::string R;
  305   bool handleTargetFeatures(std::vector<std::string> &Features,
tools/clang/lib/Basic/Targets/NVPTX.cpp
  177     std::string CUDAArchCode = [this] {
tools/clang/lib/Basic/Targets/NVPTX.h
   67                  const std::vector<std::string> &FeaturesVec) const override {
  118   bool setCPU(const std::string &Name) override {
tools/clang/lib/Basic/Targets/OSTargets.h
  117   std::string isValidSectionSpecifier(StringRef SR) const override {
tools/clang/lib/Basic/Targets/PPC.cpp
   31 bool PPCTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
  225                                  const std::vector<std::string> &FeaturesVec) {
  258     const std::vector<std::string> &FeaturesVec) const {
tools/clang/lib/Basic/Targets/PPC.h
   55   std::string CPU;
   72   std::string ABI;
   93   bool setCPU(const std::string &Name) override {
  165                  const std::vector<std::string> &FeaturesVec) const override;
  167   bool handleTargetFeatures(std::vector<std::string> &Features,
  292   std::string convertConstraint(const char *&Constraint) const override {
  293     std::string R;
  404   bool setABI(const std::string &Name) override {
tools/clang/lib/Basic/Targets/RISCV.cpp
  146 bool RISCVTargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
tools/clang/lib/Basic/Targets/RISCV.h
   27   std::string ABI;
   76   bool handleTargetFeatures(std::vector<std::string> &Features,
   89   bool setABI(const std::string &Name) override {
  113   bool setABI(const std::string &Name) override {
tools/clang/lib/Basic/Targets/Sparc.cpp
  165     std::string MyriadArchValue, Myriad2Value;
tools/clang/lib/Basic/Targets/Sparc.h
   39   bool handleTargetFeatures(std::vector<std::string> &Features,
  143   bool setCPU(const std::string &Name) override {
  225   bool setCPU(const std::string &Name) override {
tools/clang/lib/Basic/Targets/SystemZ.h
   28   std::string CPU;
   86   bool setCPU(const std::string &Name) override {
   95                  const std::vector<std::string> &FeaturesVec) const override {
  108   bool handleTargetFeatures(std::vector<std::string> &Features,
tools/clang/lib/Basic/Targets/WebAssembly.cpp
  101     const std::vector<std::string> &FeaturesVec) const {
  134     std::vector<std::string> &Features, DiagnosticsEngine &Diags) {
tools/clang/lib/Basic/Targets/WebAssembly.h
   71                  const std::vector<std::string> &FeaturesVec) const override;
   74   bool handleTargetFeatures(std::vector<std::string> &Features,
   80   bool setCPU(const std::string &Name) final { return isValidCPUName(Name); }
tools/clang/lib/Basic/Targets/X86.cpp
  106     const std::vector<std::string> &FeaturesVec) const {
  725 bool X86TargetInfo::handleTargetFeatures(std::vector<std::string> &Features,
  906   std::string CodeModel = getTargetOpts().CodeModel;
 1795 std::string X86TargetInfo::convertConstraint(const char *&Constraint) const {
 1799       std::string Converted = "{" + std::string(Constraint, Len) + "}";
tools/clang/lib/Basic/Targets/X86.h
  197   std::string convertConstraint(const char *&Constraint) const override;
  268                  const std::vector<std::string> &FeaturesVec) const override;
  274   bool handleTargetFeatures(std::vector<std::string> &Features,
  294   bool setCPU(const std::string &Name) override {
  448   bool handleTargetFeatures(std::vector<std::string> &Features,
  817   bool handleTargetFeatures(std::vector<std::string> &Features,
tools/clang/lib/Basic/Version.cpp
   26 std::string getClangRepositoryPath() {
   56 std::string getLLVMRepositoryPath() {
   73 std::string getClangRevision() {
   81 std::string getLLVMRevision() {
   89 std::string getClangFullRepositoryVersion() {
   90   std::string buf;
   92   std::string Path = getClangRepositoryPath();
   93   std::string Revision = getClangRevision();
  106   std::string LLVMRev = getLLVMRevision();
  109     std::string LLVMRepo = getLLVMRepositoryPath();
  117 std::string getClangFullVersion() {
  121 std::string getClangToolFullVersion(StringRef ToolName) {
  122   std::string buf;
  138 std::string getClangFullCPPVersion() {
  141   std::string buf;
tools/clang/lib/Basic/XRayLists.cpp
   17     ArrayRef<std::string> AlwaysInstrumentPaths,
   18     ArrayRef<std::string> NeverInstrumentPaths,
   19     ArrayRef<std::string> AttrListPaths, SourceManager &SM)
tools/clang/lib/CodeGen/BackendUtil.cpp
  757   std::string Error;
  758   std::string Triple = TheModule->getTargetTriple();
  767   std::string FeaturesStr =
 1368                               std::string SampleProfile,
 1369                               std::string ProfileRemapping,
 1550     std::string DLDesc = M->getDataLayout().getStringRepresentation();
 1614   std::string Data;
tools/clang/lib/CodeGen/CGAtomic.cpp
  988     std::string LibCallName;
tools/clang/lib/CodeGen/CGBlocks.cpp
  116 static std::string getBlockCaptureStr(const BlockCaptureManagedEntity &E,
  121 static std::string getBlockDescriptorName(const CGBlockInfo &BlockInfo,
  123   std::string Name = "__block_descriptor_";
  160   std::string TypeAtEncoding =
  198   std::string descName;
  241   std::string typeAtEncoding =
 1809 static std::string getBlockCaptureStr(const BlockCaptureManagedEntity &E,
 1813   std::string Str;
 1884     std::string FuncStr;
 1905 static std::string getCopyDestroyHelperFuncName(
 1911   std::string Name = StrKind == CaptureStrKind::CopyHelper
 1995   std::string FuncName =
 2190   std::string FuncName =
tools/clang/lib/CodeGen/CGBuiltin.cpp
  713   std::string Constraints = "=r,r,r,~{cc},~{flags},~{fpsr}";
 1401   std::string Pad = std::string(Lvl * 4, ' ');
 3117       std::string StrUtf8;
 3700     std::string Name = std::string(BaseName) +
 7253     std::string Reg = Value == 31 ? "sp" : "x" + Value.toString(10);
 7420     std::string SysRegStr;
tools/clang/lib/CodeGen/CGCUDANV.cpp
   71   std::string addPrefixToName(StringRef FuncName) const;
   72   std::string addUnderscoredPrefixToName(StringRef FuncName) const;
   80   llvm::Constant *makeConstantString(const std::string &Str,
   81                                      const std::string &Name = "",
   82                                      const std::string &SectionName = "",
  120   std::string getDeviceSideName(const Decl *ND);
  136   std::string getDeviceStubName(llvm::StringRef Name) const override;
  141 std::string CGNVCUDARuntime::addPrefixToName(StringRef FuncName) const {
  146 std::string
  207 std::string CGNVCUDARuntime::getDeviceSideName(const Decl *D) {
  209   std::string DeviceSideName;
  800 std::string CGNVCUDARuntime::getDeviceStubName(llvm::StringRef Name) const {
tools/clang/lib/CodeGen/CGCUDARuntime.h
   70   virtual std::string getDeviceStubName(llvm::StringRef Name) const = 0;
tools/clang/lib/CodeGen/CGCall.cpp
 1769     const std::vector<std::string> &Recips = CodeGenOpts.Reciprocals;
tools/clang/lib/CodeGen/CGClass.cpp
 2747   std::string TypeName = RD->getQualifiedNameAsString();
 2800   std::string TypeName = RD->getQualifiedNameAsString();
 2822   std::string TypeName = RD->getQualifiedNameAsString();
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  446   std::string RemappedFile = remapDIPath(FileName);
  447   std::string CurDir = remapDIPath(getCurrentDirname());
  479 std::string CGDebugInfo::remapDIPath(StringRef Path) const {
  532   std::string MainFileName = CGM.getCodeGenOpts().MainFileName;
  540   std::string MainFileDir;
  582   std::string Producer = getClangFullVersion();
 2388       const std::string &Macro = M.first;
tools/clang/lib/CodeGen/CGDebugInfo.h
  349   std::string remapDIPath(StringRef) const;
tools/clang/lib/CodeGen/CGDecl.cpp
  195 static std::string getStaticDeclName(CodeGenModule &CGM, const VarDecl &D) {
  201   std::string ContextName;
  231   std::string Name;
 1107     std::string Name;
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  563       std::string PrioritySuffix = llvm::utostr(Priority);
tools/clang/lib/CodeGen/CGExpr.cpp
 2763   std::string GVName = llvm::join(NameItems, NameItems + 2, ".");
 2765     std::string Name = SL->getString();
 2974   std::string FnName = "__ubsan_handle_" + CheckName.str();
tools/clang/lib/CodeGen/CGExprConstant.cpp
 1308     std::string Str;
tools/clang/lib/CodeGen/CGExprScalar.cpp
 3093   const std::string *handlerName =
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp
  151   std::string getVolatileOffsetStr(bool IsVolatile, CharUnits Offset) {
  152     std::string S;
  207   std::string getName(QualType QT, bool IsVolatile) {
  215   std::string Name;
  442         std::string FuncName = F->getName();
  855   std::string FuncName = GenName.getName(QT, IsVolatile);
  860 std::string CodeGenFunction::getNonTrivialCopyConstructorStr(
  866 std::string CodeGenFunction::getNonTrivialDestructorStr(QualType QT,
  880   std::string FuncName = GenName.getName(QT, IsVolatile);
  891   std::string FuncName = GenName.getName(QT, IsVolatile);
  905   std::string FuncName = GenName.getName(QT, IsVolatile);
  916   std::string FuncName = GenName.getName(QT, IsVolatile);
  930   std::string FuncName = GenName.getName(QT, IsVolatile);
  939   std::string FuncName = GenName.getName(QT, IsVolatile);
  950   std::string FuncName = GenName.getName(QT, IsVolatile);
  962   std::string FuncName = GenName.getName(QT, IsVolatile);
  974   std::string FuncName = GenName.getName(QT, IsVolatile);
  986   std::string FuncName = GenName.getName(QT, IsVolatile);
  996   std::string FuncName = GenName.getName(QT, IsVolatile);
tools/clang/lib/CodeGen/CGObjC.cpp
   96     std::string Str;
tools/clang/lib/CodeGen/CGObjCGNU.cpp
   44 std::string SymbolNameForMethod( StringRef ClassName,
   47   std::string MethodNameColonStripped = MethodName.getAsString();
  188   std::string ManglePublicSymbol(StringRef Name) {
  192   std::string SymbolForProtocol(Twine Name) {
  196   std::string SymbolForProtocolRef(StringRef Name) {
  214   llvm::Constant *ExportUniqueString(const std::string &Str,
  215                                      const std::string &prefix,
  217     std::string name = prefix + Str;
  237       std::string NameAndAttributes;
  238       std::string TypeStr =
  307         std::string TypeStr = Context.getObjCEncodingForMethodDecl(accessor);
  370   typedef std::pair<std::string, llvm::GlobalAlias*> TypedSelector;
  389   typedef std::pair<std::string, std::string> ClassAliasPair;
  389   typedef std::pair<std::string, std::string> ClassAliasPair;
  473   llvm::Constant *GenerateProtocolList(ArrayRef<std::string> Protocols);
  520                                         const std::string &TypeEncoding);
  525   virtual std::string GetIVarOffsetVariableName(const ObjCInterfaceDecl *ID,
  527     const std::string Name = "__objc_ivar_offset_" + ID->getNameAsString()
  536   void EmitClassRef(const std::string &className);
  540                                      const std::string &Name, bool isWeak);
  598                                               const std::string &TypeEncoding) {
  915   std::string sectionName() {
  917       std::string name(PECOFFSectionsBaseNames[K]);
  943   typedef std::pair<std::string, std::pair<llvm::Constant*, int>> EarlyInitPair;
  946   std::string SymbolForClassRef(StringRef Name, bool isWeak) {
  953   std::string SymbolForClass(StringRef Name) {
 1004     std::string Sym = SymbolForClass(StringClass);
 1078     std::string StringName;
 1130     std::string TypeStr =
 1133     std::string typeStr;
 1138         std::string TypeStr = Context.getObjCEncodingForMethodDecl(accessor);
 1206     std::string SymbolName = SymbolForClassRef(Name, isWeak);
 1252                              const std::string &Name,
 1291     std::string Name = SymbolForProtocol(ProtocolName);
 1313       std::string RefName = SymbolForProtocolRef(Name);
 1346     std::string ProtocolName = PD->getNameAsString();
 1425                                 const std::string &TypeEncoding) override {
 1431     std::string MangledTypes = TypeEncoding;
 1434     std::string TypesVarName = ".objc_sel_types_" + MangledTypes;
 1449                                       const std::string &TypeEncoding) override {
 1454     std::string MangledTypes = TypeEncoding;
 1662   std::string GetIVarOffsetVariableName(const ObjCInterfaceDecl *ID,
 1664     std::string TypeEncoding;
 1669     const std::string Name = "__objc_ivar_offset_" + ID->getNameAsString()
 1676     const std::string Name = GetIVarOffsetVariableName(Ivar->getContainingInterface(), Ivar);
 1694     std::string className = classDecl->getNameAsString();
 1829         std::string TypeStr;
 1837         std::string OffsetName = GetIVarOffsetVariableName(classDecl, IVD);
 2068   llvm::Value *GetClassNamed(CodeGenFunction &CGF, const std::string &Name,
 2074     std::string SymbolName = "_OBJC_CLASS_" + Name;
 2101 void CGObjCGNU::EmitClassRef(const std::string &className) {
 2102   std::string symbolRef = "__objc_class_ref_" + className;
 2106   std::string symbolName = "__objc_class_name_" + className;
 2269                                       const std::string &Name, bool isWeak) {
 2317                                          const std::string &TypeEncoding) {
 2355   std::string SelTypes = CGM.getContext().getObjCEncodingForMethodDecl(Method);
 2409   std::string className = IT->getDecl()->getIdentifier()->getName();
 2411   std::string typeinfoName = "__objc_eh_typeinfo_" + className;
 2453   std::string Str = SL->getString().str();
 2465   std::string Sym = "_OBJC_CLASS_";
 2968   std::string ClassSym((isMeta ? "_OBJC_METACLASS_": "_OBJC_CLASS_") +
 3006 CGObjCGNU::GenerateProtocolList(ArrayRef<std::string> Protocols) {
 3014   for (const std::string *iter = Protocols.begin(), *endIter = Protocols.end();
 3069   std::string ProtocolName = PD->getNameAsString();
 3075   SmallVector<std::string, 16> Protocols;
 3143   const std::string ClassName = "__ObjC_Protocol_Holder_Ugly_Hack";
 3144   const std::string CategoryName = "AnotherHack";
 3221   SmallVector<std::string, 16> Protocols;
 3229   std::string ClassName = Class->getNameAsString();
 3230   std::string CategoryName = OCD->getNameAsString();
 3380   std::string SuperClassName;
 3389   std::string ClassName = ClassDecl->getNameAsString();
 3393   std::string classSymbolName = "__objc_class_name_" + ClassName;
 3432       std::string TypeStr;
 3445       std::string OffsetName = "__objc_ivar_offset_value_" + ClassName +"." +
 3509   SmallVector<std::string, 16> Protocols;
 3547       const std::string Name = GetIVarOffsetVariableName(ClassDecl, IVD);
 3670       std::string selNameStr = untypedSel.getAsString();
 3768     std::string path =
 3865   std::string FunctionName = SymbolNameForMethod(ClassName, CategoryName,
 4025   const std::string Name = GetIVarOffsetVariableName(ID, Ivar);
 4082     std::string name = "__objc_ivar_offset_value_" +
tools/clang/lib/CodeGen/CGObjCMac.cpp
 1033   std::string GetSectionName(StringRef Section, StringRef MachOAttributes);
 1114   std::string getRCBlockLayoutStr(CodeGen::CodeGenModule &CGM,
 1860   std::string SectionName;
 1953   std::string str =
 1969   std::string str =
 2812   std::string BitMap;
 2865 static std::string getBlockLayoutInfoString(
 2868   std::string Str;
 2960 std::string CGObjCCommonMac::getRCBlockLayoutStr(CodeGenModule &CGM,
 3524   std::string ClassName = ID->getNameAsString();
 3600   std::string Name("OBJC_CLASS_");
 3663   std::string Name("OBJC_METACLASS_");
 3684   std::string Name = "OBJC_METACLASS_" + ID->getNameAsString();
 3706   std::string Name = "OBJC_CLASS_" + ID->getNameAsString();
 4224     std::string Constraint;
 4238     std::string Constraint;
 4919 std::string CGObjCCommonMac::GetSectionName(StringRef Section,
 4969   std::string Section =
 5505   std::string TypeStr;
 5516   std::string TypeStr =
 5538   std::string TypeStr =
 6205   std::string ClassName = ID->getObjCRuntimeNameAsString();
 6515   std::string ProtocolName("_OBJC_PROTOCOL_REFERENCE_$_");
 6562   std::string listName =
 7089 static void appendSelectorForMessageRefTable(std::string &buffer,
 7148   std::string messageRefName("_");
 7334     std::string SectionName =
 7373     std::string SectionName =
 7397     std::string SectionName =
 7494     std::string SectionName =
 7698       std::string EHTypeName = ("OBJC_EHTYPE_$_" + ClassName).str();
 7710   std::string VTableName = "objc_ehtype_vtable";
tools/clang/lib/CodeGen/CGObjCRuntime.h
  279   virtual std::string getRCBlockLayoutStr(CodeGen::CodeGenModule &CGM,
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  829     std::string Name = CGF.CGM.getOpenMPRuntime().getName({"init"});
 1336 std::string CGOpenMPRuntime::getName(ArrayRef<StringRef> Parts) const {
 1364   std::string Name = CGM.getOpenMPRuntime().getName(
 2713   std::string Suffix = getName({"cache", ""});
 2780       std::string Name = getName({"__kmpc_global_ctor_", ""});
 2813       std::string Name = getName({"__kmpc_global_dtor_", ""});
 2857       std::string Name = getName({"__omp_threadprivate_init_", ""});
 2990   std::string Suffix = getName({"artificial", ""});
 2991   std::string CacheSuffix = getName({"cache", ""});
 3154   std::string Prefix = Twine("gomp_critical_user_", CriticalName).str();
 3155   std::string Name = getName({Prefix, "var"});
 3303   std::string Name =
 4026   std::string StringName = getName({"omp_offloading", "entry_name"});
 4037   std::string EntryName = getName({"omp_offloading", "entry", ""});
 4514   std::string Name = CGM.getOpenMPRuntime().getName({"omp_task_entry", ""});
 4616   std::string Name =
 4710   std::string Name =
 4901   std::string Name = CGM.getOpenMPRuntime().getName({"omp_task_dup", ""});
 5574   std::string Name = getName({"omp", "reduction", "reduction_func"});
 5776   std::string Name = getName({"reduction"});
 5928           std::string Name = RT.getName({"atomic_reduction"});
 5976 static std::string generateUniqueName(CodeGenModule &CGM, StringRef Prefix,
 5985   std::string Name = CGM.getOpenMPRuntime().getName(
 6011   std::string Name = CGM.getOpenMPRuntime().getName({"red_init", ""});
 6088   std::string Name = CGM.getOpenMPRuntime().getName({"red_comb", ""});
 6158   std::string Name = CGM.getOpenMPRuntime().getName({"red_fini", ""});
 6525     std::string Name = getName({EntryFnName, "region_id"});
 8607       std::string Name = CGM.getOpenMPRuntime().getName({"offload_sizes"});
 8622     std::string MaptypesName =
 8867   std::string Name = getName({"omp_mapper", TyStr, D->getName()});
 9713       std::string RefName = getName({VarName, "ref"});
 9872     std::string ReqName = getName({"omp_offloading", "requires_reg"});
10477 static std::string mangleVectorParameters(ArrayRef<ParamAttrTy> ParamAttrs) {
10608   const std::string ParSeq = mangleVectorParameters(ParamAttrs);
tools/clang/lib/CodeGen/CGOpenMPRuntime.h
  828   std::string getName(ArrayRef<StringRef> Parts) const;
tools/clang/lib/CodeGen/CGStmt.cpp
 1733 static std::string
 1736   std::string Result;
 1786 static std::string
 1787 AddVariableConstraints(const std::string &Constraint, const Expr &AsmExpr,
 1820                                     std::string &ConstraintStr,
 1851                                            std::string &ConstraintStr) {
 1963   std::string AsmString = S.generateAsmString(getContext());
 1990   std::string Constraints;
 2001   std::string InOutConstraints;
 2006   std::vector<std::string> OutputConstraints;
 2020     std::string OutputConstraint(S.getOutputConstraint(i));
 2150     std::string InputConstraint(S.getInputConstraint(i));
 2158     std::string ReplaceConstraint (InputConstraint);
 2255   std::string MachineClobbers = getTarget().getClobbers();
tools/clang/lib/CodeGen/CGVTables.cpp
 1088     std::string S1;
 1094     std::string S2;
tools/clang/lib/CodeGen/CodeGenAction.cpp
  121                     const std::string &InFile,
  522   std::string Message = D.getMsgStr().str();
  655   std::string Msg;
  821   std::string MsgStorage;
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 2148                                 std::string &FirstMissing) {
 2199   std::string MissingFeature;
tools/clang/lib/CodeGen/CodeGenFunction.h
 3653   static std::string getNonTrivialCopyConstructorStr(QualType QT,
 3659   static std::string getNonTrivialDestructorStr(QualType QT,
 4187                             const Expr *InputExpr, std::string &ConstraintStr);
 4191                                   std::string &ConstraintStr,
tools/clang/lib/CodeGen/CodeGenModule.cpp
  738   std::string Msg = Type;
  748   std::string Msg = Type;
  935 static std::string getCPUSpecificMangling(const CodeGenModule &CGM,
  985 static std::string getMangledNameImpl(const CodeGenModule &CGM, GlobalDecl GD,
 1041   std::string NonTargetName =
 1056     std::string OtherName = getMangledNameImpl(*this, OtherGD, OtherFD);
 1093   std::string MangledName = getMangledNameImpl(*this, GD, ND);
 1226 static void removeImageAccessQualifier(std::string& TyName) {
 1227   std::string ReadOnlyQual("__read_only");
 1228   std::string::size_type ReadOnlyPos = TyName.find(ReadOnlyQual);
 1229   if (ReadOnlyPos != std::string::npos)
 1233     std::string WriteOnlyQual("__write_only");
 1234     std::string::size_type WriteOnlyPos = TyName.find(WriteOnlyQual);
 1235     if (WriteOnlyPos != std::string::npos)
 1238       std::string ReadWriteQual("__read_write");
 1239       std::string::size_type ReadWritePos = TyName.find(ReadWriteQual);
 1240       if (ReadWritePos != std::string::npos)
 1296       std::string typeQuals;
 1307         std::string typeName =
 1311         std::string::size_type pos = typeName.find("unsigned");
 1312         if (pointeeTy.isCanonical() && pos != std::string::npos)
 1317         std::string baseTypeName =
 1324         if (pos != std::string::npos)
 1348         std::string typeName;
 1358         std::string::size_type pos = typeName.find("unsigned");
 1359         if (ty.isCanonical() && pos != std::string::npos)
 1362         std::string baseTypeName;
 1386         if (pos != std::string::npos)
 1662   std::vector<std::string> Features;
 2275       std::string TypeStr = Ty.getAsString(getContext().getPrintingPolicy());
 2361   std::string Name = "_GUID_" + Uuid.lower();
 2803       std::string Name;
 2948     std::string MangledName = getMangledNameImpl(*this, GD, FD, true) +
 3008     std::string AliasName = getMangledNameImpl(
 3027   std::string MangledName =
 3032   std::string ResolverName = MangledName;
 4959   std::string Str;
 4969     const std::string &Str, const char *GlobalName) {
 5649   std::string Version = getClangFullVersion();
 5659   std::string CommandLine = getCodeGenOpts().RecordCommandLine;
 5771     std::string OutName;
 5907     std::vector<std::string> Features(FeaturesTmp.begin(), FeaturesTmp.end());
tools/clang/lib/CodeGen/CodeGenModule.h
  938   GetAddrOfConstantCString(const std::string &Str,
tools/clang/lib/CodeGen/CodeGenPGO.cpp
  832   std::string CoverageMapping;
  853   std::string CoverageMapping;
tools/clang/lib/CodeGen/CodeGenPGO.h
   30   std::string FuncName;
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1275 std::string getCoverageSection(const CodeGenModule &CGM) {
 1281 std::string normalizeFilename(StringRef Filename) {
 1322     const std::string &CoverageMapping, bool IsUsed) {
 1354     llvm::SmallVector<std::string, 16> FilenameStrs;
 1378   llvm::SmallVector<std::string, 16> FilenameStrs;
 1388   std::string FilenamesAndCoverageMappings;
tools/clang/lib/CodeGen/CoverageMappingGen.h
   56   std::vector<std::string> CoverageMappings;
   71                                 const std::string &CoverageMapping,
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 2421     std::string GlobalInitFnName =
tools/clang/lib/CodeGen/MacroPPCallbacks.cpp
  182   std::string NameBuffer, ValueBuffer;
tools/clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
   44   const std::string MainFileName;
   45   const std::string OutputFileName;
  136   PCHContainerGenerator(CompilerInstance &CI, const std::string &MainFileName,
  137                         const std::string &OutputFileName,
  264     std::string Error;
  320     CompilerInstance &CI, const std::string &MainFileName,
  321     const std::string &OutputFileName,
tools/clang/lib/CodeGen/SanitizerMetadata.cpp
   66   std::string QualName;
tools/clang/lib/CodeGen/TargetInfo.cpp
 1132                                 std::string &Constraints,
 1136                                 std::string &AsmString,
 1166                                              std::string &AsmString) {
 1167   std::string Buf;
 1172     if (DollarStart == std::string::npos)
 1175     if (DollarEnd == std::string::npos)
 1184       if (DigitEnd == std::string::npos)
 1203     CodeGenFunction &CGF, LValue ReturnSlot, std::string &Constraints,
 1206     std::vector<LValue> &ResultRegDests, std::string &AsmString,
 2369 static std::string qualifyWindowsLibrary(llvm::StringRef Lib) {
 2374   std::string ArgStr = Quote ? "\"" : "";
 7987       std::string AttrVal = llvm::utostr(Min) + "," + llvm::utostr(Max);
 8007       std::string AttrVal = llvm::utostr(Min);
 8080   std::string Name;
 8660     std::string Str;     // The encoded TypeString for the type.
 8662     std::string Swapped; // A temporary place holder for a Recursive encoding
 8670   void addIncomplete(const IdentifierInfo *ID, std::string StubEnc);
 8681   std::string Enc;
 8767                                     std::string StubEnc) {
 8969     std::string StubEnc(Enc.substr(Start).str());
 9896   std::string Name = Invoke->getName().str() + "_kernel";
 9954   std::string Name = Invoke->getName().str() + "_kernel";
tools/clang/lib/CodeGen/TargetInfo.h
  136       std::string &Constraints, std::vector<llvm::Type *> &ResultRegTypes,
  138       std::vector<CodeGen::LValue> &ResultRegDests, std::string &AsmString,
tools/clang/lib/CrossTU/CrossTranslationUnit.cpp
   87   std::string message(int Condition) const override {
  131 llvm::Expected<llvm::StringMap<std::string>>
  138   llvm::StringMap<std::string> Result;
  139   std::string Line;
  143     if (Pos > 0 && Pos != std::string::npos) {
  161 std::string
  162 createCrossTUIndexString(const llvm::StringMap<std::string> &Index) {
  195 llvm::Optional<std::string>
  221     llvm::Optional<std::string> ResultLookupName = getLookupName(ResultDecl);
  237   const llvm::Optional<std::string> LookupName = getLookupName(D);
  443 llvm::Expected<std::string>
tools/clang/lib/DirectoryWatcher/DirectoryScanner.cpp
   25 std::vector<std::string> scanDirectory(StringRef Path) {
   27   std::vector<std::string> Result;
   43 getAsFileEvents(const std::vector<std::string> &Scan) {
tools/clang/lib/DirectoryWatcher/DirectoryScanner.h
   19 std::vector<std::string> scanDirectory(llvm::StringRef Path);
   23 getAsFileEvents(const std::vector<std::string> &Scan);
tools/clang/lib/DirectoryWatcher/linux/DirectoryWatcher-linux.cpp
  132   const std::string WatchedDirPath;
tools/clang/lib/Driver/Action.cpp
   91 std::string Action::getOffloadingKindPrefix() const {
  111   std::string Res("host");
  129 std::string
  137   std::string Res("-");
tools/clang/lib/Driver/Compilation.cpp
  180   std::string Error;
tools/clang/lib/Driver/Driver.cpp
   95 std::string Driver::GetResourcesPath(StringRef BinaryPath,
  102   std::string Dir = llvm::sys::path::parent_path(BinaryPath);
  170   const std::string OptName =
  217       std::string Nearest;
  244     std::string Nearest;
  677           std::string NormalizedName = TT.normalize();
  736                           ArrayRef<std::string> Dirs,
  787   std::string CfgFileName;
  818     std::vector<std::string> ConfigFiles =
  892   SmallVector<std::string, 3> CfgFileSearchDirs;
  926     for (const std::string &SearchDir : CfgFileSearchDirs)
  941   if (Optional<std::string> CompilerPathValue =
 1444   std::string TmpName = GetTemporaryPath("response", "txt");
 1529   std::string Usage = llvm::formatv("{0} [options] file...", Name).str();
 1573   std::vector<std::string> SuggestedCompletions;
 1574   std::vector<std::string> Flags;
 1711     for (const std::string &Path : TC.getProgramPaths()) {
 1722     for (const std::string &Path : TC.getFilePaths()) {
 1821   std::string str;
 1879   std::string offload_str;
 2047     std::string Nearest;
 2411         std::string FileName = IA->getInputArg().getAsString(Args);
 2851         std::string FileName = IA->getInputArg().getAsString(Args);
 3645   std::map<std::pair<const Action *, std::string>, InputInfo> CachedResults;
 4015 static std::string GetTriplePlusArchString(const ToolChain *TC,
 4018   std::string TriplePlusArch = TC->getTriple().normalize();
 4031     std::map<std::pair<const Action *, std::string>, InputInfo> &CachedResults,
 4033   std::pair<const Action *, std::string> ActionTC = {
 4049     std::map<std::pair<const Action *, std::string>, InputInfo> &CachedResults,
 4228       std::string OffloadingPrefix = Action::GetOffloadingFileNamePrefix(
 4261     std::pair<const Action *, std::string> ActionTC = {
 4271     std::string OffloadingPrefix = Action::GetOffloadingFileNamePrefix(
 4489     std::string::size_type End = std::string::npos;
 4489     std::string::size_type End = std::string::npos;
 4532       std::string TmpName = GetTemporaryPath(
 4551 std::string Driver::GetFilePath(StringRef Name, const ToolChain &TC) const {
 4597     SmallVectorImpl<std::string> &Names) const {
 4603   std::string DefaultTargetTriple = llvm::sys::getDefaultTargetTriple();
 4619 std::string Driver::GetProgramPath(StringRef Name, const ToolChain &TC) const {
 4620   SmallVector<std::string, 2> TargetSpecificExecutables;
 4646     if (llvm::ErrorOr<std::string> P =
 4653 std::string Driver::GetTemporaryPath(StringRef Prefix, StringRef Suffix) const {
 4664 std::string Driver::GetTemporaryDirectory(StringRef Prefix) const {
 4675 std::string Driver::GetClPchPath(Compilation &C, StringRef BaseName) const {
tools/clang/lib/Driver/InputInfo.h
   94   std::string getAsString() const {
tools/clang/lib/Driver/Job.cpp
  284     std::string ModCachePath = "-fmodules-cache-path=";
  317                      std::string *ErrMsg, bool *ExecutionFailed) const {
  348   std::string RespContents;
  396                              std::string *ErrMsg, bool *ExecutionFailed) const {
  426                                  std::string *ErrMsg,
tools/clang/lib/Driver/Multilib.cpp
   29 static void normalizePathSegment(std::string &Segment) {
  220   std::string Error;
tools/clang/lib/Driver/SanitizerArgs.cpp
  106 static std::string lastArgumentForMask(const Driver &D,
  114 static std::string describeSanitizeArg(const llvm::opt::Arg *A,
  119 static std::string toString(const clang::SanitizerSet &Sanitizers);
  122                                  std::vector<std::string> &BlacklistFiles) {
  300         std::string Desc = describeSanitizeArg(*I, KindsToDiagnose);
  310           std::string Desc = describeSanitizeArg(*I, KindsToDiagnose);
  337         std::string Desc = describeSanitizeArg(*I, KindsToDiagnose);
  565       std::string BLPath = Arg->getValue();
  580     std::string BLError;
  850 static std::string toString(const clang::SanitizerSet &Sanitizers) {
  851   std::string Res;
 1123 std::string lastArgumentForMask(const Driver &D, const llvm::opt::ArgList &Args,
 1143 std::string describeSanitizeArg(const llvm::opt::Arg *A, SanitizerMask Mask) {
 1147   std::string Sanitizers;
tools/clang/lib/Driver/ToolChain.cpp
   85   std::string CandidateLibPath = getArchSpecificLibPath();
  168 static std::string normalizeProgramName(llvm::StringRef Argv0) {
  169   std::string ProgName = llvm::sys::path::stem(Argv0);
  205   std::string ProgName = normalizeProgramName(PN);
  213   if (LastComponent == std::string::npos)
  215   std::string ModeSuffix = ProgName.substr(LastComponent + 1,
  221   std::string IgnoredError;
  243 std::string ToolChain::getInputFilename(const InputInfo &Input) const {
  373 std::string ToolChain::getCompilerRTPath() const {
  383 std::string ToolChain::getCompilerRT(const ArgList &Args, StringRef Component,
  428 Optional<std::string> ToolChain::getRuntimePath() const {
  446 Optional<std::string> ToolChain::getCXXStdlibPath() const {
  464 std::string ToolChain::getArchSpecificLibPath() const {
  503 std::string ToolChain::GetFilePath(const char *Name) const {
  507 std::string ToolChain::GetProgramPath(const char *Name) const {
  511 std::string ToolChain::GetLinkerPath() const {
  532     std::string LinkerPath(GetProgramPath(LinkerName.c_str()));
  592 std::string ToolChain::ComputeLLVMTriple(const ArgList &Args,
  647     std::string CPU =
  659     std::string ArchName;
  713 std::string ToolChain::ComputeEffectiveClangTriple(const ArgList &Args,
  915   std::string Path = GetFilePath("crtfastmath.o");
tools/clang/lib/Driver/ToolChains/AMDGPU.cpp
   28   std::string Linker = getToolChain().GetProgramPath(getShortName());
tools/clang/lib/Driver/ToolChains/AVR.cpp
   56     std::string CPU = getCPUName(Args, Triple);
   63       Optional<std::string> AVRLibcRoot = findAVRLibcInstallation();
   77         std::string GCCRoot = GCCInstallation.getInstallPath();
   78         std::string LibcRoot = AVRLibcRoot.getValue();
  106   std::string CPU = getCPUName(Args, getToolChain().getTriple());
  109   std::string Linker = getToolChain().GetProgramPath(getShortName());
  130     std::string CrtFileName = std::string("-l:crt") + CPU + std::string(".o");
  151 llvm::Optional<std::string> AVRToolChain::findAVRLibcInstallation() const {
tools/clang/lib/Driver/ToolChains/AVR.h
   36   llvm::Optional<std::string> findAVRLibcInstallation() const;
tools/clang/lib/Driver/ToolChains/Arch/AArch64.cpp
   31 std::string aarch64::getAArch64TargetCPU(const ArgList &Args,
   33   std::string CPU;
  104   std::string MarchLowerCase = March.lower();
  121   std::string McpuLowerCase = Mcpu.lower();
  132   std::string MtuneLowerCase = Mtune.lower();
  155   std::string McpuLowerCase = Mcpu.lower();
tools/clang/lib/Driver/ToolChains/Arch/AArch64.h
   27 std::string getAArch64TargetCPU(const llvm::opt::ArgList &Args,
tools/clang/lib/Driver/ToolChains/Arch/ARM.cpp
  107   std::string MArch = arm::getARMArch(ArchName, Triple);
  122   std::string CPU = arm::getARMTargetCPU(CPUName, ArchName, Triple);
  463     for (std::string Feature : {
  609 const std::string arm::getARMArch(StringRef Arch, const llvm::Triple &Triple) {
  610   std::string MArch;
  619     std::string CPU = llvm::sys::getHostCPUName();
  637   std::string MArch = getARMArch(Arch, Triple);
  649 std::string arm::getARMTargetCPU(StringRef CPU, StringRef Arch,
  654     std::string MCPU = StringRef(CPU).split("+").first.lower();
  673     std::string ARMArch = tools::arm::getARMArch(Arch, Triple);
tools/clang/lib/Driver/ToolChains/Arch/ARM.h
   25 std::string getARMTargetCPU(StringRef CPU, llvm::StringRef Arch,
   27 const std::string getARMArch(llvm::StringRef Arch, const llvm::Triple &Triple);
tools/clang/lib/Driver/ToolChains/Arch/Mips.cpp
  132 std::string mips::getMipsABILibSuffix(const ArgList &Args,
tools/clang/lib/Driver/ToolChains/Arch/Mips.h
   43 std::string getMipsABILibSuffix(const llvm::opt::ArgList &Args,
tools/clang/lib/Driver/ToolChains/Arch/PPC.cpp
   24 std::string ppc::getPPCTargetCPU(const ArgList &Args) {
   29       std::string CPU = llvm::sys::getHostCPUName();
tools/clang/lib/Driver/ToolChains/Arch/PPC.h
   38 std::string getPPCTargetCPU(const llvm::opt::ArgList &Args);
tools/clang/lib/Driver/ToolChains/Arch/RISCV.cpp
   57                                 std::string &Major, std::string &Minor) {
   57                                 std::string &Major, std::string &Minor) {
   69       std::string Error =
   78   std::string Error = "unsupported version number " + Major;
  136       std::string Error = Desc;
  147       std::string Error = Desc;
  154     std::string Major, Minor;
  165       std::string Error = "duplicated ";
  183       std::string Error = "unsupported ";
  264   std::string Major, Minor;
  300       std::string Next = std::string(std::next(I), E);
  301       std::string Major, Minor;
tools/clang/lib/Driver/ToolChains/Arch/X86.cpp
   34     std::string CPU = llvm::sys::getHostCPUName();
tools/clang/lib/Driver/ToolChains/BareMetal.cpp
   67 std::string BareMetal::getRuntimesDir() const {
tools/clang/lib/Driver/ToolChains/BareMetal.h
   49   std::string getRuntimesDir() const;
tools/clang/lib/Driver/ToolChains/Clang.cpp
  527   } else if (llvm::ErrorOr<std::string> CWD =
  634   std::string UID = llvm::utostr(getuid());
 1309     std::string CPU = getCPUName(Args, Triple, /*FromAs*/ false);
 2573     std::string CLStdStr = std::string("-cl-std=") + A->getValue();
 3040     std::string Opt =
 3376   const std::string &TripleStr = Triple.getTriple();
 3466     std::string NormalizedTriple;
 3497     std::string NormalizedTriple =
 4104   std::string CPU = getCPUName(Args, Triple, /*FromAs*/ false);
 4999     std::string PackStructStr = "-fpack-struct=";
 5011       std::string MaxTypeAlignStr = "-fmax-type-align=";
 5017       std::string MaxTypeAlignStr = "-fmax-type-align=16";
 5155       std::string Extension = "opt.";
 5502     std::string Str = A->getAsString(Args);
 5720 static bool maybeConsumeDash(const std::string &EH, size_t &I) {
 5744   std::vector<std::string> EHArgs =
 6075   const std::string &TripleStr = Triple.getTriple();
 6105   std::string CPU = getCPUName(Args, Triple, /*FromAs*/ true);
tools/clang/lib/Driver/ToolChains/CommonArgs.cpp
  209 static std::string getR600TargetGPU(const ArgList &Args) {
  225 static std::string getLanaiTargetCPU(const ArgList &Args) {
  251 std::string tools::getCPUName(const ArgList &Args, const llvm::Triple &T,
  296     std::string TargetCPUName = ppc::getPPCTargetCPU(Args);
  386   std::string CPU = getCPUName(Args, ToolChain.getTriple());
  507   std::string CandidateRPath = TC.getArchSpecificLibPath();
 1288   std::string Name = llvm::sys::path::filename(Output.getFilename());
 1301   std::string LksBuffer;
tools/clang/lib/Driver/ToolChains/CommonArgs.h
  103 std::string getCPUName(const llvm::opt::ArgList &Args, const llvm::Triple &T,
tools/clang/lib/Driver/ToolChains/CrossWindows.cpp
   57   const std::string Assembler = TC.GetProgramPath("as");
  235   const std::string &SysRoot = D.SysRoot;
  260   const std::string &SysRoot = getDriver().SysRoot;
tools/clang/lib/Driver/ToolChains/Cuda.cpp
   73     std::string Path;
   76     Candidate(std::string Path, bool StrictChecking = false)
  102       if (llvm::ErrorOr<std::string> ptxas =
  167       std::string FilePath = LibDevicePath + "/libdevice.10.bc";
  587 std::string CudaToolChain::getInputFilename(const InputInfo &Input) const {
  632   std::string LibDeviceFile = CudaInstallation.getLibDeviceFile(GpuArch);
  685     llvm::Optional<std::string> LibPath =
  701     std::string LibOmpTargetName =
tools/clang/lib/Driver/ToolChains/Cuda.h
   33   std::string InstallPath;
   34   std::string BinPath;
   35   std::string LibPath;
   36   std::string LibDevicePath;
   37   std::string IncludePath;
   38   llvm::StringMap<std::string> LibDeviceMap;
   75   std::string getLibDeviceFile(StringRef Gpu) const {
  143   std::string getInputFilename(const InputInfo &Input) const override;
tools/clang/lib/Driver/ToolChains/Darwin.cpp
  228     std::string TmpPathName;
  489         std::string Opt =
  498       std::string Passes =
  506       std::string Format =
  855 std::string Darwin::ComputeEffectiveClangTriple(const ArgList &Args,
 1230 static std::string getSystemOrSDKMacOSVersion(StringRef MacOSSDKVersion) {
 1321   std::string getAsString(DerivedArgList &Args, const OptTable &Opts) {
 1415   std::string OSVersion;
 1468   std::string Targets[Darwin::LastDarwinPlatform + 1];
 1531   std::string Version;
 1564 std::string getOSVersion(llvm::Triple::OSType OS, const llvm::Triple &Triple,
 1594   std::string OSVersion;
 1630   std::string OSVersion = getOSVersion(Triple.getOS(), Triple, TheDriver);
 1706           std::string OSVersionArg =
 1708           std::string TargetArg = OSTarget->getAsString(Args, Opts);
 2331     std::string Arg;
tools/clang/lib/Driver/ToolChains/Darwin.h
  308   std::string ComputeEffectiveClangTriple(const llvm::opt::ArgList &Args,
tools/clang/lib/Driver/ToolChains/FreeBSD.cpp
   99     std::string CPU = getCPUName(Args, getToolChain().getTriple());
tools/clang/lib/Driver/ToolChains/Fuchsia.cpp
   87     std::string Dyld = D.DyldPrefix;
  178     std::vector<std::string> FP;
  203     std::vector<std::string> RD = FilePaths(M);
  224 std::string Fuchsia::ComputeEffectiveClangTriple(const ArgList &Args,
tools/clang/lib/Driver/ToolChains/Fuchsia.h
   66   std::string ComputeEffectiveClangTriple(const llvm::opt::ArgList &Args,
tools/clang/lib/Driver/ToolChains/Gnu.cpp
  182   const std::string &customGCCName = D.getCCCGenericGCCName();
  411     std::string CPU = getCPUName(Args, Triple);
  449       const std::string Loader =
  481       std::string P;
  484         std::string crtbegin = ToolChain.getCompilerRT(Args, "crtbegin",
  601         std::string P;
  604           std::string crtend = ToolChain.getCompilerRT(Args, "crtend",
  722     std::string CPU = getCPUName(Args, getToolChain().getTriple());
  730     std::string CPU = getCPUName(Args, getToolChain().getTriple());
  993               std::vector<std::string> Dirs({"/include"});
 1174               std::vector<std::string> Dirs({"/include"});
 1761     ArrayRef<std::string> ExtraTripleAliases) {
 1775   SmallVector<std::string, 8> Prefixes(D.PrefixDirs.begin(),
 1827   for (const std::string &Prefix : Prefixes) {
 1831       const std::string LibDir = Prefix + Suffix.str();
 1843       const std::string LibDir = Prefix + Suffix.str();
 1876     const llvm::Triple &TargetTriple, SmallVectorImpl<std::string> &Prefixes,
 1885     std::string PrefixDir = SysRoot.str() + "/usr/gcc";
 1897       std::string CandidatePrefix = PrefixDir + "/" + VersionText.str();
 1898       std::string CandidateLibPath = CandidatePrefix + "/lib/gcc";
 2334     const std::string &LibDir, StringRef CandidateTriple,
 2341     std::string LibSuffix;
 2476       std::string basePath = "/usr/lib/gcc/" + ActiveVersion.first.str() + "/"
 2482         std::string GentooPath = D.SysRoot + std::string(GentooScanPath);
tools/clang/lib/Driver/ToolChains/Gnu.h
  158     std::string Text;
  164     std::string MajorStr, MinorStr;
  167     std::string PatchSuffix;
  192     std::string GCCInstallPath;
  193     std::string GCCParentLibPath;
  205     std::set<std::string> CandidateGCCInstallPaths;
  213               ArrayRef<std::string> ExtraTripleAliases = None);
  253                                SmallVectorImpl<std::string> &Prefixes,
  263                                 const std::string &LibDir,
tools/clang/lib/Driver/ToolChains/HIP.cpp
   38   for (std::string LibraryPath : LibraryPaths) {
   59     std::string TmpName =
  150   std::string MAttrString = "-mattr=";
  202   std::string BundlerTargetArg = "-targets=host-x86_64-unknown-linux";
  203   std::string BundlerInputArg = "-inputs=" NULL_FILE;
  238   std::string SubArchName = JA.getOffloadingArch();
  242   std::string Prefix = llvm::sys::path::stem(Inputs[0].getFilename()).str();
  320   llvm::SmallVector<std::string, 10> BCLibs;
  331     std::string GFXVersion = GpuArch.drop_front(3).str();
  332     std::string ISAVerBC = "oclc_isa_version_" + GFXVersion + ".amdgcn.bc";
tools/clang/lib/Driver/ToolChains/Hexagon.cpp
  265   std::vector<std::string> OsLibs;
  281   const std::string MCpuSuffix = "/" + CpuVer.str();
  282   const std::string MCpuG0Suffix = MCpuSuffix + "/G0";
  283   const std::string RootDir =
  285   const std::string StartSubDir =
  290     std::string RelName = SubDir + Name;
  291     std::string P = HTC.GetFilePath(RelName.c_str());
  300         std::string Crt0SA = Find(RootDir, StartSubDir, "/crt0_standalone.o");
  303       std::string Crt0 = Find(RootDir, StartSubDir, "/crt0.o");
  306     std::string Init = UseShared
  354     std::string Fini = UseShared
  379 std::string HexagonToolChain::getHexagonTargetDir(
  380       const std::string &InstalledDir,
  381       const SmallVectorImpl<std::string> &PrefixDirs) const {
  382   std::string InstallRelDir;
  427   std::vector<std::string> RootDirs;
  431   std::string TargetDir = getHexagonTargetDir(D.getInstalledDir(),
  442   const std::string CpuVer = GetTargetCPUVersion(Args).str();
  444     std::string LibDir = Dir + "/hexagon/lib";
  445     std::string LibDirCpu = LibDir + '/' + CpuVer;
  459   const std::string TargetDir = getHexagonTargetDir(D.getInstalledDir(),
  464   const std::string BinDir(TargetDir + "/bin");
  532   std::string TargetDir = getHexagonTargetDir(D.getInstalledDir(),
  542   std::string TargetDir = getHexagonTargetDir(D.InstalledDir, D.PrefixDirs);
tools/clang/lib/Driver/ToolChains/Hexagon.h
   93   std::string getHexagonTargetDir(
   94       const std::string &InstalledDir,
   95       const SmallVectorImpl<std::string> &PrefixDirs) const;
tools/clang/lib/Driver/ToolChains/Hurd.cpp
   30 static std::string getMultiarchTriple(const Driver &D,
   67   std::string SysRoot = computeSysRoot();
   70   const std::string OSLibDir = getOSLibDir(Triple, Args);
   71   const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot);
  107 std::string Hurd::computeSysRoot() const {
  114 std::string Hurd::getDynamicLinker(const ArgList &Args) const {
  124   std::string SysRoot = computeSysRoot();
  157     std::string Path = SysRoot + "/usr/include/i386-gnu";
tools/clang/lib/Driver/ToolChains/Hurd.h
   30   virtual std::string computeSysRoot() const;
   32   virtual std::string getDynamicLinker(const llvm::opt::ArgList &Args) const;
   34   std::vector<std::string> ExtraOpts;
tools/clang/lib/Driver/ToolChains/InterfaceStubs.cpp
   21   std::string Merger = getToolChain().GetProgramPath(getShortName());
tools/clang/lib/Driver/ToolChains/Linux.cpp
   40 static std::string getMultiarchTriple(const Driver &D,
  106     std::string MT = IsMipsR6 ? "mipsisa32r6-linux-gnu" : "mips-linux-gnu";
  114     std::string MT = IsMipsR6 ? "mipsisa32r6el-linux-gnu" : "mipsel-linux-gnu";
  120     std::string MT = std::string(IsMipsR6 ? "mipsisa64r6" : "mips64") +
  131     std::string MT = std::string(IsMipsR6 ? "mipsisa64r6el" : "mips64el") +
  226   std::string SysRoot = computeSysRoot();
  317   const std::string OSLibDir = getOSLibDir(Triple, Args);
  318   const std::string MultiarchTriple = getMultiarchTriple(D, Triple, SysRoot);
  323     const std::string &LibPath = GCCInstallation.getParentLibPath();
  432     const std::string &LibPath = GCCInstallation.getParentLibPath();
  471 std::string Linux::computeSysRoot() const {
  479     std::string AndroidSysRootPath = (ClangDir + "/../sysroot").str();
  495   std::string Path =
  510 std::string Linux::getDynamicLinker(const ArgList &Args) const {
  520     std::string ArchName;
  545   std::string LibDir;
  546   std::string Loader;
  653   std::string SysRoot = computeSysRoot();
  840   const std::string AndroidMultiarchIncludeDir =
  868 static std::string DetectLibcxxIncludePath(llvm::vfs::FileSystem &vfs,
  872   std::string MaxVersionString = "";
  890   const std::string& SysRoot = computeSysRoot();
  891   const std::string LibCXXIncludePathCandidates[] = {
  921   const std::string GCCMultiarchTriple = getMultiarchTriple(
  923   const std::string TargetMultiarchTriple =
  936   const std::string LibStdCXXIncludePathCandidates[] = {
tools/clang/lib/Driver/ToolChains/Linux.h
   46   virtual std::string computeSysRoot() const;
   48   virtual std::string getDynamicLinker(const llvm::opt::ArgList &Args) const;
   50   std::vector<std::string> ExtraOpts;
tools/clang/lib/Driver/ToolChains/MSP430.cpp
  135 std::string MSP430ToolChain::computeSysRoot() const {
  190   std::string Linker = ToolChain.GetProgramPath(getShortName());
tools/clang/lib/Driver/ToolChains/MSP430.h
   47   std::string computeSysRoot() const;
tools/clang/lib/Driver/ToolChains/MSVC.cpp
   67                                     std::string &value, std::string *phValue);
   67                                     std::string &value, std::string *phValue);
   70 static bool findVCToolChainViaEnvironment(std::string &Path,
   74   if (llvm::Optional<std::string> VCToolsInstallDir =
   82   if (llvm::Optional<std::string> VCInstallDir =
   96   if (llvm::Optional<std::string> PathEnv =
  182 static bool findVCToolChainViaSetupConfig(std::string &Path,
  273 static bool findVCToolChainViaRegistry(std::string &Path,
  275   std::string VSInstallPath;
  297 static std::string FindVisualStudioExecutable(const ToolChain &TC,
  340       std::string UniversalCRTLibPath;
  346     std::string WindowsSdkLibPath;
  667   std::vector<std::string> Includes =
  724   std::string Exec = FindVisualStudioExecutable(getToolChain(), "cl.exe");
  852 std::string
  941                                     std::string &value, std::string *phValue) {
  941                                     std::string &value, std::string *phValue) {
 1031 static bool getWindows10SDKVersionFromPath(const std::string &SDKPath,
 1032                                            std::string &SDKVersion) {
 1056 static bool getWindowsSDKDir(std::string &Path, int &Major,
 1057                              std::string &WindowsSDKIncludeVersion,
 1058                              std::string &WindowsSDKLibVersion) {
 1059   std::string RegistrySDKVersion;
 1100 bool MSVCToolChain::getWindowsSDKLibraryPath(std::string &path) const {
 1101   std::string sdkPath;
 1103   std::string windowsSDKIncludeVersion;
 1104   std::string windowsSDKLibVersion;
 1145 static bool getUniversalCRTSdkDir(std::string &Path, std::string &UCRTVersion) {
 1145 static bool getUniversalCRTSdkDir(std::string &Path, std::string &UCRTVersion) {
 1156 bool MSVCToolChain::getUniversalCRTLibraryPath(std::string &Path) const {
 1157   std::string UniversalCRTSdkPath;
 1158   std::string UCRTVersion;
 1183 static VersionTuple getMSVCVersionFromExe(const std::string &BinDir) {
 1246   if (llvm::Optional<std::string> cl_include_dir =
 1266       std::string UniversalCRTSdkPath;
 1267       std::string UCRTVersion;
 1274     std::string WindowsSDKDir;
 1276     std::string windowsSDKIncludeVersion;
 1277     std::string windowsSDKLibVersion;
 1337 std::string
 1478   std::string NewVal = Val;
tools/clang/lib/Driver/ToolChains/MSVC.h
  100   std::string getSubDirectoryPath(SubDirectoryType Type,
  106   std::string getSubDirectoryPath(SubDirectoryType Type,
  128   bool getWindowsSDKLibraryPath(std::string &path) const;
  130   bool getUniversalCRTLibraryPath(std::string &path) const;
  136   std::string ComputeEffectiveClangTriple(const llvm::opt::ArgList &Args,
  155   std::string VCToolChainPath;
tools/clang/lib/Driver/ToolChains/MinGW.cpp
  301 static bool findGccVersion(StringRef LibDir, std::string &GccLibDir,
  302                            std::string &Ver) {
  341 llvm::ErrorOr<std::string> toolchains::MinGW::findGcc() {
  348     if (llvm::ErrorOr<std::string> GPPName = llvm::sys::findProgramByName(CandidateGcc))
  353 llvm::ErrorOr<std::string> toolchains::MinGW::findClangRelativeSysroot() {
  379   else if (llvm::ErrorOr<std::string> TargetSubdir = findClangRelativeSysroot())
  381   else if (llvm::ErrorOr<std::string> GPPName = findGcc())
tools/clang/lib/Driver/ToolChains/MinGW.h
   95   std::string Base;
   96   std::string GccLibDir;
   97   std::string Ver;
   98   std::string Arch;
  102   llvm::ErrorOr<std::string> findGcc();
  103   llvm::ErrorOr<std::string> findClangRelativeSysroot();
tools/clang/lib/Driver/ToolChains/MipsLinux.cpp
   69 std::string MipsLLVMToolChain::computeSysRoot() const {
   73   const std::string InstalledDir(getDriver().getInstalledDir());
   74   std::string SysRootPath =
   99     for (std::string Path : Callback(SelectedMultilib)) {
  119 std::string MipsLLVMToolChain::getCompilerRT(const ArgList &Args,
tools/clang/lib/Driver/ToolChains/MipsLinux.h
   40   std::string
   44   std::string computeSysRoot() const override;
   57   std::string LibSuffix;
tools/clang/lib/Driver/ToolChains/Myriad.cpp
   78   std::string Exec =
  113   std::string Exec =
  199   std::string Exec =
  247   std::string Path(getDriver().getInstalledDir());
tools/clang/lib/Driver/ToolChains/NaCl.cpp
  214   std::string FilePath(getDriver().Dir + "/../");
  217   std::string ProgPath(getDriver().Dir + "/../");
  220   std::string ToolPath(getDriver().ResourceDir + "/lib/");
  352 std::string
tools/clang/lib/Driver/ToolChains/NaCl.h
   73   std::string ComputeEffectiveClangTriple(const llvm::opt::ArgList &Args,
   81   std::string NaClArmMacrosPath;
tools/clang/lib/Driver/ToolChains/NetBSD.cpp
   47     std::string Arch =
   79     std::string CPU = getCPUName(Args, getToolChain().getTriple());
   87     std::string CPU = getCPUName(Args, getToolChain().getTriple());
  430   const std::string Candidates[] = {
tools/clang/lib/Driver/ToolChains/OpenBSD.cpp
   47     std::string CPU = getCPUName(Args, getToolChain().getTriple());
   55     std::string CPU = getCPUName(Args, getToolChain().getTriple());
tools/clang/lib/Driver/ToolChains/PS4CPU.cpp
  379   std::string PrefixDir;
tools/clang/lib/Driver/ToolChains/RISCVToolchain.cpp
   73 std::string RISCVToolChain::computeSysRoot() const {
   82   std::string SysRootDir = LibDir.str() + "/../" + TripleStr.str();
  102   std::string Linker = getToolChain().GetProgramPath(getShortName());
tools/clang/lib/Driver/ToolChains/RISCVToolchain.h
   40   std::string computeSysRoot() const;
tools/clang/lib/Driver/ToolChains/TCE.cpp
   25   std::string Path(getDriver().Dir);
tools/clang/lib/Driver/ToolChains/WebAssembly.cpp
   28 static std::string getMultiarchTriple(const Driver &D,
   35 std::string wasm::Linker::getLinkerPath(const ArgList &Args) const {
  110     const std::string MultiarchTriple =
  243     const std::string MultiarchTriple =
  255       const std::string MultiarchTriple =
tools/clang/lib/Driver/ToolChains/WebAssembly.h
   27   std::string getLinkerPath(const llvm::opt::ArgList &Args) const;
tools/clang/lib/Format/BreakableToken.cpp
  590   std::string PrefixWithTrailingIndent = Prefix;
tools/clang/lib/Format/ContinuationIndenter.cpp
 1516   std::string RawText =
 1521     std::string CanonicalDelimiterSuffix = (")" + NewDelimiter + "\"").str();
 1641       ContentStartsOnNewline || (NewCode->find('\n') != std::string::npos);
tools/clang/lib/Format/Format.cpp
  630 std::string ParseErrorCategory::message(int EV) const {
 1201 std::string configurationAsText(const FormatStyle &Style) {
 1202   std::string Text;
 1864 std::string replaceCRLF(const std::string &Code) {
 1864 std::string replaceCRLF(const std::string &Code) {
 1865   std::string NewCode;
 1874     if (Pos == std::string::npos) {
 1880   } while (Pos != std::string::npos);
 1941   std::string result;
 2058     std::string GroupPrefix = Style.JavaImportGroups[I];
 2108   std::string result;
 2419   llvm::Optional<std::string> CurrentCode = None;
tools/clang/lib/Format/FormatTokenLexer.cpp
   38   for (const std::string &ForEachMacro : Style.ForEachMacros)
   40   for (const std::string &StatementMacro : Style.StatementMacros)
   42   for (const std::string &TypenameMacro : Style.TypenameMacros)
   44   for (const std::string &NamespaceMacro : Style.NamespaceMacros)
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp
   31 std::string computeName(const FormatToken *NamespaceTok) {
   35   std::string name = "";
   68 std::string computeEndCommentText(StringRef NamespaceName, bool AddNewline,
   70   std::string text = "// ";
  190   std::string AllNamespaceNames = "";
  212     std::string NamespaceName = computeName(NamespaceTok);
  245     const std::string EndCommentText =
tools/clang/lib/Format/SortJavaScriptImports.cpp
  149     std::string ReferencesText;
  244   bool appendReference(std::string &Buffer, JsModuleReference &Reference) {
tools/clang/lib/Format/UsingDeclarationsSorter.cpp
   69   std::string Label;
   71   UsingDeclaration(const AnnotatedLine *Line, const std::string &Label)
   87 std::string computeUsingDeclarationLabel(const FormatToken *UsingTok) {
   89   std::string Label;
  202     std::string Label = computeUsingDeclarationLabel(UsingTok);
tools/clang/lib/Format/WhitespaceManager.cpp
  757       std::string ReplacementText = C.PreviousLinePostfix;
  790 void WhitespaceManager::appendNewlineText(std::string &Text,
  797     std::string &Text, unsigned Newlines, unsigned PreviousEndOfTokenColumn,
  810 void WhitespaceManager::appendIndentText(std::string &Text,
tools/clang/lib/Format/WhitespaceManager.h
  126     std::string PreviousLinePostfix;
  127     std::string CurrentLinePrefix;
  202   void appendNewlineText(std::string &Text, unsigned Newlines);
  203   void appendEscapedNewlineText(std::string &Text, unsigned Newlines,
  206   void appendIndentText(std::string &Text, unsigned IndentLevel,
tools/clang/lib/Frontend/ASTConsumers.cpp
   73     std::string getName(Decl *D) {
   79       return getName(D).find(FilterString) != std::string::npos;
  108     std::string FilterString;
tools/clang/lib/Frontend/ASTMerge.cpp
   88                                ArrayRef<std::string> ASTFiles)
tools/clang/lib/Frontend/ASTUnit.cpp
  114     std::string Output;
  174       std::string MPath(RF.first);
  190       std::string MPath(RB.first);
  557                                std::string &SuggestedPredefines) override {
  735 ASTUnit::getBufferForFile(StringRef Filename, std::string *ErrorStr) {
  757     const std::string &Filename, const PCHContainerReader &PCHContainerRdr,
  921       std::string NameStr = Name.getAsString();
  929       std::string ModName = Mod->getFullModuleName();
 2244     std::string CompleteFilePath(File);
 2251       std::string MainPath(OriginalSourceFile);
tools/clang/lib/Frontend/ChainedIncludesSource.cpp
   81                 SmallVectorImpl<std::string> &bufNames,
  115   std::vector<std::string> &includes = CI.getPreprocessorOpts().ChainedIncludes;
  122   SmallVector<std::string, 4> serialBufNames;
  180       std::string pchName = includes[i-1];
  209   std::string pchName = includes.back() + ".pch-final";
tools/clang/lib/Frontend/CompilerInstance.cpp
  159   SmallVector<std::string, 4> HeaderMapFileNames;
  204   for (const std::string &VFSFile : CI.getHeaderSearchOpts().VFSOverlayFiles) {
  470 std::string CompilerInstance::getSpecificModuleCachePath() {
  687   std::string OutputPathName, TempPathName;
  710     std::string *ResultPathName, std::string *TempPathName) {
  710     std::string *ResultPathName, std::string *TempPathName) {
  714   std::string OutFile, TempFile;
  728   std::string OSFile;
 1219     std::string InferredModuleMapContent;
 1462       std::string TimpestampFilename = File->path() + ".timestamp";
 1489     std::string Sysroot = HSOpts.Sysroot;
 1667     std::string ModuleFileName;
 2010   std::string ModuleMapFileName = (CleanModuleName + ".map").str();
 2017   std::string NullTerminatedSource(Source.str());
tools/clang/lib/Frontend/CompilerInvocation.cpp
  168                               std::vector<std::string> &Diagnostics) {
  191                                       std::vector<std::string> &Funcs) {
  560   std::string RegexError;
  571                                      const std::vector<std::string> &Levels,
  594                                 const std::vector<std::string> &Sanitizers,
 1487 static bool checkVerifyPrefixes(const std::vector<std::string> &VerifyPrefixes,
 1654                                             std::string &BlockName,
 1658                                             std::string &UserInfo) {
 1747         std::string ErrorMessage =
 1755         std::string ErrorMessage =
 1808   for (const std::string &Arg :
 1810     std::string BlockName;
 1814     std::string UserInfo;
 2003   std::vector<std::string> Inputs = Args.getAllArgValues(OPT_INPUT);
 2031 std::string CompilerInvocation::GetResourcesPath(const char *Argv0,
 2033   std::string ClangExecutable =
 2039                                   const std::string &WorkingDir) {
 2112     std::string Path = A->getValue();
 3449     std::string Nearest;
 3552 std::string CompilerInvocation::getModuleHash() const {
tools/clang/lib/Frontend/DependencyFile.cpp
  351   ArrayRef<std::string> Files = getDependencies();
tools/clang/lib/Frontend/DependencyGraph.cpp
   30   std::string OutputFile;
   31   std::string SysRoot;
tools/clang/lib/Frontend/FrontendAction.cpp
  106   std::set<std::string> NamesToCheck;
  110                            const std::set<std::string> &NamesToCheck,
  157   for (const std::string &Arg : CI.getFrontendOpts().AddPluginActions) {
  232                                            std::string &InputFile,
  417                                         std::string &PresumedModuleMapFile,
  712     std::string SpecificModuleCachePath = CI.getSpecificModuleCachePath();
  759     std::string PresumedModuleMapFile;
  819     std::string PresumedInputFile = getCurrentFileOrBufferName();
tools/clang/lib/Frontend/FrontendActions.cpp
   96   std::string Sysroot;
  100   std::string OutputFile;
  124                                                     std::string &Sysroot) {
  136                                     std::string &OutputFile) {
  169   std::string OutputFile = CI.getFrontendOpts().OutputFile;
  170   std::string Sysroot;
  333   const std::string &Sysroot = CI.getHeaderSearchOpts().Sysroot;
  352   std::string Name;
  353   std::string Kind;
  354   std::string Event;
  355   std::string DefinitionLocation;
  356   std::string PointOfInstantiation;
  394   static std::string toString(CodeSynthesisContext::SynthesisKind Kind) {
  433     std::string YAML;
  572       for (const std::string &Warning : DiagOpts->Warnings)
  574       for (const std::string &Remark : DiagOpts->Remarks)
  600                                  std::string &SuggestedPredefines) override {
  611       for (std::vector<std::pair<std::string, bool/*isUndef*/> >::const_iterator
tools/clang/lib/Frontend/InitHeaderSearch.cpp
   43   std::vector<std::pair<std::string, bool> > SystemHeaderPrefixes;
   46   std::string IncludeSysroot;
  345     std::string BaseSDKPath = "";
tools/clang/lib/Frontend/InitPreprocessor.cpp
   83   std::string OriginalFile =
  292   std::string Result;
  652       std::string versionString = "1";
 1112   std::string PredefineBuffer;
 1186     const std::string &Path = InitOpts.Includes[i];
tools/clang/lib/Frontend/InterfaceStubFunctionsConsumer.cpp
   23   std::set<std::string> ParsedTemplates;
   27     std::string ParentName;
   30     std::vector<std::string> Names;
   33     MangledSymbol(const std::string &ParentName, uint8_t Type, uint8_t Binding,
   34                   std::vector<std::string> Names)
   90       std::vector<std::string> MangledNames = NameGen.getAllManglings(ND);
tools/clang/lib/Frontend/LayoutOverrideSource.cpp
   18 static std::string parseName(StringRef S) {
   35   std::string CurrentType;
   40     std::string Line;
tools/clang/lib/Frontend/ModuleDependencyCollector.cpp
  164   std::string Dir = path::parent_path(SrcPath).str();
tools/clang/lib/Frontend/PrecompiledPreamble.cpp
  130   PrecompilePreambleAction(std::string *InMemStorage,
  153   std::string *InMemStorage;
  199   std::string Sysroot;
  207     std::string OutputFile;
  565 PrecompiledPreamble::TempPCHFile::TempPCHFile(std::string FilePath)
  779 std::string BuildPreambleErrorCategory::message(int condition) const {
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp
  341     const std::string TokenText = PP.getSpelling(IncludeTok);
  695       std::string TokSpell = PP.getSpelling(PragmaTok);
  779       std::string Name = M->getFullModuleName();
  802       std::string S = PP.getSpelling(Tok);
tools/clang/lib/Frontend/Rewrite/FixItRewriter.cpp
   79              std::vector<std::pair<std::string, std::string>> *RewrittenFiles) {
   79              std::vector<std::pair<std::string, std::string>> *RewrittenFiles) {
   98     std::string Filename = FixItOpts->RewriteFilename(Entry->getName(), fd);
tools/clang/lib/Frontend/Rewrite/FrontendActions.cpp
   61   std::string RewriteFilename(const std::string &Filename, int &fd) override {
   61   std::string RewriteFilename(const std::string &Filename, int &fd) override {
   67   std::string NewSuffix;
   70   FixItActionSuffixInserter(std::string NewSuffix, bool FixWhatYouCan)
   75   std::string RewriteFilename(const std::string &Filename, int &fd) override {
   75   std::string RewriteFilename(const std::string &Filename, int &fd) override {
   86   std::string RewriteFilename(const std::string &Filename, int &fd) override {
   86   std::string RewriteFilename(const std::string &Filename, int &fd) override {
  117   std::vector<std::pair<std::string, std::string> > RewrittenFiles;
  117   std::vector<std::pair<std::string, std::string> > RewrittenFiles;
  310     std::string Buffer;
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp
  195     std::string Expansion;
tools/clang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
   74     std::string InFileName;
   76     std::string Preamble;
  147     llvm::DenseMap<BlockExpr *, std::string> RewrittenBlockExprs;
  187     llvm::DenseMap<ObjCMethodDecl*, std::string> MethodInternalNames;
  242     RewriteModernObjC(std::string inFile, std::unique_ptr<raw_ostream> OS,
  272       std::string SStr;
  275       const std::string &Str = S.str();
  313                                               std::string &LineString);
  317                                      const std::string &typedefString);
  325                                ObjCMethodDecl *MDecl, std::string &ResultStr);
  326     void RewriteTypeIntoString(QualType T, std::string &ResultStr,
  328     void RewriteByRefString(std::string &ResultStr, const std::string &Name,
  328     void RewriteByRefString(std::string &ResultStr, const std::string &Name,
  337     void RewriteBlockPointerType(std::string& Str, QualType Type);
  338     void RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD);
  344     std::string getIvarAccessString(ObjCIvarDecl *D);
  373     void ObjCIvarBitfieldGroupDecl(ObjCIvarDecl *IV, std::string &Result);
  375     void ObjCIvarBitfieldGroupType(ObjCIvarDecl *IV, std::string &Result);
  377     void ObjCIvarBitfieldGroupOffset(ObjCIvarDecl *IV, std::string &Result);
  395                                       std::string &Result);
  397     void RewriteObjCFieldDecl(FieldDecl *fieldDecl, std::string &Result);
  401                                               std::string &Result);
  403     bool RewriteObjCFieldDeclType(QualType &Type, std::string &Result);
  406                                   std::string &Result);
  427     void SynthCountByEnumWithState(std::string &buf);
  446                                     std::string &Result);
  448                                      std::string &Result);
  450                                           std::string &Result);
  451     void RewriteClassSetupInitHook(std::string &Result);
  453     void RewriteMetaDataIntoBuffer(std::string &Result);
  454     void WriteImageInfo(std::string &Result);
  456                                              std::string &Result);
  457     void RewriteCategorySetupInitHook(std::string &Result);
  461                                               std::string &Result);
  465     std::string SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag);
  466     std::string SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
  467                                       StringRef funcName, std::string Tag);
  468     std::string SynthesizeBlockFunc(BlockExpr *CE, int i,
  469                                       StringRef funcName, std::string Tag);
  470     std::string SynthesizeBlockImpl(BlockExpr *CE,
  471                                     std::string Tag, std::string Desc);
  471                                     std::string Tag, std::string Desc);
  472     std::string SynthesizeBlockDescriptor(std::string DescTag,
  472     std::string SynthesizeBlockDescriptor(std::string DescTag,
  473                                           std::string ImplTag,
  565     void QuoteDoublequotes(std::string &From, std::string &To) {
  565     void QuoteDoublequotes(std::string &From, std::string &To) {
  627 static bool IsHeaderFile(const std::string &Filename) {
  628   std::string::size_type DotPos = Filename.rfind('.');
  630   if (DotPos == std::string::npos) {
  635   std::string Ext = std::string(Filename.begin()+DotPos+1, Filename.end());
  641 RewriteModernObjC::RewriteModernObjC(std::string inFile,
  663     const std::string &InFile, std::unique_ptr<raw_ostream> OS,
  831                                   ObjCIvarDecl *IvarDecl, std::string &Result) {
  838 std::string
  843   std::string IvarOffsetName;
  849   std::string S = "(*(";
  863       std::string RecName = CDecl->getName();
  890   std::string TypeString(castT.getAsString(Context->getPrintingPolicy()));
  947     std::string Getr;
  974             std::string ParamStr =
 1004   std::string Setr;
 1043                                        std::string &typedefString) {
 1059                                               const std::string &typedefString) {
 1068   std::string typedefString;
 1090   std::string typedefString;
 1204 void RewriteModernObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr,
 1229                                         std::string &ResultStr) {
 1237   std::string NameStr;
 1254     std::string selString = OMD->getSelector().getAsString();
 1295       std::string Name = PDecl->getNameAsString();
 1315         std::string ParamStr =
 1349     std::string ResultStr;
 1360     std::string ResultStr;
 1385   std::string ResultStr;
 1588 void RewriteModernObjC::SynthCountByEnumWithState(std::string &buf) {
 1606   std::string buf;
 1618                                           std::string &LineString) {
 1636   std::string buf;
 1689   std::string elementTypeAsString;
 1690   std::string buf;
 1845 static void Write_RethrowObject(std::string &buf) {
 1865   std::string buf;
 1932   std::string buf;
 1966           std::string Result;
 2040   std::string buf;
 2064   std::string StrEncoding;
 2283   std::string TypeAsString(QT.getAsString(Context->getPrintingPolicy()));
 2287     std::string Name(ND->getNameAsString());
 2331 void RewriteModernObjC::RewriteBlockPointerType(std::string& Str, QualType Type) {
 2332   std::string TypeString(Type.getAsString(Context->getPrintingPolicy()));
 2345 void RewriteModernObjC::RewriteBlockPointerTypeVariable(std::string& Str,
 2348   std::string TypeString(Type.getAsString(Context->getPrintingPolicy()));
 2381   std::string FdStr = Type.getAsString(Context->getPrintingPolicy());
 2555   std::string S = "__NSConstantStringImpl_";
 2557   std::string tmpName = InFileName;
 2573   std::string prettyBufS;
 2712   std::string NSArrayFName("__NSContainer_literal");
 2833   std::string NSDictFName("__NSContainer_literal");
 3052     std::string LineString("\n#line ");
 3097   std::string name = "__Stret"; name += utostr(stretCount);
 3098   std::string str =
 3106     std::string ArgName = "arg"; ArgName += utostr(i);
 3112     std::string ArgName = "arg"; ArgName += utostr(i);
 3581   std::string Name = "_OBJC_PROTOCOL_REFERENCE_$_" +
 3628                                                  std::string &Result) {
 3693                                              std::string &Result) {
 3695   std::string Name = fieldDecl->getNameAsString();
 3723                                              std::string &Result) {
 3781   std::string StructTagName;
 3836                                                   std::string &Result) {
 3848                                                   std::string &Result) {
 3860                                                     std::string &Result) {
 3875                                                std::string &Result) {
 3952                                                   std::string &Result) {
 4020 void RewriteModernObjC::RewriteByRefString(std::string &ResultStr,
 4021                                      const std::string &Name,
 4037 std::string RewriteModernObjC::SynthesizeBlockFunc(BlockExpr *CE, int i,
 4039                                                    std::string Tag) {
 4042   std::string StructRef = "struct " + Tag;
 4044   std::string S;
 4064     std::string ParamStr;
 4087     std::string Name = (*I)->getNameAsString();
 4088     std::string TypeString;
 4116       std::string Name = (*I)->getNameAsString();
 4125   std::string RewrittenStr = RewrittenBlockExprs[CE];
 4133 std::string RewriteModernObjC::SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
 4135                                                    std::string Tag) {
 4136   std::string StructRef = "struct " + Tag;
 4137   std::string S = "static void __";
 4177 std::string RewriteModernObjC::SynthesizeBlockImpl(BlockExpr *CE, std::string Tag,
 4177 std::string RewriteModernObjC::SynthesizeBlockImpl(BlockExpr *CE, std::string Tag,
 4178                                              std::string Desc) {
 4179   std::string S = "\nstruct " + Tag;
 4180   std::string Constructor = "  " + Tag;
 4195       std::string FieldName = (*I)->getNameAsString();
 4196       std::string ArgName = "_" + FieldName;
 4224       std::string FieldName = (*I)->getNameAsString();
 4225       std::string ArgName = "_" + FieldName;
 4227         std::string TypeString;
 4242       std::string Name = (*I)->getNameAsString();
 4257       std::string Name = (*I)->getNameAsString();
 4292 std::string RewriteModernObjC::SynthesizeBlockDescriptor(std::string DescTag,
 4292 std::string RewriteModernObjC::SynthesizeBlockDescriptor(std::string DescTag,
 4293                                                    std::string ImplTag, int i,
 4296   std::string S = "\nstatic struct " + DescTag;
 4327     std::string SC(" void __");
 4362     std::string ImplTag = "__" + FunName.str() + "_block_impl_" + utostr(i);
 4363     std::string DescTag = "__" + FunName.str() + "_block_desc_" + utostr(i);
 4365     std::string CI = SynthesizeBlockImpl(Blocks[i], ImplTag, DescTag);
 4369     std::string CF = SynthesizeBlockFunc(Blocks[i], i, FunName, ImplTag);
 4374       std::string HF = SynthesizeBlockHelperFuncs(Blocks[i], i, FunName, ImplTag);
 4377     std::string BD = SynthesizeBlockDescriptor(DescTag, ImplTag, i, FunName,
 4391     std::string SC;
 4406     std::string Tag = "__";
 4410     std::string globalBuf = "static ";
 4412     std::string SStr;
 4438 static void BuildUniqueMethodName(std::string &Name,
 4444   std::string::size_type loc = 0;
 4445   while ((loc = Name.find(':', loc)) != std::string::npos)
 4453   std::string FuncName;
 4731     std::string TypeAsString = "(";
 4759   std::string TypeString(QT.getAsString(Context->getPrintingPolicy()));
 4760   std::string Str = "(";
 4885   std::string buf;
 4956 std::string RewriteModernObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD,
 4958   std::string S;
 5024   std::string Name(ND->getNameAsString());
 5025   std::string ByrefType;
 5070     std::string HF = SynthesizeByrefCopyDestroyHelper(ND, flag);
 5094   std::string ForwardingCastType("(");
 5234   std::string FuncName;
 5251   std::string BlockNumber = utostr(Blocks.size()-1);
 5253   std::string Func = "__" + FuncName + "_block_func_" + BlockNumber;
 5263   std::string Tag;
 5286   std::string DescData = "__" + FuncName + "_block_desc_" + BlockNumber + "_DATA";
 5341       std::string Name(ND->getNameAsString());
 5342       std::string RecName;
 5483     std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
 5808                                                  std::string &Result) {
 5868     std::string ResultStr;
 5875     std::string ResultStr;
 6057                                                          std::string &Result) {
 6172 static void WriteModernMetadataDeclarations(ASTContext *Context, std::string &Result) {
 6250 static void Write_protocol_list_t_TypeDecl(std::string &Result,
 6259 static void Write_method_list_t_TypeDecl(std::string &Result,
 6269 static void Write__prop_list_t_TypeDecl(std::string &Result,
 6279 static void Write__ivar_list_t_TypeDecl(std::string &Result,
 6289 static void Write_protocol_list_initializer(ASTContext *Context, std::string &Result,
 6313                                             ASTContext *Context, std::string &Result,
 6334       std::string MethodTypeString = Context->getObjCEncodingForMethodDecl(MD);
 6353                                            ASTContext *Context, std::string &Result,
 6373       std::string PropertyTypeString =
 6375       std::string QuotePropertyTypeString;
 6401 static void Write__class_ro_t_initializer(ASTContext *Context, std::string &Result,
 6403                                           const std::string &InstanceStart,
 6404                                           const std::string &InstanceSize,
 6468 static void Write_class_t(ASTContext *Context, std::string &Result,
 6609                              std::string &Result,
 6691                                            ASTContext *Context, std::string &Result,
 6704     std::string MethodTypeString =
 6706     std::string QuoteMethodTypeString;
 6719                                 std::string &Result,
 6761                                            ASTContext *Context, std::string &Result,
 6812       std::string IvarTypeString, QuoteIvarTypeString;
 6836                                                     std::string &Result) {
 6998                                            std::string &Result) {
 7082   std::string InstanceSize;
 7083   std::string InstanceStart;
 7154 void RewriteModernObjC::RewriteClassSetupInitHook(std::string &Result) {
 7170 void RewriteModernObjC::RewriteMetaDataIntoBuffer(std::string &Result) {
 7248 void RewriteModernObjC::WriteImageInfo(std::string &Result) {
 7260                                               std::string &Result) {
 7267   std::string FullCategoryName = ClassDecl->getNameAsString();
 7336 void RewriteModernObjC::RewriteCategorySetupInitHook(std::string &Result) {
 7364                                              std::string &Result) {
 7416   std::string MethodTypeString;
 7426     std::string MethodTypeString;
 7463       std::string IvarOffsetName;
 7505           std::string RecName = CDecl->getName();
tools/clang/lib/Frontend/Rewrite/RewriteObjC.cpp
   73     std::string InFileName;
   75     std::string Preamble;
  114     llvm::DenseMap<ObjCMethodDecl*, std::string> MethodInternalNames;
  138     llvm::DenseMap<BlockExpr *, std::string> RewrittenBlockExprs;
  193     RewriteObjC(std::string inFile, std::unique_ptr<raw_ostream> OS,
  223       std::string SStr;
  226       const std::string &Str = S.str();
  265                                      const std::string &typedefString);
  273                                ObjCMethodDecl *MDecl, std::string &ResultStr);
  274     void RewriteTypeIntoString(QualType T, std::string &ResultStr,
  276     void RewriteByRefString(std::string &ResultStr, const std::string &Name,
  276     void RewriteByRefString(std::string &ResultStr, const std::string &Name,
  285     void RewriteBlockPointerType(std::string& Str, QualType Type);
  286     void RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD);
  302     void RewriteSyncReturnStmts(Stmt *S, std::string buf);
  323                                       std::string &Result);
  328     virtual void RewriteMetaDataIntoBuffer(std::string &Result) = 0;
  332                                                  std::string &Result) = 0;
  334                                              std::string &Result) = 0;
  338                                      std::string &Result) = 0;
  340                                           std::string &Result) = 0;
  345                                          std::string &Result) = 0;
  363     void SynthCountByEnumWithState(std::string &buf);
  375     std::string SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag);
  376     std::string SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
  377                                       StringRef funcName, std::string Tag);
  378     std::string SynthesizeBlockFunc(BlockExpr *CE, int i,
  379                                       StringRef funcName, std::string Tag);
  380     std::string SynthesizeBlockImpl(BlockExpr *CE,
  381                                     std::string Tag, std::string Desc);
  381                                     std::string Tag, std::string Desc);
  382     std::string SynthesizeBlockDescriptor(std::string DescTag,
  382     std::string SynthesizeBlockDescriptor(std::string DescTag,
  383                                           std::string ImplTag,
  471     void QuoteDoublequotes(std::string &From, std::string &To) {
  471     void QuoteDoublequotes(std::string &From, std::string &To) {
  509     RewriteObjCFragileABI(std::string inFile, std::unique_ptr<raw_ostream> OS,
  524                                     std::string &Result);
  527                                      std::string &Result) override;
  530           StringRef prefix, StringRef ClassName, std::string &Result) override;
  532                                   std::string &Result) override;
  533     void RewriteMetaDataIntoBuffer(std::string &Result) override;
  535                                      std::string &Result) override;
  539                                       std::string &Result) override;
  563 static bool IsHeaderFile(const std::string &Filename) {
  564   std::string::size_type DotPos = Filename.rfind('.');
  566   if (DotPos == std::string::npos) {
  571   std::string Ext = std::string(Filename.begin()+DotPos+1, Filename.end());
  577 RewriteObjC::RewriteObjC(std::string inFile, std::unique_ptr<raw_ostream> OS,
  592 clang::CreateObjCRewriter(const std::string &InFile,
  756 static std::string getIvarAccessString(ObjCIvarDecl *OID) {
  758   std::string S;
  794     std::string Getr;
  821             std::string ParamStr =
  850   std::string Setr;
  889                                        std::string &typedefString) {
  902                                               const std::string &typedefString) {
  911   std::string typedefString;
  929   std::string typedefString;
 1036 void RewriteObjC::RewriteTypeIntoString(QualType T, std::string &ResultStr,
 1061                                         std::string &ResultStr) {
 1069   std::string NameStr;
 1086     std::string selString = OMD->getSelector().getAsString();
 1127       std::string Name = PDecl->getNameAsString();
 1147         std::string ParamStr =
 1171     std::string ResultStr;
 1182     std::string ResultStr;
 1198   std::string ResultStr;
 1395 void RewriteObjC::SynthCountByEnumWithState(std::string &buf) {
 1413   std::string buf;
 1430   std::string buf;
 1483   std::string elementTypeAsString;
 1484   std::string buf;
 1649   std::string buf;
 1681   std::string syncBuf;
 1692   std::string syncExprBufS;
 1751     std::string buf;
 1759 void RewriteObjC::RewriteSyncReturnStmts(Stmt *S, std::string syncExitBuf) {
 1773     std::string buf;
 1790   std::string buf;
 1958   std::string buf;
 1979   std::string StrEncoding;
 2195   std::string TypeAsString(QT.getAsString(Context->getPrintingPolicy()));
 2199     std::string Name(ND->getNameAsString());
 2243 void RewriteObjC::RewriteBlockPointerType(std::string& Str, QualType Type) {
 2244   std::string TypeString(Type.getAsString(Context->getPrintingPolicy()));
 2257 void RewriteObjC::RewriteBlockPointerTypeVariable(std::string& Str,
 2260   std::string TypeString(Type.getAsString(Context->getPrintingPolicy()));
 2293   std::string FdStr = Type.getAsString(Context->getPrintingPolicy());
 2480   std::string S = "__NSConstantStringImpl_";
 2482   std::string tmpName = InFileName;
 2498   std::string prettyBufS;
 3038   std::string Name = "_OBJC_PROTOCOL_" + Exp->getProtocol()->getNameAsString();
 3086                                                std::string &Result) {
 3234 void RewriteObjC::RewriteByRefString(std::string &ResultStr,
 3235                                      const std::string &Name,
 3251 std::string RewriteObjC::SynthesizeBlockFunc(BlockExpr *CE, int i,
 3253                                                    std::string Tag) {
 3256   std::string StructRef = "struct " + Tag;
 3257   std::string S = "static " + RT.getAsString(Context->getPrintingPolicy()) + " __" +
 3274     std::string ParamStr;
 3297     std::string Name = (*I)->getNameAsString();
 3298     std::string TypeString;
 3326       std::string Name = (*I)->getNameAsString();
 3335   std::string RewrittenStr = RewrittenBlockExprs[CE];
 3343 std::string RewriteObjC::SynthesizeBlockHelperFuncs(BlockExpr *CE, int i,
 3345                                                    std::string Tag) {
 3346   std::string StructRef = "struct " + Tag;
 3347   std::string S = "static void __";
 3387 std::string RewriteObjC::SynthesizeBlockImpl(BlockExpr *CE, std::string Tag,
 3387 std::string RewriteObjC::SynthesizeBlockImpl(BlockExpr *CE, std::string Tag,
 3388                                              std::string Desc) {
 3389   std::string S = "\nstruct " + Tag;
 3390   std::string Constructor = "  " + Tag;
 3405       std::string FieldName = (*I)->getNameAsString();
 3406       std::string ArgName = "_" + FieldName;
 3434       std::string FieldName = (*I)->getNameAsString();
 3435       std::string ArgName = "_" + FieldName;
 3437         std::string TypeString;
 3452       std::string Name = (*I)->getNameAsString();
 3467       std::string Name = (*I)->getNameAsString();
 3502 std::string RewriteObjC::SynthesizeBlockDescriptor(std::string DescTag,
 3502 std::string RewriteObjC::SynthesizeBlockDescriptor(std::string DescTag,
 3503                                                    std::string ImplTag, int i,
 3506   std::string S = "\nstatic struct " + DescTag;
 3540     std::string SC(" void __");
 3571     std::string ImplTag = "__" + FunName.str() + "_block_impl_" + utostr(i);
 3572     std::string DescTag = "__" + FunName.str() + "_block_desc_" + utostr(i);
 3574     std::string CI = SynthesizeBlockImpl(Blocks[i], ImplTag, DescTag);
 3578     std::string CF = SynthesizeBlockFunc(Blocks[i], i, FunName, ImplTag);
 3583       std::string HF = SynthesizeBlockHelperFuncs(Blocks[i], i, FunName, ImplTag);
 3586     std::string BD = SynthesizeBlockDescriptor(DescTag, ImplTag, i, FunName,
 3600     std::string SC;
 3625 static void BuildUniqueMethodName(std::string &Name,
 3631   std::string::size_type loc = 0;
 3632   while ((loc = Name.find(':', loc)) != std::string::npos)
 3640   std::string FuncName;
 3900     std::string TypeAsString = "(";
 4039   std::string buf;
 4110 std::string RewriteObjC::SynthesizeByrefCopyDestroyHelper(VarDecl *VD,
 4112   std::string S;
 4181   std::string Name(ND->getNameAsString());
 4182   std::string ByrefType;
 4227     std::string HF = SynthesizeByrefCopyDestroyHelper(ND, flag);
 4242   std::string ForwardingCastType("(");
 4387   std::string FuncName;
 4396   std::string BlockNumber = utostr(Blocks.size()-1);
 4398   std::string Tag = "__" + FuncName + "_block_impl_" + BlockNumber;
 4399   std::string Func = "__" + FuncName + "_block_func_" + BlockNumber;
 4424   std::string DescData = "__" + FuncName + "_block_desc_" + BlockNumber + "_DATA";
 4478       std::string Name(ND->getNameAsString());
 4479       std::string RecName;
 4605     std::string Str = Rewrite.getRewrittenText(BE->getSourceRange());
 4927     std::string ResultStr;
 5053                                                          std::string &Result) {
 5072                             StringRef ClassName, std::string &Result) {
 5122       std::string MethodTypeString = Context->getObjCEncodingForMethodDecl(*I);
 5159       std::string MethodTypeString = Context->getObjCEncodingForMethodDecl(*I);
 5220                                 std::string &Result) {
 5260                                            std::string &Result) {
 5322     std::string TmpString, StrEncoding;
 5333       std::string TmpString, StrEncoding;
 5514 void RewriteObjCFragileABI::RewriteMetaDataIntoBuffer(std::string &Result) {
 5613                                               std::string &Result) {
 5619   std::string FullCategoryName = ClassDecl->getNameAsString();
 5724                                              std::string &Result) {
 5769   std::string MethodTypeString =
 5779     std::string MethodTypeString =
 5816       std::string RecName = clsDeclared->getIdentifier()->getName();
 5856       std::string RecName = clsDeclared->getIdentifier()->getName();
tools/clang/lib/Frontend/SerializedDiagnosticPrinter.cpp
  258     std::string OutputFile;
tools/clang/lib/Frontend/SerializedDiagnosticReader.cpp
  332   std::string message(int IE) const override {
tools/clang/lib/Frontend/TestModuleFileExtension.h
   21   std::string BlockName;
   25   std::string UserInfo;
tools/clang/lib/Frontend/TextDiagnostic.cpp
  162 static void expandTabs(std::string &SourceLine, unsigned TabStop) {
  313   const std::string m_SourceLine;
  321 static void selectInterestingSourceRegion(std::string &SourceLine,
  322                                           std::string &CaretLine,
  323                                           std::string &FixItInsertionLine,
  493     SourceLine.replace(SourceEnd, std::string::npos, back_ellipse);
  988                            std::string &CaretLine,
 1067 static std::string buildFixItInsertionLine(FileID FID,
 1073   std::string FixItInsertionLine;
 1212     std::string SourceLine(Line.begin(), Line.end());
 1219     std::string CaretLine(sourceColMap.columns(), ' ');
 1235     std::string FixItInsertionLine = buildFixItInsertionLine(
 1291   std::string to_print;
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp
   96   bool isValid(std::string &Error) override {
  115   bool isValid(std::string &Error) override {
  290   std::string Text;
  303   std::string Error;
  769   std::string C2;
  826     std::string Comment = RawLex.getSpelling(Tok, SM, LangOpts);
  944         const std::string &RightText = II->second;
 1124   std::string RegexStr;
tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
  207     const std::string &Path = Clang->getFrontendOpts().Plugins[i];
  208     std::string Error;
tools/clang/lib/Index/CommentToXML.cpp
  902         std::string Name = DeclName.getAsString();
tools/clang/lib/Lex/HeaderSearch.cpp
  134     SmallVectorImpl<std::string> &Names) const {
  139 std::string HeaderSearch::getCachedModuleFileName(Module *Module) {
  145 std::string HeaderSearch::getPrebuiltModuleFileName(StringRef ModuleName,
  157   for (const std::string &Dir : HSOpts->PrebuiltModulePaths) {
  167 std::string HeaderSearch::getCachedModuleFileName(StringRef ModuleName,
  187     std::string Parent = llvm::sys::path::parent_path(ModuleMapPath);
  433                    SmallVectorImpl<std::string> &SubmodulePath) {
 1440     SmallVector<std::string, 4> SubmodulePath;
 1726 std::string HeaderSearch::suggestPathToFileForDiagnostics(
 1735 std::string HeaderSearch::suggestPathToFileForDiagnostics(
tools/clang/lib/Lex/Lexer.cpp
  255 std::string Lexer::Stringify(StringRef Str, bool Charify) {
  256   std::string Result = Str;
  365 std::string Lexer::getSpelling(const Token &Tok, const SourceManager &SourceMgr,
  381   std::string Result;
 2396   std::string Spelling = PP->getSpelling(Result, &Invalid);
tools/clang/lib/Lex/MacroArgs.cpp
  238       std::string TokStr = PP.getSpelling(Tok, &Invalid);
  240         std::string Str = Lexer::Stringify(TokStr);
tools/clang/lib/Lex/ModuleMap.cpp
 1434     using ModuleId = SmallVector<std::pair<std::string, SourceLocation>, 2>;
 2132   std::string FileName = Tok.getString();
 2212     std::string Feature = Tok.getString();
 2383   std::string DirName = Tok.getString();
 2575   std::string LibraryName = Tok.getString();
 2639 static std::string formatModuleId(const ModuleId &Id) {
 2640   std::string result;
tools/clang/lib/Lex/PPDirectives.cpp
  503       std::string DirectiveStr = getSpelling(Tok);
 1428     std::string Str = getSpelling(StrTok, &Invalid);
tools/clang/lib/Lex/PPMacroExpansion.cpp
 1392   std::string ArchName = II->getName().lower() + "--";
 1422   std::string OSName =
 1435   std::string EnvName = (llvm::Twine("---") + II->getName().lower()).str();
 1723         std::string WarningName;
tools/clang/lib/Lex/Pragma.cpp
  257   std::string StrVal = getSpelling(StrTok);
  530     std::string Message;
  572   std::string StrVal = getSpelling(Tok);
  860     std::string FileName;
 1207     std::string WarningName;
 1404         std::string ExecCharset;
 1506     std::string MessageString;
tools/clang/lib/Lex/Preprocessor.cpp
 1253   std::string FlatModuleName;
 1302 bool Preprocessor::FinishLexStringLiteral(Token &Result, std::string &String,
tools/clang/lib/Parse/ParseDeclCXX.cpp
  180       std::string NamespaceFix;
  189       std::string RBraces;
 2390           std::string Name(FixItName.data());
tools/clang/lib/Parse/ParseExprCXX.cpp
 2287         std::string Name;
tools/clang/lib/Parse/ParseObjc.cpp
 1023     std::string ThisTok(PP.getSpelling(Tok));
tools/clang/lib/Parse/ParsePragma.cpp
 1008 static std::string PragmaLoopHintString(Token PragmaName, Token Option) {
 1010   std::string ClangLoopStr = (llvm::Twine("clang loop ") + Str).str();
 1275         std::string SubRuleUnlessName = "unless(" + SubRuleName.str() + ")";
 1350   std::string FixIt;
 1830     std::string SecName;
 2489   std::string NameString;
 2496   std::string ValueString;
 2582   std::string ArgumentString;
tools/clang/lib/Parse/ParseStmtAsm.cpp
  551   const std::string &TT = TheTriple.getTriple();
  558     std::string Error;
  581   std::string FeaturesStr =
  628   std::string AsmStringIR;
  630   SmallVector<std::string, 4> Constraints;
  631   SmallVector<std::string, 4> Clobbers;
tools/clang/lib/Rewrite/HTMLRewrite.cpp
  168 std::string html::EscapeText(StringRef s, bool EscapeSpaces, bool ReplaceTabs) {
  171   std::string Str;
  267   std::string s;
  284   std::string s;
  621     std::string Expansion = EscapeText(TmpPP.getSpelling(Tok));
tools/clang/lib/Rewrite/Rewriter.cpp
  184 std::string Rewriter::getRewrittenText(CharSourceRange Range) const {
tools/clang/lib/Sema/AnalysisBasedWarnings.cpp
  775   std::string Init = S.getFixItZeroInitializerForType(VariableTy, Loc);
tools/clang/lib/Sema/CodeCompleteConsumer.cpp
  310 std::string CodeCompletionString::getAsString() const {
  311   std::string Result;
  555         std::vector<std::string> Tags;
  619 static std::string getOverloadAsString(const CodeCompletionString &CCS) {
  620   std::string Result;
  728 StringRef CodeCompletionResult::getOrderedName(std::string &Saved) const {
  757   std::string XSaved, YSaved;
tools/clang/lib/Sema/Sema.cpp
 2217 std::string Sema::getOpenCLExtensionsFromDeclExtMap(FunctionDecl *FD) {
 2224 std::string Sema::getOpenCLExtensionsFromTypeExtMap(FunctionType *FT) {
 2232 std::string Sema::getOpenCLExtensionsFromExtMap(T *FDT, MapT &Map) {
 2233   std::string ExtensionNames = "";
tools/clang/lib/Sema/SemaAttr.cpp
  639 std::string
  641   std::string Result;
tools/clang/lib/Sema/SemaCUDA.cpp
  795 std::string Sema::getCudaConfigureFuncName() const {
tools/clang/lib/Sema/SemaCast.cpp
 1472     std::string PathDisplayStr;
 1586     std::string PathDisplayStr = Self.getAmbiguousPathsDisplayString(Paths);
tools/clang/lib/Sema/SemaChecking.cpp
 2800                                   std::string F = "hvx" + V.str();
 6586     std::string RegLower = Reg.lower();
 7548   std::string CodePointStr;
11018   std::string PrettyValue = Value.toString(10);
11019   std::string PrettyTrunc = TruncatedValue.toString(10);
11248 static std::string PrettyPrintInRange(const llvm::APSInt &Value,
11811           std::string PrettySourceValue = SourceInt.toString(10);
11867       std::string PrettySourceValue = Value.toString(10);
11868       std::string PrettyTargetValue = PrettyPrintInRange(Value, TargetRange);
11912         std::string PrettySourceValue = Value.toString(10);
11913         std::string PrettyTargetValue = PrettyPrintInRange(Value, TargetRange);
12268     std::string Str;
12348   std::string Str;
tools/clang/lib/Sema/SemaCodeComplete.cpp
 1900   std::string Result;
 1976         std::string OverrideSignature;
 2538             std::string SuperType;
 2650 static std::string formatObjCParamQualifiers(unsigned ObjCQuals,
 2652   std::string Result;
 2732 static std::string
 2739 static std::string
 2753     std::string Result;
 2793     std::string Result;
 2801       std::string Quals =
 2832 static std::string
 2837   std::string Result;
 2847   std::string Params;
 2887 static std::string GetDefaultValueString(const ParmVarDecl *Param,
 2906   std::string DefValue(srcText.str());
 2950     std::string PlaceholderStr = FormatFunctionParameter(Policy, Param);
 2990     std::string PlaceholderStr;
 3060   std::string PrintedNNS;
 3097   std::string QualsStr;
 3292                                 std::string &BeforeName,
 3293                                 std::string &NameAndSignature) {
 3318   std::string BeforeName;
 3319   std::string NameAndSignature;
 3440     std::string SelName = Sel.getNameForSlot(0).str();
 3457         std::string Keyword;
 3473       std::string Arg;
 3618     std::string Placeholder;
 3979         std::string Str;
 4305       std::string Type = NamePlaceholder;
 4460       std::string PlaceholderStr =
 4542       std::string PlaceholderStr = formatBlockPlaceholder(
 7047     std::string Accumulator;
 7365   std::string NameWithPrefix;
 7368   std::string NameWithSuffix = PropertyName->getName().str();
 7518   std::string Quals = formatObjCParamQualifiers(ObjCDeclQuals, Type);
 7578   std::string UpperKey = PropName->getName();
 7608     std::string SelectorName = (Twine("is") + UpperKey).str();
 7627     std::string SelectorName = (Twine("set") + UpperKey).str();
 7678     std::string SelectorName = (Twine("countOf") + UpperKey).str();
 7700     std::string SelectorName = (Twine("objectIn") + UpperKey + "AtIndex").str();
 7727     std::string SelectorName = (Twine(Property->getName()) + "AtIndexes").str();
 7748     std::string SelectorName = (Twine("get") + UpperKey).str();
 7780     std::string SelectorName = (Twine("in") + UpperKey + "AtIndex").str();
 7810     std::string SelectorName = (Twine("insert") + UpperKey).str();
 7839     std::string SelectorName =
 7861     std::string SelectorName = (Twine("remove") + UpperKey + "AtIndexes").str();
 7882     std::string SelectorName =
 7912     std::string SelectorName1 =
 7914     std::string SelectorName2 = (Twine("with") + UpperKey).str();
 7950     std::string SelectorName = (Twine("enumeratorOf") + UpperKey).str();
 7969     std::string SelectorName = (Twine("memberOf") + UpperKey).str();
 7998     std::string SelectorName =
 8021     std::string SelectorName = (Twine("add") + UpperKey).str();
 8042     std::string SelectorName =
 8065     std::string SelectorName = (Twine("remove") + UpperKey).str();
 8086     std::string SelectorName = (Twine("intersect") + UpperKey).str();
 8114     std::string SelectorName =
 8135     std::string SelectorName =
 8643   std::string RelDir = llvm::sys::path::convert_to_slash(Dir);
tools/clang/lib/Sema/SemaDecl.cpp
  694         std::string CorrectedStr(Corrected.getAsString(getLangOpts()));
  969           std::string CorrectedStr(Corrected.getAsString(getLangOpts()));
 2724   std::string SuitableSpelling;
tools/clang/lib/Sema/SemaDeclAttr.cpp
 2878   std::string Error = Context.getTargetInfo().isValidSectionSpecifier(SecName);
 2899   std::string Error = S.Context.getTargetInfo().isValidSectionSpecifier(Str);
 2915   std::string Error =
 7550                                  std::string *Message,
 7858     std::string PlatformName = AvailabilityAttr::getPrettyPlatformName(
 7890       std::string PlatformName =
 7894       std::string Introduced =
 8321     std::string PlatformName = AvailabilityAttr::getPrettyPlatformName(
 8380     std::string FixItString;
 8478   std::string Message;
tools/clang/lib/Sema/SemaDeclCXX.cpp
  944 static std::string printTemplateArgs(const PrintingPolicy &PrintingPolicy,
 2894     std::string PathDisplayStr = getAmbiguousPathsDisplayString(Paths);
 2926 std::string Sema::getAmbiguousPathsDisplayString(CXXBasePaths &Paths) {
 2927   std::string PathDisplayStr;
 9139   std::string Specifiers;
 9544     std::string NameForDiags = "std::";
 9812       std::string CorrectedStr(Corrected.getAsString(S.getLangOpts()));
14486       std::string InnerCondDescription;
tools/clang/lib/Sema/SemaDeclObjC.cpp
  953       std::string newCode
 3637   std::string MethodName = Method->getSelector().getAsString();
tools/clang/lib/Sema/SemaExpr.cpp
  412   std::string NullValue;
 1901   std::string CorrectedStr = TC.getAsString(SemaRef.getLangOpts());
 2014     std::string CorrectedStr(Corrected.getAsString(getLangOpts()));
 7216     std::string EleTyName = ResTy.getUnqualifiedType().getAsString();
11215   std::string LHSStr = Lexer::getSourceText(
11218   std::string RHSStr = Lexer::getSourceText(
11247     std::string SuggestedExpr = "1 << " + RHSStr;
11270     std::string SuggestedValue = "1e" + std::to_string(RightSideIntValue);
tools/clang/lib/Sema/SemaExprCXX.cpp
 3610     std::string TypeStr;
tools/clang/lib/Sema/SemaExprObjC.cpp
   94     std::string StringClass(getLangOpts().ObjCConstantStringClass);
 1091     std::string Str;
 3615       std::string castCode = "(";
 3624     std::string castCode = "(";
 4121         std::string ExpressionString = "[";
 4152         std::string ExpressionString;
tools/clang/lib/Sema/SemaFixItUtils.cpp
  167 static std::string getScalarZeroExpressionForType(
  199 std::string
  202     std::string s = getScalarZeroExpressionForType(*T, Loc, *this);
  218 std::string
tools/clang/lib/Sema/SemaInit.cpp
 2890       std::string Str;
 3765   std::string Init = S.getFixItZeroInitializerForType(VariableTy, Loc);
tools/clang/lib/Sema/SemaLookup.cpp
 4266     std::string CorrectionStr = Correction.getAsString(SemaRef.getLangOpts());
 4437           std::string NewQualified = TC.getAsString(SemaRef.getLangOpts());
 4438           std::string OldQualified;
 4558       std::string NewNameSpecifier;
 5153 std::string TypoCorrection::getAsString(const LangOptions &LO) const {
 5155     std::string tmpBuffer;
 5320 static std::string getIncludeStringForHeader(Preprocessor &PP,
 5395     std::string ModuleList;
 5447   std::string CorrectedStr = Correction.getAsString(getLangOpts());
 5448   std::string CorrectedQuotedStr = Correction.getQuoted(getLangOpts());
tools/clang/lib/Sema/SemaModule.cpp
  163   std::string ModuleName;
  316     std::string ModuleName;
tools/clang/lib/Sema/SemaObjCProperty.cpp
 1883         std::string FixIt =
tools/clang/lib/Sema/SemaOpenMP.cpp
 4040       std::string Values;
 4041       std::string Sep(", ");
11393 static std::string
11617     std::string Values;
16074     std::string Values;
16129     std::string Value;
tools/clang/lib/Sema/SemaOverload.cpp
 3081     std::string PathDisplayStr = getAmbiguousPathsDisplayString(Paths);
 5738     std::string TypeStr;
 9704                           std::string &Description) {
 9855   std::string FnDesc;
 9933   std::string FnDesc;
10206   std::string Description;
10503   std::string FnDesc;
10622       std::string FnDesc;
10753   std::string TypeStr("operator");
12153               NS->getQualifiedNameAsString().find("__") != std::string::npos)
13340       std::string qualsString = difference.getAsString();
13344         << (qualsString.find(' ') == std::string::npos ? 1 : 2);
tools/clang/lib/Sema/SemaStmt.cpp
 2044   std::string Description;
tools/clang/lib/Sema/SemaStmtAsm.cpp
  502     std::string SuggestedModifier;
  904     std::string InternalName;
tools/clang/lib/Sema/SemaStmtAttr.cpp
   93     std::string Pragma = "#pragma " + std::string(PragmaName);
tools/clang/lib/Sema/SemaTemplate.cpp
  476           std::string CorrectedStr(Corrected.getAsString(getLangOpts()));
  642         std::string CorrectedStr(Corrected.getAsString(getLangOpts()));
 3152 std::pair<Expr *, std::string>
 3185   std::string Description;
 3274             std::string FailedDescription;
 5842     std::string Code = "static_cast<" + ParamType.getAsString() + ">(";
10010         std::string FailedDescription;
10277 std::string
10283 std::string
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
  615       std::string Name;
 2088     std::string Name;
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
 4254     std::string Name;
tools/clang/lib/Sema/SemaType.cpp
 1760 static std::string getPrintableNameForEntity(DeclarationName Entity) {
 1915 static std::string getFunctionQualifiersAsString(const FunctionProtoType *FnTy){
 1916   std::string Quals = FnTy->getMethodQuals().getAsString();
 3311       std::string Init =
 5843 void LocInfoType::getAsStringInternal(std::string &Str,
 7323     std::string PrevAccessQual;
tools/clang/lib/Serialization/ASTReader.cpp
  203     std::string &SuggestedPredefines) {
  344       const std::string Flag = "-fsanitize=";
  627                                      std::string &SuggestedPredefines,
  747                                            std::string &SuggestedPredefines) {
  760                                   std::string &SuggestedPredefines) {
 1383 static std::string
 1384 resolveFileRelativeToOriginalDir(const std::string &Filename,
 1385                                  const std::string &OriginalDir,
 1386                                  const std::string &CurrDir) {
 1838     std::string Resolved = Key.Filename;
 1913     std::string Filename = key.Filename;
 2308     std::string Resolved = resolveFileRelativeToOriginalDir(
 2322       std::string ErrorStr = "could not find file '";
 2372           std::string ErrorStr = "could not get buffer for file '";
 2441 void ASTReader::ResolveImportedPath(ModuleFile &M, std::string &Filename) {
 2447 void ASTReader::ResolveImportedPath(std::string &Filename, StringRef Prefix) {
 2474     std::string &SuggestedPredefines) {
 2759       const std::string &CurBranch = getClangFullRepositoryVersion();
 2793         std::string ImportedName = ReadString(Record, Idx);
 2794         std::string ImportedFile;
 3814       std::string Msg =
 3923       std::string Filename = ReadPath(F, Record, Idx);
 4102   std::string TimestampFilename = MF.getTimestampFilename();
 4441   std::string ErrorStr;
 4986 std::string ASTReader::getOriginalSourceFile(
 4987     const std::string &ASTFileName, FileManager &FileMgr,
 5051     std::string ExistingModuleCachePath;
 5088                                  std::string &SuggestedPredefines) override {
 5129   std::string ModuleDir;
 5144         std::string IgnoredSuggestedPredefines;
 5260           std::string Filename = Blob;
 5280         std::string ModuleName = ReadString(Record, Idx);
 5281         std::string Filename = ReadString(Record, Idx);
 5528       std::string Filename = Blob;
 5561       std::string Dirname = Blob;
 5770     std::string Path = ReadString(Record, Idx);
 5781     std::string Prefix = ReadString(Record, Idx);
 5796   std::string SpecificModuleCachePath = ReadString(Record, Idx);
 5805                                          std::string &SuggestedPredefines) {
 5811     std::string Macro = ReadString(Record, Idx);
 9667 std::string ASTReader::ReadString(const RecordData &Record, unsigned &Idx) {
 9669   std::string Result(Record.data() + Idx, Record.data() + Idx + Len);
 9674 std::string ASTReader::ReadPath(ModuleFile &F, const RecordData &Record,
 9676   std::string Filename = ReadString(Record, Idx);
 9681 std::string ASTReader::ReadPath(StringRef BaseDirectory,
 9683   std::string Filename = ReadString(Record, Idx);
 9840 std::string ASTReader::getOwningModuleNameForDiagnostic(const Decl *D) {
10173       std::string CanonDefModule =
10246     std::string FirstModule = getOwningModuleNameForDiagnostic(FirstRecord);
10254       std::string SecondModule = getOwningModuleNameForDiagnostic(SecondRecord);
11799     std::string FirstModule = getOwningModuleNameForDiagnostic(FirstFunction);
11807       std::string SecondModule =
11961     std::string FirstModule = getOwningModuleNameForDiagnostic(FirstEnum);
11985       std::string SecondModule =
tools/clang/lib/Serialization/ASTReaderDecl.cpp
  130     std::string ReadString() {
  633   std::string Arg = ReadString();
  641   std::string Name = ReadString();
  646   std::string Value = ReadString();
 2673   std::string readString() {
tools/clang/lib/Serialization/ASTReaderStmt.cpp
   82     std::string ReadString() {
  413   std::string AsmStr = ReadString();
  426   SmallVector<std::string, 16> ClobbersData;
  438   SmallVector<std::string, 16> ConstraintsData;
 1953   std::string UuidStr = ReadString();
tools/clang/lib/Serialization/ASTWriter.cpp
 1463                                   const std::string &OutputFile) {
 4337   const llvm::DenseMap<const Type *, std::set<std::string>> &OpenCLTypeExtMap =
 4339   using ElementTy = std::pair<TypeID, const std::set<std::string> *>;
 4355     const std::set<std::string> *ExtSet = E.second;
 4357     for (const std::string &Ext : *ExtSet)
 4370   const llvm::DenseMap<const Decl *, std::set<std::string>> &OpenCLDeclExtMap =
 4372   using ElementTy = std::pair<DeclID, const std::set<std::string> *>;
 4387     const std::set<std::string> *ExtSet = E.second;
 4389     for (const std::string &Ext : *ExtSet)
 4694                                      const std::string &OutputFile,
 4740                                          const std::string &OutputFile,
tools/clang/lib/Serialization/ModuleManager.cpp
   80                            std::string &ErrorStr) {
  110                          std::string &ErrorStr) {
  155     std::string TimestampFilename = NewModule->getTimestampFilename();
  495     std::string getNodeLabel(ModuleFile *M, const ModuleManager&) {
tools/clang/lib/Serialization/PCHContainerOperations.cpp
   54     CompilerInstance &CI, const std::string &MainFileName,
   55     const std::string &OutputFileName, std::unique_ptr<llvm::raw_pwrite_stream> OS,
tools/clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp
  106   std::string NameOfRootFunction = output.str();
tools/clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
  172   std::string msg;
tools/clang/lib/StaticAnalyzer/Checkers/CastValueChecker.cpp
  107   std::string CastToName =
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
  233     std::string Buf;
  547     std::string Buf;
  674   std::string Buf;
  737   std::string Buf;
tools/clang/lib/StaticAnalyzer/Checkers/CheckObjCInstMethSignature.cpp
   49     std::string sbuf;
tools/clang/lib/StaticAnalyzer/Checkers/ExprInspectionChecker.cpp
  307   std::string HashContent =
  341     : public SymExprVisitor<SymbolExpressor, Optional<std::string>> {
  347   Optional<std::string> lookup(const SymExpr *S) {
  355   Optional<std::string> VisitSymExpr(const SymExpr *S) {
  359   Optional<std::string> VisitSymIntExpr(const SymIntExpr *S) {
  360     if (Optional<std::string> Str = lookup(S))
  362     if (Optional<std::string> Str = Visit(S->getLHS()))
  370   Optional<std::string> VisitSymSymExpr(const SymSymExpr *S) {
  371     if (Optional<std::string> Str = lookup(S))
  373     if (Optional<std::string> Str1 = Visit(S->getLHS()))
  374       if (Optional<std::string> Str2 = Visit(S->getRHS()))
  380   Optional<std::string> VisitSymbolCast(const SymbolCast *S) {
  381     if (Optional<std::string> Str = lookup(S))
  383     if (Optional<std::string> Str = Visit(S->getOperand()))
tools/clang/lib/StaticAnalyzer/Checkers/GCDAntipatternChecker.cpp
   77     std::string DeclName = ND->getNameAsString();
   83       std::string ContainerName = CD->getNameAsString();
  189   std::string Diagnostics;
tools/clang/lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp
   59     using NameArgsPair = std::pair<std::string, ArgVector>;
   62       std::string Name;
   85   void parseConfiguration(CheckerManager &Mgr, const std::string &Option,
  321                                              const std::string &Option,
  844   std::string Option{"Config"};
tools/clang/lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
  718 static bool isDebuggingName(std::string name) {
  810   std::string SelectorString = S.getAsString();
  982   std::string SelectorName = S.getAsString();
 1283       std::string NormalizedName =
 1285       if (NormalizedName.find("loc") != std::string::npos) {
tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.cpp
   29   std::string ErrorText;
   53   std::string ErrorText{"Request " + RequestRegion->getDescriptiveName() +
   73   std::string ErrorText{"Request " + RequestRegion->getDescriptiveName() +
tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h
   71   const std::string MPIError = "MPI Error";
   83                        const std::string &ErrText)
   99     std::string ErrorText;
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
  775     std::string getMessageForArg(const Expr *ArgE, unsigned ArgIndex) override {
  788     std::string getMessageForReturn(const CallExpr *CallExpr) override {
tools/clang/lib/StaticAnalyzer/Checkers/MoveChecker.cpp
  519     std::string MethodName = MethodDec->getName().lower();
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
  318   std::string InfoText =
tools/clang/lib/StaticAnalyzer/Checkers/NumberObjectConversionChecker.cpp
  148   std::string EuphemismForPlain = "primitive";
  149   std::string SuggestedApi = IsObjC ? (IsInteger ? "" : "-boolValue")
tools/clang/lib/StaticAnalyzer/Checkers/OSObjectCStyleCast.cpp
   44   std::string Diagnostics;
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp
   54   std::vector<std::string> SelectorsWithAutoreleasingPool = {
   94   std::vector<std::string> FunctionsWithAutoreleasingPool = {
   99 static inline std::vector<llvm::StringRef> toRefs(std::vector<std::string> V) {
  103 static auto callsNames(std::vector<std::string> FunctionNames)
tools/clang/lib/StaticAnalyzer/Checkers/ObjCPropertyChecker.cpp
   50   const std::string &PropTypeName(T->getPointeeType().getCanonicalType()
tools/clang/lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp
  160   std::string Buf;
tools/clang/lib/StaticAnalyzer/Checkers/ObjCUnusedIVarsChecker.cpp
  157       std::string sbuf;
tools/clang/lib/StaticAnalyzer/Checkers/PointerIterationChecker.cpp
   47   std::string Diagnostics;
tools/clang/lib/StaticAnalyzer/Checkers/PointerSortingChecker.cpp
   47   std::string Diagnostics;
tools/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
   83 static std::string getPrettyTypeName(QualType QT) {
  185 static Optional<std::string> findMetaClassAlloc(const Expr *Callee) {
  203 static std::string findAllocatedObjectName(const Stmt *S, QualType QT) {
  383   std::string sbuf;
  439   std::string s;
  491   std::string sbuf;
  606 static Optional<std::string> describeRegion(const MemRegion *MR) {
  743   std::string sbuf;
  748   Optional<std::string> RegionDescription = describeRegion(FirstBinding);
  797           std::string FuncName = FD->getNameAsString();
  895   Optional<std::string> RegionDescription = describeRegion(AllocBinding);
tools/clang/lib/StaticAnalyzer/Checkers/ReturnValueChecker.cpp
   60 static std::string getName(const CallEvent &Call) {
   61   std::string Name = "";
  100   std::string Name = getName(Call);
  147   std::string Name = getName(*Call);
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h
   77   std::string IgnoredRecordsWithFieldPattern;
  150 std::string getVariableName(const FieldDecl *Field);
tools/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp
  584 std::string clang::ento::getVariableName(const FieldDecl *Field) {
  624   std::string ErrorMsg;
tools/clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp
  294     std::string VariableName = Reg->getDescriptiveName();
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
  280 std::string StackHintGeneratorForSymbol::getMessage(const ExplodedNode *N){
  328 std::string StackHintGeneratorForSymbol::getMessageForArg(const Expr *ArgE,
  724       std::string stackMsg = R->getCallStackMessage(P, N);
  743   std::string sbuf;
  798   std::string sbuf;
  813   std::string sbuf;
  883     std::string sbuf;
  894     std::string sbuf;
  924       std::string sbuf;
  951       std::string sbuf;
 1993   for (const std::string &CheckerOrPackage : Opts.SilencedCheckersAndPackages) {
tools/clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
  590     std::string ParamName = PVD->getNameAsString();
  816         std::string MacroName = getMacroName(*Loc, BRC);
 1742   std::string ConditionText = Lexer::getSourceText(
 2496   std::string Message = Out.str();
 2899   if (Optional<std::string> Msg = T->generateMessage(BRC, R)) {
tools/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
 3052   static std::string getNodeLabel(const ExplodedNode *N, ExplodedGraph *G){
 3053     std::string Buf;
 3099   std::string Filename = DumpGraph(trim);
 3108   std::string Filename = DumpGraph(Nodes);
 3114 std::string ExprEngine::DumpGraph(bool trim, StringRef Filename) {
 3139 std::string ExprEngine::DumpGraph(ArrayRef<const ExplodedNode*> Nodes,
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
   61   std::string Directory;
   70                   const std::string& prefix,
  105   std::string GenerateHTML(const PathDiagnostic& D, Rewriter &R,
  126   std::string showRelevantLinesJavascript(
  139     const std::string &prefix, const Preprocessor &PP,
  146     const std::string &prefix, const Preprocessor &PP,
  211   std::string report = GenerateHTML(D, R, SMgr, path, declName.c_str());
  271 std::string HTMLDiagnostics::GenerateHTML(const PathDiagnostic& D, Rewriter &R,
  287       std::string s;
  315       std::string s;
  336   std::string file;
  370 std::string HTMLDiagnostics::showRelevantLinesJavascript(
  372   std::string s;
  463     std::string s;
  529     std::string s;
  793   std::string sbuf;
tools/clang/lib/StaticAnalyzer/Core/IssueHash.cpp
   30 static std::string GetSignature(const FunctionDecl *Target) {
   33   std::string Signature;
   87 static std::string GetEnclosingDeclContextSignature(const Decl *D) {
   92     std::string DeclName;
  134 static std::string NormalizeLine(const SourceManager &SM, FullSourceLoc &L,
  182 std::string clang::GetIssueString(const SourceManager &SM,
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
  447 std::string MemRegion::getString() const {
  448   std::string s;
  659 std::string MemRegion::getDescriptiveName(bool UseQuotes) const {
  660   std::string VariableName;
  661   std::string ArrayIndices;
  678       std::string Idx = ER->getDescriptiveName(false);
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
   42     const std::string OutputFile;
   48     PlistDiagnostics(AnalyzerOptions &AnalyzerOpts, const std::string &prefix,
  160   std::string MacroName;
  161   std::string Expansion;
  162   ExpansionInfo(std::string N, std::string E)
  162   ExpansionInfo(std::string N, std::string E)
  574     AnalyzerOptions &AnalyzerOpts, const std::string &output,
  585     const std::string &s, const Preprocessor &PP,
  593     const std::string &s, const Preprocessor &PP,
  719           const std::string &declName = ND->getDeclName().getAsString();
  798     std::string stats;
  825   std::string Name;
  829   MacroNameAndArgs(std::string N, const MacroInfo *MI, MacroArgMap M)
  877 static std::string getMacroNameAndPrintExpansion(
  940   std::string MacroName = getMacroNameAndPrintExpansion(
  945 static std::string getMacroNameAndPrintExpansion(
 1070   std::string MacroName = PP.getSpelling(TheTok);
tools/clang/lib/StaticAnalyzer/Core/SVals.cpp
  288   std::string Buf;
tools/clang/lib/StaticAnalyzer/Core/SarifDiagnostics.cpp
   29   std::string OutputFile;
   32   SarifDiagnostics(AnalyzerOptions &, const std::string &Output)
   48     const std::string &Output, const Preprocessor &,
   60 static std::string percentEncodeURICharacter(char C) {
   72 static std::string fileNameToURI(StringRef Filename) {
  122   std::string FileURI = fileNameToURI(getFileName(FE));
  289   std::string RuleURI = getRuleHelpURIStr(CheckName);
tools/clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
   69     const std::string &prefix, const Preprocessor &PP,
   78     const std::string &Prefix, const clang::Preprocessor &PP,
  196   const std::string OutDir;
  198   ArrayRef<std::string> Plugins;
  228   AnalysisConsumer(CompilerInstance &CI, const std::string &outdir,
  229                    AnalyzerOptionsRef opts, ArrayRef<std::string> plugins,
  464   std::string getFunctionName(const Decl *D);
  680 std::string AnalysisConsumer::getFunctionName(const Decl *D) {
  681   std::string Str;
tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
   30     ArrayRef<std::string> plugins,
   45 void ento::printCheckerHelp(raw_ostream &out, ArrayRef<std::string> plugins,
   57                                    ArrayRef<std::string> plugins,
   68                                   ArrayRef<std::string> plugins,
   94   using OptionAndDescriptionTy = std::pair<StringRef, std::string>;
tools/clang/lib/StaticAnalyzer/Frontend/CheckerRegistry.cpp
  112     ArrayRef<std::string> Plugins, DiagnosticsEngine &Diags,
  133   for (const std::string &Plugin : Plugins) {
  135     std::string ErrorMsg;
  203   for (const std::pair<std::string, bool> &Opt : AnOpts.CheckersAndPackages) {
  317   std::string FullOption = (FullName + ":" + Option.OptionName).str();
  596     std::string FullOption = (Entry.first + ":" + Option.OptionName).str();
  598     std::string Desc =
tools/clang/lib/Tooling/ASTDiff/ASTDiff.cpp
  151   std::string getRelativeName(const NamedDecl *ND,
  153   std::string getRelativeName(const NamedDecl *ND) const;
  155   std::string getNodeValue(NodeId Id) const;
  156   std::string getNodeValue(const Node &Node) const;
  157   std::string getDeclValue(const Decl *D) const;
  158   std::string getStmtValue(const Stmt *S) const;
  357 std::string
  360   std::string Val = ND->getQualifiedNameAsString();
  361   std::string ContextPrefix;
  379 std::string SyntaxTree::Impl::getRelativeName(const NamedDecl *ND) const {
  397 static std::string getInitializerValue(const CXXCtorInitializer *Init,
  408 std::string SyntaxTree::Impl::getNodeValue(NodeId Id) const {
  412 std::string SyntaxTree::Impl::getNodeValue(const Node &N) const {
  423 std::string SyntaxTree::Impl::getDeclValue(const Decl *D) const {
  424   std::string Value;
  446 std::string SyntaxTree::Impl::getStmtValue(const Stmt *S) const {
  518   std::string getNodeValue(SNodeId Id) const {
  692 llvm::Optional<std::string> Node::getQualifiedIdentifier() const {
 1010 std::string SyntaxTree::getNodeValue(NodeId Id) const {
 1014 std::string SyntaxTree::getNodeValue(const Node &N) const {
tools/clang/lib/Tooling/AllTUsExecution.cpp
   57 llvm::cl::opt<std::string>
   88   std::string ErrorMsg;
  100   std::vector<std::string> Files;
  107   const std::string TotalNumStr = std::to_string(Files.size());
  119     for (std::string File : Files) {
tools/clang/lib/Tooling/CommonOptionsParser.cpp
   65 std::vector<std::string>
   87   static cl::opt<std::string> BuildPath("p", cl::desc("Build path"),
   91   static cl::list<std::string> SourcePaths(
   95   static cl::list<std::string> ArgsAfter(
  100   static cl::list<std::string> ArgsBefore(
  109   std::string ErrorMessage;
tools/clang/lib/Tooling/CompilationDatabase.cpp
   65                                        std::string &ErrorMessage) {
   71     std::string DatabaseErrorMessage;
   83                                      std::string &ErrorMessage) {
   87     std::string LoadErrorMessage;
  107                                           std::string &ErrorMessage) {
  122                                              std::string &ErrorMessage) {
  150   SmallVector<std::string, 2> Inputs;
  201   SmallVector<std::string, 2> UnusedInputs;
  207   MatchesAny(ArrayRef<std::string> Arr) : Arr(Arr) {}
  210     for (const std::string *I = Arr.begin(), *E = Arr.end(); I != E; ++I)
  217   ArrayRef<std::string> Arr;
  229 std::string GetClangToolCommand() {
  231   std::string ClangExecutable =
  261                                 std::vector<std::string> &Result,
  262                                 std::string &ErrorMsg) {
  280   std::string Argv0 = GetClangToolCommand();
  345                                               std::string &ErrorMsg,
  356   std::vector<std::string> StrippedArgs;
  363 FixedCompilationDatabase::loadFromFile(StringRef Path, std::string &ErrorMsg) {
  371   std::vector<std::string> Args{llvm::line_iterator(**File),
  378 FixedCompilationDatabase(Twine Directory, ArrayRef<std::string> CommandLine) {
  379   std::vector<std::string> ToolCommandLine(1, GetClangToolCommand());
  399   loadFromDirectory(StringRef Directory, std::string &ErrorMessage) override {
tools/clang/lib/Tooling/Core/Lookup.cpp
   97     std::string NS =
  125 static std::string disambiguateSpellingInScope(StringRef Spelling,
  171   std::string Disambiguated = Spelling;
  183 std::string tooling::replaceNestedName(const NestedNameSpecifier *Use,
tools/clang/lib/Tooling/Core/Replacement.cpp
   87 std::string Replacement::toString() const {
   88   std::string Result;
  164 static std::string getReplacementErrString(replacement_error Err) {
  180 std::string ReplacementError::message() const {
  181   std::string Message = getReplacementErrString(Err);
  438   std::string Text;
  579 llvm::Expected<std::string> applyAllReplacements(StringRef Code,
  604   std::string Result;
  611 std::map<std::string, Replacements> groupReplacementsByFile(
  613     const std::map<std::string, Replacements> &FileToReplaces) {
  614   std::map<std::string, Replacements> Result;
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp
   21 llvm::Expected<std::string>
   22 DependencyScanningTool::getDependencyFile(const std::string &Input,
   34     void printDependencies(std::string &S) {
   41                           ArrayRef<std::string> Dependencies)
   47         void printDependencies(std::string &S) {
   59     std::vector<std::string> Dependencies;
   67   std::string Output;
tools/clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
   54   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override {
   65   std::string CWD;
  174   std::string DiagnosticOutput;
  185     const std::string &Input, StringRef WorkingDirectory,
tools/clang/lib/Tooling/Execution.cpp
   18 llvm::cl::opt<std::string>
tools/clang/lib/Tooling/FileMatchTrie.cpp
  161   std::string Path;
tools/clang/lib/Tooling/GuessTargetAndModeCompilationDatabase.cpp
   24   std::vector<std::string> getAllFiles() const override {
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp
  317   std::string Quoted =
  335   std::string NewInclude = llvm::formatv("#include {0}\n", QuotedName);
tools/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
  136     std::vector<std::string> OldArgs = std::move(Cmd.CommandLine);
  143       for (const std::string &S : OldArgs)
  239   static bool checkIsCLMode(ArrayRef<std::string> CmdLine) {
  319   FileIndex(std::vector<std::string> Files)
  350     std::string Filename = OriginalFilename.lower();
  486   std::vector<std::string> OriginalPaths;
  523   std::vector<std::string> getAllFiles() const override {
tools/clang/lib/Tooling/JSONCompilationDatabase.cpp
   56   std::vector<std::string> parse() {
   59       std::string Argument;
   69   bool parseStringInto(std::string &String) {
   82   bool parseDoubleQuotedStringInto(std::string &String) {
   92   bool parseSingleQuotedStringInto(std::string &String) {
  101   bool parseFreeStringInto(std::string &String) {
  131   std::vector<std::string> CommandLine;
  134 std::vector<std::string> unescapeCommandLine(JSONCommandLineSyntax Syntax,
  153     std::vector<std::string> Result(T.begin(), T.end());
  165   loadFromDirectory(StringRef Directory, std::string &ErrorMessage) override {
  195                                       std::string &ErrorMessage,
  215                                         std::string &ErrorMessage,
  231   std::string Error;
  244 std::vector<std::string>
  246   std::vector<std::string> Result;
  268 static bool unwrapCommand(std::vector<std::string> &Args) {
  297 static std::vector<std::string>
  301   std::vector<std::string> Arguments;
  329 bool JSONCompilationDatabase::parse(std::string &ErrorMessage) {
tools/clang/lib/Tooling/Refactoring.cpp
   28     const CompilationDatabase &Compilations, ArrayRef<std::string> SourcePaths,
   32 std::map<std::string, Replacements> &RefactoringTool::getReplacements() {
   70     const std::map<std::string, Replacements> &FileToReplaces,
   78     const std::string &FilePath = FileAndReplaces.first;
tools/clang/lib/Tooling/Refactoring/AtomicChange.cpp
   40   std::string Key;
   41   std::string FilePath;
   42   std::string Error;
   43   std::vector<std::string> InsertedHeaders;
   44   std::vector<std::string> RemovedHeaders;
  152       std::string EscapedHeader =
  156       std::string ReplacementText = "#include " + EscapedHeader;
  164     for (const std::string &Header : Change.getRemovedHeaders()) {
  207 AtomicChange::AtomicChange(std::string Key, std::string FilePath,
  207 AtomicChange::AtomicChange(std::string Key, std::string FilePath,
  208                            std::string Error,
  209                            std::vector<std::string> InsertedHeaders,
  210                            std::vector<std::string> RemovedHeaders,
  226 std::string AtomicChange::toYAMLString() {
  227   std::string YamlContent;
  294 llvm::Expected<std::string>
  330   llvm::Expected<std::string> ChangedCode =
tools/clang/lib/Tooling/Refactoring/Extract/Extract.cpp
   71                           Optional<std::string> DeclName) {
  153     std::string ExtractedCode;
  177     std::string ReplacedCode;
tools/clang/lib/Tooling/Refactoring/RefactoringActions.cpp
   19 class DeclNameOption final : public OptionalRefactoringOption<std::string> {
   48 class OldQualifiedNameOption : public RequiredRefactoringOption<std::string> {
   56 class NewQualifiedNameOption : public RequiredRefactoringOption<std::string> {
   64 class NewNameOption : public RequiredRefactoringOption<std::string> {
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
   47   std::vector<std::string> USRs =
   49   std::string PrevName = ND->getNameAsString();
   67                             SourceRange SelectionRange, std::string NewName) {
   92                               std::string OldQualifiedName,
   93                               std::string NewQualifiedName) {
  170     std::map<std::string, tooling::Replacements> *FileToReplaces) {
  185       const std::vector<std::string> &NewNames,
  186       const std::vector<std::string> &PrevNames,
  187       const std::vector<std::vector<std::string>> &USRList,
  188       std::map<std::string, tooling::Replacements> &FileToReplaces,
  203   void HandleOneRename(ASTContext &Context, const std::string &NewName,
  204                        const std::string &PrevName,
  205                        const std::vector<std::string> &USRs) {
  233   const std::vector<std::string> &NewNames, &PrevNames;
  234   const std::vector<std::vector<std::string>> &USRList;
  235   std::map<std::string, tooling::Replacements> &FileToReplaces;
  245   USRSymbolRenamer(const std::vector<std::string> &NewNames,
  246                    const std::vector<std::vector<std::string>> &USRList,
  247                    std::map<std::string, tooling::Replacements> &FileToReplaces)
  263   const std::vector<std::string> &NewNames;
  264   const std::vector<std::vector<std::string>> &USRList;
  265   std::map<std::string, tooling::Replacements> &FileToReplaces;
tools/clang/lib/Tooling/Refactoring/Rename/SymbolOccurrences.cpp
   19   ArrayRef<std::string> NamePieces = Name.getNamePieces();
tools/clang/lib/Tooling/Refactoring/Rename/USRFinder.cpp
  128                                  const std::string &Name) {
  134 std::string getUSRForDecl(const Decl *Decl) {
tools/clang/lib/Tooling/Refactoring/Rename/USRFindingAction.cpp
   68   std::vector<std::string> Find() {
  175   std::set<std::string> USRSet;
  182 std::vector<std::string> getUSRsForDeclaration(const NamedDecl *ND,
  191                            ArrayRef<std::string> QualifiedNames,
  192                            std::vector<std::string> &SpellingNames,
  193                            std::vector<std::vector<std::string>> &USRList,
  201                   unsigned SymbolOffset, const std::string &QualifiedName) {
  258     for (const std::string &QualifiedName : QualifiedNames) {
  265   ArrayRef<std::string> QualifiedNames;
  266   std::vector<std::string> &SpellingNames;
  267   std::vector<std::vector<std::string>> &USRList;
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
   57   explicit USRLocFindingASTVisitor(const std::vector<std::string> &USRs,
  103   const std::set<std::string> USRSet;
  157   RenameLocFinder(llvm::ArrayRef<std::string> USRs, ASTContext &Context)
  493   const std::set<std::string> USRSet;
  503 SymbolOccurrences getOccurrencesOfUSRs(ArrayRef<std::string> USRs,
  511 createRenameAtomicChanges(llvm::ArrayRef<std::string> USRs,
  534     std::string ReplacedName = NewName.str();
  538       if (LastColonPos != std::string::npos)
tools/clang/lib/Tooling/RefactoringCallbacks.cpp
   28     std::map<std::string, Replacements> &FileToReplaces)
  169         if (EndOfIdentifier == std::string::npos) {
  175         std::string SourceNodeName =
  202   std::string ToText;
tools/clang/lib/Tooling/StandaloneExecution.cpp
   31     llvm::ArrayRef<std::string> SourcePaths,
tools/clang/lib/Tooling/Syntax/BuildTree.cpp
  157     std::string str(const syntax::Arena &A) const {
  158       std::string R;
  190   std::string str() { return Pending.str(Arena); }
tools/clang/lib/Tooling/Syntax/Tokens.cpp
  163 std::string TokenBuffer::Mapping::str() const {
  560 std::string syntax::Token::str() const {
  565 std::string syntax::Token::dumpForTests(const SourceManager &SM) const {
  569 std::string TokenBuffer::dumpForTests() const {
  590   std::string Dump;
tools/clang/lib/Tooling/Syntax/Tree.cpp
  124 std::string syntax::Node::dump(const Arena &A) const {
  125   std::string Str;
  131 std::string syntax::Node::dumpTokens(const Arena &A) const {
  132   std::string Storage;
tools/clang/lib/Tooling/Tooling.cpp
  165 static std::vector<std::string>
  167                       const std::vector<std::string> &ExtraArgs,
  169   std::vector<std::string> Args;
  183     const std::vector<std::string> &Args, const Twine &FileName,
  200     const std::vector<std::string> &Args, const Twine &FileName,
  225 llvm::Expected<std::string> getAbsolutePath(llvm::vfs::FileSystem &FS,
  240 std::string getAbsolutePath(StringRef File) {
  244 void addTargetAndModeForProgramName(std::vector<std::string> &CommandLine,
  290     std::vector<std::string> CommandLine, ToolAction *Action,
  296     std::vector<std::string> CommandLine,
  317   for (const std::string &Str : CommandLine)
  404                      ArrayRef<std::string> SourcePaths,
  466   std::vector<std::string> AbsolutePaths;
  480   std::string InitialWorkingDir;
  528       std::vector<std::string> CommandLine = CompileCommand.CommandLine;
  620     StringRef Code, const std::vector<std::string> &Args, StringRef FileName,
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp
  129 RangeSelector transformer::node(std::string ID) {
  141 RangeSelector transformer::statement(std::string ID) {
  170 RangeSelector transformer::range(std::string BeginID, std::string EndID) {
  170 RangeSelector transformer::range(std::string BeginID, std::string EndID) {
  174 RangeSelector transformer::member(std::string ID) {
  186 RangeSelector transformer::name(std::string ID) {
  232   std::string ID;
  235   RelativeSelector(std::string ID) : ID(std::move(ID)) {}
  261 RangeSelector transformer::statements(std::string ID) {
  276 RangeSelector transformer::callArgs(std::string ID) {
  290 RangeSelector transformer::initListElements(std::string ID) {
  303 RangeSelector transformer::elseBranch(std::string ID) {
tools/clang/lib/Tooling/Transformer/RewriteRule.cpp
   93     std::string Tag = (TagBase + Twine(Case.first)).str();
  171     std::string Tag = ("Tag" + Twine(i)).str();
tools/clang/lib/Tooling/Transformer/SourceCodeBuilders.cpp
   63 llvm::Optional<std::string> tooling::buildParens(const Expr &E,
   73 llvm::Optional<std::string>
   94 llvm::Optional<std::string> tooling::buildAddressOf(const Expr &E,
  115 llvm::Optional<std::string> tooling::buildDot(const Expr &E,
  139 llvm::Optional<std::string> tooling::buildArrow(const Expr &E,
tools/clang/lib/Tooling/Transformer/Stencil.cpp
   47   explicit RawTextData(std::string T) : Text(std::move(T)) {}
   48   std::string Text;
   53   explicit DebugPrintNodeData(std::string S) : Id(std::move(S)) {}
   54   std::string Id;
   66   UnaryOperationData(UnaryNodeOperator Op, std::string Id)
   69   std::string Id;
   82   std::string BaseId;
   90   std::string Id;
   95 std::string toStringData(const RawTextData &Data) {
   96   std::string Result;
  105 std::string toStringData(const DebugPrintNodeData &Data) {
  109 std::string toStringData(const UnaryOperationData &Data) {
  125 std::string toStringData(const SelectorData &) { return "selection(...)"; }
  127 std::string toStringData(const AccessData &Data) {
  133 std::string toStringData(const IfBoundData &Data) {
  139 std::string toStringData(const MatchConsumer<std::string> &) {
  139 std::string toStringData(const MatchConsumer<std::string> &) {
  148                std::string *Result) {
  154                const MatchFinder::MatchResult &Match, std::string *Result) {
  155   std::string Output;
  166                const MatchFinder::MatchResult &Match, std::string *Result) {
  171   llvm::Optional<std::string> Source;
  192                std::string *Result) {
  201                std::string *Result) {
  207     if (llvm::Optional<std::string> S =
  221                std::string *Result) {
  227 Error evalData(const MatchConsumer<std::string> &Fn,
  228                const MatchFinder::MatchResult &Match, std::string *Result) {
  229   Expected<std::string> Value = Fn(Match);
  245              std::string *Result) const override {
  249   std::string toString() const override { return toStringData(Data); }
  266 llvm::Expected<std::string>
  268   std::string Result;
  314 StencilPart transformer::run(MatchConsumer<std::string> Fn) {
  316       std::make_shared<StencilPartImpl<MatchConsumer<std::string>>>(
tools/clang/tools/arcmt-test/arcmt-test.cpp
   50 static llvm::cl::opt<std::string>
   55 static llvm::cl::list<std::string>
   66 std::string GetExecutablePath(const char *Argv0) {
  222 static bool verifyTransformedFiles(ArrayRef<std::string> resultFiles) {
  229   for (ArrayRef<std::string>::iterator
  346   std::string
tools/clang/tools/c-index-test/core_main.cpp
   63 static cl::opt<std::string>
   66 static cl::opt<std::string>
  326   std::string Executable = llvm::sys::fs::getMainExecutable(argv[0], MainAddr);
tools/clang/tools/clang-check/ClangCheck.cpp
   68 static cl::opt<std::string> ASTDumpFilter(
   95   std::string RewriteFilename(const std::string& filename, int &fd) override {
   95   std::string RewriteFilename(const std::string& filename, int &fd) override {
tools/clang/tools/clang-diff/ClangDiff.cpp
   43 static cl::opt<std::string> SourcePath(cl::Positional, cl::desc("<source>"),
   47 static cl::opt<std::string> DestinationPath(cl::Positional,
   52 static cl::opt<std::string> StopAfter("stop-diff-after",
   60 static cl::opt<std::string> BuildPath("p", cl::desc("Build path"), cl::init(""),
   63 static cl::list<std::string> ArgsAfter(
   68 static cl::list<std::string> ArgsBefore(
   89   std::string ErrorMessage;
  105   std::array<std::string, 1> Files = {{Filename}};
  248 static std::string getChangeKindAbbr(diff::ChangeKind Kind) {
  295   std::string Value = Tree.getNodeValue(Node);
  352   std::string Value = Tree.getNodeValue(N);
  395   std::string Value = Tree.getNodeValue(Id);
  444   std::string ErrorMessage;
tools/clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
   54   llvm::StringMap<std::string> Index;
   55   std::string CurrentFileName;
   79   llvm::Optional<std::string> LookupName =
tools/clang/tools/clang-format/ClangFormat.cpp
   53 static cl::list<std::string>
   62 static cl::opt<std::string>
   66 static cl::opt<std::string>
   76 static cl::opt<std::string> AssumeFileName(
  159 static cl::list<std::string> FileNames(cl::Positional, cl::desc("[<file> ...]"),
  500   std::string Config = clang::format::configurationAsText(*FormatStyle);
tools/clang/tools/clang-fuzzer/ClangFuzzer.cpp
   22   std::string s((const char *)data, size);
tools/clang/tools/clang-fuzzer/ClangObjectiveCFuzzer.cpp
   20   std::string s(reinterpret_cast<const char *>(data), size);
tools/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.cpp
   23 void clang_fuzzer::HandleCXX(const std::string &S,
tools/clang/tools/clang-fuzzer/handle-cxx/handle_cxx.h
   20 void HandleCXX(const std::string &S,
tools/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp
   74 static void ErrorAndExit(std::string message) {
   94 static std::string OptLLVM(const std::string &IR, CodeGenOpt::Level OLvl) {
   94 static std::string OptLLVM(const std::string &IR, CodeGenOpt::Level OLvl) {
  104   std::string E;
  126   std::string outString;
  144 static void CreateAndRunJITFunc(const std::string &IR, CodeGenOpt::Level OLvl) {
  155   std::string ErrorMsg;
  199 void clang_fuzzer::HandleLLVM(const std::string &IR,
  210   std::string OptIR = OptLLVM(IR, OLvl);
tools/clang/tools/clang-fuzzer/handle-llvm/handle_llvm.h
   20 void HandleLLVM(const std::string &S,
tools/clang/tools/clang-import-test/clang-import-test.cpp
   40 static llvm::cl::opt<std::string> Expression(
   44 static llvm::cl::list<std::string>
   57 static llvm::cl::list<std::string>
   62 static llvm::cl::opt<std::string>
  284 llvm::Error ParseSource(const std::string &Path, CompilerInstance &CI,
  297 llvm::Expected<CIAndOrigins> Parse(const std::string &Path,
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
   59 static cl::list<std::string>
   63 static cl::list<std::string>
   67 static cl::list<std::string>
   71 static cl::opt<std::string>
  104 static std::string BundlerExecutable;
  467     ErrorOr<std::string> Objcopy = sys::findProgramByName(
  525   std::string BundleStartString;
  528   std::string BundleEndString;
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
   48 static cl::opt<std::string> Output("o", cl::Required,
   53 static cl::list<std::string> Inputs(cl::Positional, cl::OneOrMore,
   57 static cl::opt<std::string>
  339   for (const std::string &File : Inputs) {
tools/clang/tools/clang-refactor/ClangRefactor.cpp
  171                        std::unique_ptr<cl::opt<std::string>> CLOption) {
  175   const cl::opt<std::string> &
  183                  std::unique_ptr<cl::opt<std::string>>>
  197              Optional<std::string> &Value) override {
  198     const cl::opt<std::string> &CLOpt = Options.getStringOption(Opt);
  227   void visit(const RefactoringOption &Opt, Optional<std::string> &) override {
  229       Options.addStringOption(Opt, create<std::string>(Opt));
  263         Selection = std::make_unique<cl::opt<std::string>>(
  309   std::unique_ptr<cl::opt<std::string>> Selection;
  479     std::set<std::string> Files;
  555       std::string Error;
  586       std::string Error;
tools/clang/tools/clang-refactor/TestSupport.cpp
   86   std::set<std::string> Files;
  180     Optional<std::string> CanonicalErrorMessage;
  183       std::string ErrorMessage;
  310   std::map<std::string, SmallVector<TestSelectionRange, 8>> GroupedRanges;
tools/clang/tools/clang-refactor/TestSupport.h
   54   std::string Filename;
   56     std::string Name;
tools/clang/tools/clang-rename/ClangRename.cpp
   44   std::string QualifiedName;
   45   std::string NewName;
   74 static cl::list<std::string>
   79 static cl::list<std::string>
   89 static cl::opt<std::string>
   93 static cl::opt<std::string>
  163   const std::vector<std::vector<std::string>> &USRList =
  165   const std::vector<std::string> &PrevNames = FindingAction.getUSRSpellings();
tools/clang/tools/clang-scan-deps/ClangScanDeps.cpp
   68 llvm::cl::opt<std::string>
   94 static std::string getObjFilePath(StringRef SrcFile) {
  104 static bool handleDependencyToolResult(const std::string &Input,
  105                                        llvm::Expected<std::string> &MaybeFile,
  127   std::string ErrorMessage;
  140   std::vector<std::pair<std::string, std::string>> Inputs;
  140   std::vector<std::pair<std::string, std::string>> Inputs;
  150         std::string LastO = "";
  229         std::string Input;
tools/clang/tools/diagtool/DiagTool.h
   25   const std::string cmd;
   26   const std::string description;
tools/clang/tools/diagtool/FindDiagnosticID.cpp
   44   static llvm::cl::opt<std::string> DiagnosticName(
tools/clang/tools/driver/cc1_main.cpp
   59 static void LLVMErrorHandler(void *UserData, const std::string &Message,
  173 static int PrintSupportedCPUs(std::string TargetStr) {
  174   std::string Error;
tools/clang/tools/driver/cc1as_main.cpp
   71   std::string Triple;
   75   std::string CPU;
   79   std::vector<std::string> Features;
   82   std::vector<std::string> SymbolDefs;
   88   std::vector<std::string> IncludePaths;
   94   std::string DwarfDebugFlags;
   95   std::string DwarfDebugProducer;
   96   std::string DebugCompilationDir;
   97   std::map<const std::string, const std::string> DebugPrefixMap;
   97   std::map<const std::string, const std::string> DebugPrefixMap;
  100   std::string MainFileName;
  101   std::string SplitDwarfOutput;
  107   std::string InputFile;
  108   std::vector<std::string> LLVMArgs;
  109   std::string OutputPath;
  139   std::string RelocationModel;
  143   std::string TargetABI;
  196     std::string Nearest;
  331   std::string Error;
  423   std::string FS;
  543 static void LLVMErrorHandler(void *UserData, const std::string &Message,
tools/clang/tools/driver/cc1gen_reproducer_main.cpp
   31   std::string Name;
   32   std::string MD5;
   36   std::string Toolchain;
   37   std::string LibclangOperation;
   38   std::string LibclangOptions;
   39   std::vector<std::string> Arguments;
   40   std::vector<std::string> InvocationArguments;
   73 static std::string generateReproducerMetaInfo(const ClangInvocationInfo &Info) {
   74   std::string Result;
  139 std::string GetExecutablePath(const char *Argv0, bool CanonicalPrefixes);
  180   std::string Path = GetExecutablePath(Argv0, /*CanonicalPrefixes=*/true);
tools/clang/tools/driver/driver.cpp
   53 std::string GetExecutablePath(const char *Argv0, bool CanonicalPrefixes) {
   58       if (llvm::ErrorOr<std::string> P =
   70 static const char *GetStableCStr(std::set<std::string> &SavedStrings,
  105                                std::set<std::string> &SavedStrings) {
  128       std::string Repl = llvm::Regex(MatchPattern).sub(ReplPattern, Args[i]);
  177                             std::set<std::string> &SavedStrings) {
  211                                     std::set<std::string> &SavedStrings) {
  233 static void getCLEnvVarOptions(std::string &EnvValue, llvm::StringSaver &Saver,
  260                                    const std::string &Path) {
  293     if (llvm::ErrorOr<std::string> Tmp = llvm::sys::findProgramByName(
  400     llvm::Optional<std::string> OptCL = llvm::sys::Process::GetEnv("CL");
  409     llvm::Optional<std::string> Opt_CL_ = llvm::sys::Process::GetEnv("_CL_");
  419   std::set<std::string> SavedStrings;
  427   std::string Path = GetExecutablePath(argv[0], CanonicalPrefixes);
tools/clang/tools/extra/clang-apply-replacements/include/clang-apply-replacements/Tooling/ApplyReplacements.h
   38 typedef std::vector<std::string> TUReplacementFiles;
  102 llvm::Expected<std::string>
tools/clang/tools/extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
  230 llvm::Expected<std::string>
tools/clang/tools/extra/clang-apply-replacements/tool/ClangApplyReplacementsMain.cpp
   30 static cl::opt<std::string> Directory(cl::Positional, cl::Required,
   56 static cl::opt<std::string> FormatStyleConfig(
   63 static cl::opt<std::string>
  146     llvm::Expected<std::string> NewFileData =
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
   22 inline std::string
   26   std::string Result = Namespaces.front();
  185     std::map<std::string, tooling::Replacements> *FileToReplacements) {
  211 std::string getShortestQualifiedNameInNamespace(llvm::StringRef DeclName,
  252 std::string wrapCodeInNamespace(StringRef NestedNs, std::string Code) {
  252 std::string wrapCodeInNamespace(StringRef NestedNs, std::string Code) {
  350     llvm::ArrayRef<std::string> WhiteListedSymbolPatterns,
  351     std::map<std::string, tooling::Replacements> *FileToReplacements,
  373   std::string FullOldNs = "::" + OldNamespace;
  382   std::string Prefix = "-";
  790   std::string OldNs = NsDecl->getQualifiedNameAsString();
  795   const std::string NewNs = (NewNamespace + Postfix).str();
  802   std::string FromDeclName = FromDecl->getQualifiedNameAsString();
  806   std::string ReplaceName =
  832       std::string AliasName = NamespaceAlias->getNameAsString();
  833       std::string AliasQualifiedName =
  848       std::string NameWithAliasNamespace =
  948   std::string TargetDeclName = TargetDecl->getQualifiedNameAsString();
  971     const std::string &FilePath = FileAndNsMoves.first;
  993       std::string MovedCode = ChangedCode->substr(NewOffset, NewLength);
  994       std::string MovedCodeWrappedInNewNs =
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.h
   52       llvm::ArrayRef<std::string> WhiteListedSymbolPatterns,
   53       std::map<std::string, tooling::Replacements> *FileToReplacements,
  108     std::string ForwardDeclText;
  111   std::string FallbackStyle;
  119   std::map<std::string, tooling::Replacements> &FileToReplacements;
  122   std::string OldNamespace;
  125   std::string NewNamespace;
  130   std::string DiffOldNamespace;
  135   std::string DiffNewNamespace;
  137   std::string FilePattern;
  144   std::map<std::string, std::vector<MoveNamespace>> MoveNamespaces;
  150   std::map<std::string, std::vector<InsertForwardDeclaration>> InsertFwdDecls;
tools/clang/tools/extra/clang-change-namespace/tool/ClangChangeNamespace.cpp
   50 cl::opt<std::string> OldNamespace("old_namespace", cl::Required,
   54 cl::opt<std::string> NewNamespace("new_namespace", cl::Required,
   58 cl::opt<std::string> FilePattern(
   71 cl::opt<std::string> Style("style",
   75 cl::opt<std::string> WhiteListFile(
   81 llvm::ErrorOr<std::vector<std::string>> GetWhiteListedSymbolPatterns() {
   82   std::vector<std::string> Patterns;
  106   llvm::ErrorOr<std::vector<std::string>> WhiteListPatterns =
  152         std::string Content;
tools/clang/tools/extra/clang-doc/Generators.cpp
   30 std::string getAccess(AccessSpecifier AS) {
   44 std::string getTagType(TagTypeKind AS) {
tools/clang/tools/extra/clang-doc/Generators.h
   45 std::string getAccess(AccessSpecifier AS);
   47 std::string getTagType(TagTypeKind AS);
tools/clang/tools/extra/clang-doc/HTMLGenerator.cpp
   80   std::string Text; // Content of node
   92   std::vector<std::pair<std::string, std::string>>
   92   std::vector<std::pair<std::string, std::string>>
  405     std::string Access = getAccess(M.Access);
  639   std::string EnumType;
  662   std::string Description;
  682   std::string Access = getAccess(I.Access);
  711   std::string Description;
  720         std::string &InfoTitle) {
  729   std::string Description;
  762         std::string &InfoTitle) {
  775   std::string Description;
  839   std::string InfoTitle;
  870 static std::string getRefType(InfoType IT) {
tools/clang/tools/extra/clang-doc/MDGenerator.cpp
   23 static std::string genItalic(const Twine &Text) {
   27 static std::string genEmphasis(const Twine &Text) {
   31 static std::string
   33   std::string Buffer;
   74     std::string Direction = I.Explicit ? (" " + I.Direction).str() : "";
   77     std::string Direction = I.Explicit ? (" " + I.Direction).str() : "";
   91     std::string Buffer;
   96     std::string CloseTag = I.SelfClosing ? "/>" : ">";
  114   std::string Buffer;
  128   std::string Buffer;
  138   std::string Access = getAccess(I.Access);
  204   std::string Parents = genReferenceList(I.Parents);
  205   std::string VParents = genReferenceList(I.VirtualParents);
  219       std::string Access = getAccess(Member.Access);
tools/clang/tools/extra/clang-doc/Representation.cpp
  280                                  std::vector<std::string> UserStylesheets,
  281                                  std::vector<std::string> JsScripts)
tools/clang/tools/extra/clang-doc/Representation.h
  419                   std::vector<std::string> UserStylesheets,
  420                   std::vector<std::string> JsScripts);
  422   std::string ProjectName; // Name of project clang-doc is documenting.
  424   std::string OutDirectory; // Directory for outputting generated files.
  425   std::string SourceRoot;   // Directory where processed files are stored. Links
  429   llvm::Optional<std::string> RepositoryUrl;
  432   std::vector<std::string> UserStylesheets;
  434   std::vector<std::string> JsScripts;
  436   std::vector<std::string> FilesToCopy;
tools/clang/tools/extra/clang-doc/Serialize.cpp
   82   std::string getCommandName(unsigned CommandID) const;
  172 std::string ClangDocCommentVisitor::getCommandName(unsigned CommandID) const {
  182 template <typename T> static std::string serialize(T &I) {
  190 std::string serialize(std::unique_ptr<Info> &I) {
  363       std::string Namespace;
tools/clang/tools/extra/clang-doc/Serialize.h
   62 std::string serialize(std::unique_ptr<Info> &I);
tools/clang/tools/extra/clang-doc/YAMLGenerator.cpp
   95     std::string HexString = fromHex(Value);
tools/clang/tools/extra/clang-doc/tool/ClangDocMain.cpp
   55 static llvm::cl::opt<std::string>
   64 static llvm::cl::opt<std::string>
   78 static llvm::cl::list<std::string> UserStylesheets(
   83 static llvm::cl::opt<std::string> SourceRoot("source-root", llvm::cl::desc(R"(
   89 static llvm::cl::opt<std::string>
  112 std::string getFormatString() {
  129 std::string GetExecutablePath(const char *Argv0, void *MainAddr) {
  195   std::string Format = getFormatString();
  222     std::string ClangDocPath = GetExecutablePath(argv[0], MainAddr);
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.cpp
   66 std::vector<std::string> FuzzySymbolIndex::tokenize(StringRef Text) {
   67   std::vector<std::string> Result;
  117 std::string
  118 FuzzySymbolIndex::queryRegexp(const std::vector<std::string> &Tokens) {
  119   std::string Result;
tools/clang/tools/extra/clang-include-fixer/FuzzySymbolIndex.h
   44   static std::vector<std::string> tokenize(llvm::StringRef Text);
   48   static std::string queryRegexp(const std::vector<std::string> &Tokens);
   48   static std::string queryRegexp(const std::vector<std::string> &Tokens);
tools/clang/tools/extra/clang-include-fixer/InMemorySymbolIndex.h
   30   std::map<std::string, std::vector<find_all_symbols::SymbolAndSignals>>
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.cpp
  156   std::string QueryString = QualType(T->getUnqualifiedDesugaredType(), 0)
  214   std::string TypoScopeString;
  255   std::string QueryString;
  301 std::string IncludeFixerSemaSource::minimizeInclude(
  317   std::string Suggestion =
  330     std::string FilePath = Symbol.getFilePath().str();
  331     std::string MinimizedFilePath = minimizeInclude(
  384   std::string QueryString = ScopedQualifiers.str() + Query.str();
  407   std::string IncludeName =
tools/clang/tools/extra/clang-include-fixer/IncludeFixer.h
   61   std::string FallbackStyle;
  112   std::string minimizeInclude(StringRef Include,
  146   std::string FilePath;
tools/clang/tools/extra/clang-include-fixer/IncludeFixerContext.cpp
   25 std::string createQualifiedNameForReplacement(
   34   std::string QualifiedName = MatchedSymbol.getQualifiedName();
   43   std::string StrippedQualifiers;
   51   std::string FullyQualifiedName = QualifiedName + StrippedQualifiers;
   65   std::string Result;
tools/clang/tools/extra/clang-include-fixer/IncludeFixerContext.h
   26     std::string Header;
   29     std::string QualifiedName;
   36     std::string RawIdentifier;
   42     std::string ScopedQualifiers;
   78   std::string FilePath;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllMacros.cpp
   25   std::string FilePath =
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
  108   std::string FilePath = getIncludePath(SM, Loc, Collector);
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.h
   49   std::string Filename;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/HeaderMapCollector.cpp
   34     std::string Dummy;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/HeaderMapCollector.h
   24   typedef llvm::StringMap<std::string> HeaderMap;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PathConfig.cpp
   16 std::string getIncludePath(const SourceManager &SM, SourceLocation Loc,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/PathConfig.h
   30 std::string getIncludePath(const SourceManager &SM, SourceLocation Loc,
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/SymbolInfo.cpp
   88 std::string SymbolInfo::getQualifiedName() const {
   89   std::string QualifiedName = Name;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/SymbolInfo.h
   49   typedef std::pair<ContextType, std::string> Context;
   83   std::string getQualifiedName() const;
  104   std::string Name;
  111   std::string FilePath;
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp
   52 static cl::opt<std::string> OutputDir("output-dir", cl::desc(R"(
   57 static cl::opt<std::string> MergeDir("merge-dir", cl::desc(R"(
  135   std::vector<std::string> sources = OptionsParser.getSourcePathList();
tools/clang/tools/extra/clang-include-fixer/plugin/IncludeFixerPlugin.cpp
   50                  const std::vector<std::string> &Args) override {
   63     std::string InputFile = CI.getFrontendOpts().Inputs[0].getFile();
tools/clang/tools/extra/clang-include-fixer/tool/ClangIncludeFixer.cpp
   97 cl::opt<std::string> Input("input",
  101 cl::opt<std::string>
  139 cl::opt<std::string> InsertHeader(
  154 cl::opt<std::string>
  170     std::map<std::string, std::vector<std::string>> SymbolsMap;
  170     std::map<std::string, std::vector<std::string>> SymbolsMap;
  176       std::vector<std::string> Headers;
  362       std::string HeaderPath = Symbol.getFilePath().str();
tools/clang/tools/extra/clang-move/Move.cpp
   63 std::string CleanPath(StringRef PathRef) {
   73 std::string MakeAbsolutePath(StringRef CurrentDir, StringRef Path) {
   87 std::string MakeAbsolutePath(const SourceManager &SM, StringRef Path) {
  328 std::string getDeclarationSourceText(const Decl *D) {
  352 std::vector<std::string> getNamespaces(const Decl *D) {
  353   std::vector<std::string> Namespaces;
  368 createInsertedReplacements(const std::vector<std::string> &Includes,
  372   std::string NewCode;
  373   std::string GuardName(FileName);
  396   std::vector<std::string> CurrentNamespaces;
  399     std::vector<std::string> DeclNamespaces = getNamespaces(MovedDecl);
  412     std::vector<std::string> NextNamespaces(CurrentNamespaces.begin(),
  683 std::string ClangMoveTool::makeAbsolutePath(StringRef Path) {
  694   std::string AbsoluteIncludeHeader =
  697   std::string IncludeLine =
  701   std::string AbsoluteOldHeader = makeAbsolutePath(Context->Spec.OldHeader);
  702   std::string AbsoluteCurrentFile = MakeAbsolutePath(SM, FileName);
  753     std::string FilePath = RemoveReplacement.getFilePath().str();
  768       std::string IncludeNewH =
  827     std::string OldHeaderInclude =
  855   std::string FilePath = RemoveAll.getFilePath().str();
  883       const std::string QualifiedName = Decl->getQualifiedNameAsString();
tools/clang/tools/extra/clang-move/Move.h
   47     std::string QualifiedName; // E.g. A::B::Foo.
   48     std::string Kind;          // E.g. Function, Class
   64   SmallVector<std::string, 4> Names;
   66   std::string OldHeader;
   68   std::string OldCC;
   70   std::string NewHeader;
   72   std::string NewCC;
   85   std::map<std::string, tooling::Replacements> &FileToReplacements;
   91   std::string OriginalRunningDirectory;
   93   std::string FallbackStyle;
  157   std::string makeAbsolutePath(StringRef Path);
  174   std::vector<std::string> HeaderIncludes;
  176   std::vector<std::string> CCIncludes;
tools/clang/tools/extra/clang-move/tool/ClangMove.cpp
   41 cl::list<std::string> Names("names", cl::CommaSeparated,
   46 cl::opt<std::string>
   51 cl::opt<std::string>
   55 cl::opt<std::string>
   60 cl::opt<std::string>
   78 cl::opt<std::string>
  196         std::string Content;
tools/clang/tools/extra/clang-query/Query.cpp
  103       std::string prefixText = "Matcher: ";
tools/clang/tools/extra/clang-query/Query.h
   57   std::string ErrStr;
  105   std::string Name;
tools/clang/tools/extra/clang-query/QueryParser.cpp
  158   std::string ErrStr;
tools/clang/tools/extra/clang-query/tool/ClangQuery.cpp
   51 static cl::list<std::string> Commands("c", cl::desc("Specify command to run"),
   55 static cl::list<std::string> CommandFiles("f",
   60 static cl::opt<std::string> PreloadFile(
   65 bool runCommandsInFile(const char *ExeName, std::string const &FileName,
   73     std::string Line;
  138     while (llvm::Optional<std::string> Line = LE.readLine()) {
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.cpp
   85                std::map<std::string, tooling::Replacements> &Replacements) {
  125     std::map<std::string, tooling::Replacements> &Replacements) {
  161     std::map<std::string, tooling::Replacements> &Replacements) {
  225     std::map<std::string, tooling::Replacements> &Replacements) {
  253   ArrayRef<std::string> DesiredFieldsOrder;
  254   std::map<std::string, tooling::Replacements> &Replacements;
  258                      ArrayRef<std::string> DesiredFieldsOrder,
  259                      std::map<std::string, tooling::Replacements> &Replacements)
tools/clang/tools/extra/clang-reorder-fields/ReorderFieldsAction.h
   27   llvm::ArrayRef<std::string> DesiredFieldsOrder;
   28   std::map<std::string, tooling::Replacements> &Replacements;
   33       llvm::ArrayRef<std::string> DesiredFieldsOrder,
   34       std::map<std::string, tooling::Replacements> &Replacements)
tools/clang/tools/extra/clang-reorder-fields/tool/ClangReorderFields.cpp
   37 static cl::opt<std::string>
   42 static cl::list<std::string> FieldsOrder("fields-order", cl::CommaSeparated,
tools/clang/tools/extra/clang-tidy/ClangTidy.cpp
  123       std::string Name = Error.DiagnosticName;
  337 typedef std::vector<std::pair<std::string, bool>> CheckersList;
  347     std::string ClangTidyCheckName((AnalyzerCheckNamePrefix + CheckName).str());
  360     std::string ClangTidyCheckName((AnalyzerCheckNamePrefix + CheckName).str());
  444 std::vector<std::string> ClangTidyASTConsumerFactory::getCheckNames() {
  445   std::vector<std::string> CheckNames;
  470 std::vector<std::string>
  495              ArrayRef<std::string> InputFiles,
tools/clang/tools/extra/clang-tidy/ClangTidy.h
   41   std::vector<std::string> getCheckNames();
   54 std::vector<std::string> getCheckNames(const ClangTidyOptions &Options,
   77              ArrayRef<std::string> InputFiles,
tools/clang/tools/extra/clang-tidy/ClangTidyCheck.cpp
   37 std::string ClangTidyCheck::OptionsView::get(StringRef LocalName,
   45 std::string
tools/clang/tools/extra/clang-tidy/ClangTidyCheck.h
  119     std::string get(StringRef LocalName, StringRef Default) const;
  127     std::string getLocalOrGlobal(StringRef LocalName, StringRef Default) const;
  138       std::string Value = get(LocalName, "");
  155       std::string Value = getLocalOrGlobal(LocalName, "");
  173     std::string NamePrefix;
  180   std::string CheckName;
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
   50     std::string CheckNameInMessage = " [" + Error.DiagnosticName + "]";
  225 std::string ClangTidyContext::getCheckName(unsigned DiagnosticID) const {
  226   std::string ClangWarningOption =
  230   llvm::DenseMap<unsigned, std::string>::const_iterator I =
  282         std::string CheckName = Context.getCheckName(DiagID);
  393     std::string CheckName = Context.getCheckName(Info.getID());
  654   std::map<std::string, std::vector<Event>> FileEvents;
  660         const std::string &FilePath = Replace.getFilePath();
tools/clang/tools/extra/clang-tidy/ClangTidyDiagnosticConsumer.h
  119   std::string getCheckName(unsigned DiagnosticID) const;
  161   const std::string &getCurrentBuildDirectory() {
  171   using DiagLevelAndFormatString = std::pair<DiagnosticIDs::Level, std::string>;
  187   std::string CurrentFile;
  197   std::string CurrentBuildDirectory;
  199   llvm::DenseMap<unsigned, std::string> CheckNamesByDiagnosticID;
  202   std::string ProfilePrefix;
tools/clang/tools/extra/clang-tidy/ClangTidyModule.h
   69   typedef std::map<std::string, CheckFactory> FactoryMap;
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.cpp
  129 static void mergeCommaSeparatedLists(Optional<std::string> &Dest,
  130                                      const Optional<std::string> &Src) {
  336 std::string configurationAsText(const ClangTidyOptions &Options) {
  337   std::string Text;
tools/clang/tools/extra/clang-tidy/ClangTidyOptions.h
   31   std::string Name;
   64   llvm::Optional<std::string> Checks;
   67   llvm::Optional<std::string> WarningsAsErrors;
   71   llvm::Optional<std::string> HeaderFilterRegex;
   88   llvm::Optional<std::string> FormatStyle;
   94   llvm::Optional<std::string> User;
   96   typedef std::pair<std::string, std::string> StringPair;
   96   typedef std::pair<std::string, std::string> StringPair;
   97   typedef std::map<std::string, std::string> OptionMap;
   97   typedef std::map<std::string, std::string> OptionMap;
  102   typedef std::vector<std::string> ArgList;
  131   typedef std::pair<ClangTidyOptions, std::string> OptionsSource;
  187   typedef std::pair<std::string, std::function<llvm::ErrorOr<ClangTidyOptions>(
  270 std::string configurationAsText(const ClangTidyOptions &Options);
tools/clang/tools/extra/clang-tidy/ClangTidyProfiling.h
   28     std::string SourceFilename;
   29     std::string StoreFilename;
tools/clang/tools/extra/clang-tidy/abseil/DurationComparisonCheck.cpp
   44   std::string LhsReplacement =
   46   std::string RhsReplacement =
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryFloatCheck.cpp
   56   llvm::Optional<std::string> SimpleArg = stripFloatCast(Result, *Arg);
tools/clang/tools/extra/clang-tidy/abseil/DurationFactoryScaleCheck.cpp
   26   static const std::unordered_map<std::string, DurationScale> ScaleMap(
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.cpp
   70 static llvm::Optional<std::string>
   89 static llvm::Optional<std::string>
  185 llvm::Optional<std::string>
  205 llvm::Optional<std::string>
  216 std::string simplifyDurationFactoryArg(const MatchFinder::MatchResult &Result,
  219   if (llvm::Optional<std::string> MaybeArg = stripFloatCast(Result, Node))
  223   if (llvm::Optional<std::string> MaybeArg =
  269 std::string rewriteExprFromNumberToDuration(
  275   if (llvm::Optional<std::string> MaybeRewrite =
  287 std::string rewriteExprFromNumberToTime(
  293   if (llvm::Optional<std::string> MaybeRewrite =
tools/clang/tools/extra/clang-tidy/abseil/DurationRewriter.h
   46 llvm::Optional<std::string>
   54 llvm::Optional<std::string>
   61 std::string
   84 std::string rewriteExprFromNumberToDuration(
   90 std::string rewriteExprFromNumberToTime(
tools/clang/tools/extra/clang-tidy/abseil/DurationSubtractionCheck.cpp
   45   std::string RhsReplacement =
tools/clang/tools/extra/clang-tidy/abseil/DurationUnnecessaryConversionCheck.cpp
   25     std::string DurationFactory = (llvm::Twine("::absl::") + Scale).str();
   26     std::string FloatConversion =
   28     std::string IntegerConversion =
tools/clang/tools/extra/clang-tidy/abseil/FasterStrsplitDelimiterCheck.cpp
   24 llvm::Optional<std::string> makeCharacterLiteral(const StringLiteral *Literal,
   30   std::string Result = clang::tooling::fixit::getText(*Literal, Context).str();
   46   std::string::size_type Pos = Result.find_first_of('"');
  108   llvm::Optional<std::string> Replacement =
tools/clang/tools/extra/clang-tidy/abseil/StringFindStartswithCheck.h
   39   const std::vector<std::string> StringLikeClasses;
   41   const std::string AbseilStringsMatchHeader;
tools/clang/tools/extra/clang-tidy/abseil/TimeComparisonCheck.cpp
   46   std::string LhsReplacement =
   48   std::string RhsReplacement =
tools/clang/tools/extra/clang-tidy/abseil/TimeSubtractionCheck.cpp
   97     std::string TimeInverse = (llvm::Twine("ToUnix") + ScaleName).str();
  131   std::string InverseName =
tools/clang/tools/extra/clang-tidy/android/CloexecAcceptCheck.cpp
   32   std::string ReplacementText =
tools/clang/tools/extra/clang-tidy/android/CloexecCheck.cpp
   25 std::string buildFixMsgForStringFlag(const Expr *Arg, const SourceManager &SM,
   93   std::string ReplacementText = buildFixMsgForStringFlag(
tools/clang/tools/extra/clang-tidy/android/CloexecCreatCheck.cpp
   30   const std::string &ReplacementText =
tools/clang/tools/extra/clang-tidy/android/CloexecDupCheck.cpp
   26   std::string ReplacementText =
tools/clang/tools/extra/clang-tidy/android/CloexecPipeCheck.cpp
   26   std::string ReplacementText =
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp
  128   std::string ArgNameLowerStr = ArgName.lower();
  318       std::string ArgComment =
tools/clang/tools/extra/clang-tidy/bugprone/AssertSideEffectCheck.h
   43   const std::string RawAssertList;
tools/clang/tools/extra/clang-tidy/bugprone/CopyConstructorInitCheck.cpp
   39   std::string ParamName = Ctor->getParamDecl(0)->getNameAsString();
   42   std::string FixItInitList;
  102   std::string FixItMsg{FixItInitList.substr(0, FixItInitList.size() - 2)};
tools/clang/tools/extra/clang-tidy/bugprone/DanglingHandleCheck.h
   34   const std::vector<std::string> HandleClasses;
tools/clang/tools/extra/clang-tidy/bugprone/DynamicStaticInitializersCheck.h
   35   const std::string RawStringHeaderFileExtensions;
tools/clang/tools/extra/clang-tidy/bugprone/ExceptionEscapeCheck.h
   35   std::string RawFunctionsThatShouldNotThrow;
   36   std::string RawIgnoredExceptions;
tools/clang/tools/extra/clang-tidy/bugprone/ForwardDeclarationNamespaceCheck.cpp
  103 static std::string getNameOfNamespace(const CXXRecordDecl *Decl) {
  109   std::string Ns;
tools/clang/tools/extra/clang-tidy/bugprone/InaccurateEraseCheck.cpp
   61     std::string ReplacementText = Lexer::getSourceText(
tools/clang/tools/extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
  136 static std::string getCondVarNames(const Stmt *Cond) {
  142   std::string Result;
  147     std::string NewNames = getCondVarNames(Child);
  176   std::string CondVarNames = getCondVarNames(Cond);
tools/clang/tools/extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp
   35     const std::string TypeName =
   40     const std::string ForwardName =
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  386   std::string TempTyStr = Dest->getType().getAsString();
  720     std::string CharHandlerFuncName = "::" + CC.Name.str();
  723     std::string WcharHandlerFuncName =
tools/clang/tools/extra/clang-tidy/bugprone/ParentVirtualCallCheck.cpp
   62 static std::string getNameAsString(const NamedDecl *Decl) {
   63   std::string QualName;
   73 static std::string getExprAsString(const clang::Expr &E,
   75   std::string Text = tooling::fixit::getText(E, AC).str();
  127   std::string ParentsStr;
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.cpp
   94   std::vector<std::string> FunctionNames = utils::options::parseStringList(
tools/clang/tools/extra/clang-tidy/bugprone/SuspiciousStringCompareCheck.h
   32   const std::string StringCompareLikeFunctions;
tools/clang/tools/extra/clang-tidy/bugprone/UnusedReturnValueCheck.h
   31   std::string CheckedFunctions;
tools/clang/tools/extra/clang-tidy/cert/LimitedRandomnessCheck.cpp
   27   std::string msg = "";
tools/clang/tools/extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp
  111   const std::string SeedType(
tools/clang/tools/extra/clang-tidy/cert/ProperlySeededRandomGeneratorCheck.h
   38   std::string RawDisallowedSeedTypes;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.h
   35   const std::string MathHeader;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/MacroUsageCheck.h
   40   std::string AllowedRegexp;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NoMallocCheck.cpp
   26 Matcher<FunctionDecl> hasAnyListedName(const std::string &FunctionNames) {
   27   const std::vector<std::string> NameList =
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/NoMallocCheck.h
   48   const std::string AllocList;
   51   const std::string ReallocList;
   54   const std::string DeallocList;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.cpp
   27 Matcher<FunctionDecl> hasAnyListedName(const std::string &FunctionNames) {
   28   const std::vector<std::string> NameList =
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.h
   52   const std::string LegacyResourceProducers;
   55   const std::string LegacyResourceConsumers;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.h
   25   const std::string GslHeader;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeCstyleCastCheck.cpp
   79       std::string CastText = ("dynamic_cast<" + DestTypeString + ">").str();
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
   71 std::string
  139   std::string codeToInsert() const {
  141     std::string Code;
  143     std::string joined =
  161   SmallVector<std::string, 4> Initializers;
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.cpp
   80 static std::string
   86   std::string Buffer;
  121   std::initializer_list<std::pair<std::string, SpecialMemberFunctionKind>>
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.h
   43   using ClassDefId = std::pair<SourceLocation, std::string>;
tools/clang/tools/extra/clang-tidy/fuchsia/RestrictSystemIncludesCheck.cpp
   47     std::string IncludeFile; // Filename as a string
   48     std::string IncludePath; // Full file path as a string
tools/clang/tools/extra/clang-tidy/fuchsia/RestrictSystemIncludesCheck.h
   39   std::string AllowedIncludes;
tools/clang/tools/extra/clang-tidy/google/AvoidNSObjectNewCheck.cpp
   82     std::string NewCall =
   88     std::string NewCall = llvm::formatv("[[{0} alloc] init]", Receiver);
tools/clang/tools/extra/clang-tidy/google/AvoidUnderscoreInGoogletestNameCheck.cpp
   55     std::string TestCaseName = PP->getSpelling(*TestCaseNameToken);
   56     if (TestCaseName.find('_') != std::string::npos)
   62     std::string TestNameMaybeDisabled = PP->getSpelling(*TestNameToken);
tools/clang/tools/extra/clang-tidy/google/FunctionNamingCheck.cpp
   23 std::string validFunctionNameRegex(bool RequirePrefix) {
   42   std::string FunctionNameMatcher =
   58   std::string NewName = Decl->getName().str();
tools/clang/tools/extra/clang-tidy/google/GlobalNamesInHeadersCheck.h
   37   const std::string RawStringHeaderFileExtensions;
tools/clang/tools/extra/clang-tidy/google/IntegerTypesCheck.cpp
  140   std::string Replacement =
tools/clang/tools/extra/clang-tidy/google/IntegerTypesCheck.h
   36   const std::string UnsignedTypePrefix;
   37   const std::string SignedTypePrefix;
   38   const std::string TypeSuffix;
tools/clang/tools/extra/clang-tidy/google/NonConstReferences.h
   30   const std::vector<std::string> WhiteListTypes;
tools/clang/tools/extra/clang-tidy/google/TodoCommentCheck.cpp
   20   TodoCommentHandler(TodoCommentCheck &Check, llvm::Optional<std::string> User)
   39     std::string NewText = ("// TODO(" + Twine(User) + "): " + Comment).str();
   49   std::string User;
tools/clang/tools/extra/clang-tidy/google/UnnamedNamespaceInHeaderCheck.h
   40   const std::string RawStringHeaderFileExtensions;
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp
   96     std::string Name = PP->getSpelling(MacroNameTok);
tools/clang/tools/extra/clang-tidy/llvm/HeaderGuardCheck.cpp
   19 std::string LLVMHeaderGuardCheck::getHeaderGuard(StringRef Filename,
   21   std::string Guard = tooling::getAbsolutePath(Filename);
tools/clang/tools/extra/clang-tidy/llvm/HeaderGuardCheck.h
   32   std::string getHeaderGuard(StringRef Filename, StringRef OldGuard) override;
tools/clang/tools/extra/clang-tidy/llvm/IncludeOrderCheck.cpp
   39     std::string Filename;  ///< Filename as a string
tools/clang/tools/extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
  121     std::string Replacement("isa_and_nonnull");
tools/clang/tools/extra/clang-tidy/misc/DefinitionsInHeadersCheck.h
   42   const std::string RawStringHeaderFileExtensions;
tools/clang/tools/extra/clang-tidy/misc/RedundantExpressionCheck.cpp
  338   std::string CstId = (Id + "-const").str();
  348   std::string CstId = (Id + "-const").str();
  363   std::string SymId = (Id + "-sym").str();
  372   std::string SymId = (Id + "-sym").str();
  414   std::string CastId = (Id + "-cast").str();
  415   std::string SwapId = (Id + "-swap").str();
  416   std::string NegateId = (Id + "-negate").str();
  417   std::string OverloadId = (Id + "-overload").str();
  497   std::string CastId = (Id + "-cast").str();
  498   std::string SwapId = (Id + "-swap").str();
  499   std::string NegateId = (Id + "-negate").str();
  500   std::string OverloadId = (Id + "-overload").str();
tools/clang/tools/extra/clang-tidy/misc/StaticAssertCheck.cpp
  126     std::string StaticAssertMSG = ", \"\"";
tools/clang/tools/extra/clang-tidy/misc/UniqueptrResetReleaseCheck.cpp
  107   std::string LeftText = clang::Lexer::getSourceText(
  110   std::string RightText = clang::Lexer::getSourceText(
  118   std::string DiagText;
  127   std::string NewText = LeftText + " = " + RightText;
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp
  160   std::string Buffer;
tools/clang/tools/extra/clang-tidy/modernize/DeprecatedHeadersCheck.cpp
   38   llvm::StringMap<std::string> CStyledHeaderToCxx;
  107     std::string Replacement =
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
  474   SmallVector<std::string, 3> Confs{"risky", "reasonable", "safe"};
  477   SmallVector<std::string, 4> Styles{"camelBack", "CamelCase", "lower_case",
  527   std::string VarName;
  550     std::string ReplacementText;
  575       std::string ReplaceText;
  644   std::string TypeString = Type.getAsString(getLangOpts());
  645   std::string Range = ("(" + TypeString + " " + VarName + " : " +
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.h
   32     std::string ContainerString;
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.cpp
  843 std::string VariableNamer::createIndexName() {
  847   std::string IteratorName;
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertUtils.h
   45 typedef llvm::DenseMap<const clang::Stmt *, std::string>
  175   DeclFinderASTVisitor(const std::string &Name,
  191   std::string Name;
  446   std::string createIndexName();
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
   27 std::string GetNewExprName(const CXXNewExpr *NewExpr,
  280   std::string ArraySizeExpr;
tools/clang/tools/extra/clang-tidy/modernize/MakeSmartPtrCheck.h
   51   const std::string MakeSmartPtrFunctionHeader;
   52   const std::string MakeSmartPtrFunctionName;
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp
  212     std::string ValueStr = Lexer::getSourceText(CharSourceRange::getTokenRange(
tools/clang/tools/extra/clang-tidy/modernize/RawStringLiteralCheck.cpp
   65 bool containsDelimiter(StringRef Bytes, const std::string &Delimiter) {
   71 std::string asRawStringLiteral(const StringLiteral *Literal,
   72                                const std::string &DelimiterStem) {
   74   std::string Delimiter;
  135     std::string Replacement = asRawStringLiteral(Literal, DelimiterStem);
tools/clang/tools/extra/clang-tidy/modernize/RawStringLiteralCheck.h
   39   std::string DelimiterStem;
tools/clang/tools/extra/clang-tidy/modernize/RedundantVoidArgCheck.cpp
  128   std::string DeclText =
  141   std::string Diagnostic =
tools/clang/tools/extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.cpp
   87   std::string NewName = "shuffle";
tools/clang/tools/extra/clang-tidy/modernize/ShrinkToFitCheck.cpp
   63     std::string ReplacementText;
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.h
   36   const std::vector<std::string> ContainersWithPushBack;
   37   const std::vector<std::string> SmartPointers;
   38   const std::vector<std::string> TupleTypes;
   39   const std::vector<std::string> TupleMakeFunctions;
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
  243   std::string SpecialFunctionName;
tools/clang/tools/extra/clang-tidy/modernize/UseNodiscardCheck.h
   42   const std::string NoDiscardMacro;
tools/clang/tools/extra/clang-tidy/modernize/UseNoexceptCheck.h
   40   const std::string NoexceptMacro;
tools/clang/tools/extra/clang-tidy/modernize/UseNullptrCheck.h
   26   const std::string NullMacrosStr;
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.cpp
  109   std::string Message;
  144     std::string ReplacementText = OverrideSpelling + " ";
tools/clang/tools/extra/clang-tidy/modernize/UseOverrideCheck.h
   29   const std::string OverrideSpelling;
   30   const std::string FinalSpelling;
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
  318     std::string &ReturnType, std::string &Auto, SourceRange ReturnTypeCVRange,
  318     std::string &ReturnType, std::string &Auto, SourceRange ReturnTypeCVRange,
  360     std::string Specifier = ReturnType.substr(TOffsetInRT, TLengthWithWS);
  466   std::string Auto = NeedSpaceAfterAuto ? "auto " : "auto";
  467   std::string ReturnType = tooling::fixit::getText(ReturnTypeCVRange, Ctx);
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.h
   52   bool keepSpecifiers(std::string &ReturnType, std::string &Auto,
   52   bool keepSpecifiers(std::string &ReturnType, std::string &Auto,
tools/clang/tools/extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
   23   std::string MatchText = "::std::uncaught_exception";
tools/clang/tools/extra/clang-tidy/mpi/BufferDerefCheck.cpp
  112       std::string IndirectionDesc;
tools/clang/tools/extra/clang-tidy/mpi/TypeMismatchCheck.cpp
   30 isMPITypeMatching(const std::multimap<BuiltinType::Kind, std::string> &MultiMap,
   32                   const std::string &MPIDatatype) {
   47 static bool isStandardMPIDatatype(const std::string &MPIDatatype) {
   48   static std::unordered_set<std::string> AllTypes = {
   95                                   std::string &BufferTypeName,
   96                                   const std::string &MPIDatatype,
   98   static std::multimap<BuiltinType::Kind, std::string> BuiltinMatches = {
  148                                    std::string &BufferTypeName,
  149                                    const std::string &MPIDatatype,
  151   static std::multimap<BuiltinType::Kind, std::string> ComplexCMatches = {
  179                          std::string &BufferTypeName,
  180                          const std::string &MPIDatatype,
  182   static std::multimap<BuiltinType::Kind, std::string> ComplexCXXMatches = {
  211                                   std::string &BufferTypeName,
  212                                   const std::string &MPIDatatype) {
  213   static llvm::StringMap<std::string> FixedWidthMatches = {
  305   std::string BufferTypeName;
tools/clang/tools/extra/clang-tidy/objc/ForbiddenSubclassingCheck.h
   34   const std::vector<std::string> ForbiddenSuperClassNames;
tools/clang/tools/extra/clang-tidy/objc/PropertyDeclarationCheck.cpp
   60 std::string validPropertyNameRegex(bool UsedInMatcher) {
   78   std::string StartMatcher = UsedInMatcher ? "::" : "^";
tools/clang/tools/extra/clang-tidy/openmp/ExceptionEscapeCheck.h
   32   std::string RawIgnoredExceptions;
tools/clang/tools/extra/clang-tidy/performance/FasterStringFindCheck.cpp
   24 llvm::Optional<std::string> MakeCharacterLiteral(const StringLiteral *Literal) {
   25   std::string Result;
tools/clang/tools/extra/clang-tidy/performance/FasterStringFindCheck.h
   35   const std::vector<std::string> StringLikeClasses;
tools/clang/tools/extra/clang-tidy/performance/ForRangeCopyCheck.h
   42   const std::vector<std::string> AllowedTypes;
tools/clang/tools/extra/clang-tidy/performance/InefficientAlgorithmCheck.cpp
  148     std::string ReplacementText =
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
  225   std::string PartialReserveStmt;
  231     std::string MutableFieldName = ("mutable_" + FieldName).str();
  241   std::string ReserveSize;
  264     std::string ReserveStmt =
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.h
   38   const std::vector<std::string> VectorLikeClasses;
tools/clang/tools/extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp
  175   std::string NewFnName;
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryCopyInitialization.h
   40   const std::vector<std::string> AllowedTypes;
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
   28 std::string paramNameOrIndex(StringRef Name, size_t Index) {
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.h
   43   const std::vector<std::string> AllowedTypes;
tools/clang/tools/extra/clang-tidy/plugin/ClangTidyPlugin.cpp
   59                  const std::vector<std::string> &Args) override {
tools/clang/tools/extra/clang-tidy/portability/SIMDIntrinsicsCheck.cpp
  140     std::string Message;
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp
  244   std::string ClosingInsertion;
tools/clang/tools/extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp
  114   std::string ReplacementText =
tools/clang/tools/extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
   45   std::string ControlFlowInterruptor;
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  287 static std::string fixupWithCase(StringRef Name,
  318   std::string Fixup;
  383 static std::string
  386   const std::string Fixed = fixupWithCase(
  858     std::string KindName = fixupWithCase(StyleNames[SK], CT_LowerCase);
  861     std::string Fixup = fixupWithStyle(Name, Style);
  894   std::string KindName =
  898   std::string Fixup = fixupWithStyle(Name, Style);
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.h
   59     NamingStyle(llvm::Optional<CaseType> Case, const std::string &Prefix,
   60                 const std::string &Suffix)
   64     std::string Prefix;
   65     std::string Suffix;
   72     std::string KindName;
   73     std::string Fixup;
   88   typedef std::pair<SourceLocation, std::string> NamingCheckId;
tools/clang/tools/extra/clang-tidy/readability/ImplicitBoolConversionCheck.cpp
  114   std::string StartLocInsertion;
  127   std::string EndLocInsertion;
tools/clang/tools/extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.cpp
  196 std::string joinParameterNames(
tools/clang/tools/extra/clang-tidy/readability/IsolateDeclarationCheck.cpp
  231 static std::vector<std::string>
  235   std::vector<std::string> Decls(Snippets.size() - 1);
  265   std::vector<std::string> NewDecls = createIsolatedDecls(*PotentialSnippets);
  266   std::string Replacement = llvm::join(
tools/clang/tools/extra/clang-tidy/readability/MagicNumbersCheck.cpp
   62   const std::vector<std::string> IgnoredIntegerValuesInput =
   72     const std::vector<std::string> IgnoredFloatingPointValuesInput =
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp
   49 static std::string getNamespaceComment(const NamespaceDecl *ND,
   51   std::string Fix = "// namespace";
   59 static std::string getNamespaceComment(const std::string &NameSpaceName,
   59 static std::string getNamespaceComment(const std::string &NameSpaceName,
   61   std::string Fix = "// namespace ";
  136   std::string Message = "%0 not terminated with a closing comment";
  180   std::string NamespaceName =
tools/clang/tools/extra/clang-tidy/readability/RedundantPreprocessorCheck.cpp
   21   std::string Condition;
   45     std::string MacroName = PP.getSpelling(MacroNameTok);
   53     std::string MacroName = PP.getSpelling(MacroNameTok);
   94   const std::string WarningDescription;
   95   const std::string NoteDescription;
tools/clang/tools/extra/clang-tidy/readability/RedundantSmartptrGetCheck.cpp
  150   std::string Replacement = Twine(IsPtrToPtr ? "*" : "", SmartptrText).str();
tools/clang/tools/extra/clang-tidy/readability/RedundantStringCStrCheck.cpp
   43 std::string
  181   std::string ArgText =
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
  130 std::string asBool(StringRef text, bool NeedsStaticCast) {
  171 std::string compareExpressionToConstant(const MatchFinder::MatchResult &Result,
  175   const std::string ExprText =
  182 std::string compareExpressionToNullPtr(const MatchFinder::MatchResult &Result,
  189 std::string compareExpressionToZero(const MatchFinder::MatchResult &Result,
  194 std::string replacementExpression(const MatchFinder::MatchResult &Result,
  300   std::string ReplacementText =
  383     std::string Replacement =
  594   std::string Replacement =
  604   std::string Condition = replacementExpression(Result, Negated, If->getCond());
  605   std::string Replacement = ("return " + Condition + Terminator).str();
  636           std::string Replacement =
  659   std::string Condition =
  661   std::string Replacement =
tools/clang/tools/extra/clang-tidy/readability/SimplifySubscriptExprCheck.h
   30   const std::vector<std::string> Types;
tools/clang/tools/extra/clang-tidy/readability/StaticAccessedThroughInstanceCheck.cpp
   71   std::string BaseTypeName =
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
   87 llvm::Optional<std::string>
   89              const std::vector<std::string> &NewSuffixes) {
  108                            const std::vector<std::string> &NewSuffixes,
  168   llvm::Optional<std::string> NewSuffix =
tools/clang/tools/extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.h
   36   const std::vector<std::string> NewSuffixes;
tools/clang/tools/extra/clang-tidy/tool/ClangTidyMain.cpp
   59 static cl::opt<std::string> Checks("checks", cl::desc(R"(
   72 static cl::opt<std::string> WarningsAsErrors("warnings-as-errors", cl::desc(R"(
   82 static cl::opt<std::string> HeaderFilter("header-filter", cl::desc(R"(
   98 static cl::opt<std::string> LineFilter("line-filter", cl::desc(R"(
  126 static cl::opt<std::string> FormatStyle("format-style", cl::desc(R"(
  156 static cl::opt<std::string> Config("config", cl::desc(R"(
  186 static cl::opt<std::string> StoreCheckProfile("store-check-profile",
  203 static cl::opt<std::string> ExportFixes("export-fixes", cl::desc(R"(
  220 static cl::opt<std::string> VfsOverlay("vfsoverlay", cl::desc(R"(
  308 getVfsFromFile(const std::string &OverlayFile,
  371   std::vector<std::string> EnabledChecks =
  378     for (const std::string &Check : EnabledChecks) {
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.cpp
   21 static std::string cleanPath(StringRef Path) {
   41         std::string FileName = cleanPath(FE->getName());
   84       std::string FileName = cleanPath(FE->getName());
  103       std::string NewGuard = checkHeaderGuardDefinition(
  165   std::string checkHeaderGuardDefinition(SourceLocation Ifndef,
  171     std::string CPPVar = Check->getHeaderGuard(FileName, CurHeaderGuard);
  172     std::string CPPVarUnder = CPPVar + '_';
  223       std::string CPPVar = Check->getHeaderGuard(FileName);
  224       std::string CPPVarUnder = CPPVar + '_'; // Allow a trailing underscore.
  285 std::string HeaderGuardCheck::formatEndIf(StringRef HeaderGuard) {
tools/clang/tools/extra/clang-tidy/utils/HeaderGuard.h
   50   virtual std::string formatEndIf(StringRef HeaderGuard);
   52   virtual std::string getHeaderGuard(StringRef Filename,
   56   std::string RawStringHeaderFileExtensions;
tools/clang/tools/extra/clang-tidy/utils/IncludeInserter.h
   75   llvm::DenseMap<FileID, std::set<std::string>> InsertedHeaders;
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.cpp
   69     std::string AltCanonicalInclude =
   71     std::string ProtoCanonicalInclude =
  115   std::string IncludeStmt =
  130     for (const std::string &IncludeEntry : IncludeBucket[IncludeKind]) {
  140     const std::string &LastInclude = IncludeBucket[IncludeKind].back();
  164     const std::string &LastInclude = IncludeBucket[NonEmptyKind].back();
  171   const std::string &FirstInclude = IncludeBucket[NonEmptyKind][0];
  182   typedef std::map<int, std::pair<SourceRange, std::string>>
  241   std::string CurrentText;
  279 IncludeSorter::parseIncludeStyle(const std::string &Value) {
tools/clang/tools/extra/clang-tidy/utils/IncludeSorter.h
   29   static IncludeStyle parseIncludeStyle(const std::string &Value);
   79   SmallVector<std::string, 1> IncludeBucket[IK_InvalidInclude];
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.cpp
   32                               const std::vector<std::string> &Abbreviations) {
   68     std::string Declaration =
   81 std::string NamespaceAliaser::getNamespaceName(ASTContext &Context,
tools/clang/tools/extra/clang-tidy/utils/NamespaceAliaser.h
   34               const std::vector<std::string> &Abbreviations);
   38   std::string getNamespaceName(ASTContext &Context, const Stmt &Statement,
   43   llvm::DenseMap<const FunctionDecl *, llvm::StringMap<std::string>>
tools/clang/tools/extra/clang-tidy/utils/OptionsUtils.cpp
   18 std::vector<std::string> parseStringList(StringRef Option) {
   21   std::vector<std::string> Result;
   30 std::string serializeStringList(ArrayRef<std::string> Strings) {
   30 std::string serializeStringList(ArrayRef<std::string> Strings) {
tools/clang/tools/extra/clang-tidy/utils/OptionsUtils.h
   20 std::vector<std::string> parseStringList(StringRef Option);
   24 std::string serializeStringList(ArrayRef<std::string> Strings);
   24 std::string serializeStringList(ArrayRef<std::string> Strings);
tools/clang/tools/extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
   88   Expected<std::string> Explanation = Case.Explanation(Result);
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.cpp
   70   std::string Declaration =
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.h
   41   typedef std::pair<const FunctionDecl *, std::string> NameInFunction;
tools/clang/tools/extra/clang-tidy/zircon/TemporaryObjectsCheck.cpp
   24   std::string QualifiedName = Node.getQualifiedNameAsString();
tools/clang/tools/extra/clang-tidy/zircon/TemporaryObjectsCheck.h
   34   std::vector<std::string> Names;
tools/clang/tools/extra/clangd/AST.cpp
   87 std::string printQualifiedName(const NamedDecl &ND) {
   88   std::string QName;
  114 std::string printUsingNamespaceName(const ASTContext &Ctx,
  117   std::string Name;
  126 std::string printName(const ASTContext &Ctx, const NamedDecl &ND) {
  127   std::string Name;
  162 std::string printTemplateSpecializationArgs(const NamedDecl &ND) {
  163   std::string TemplateArgs;
  191 std::string printNamespaceScope(const DeclContext &DC) {
  217 std::string shortenNamespace(const llvm::StringRef OriginalName,
  238 std::string printType(const QualType QT, const DeclContext & Context){
tools/clang/tools/extra/clangd/AST.h
   40 std::string printQualifiedName(const NamedDecl &ND);
   43 std::string printNamespaceScope(const DeclContext &DC);
   48 std::string printUsingNamespaceName(const ASTContext &Ctx,
   54 std::string printName(const ASTContext &Ctx, const NamedDecl &ND);
   60 std::string printTemplateSpecializationArgs(const NamedDecl &ND);
   78 std::string printType(const QualType QT, const DeclContext & Context);
   89 std::string shortenNamespace(const llvm::StringRef OriginalName,
tools/clang/tools/extra/clangd/ClangdLSPServer.cpp
   97 std::vector<std::vector<std::string>> buildHighlightScopeLookupTable() {
   98   std::vector<std::vector<std::string>> LookupTable;
  312     std::string Method;
  612   const std::string &Contents = Params.textDocument.text;
  626   llvm::Expected<std::string> Contents =
  658             std::string Reason = Response->failureReason
  757   llvm::Optional<std::string> Code = DraftMgr.getDraft(File);
  860         std::string FullName =
tools/clang/tools/extra/clangd/ClangdServer.cpp
  421                            llvm::unique_function<void(std::string)> Callback) {
  428     std::string Result;
tools/clang/tools/extra/clangd/ClangdServer.h
  114     llvm::Optional<std::string> WorkspaceRoot;
  120     llvm::Optional<std::string> ResourceDir = llvm::None;
  130     std::vector<std::string> QueryDriverGlobs;
  257     std::string ID;    /// ID to pass for applyTweak.
  258     std::string Title; /// A single-line message to show in the UI.
  272   void dumpAST(PathRef File, llvm::unique_function<void(std::string)> Callback);
  336   llvm::Optional<std::string> WorkspaceRoot;
tools/clang/tools/extra/clangd/CodeComplete.cpp
  252                         llvm::ArrayRef<std::string> QueryScopes,
  393     std::string SnippetSuffix;
  394     std::string Signature;
  395     std::string ReturnType;
  400   const std::string *onlyValue() const {
  416   std::string summarizeReturnType() const {
  422   std::string summarizeSnippet() const {
  469   std::string summarizeSignature() const {
  525   std::vector<std::string> AccessibleScopes;
  528   llvm::Optional<std::string> UnresolvedQualifier;
  532   std::vector<std::string> scopesForIndexQuery() {
  533     std::set<std::string> Results;
  544 std::pair<std::vector<std::string>, bool>
  572     std::vector<std::string> EnclosingAtFront;
  573     std::string EnclosingScope = printNamespaceScope(*CCSema.CurContext);
  852     llvm::DenseMap<SymbolID, std::string> FetchedDocs;
 1219   std::vector<std::string> QueryScopes; // Initialized once Sema runs.
 1373     for (std::string &S : Scopes.AccessibleScopes)
tools/clang/tools/extra/clangd/CodeComplete.h
   81     std::string Insert = "•";
   82     std::string NoInsert = " ";
  139   std::string Name;
  142   std::string Scope;
  144   std::string RequiredQualifier;
  146   std::string Signature;
  148   std::string SnippetSuffix;
  150   std::string ReturnType;
  151   std::string Documentation;
  168     std::string Header;
tools/clang/tools/extra/clangd/CodeCompletionStrings.cpp
   27 void appendEscapeSnippet(const llvm::StringRef Text, std::string *Out) {
   35 void appendOptionalChunk(const CodeCompletionString &CCS, std::string *Out) {
   61 std::string getDocComment(const ASTContext &Ctx,
   73 std::string getDeclComment(const ASTContext &Ctx, const NamedDecl &Decl) {
   87   std::string Doc =
   92 void getSignature(const CodeCompletionString &CCS, std::string *Signature,
   93                   std::string *Snippet, std::string *RequiredQualifiers,
   93                   std::string *Snippet, std::string *RequiredQualifiers,
  208 std::string formatDocumentation(const CodeCompletionString &CCS,
  212   std::string Result;
  238 std::string getReturnType(const CodeCompletionString &CCS) {
tools/clang/tools/extra/clangd/CodeCompletionStrings.h
   31 std::string getDocComment(const ASTContext &Ctx,
   36 std::string getDeclComment(const ASTContext &Ctx, const NamedDecl &D);
   47 void getSignature(const CodeCompletionString &CCS, std::string *Signature,
   48                   std::string *Snippet,
   49                   std::string *RequiredQualifiers = nullptr,
   57 std::string formatDocumentation(const CodeCompletionString &CCS,
   62 std::string getReturnType(const CodeCompletionString &CCS);
tools/clang/tools/extra/clangd/Compiler.h
   47   std::string Contents;
tools/clang/tools/extra/clangd/Diagnostics.cpp
  220 std::string capitalize(std::string Message) {
  220 std::string capitalize(std::string Message) {
  236 std::string mainMessage(const Diag &D, const ClangdDiagnosticOptions &Opts) {
  237   std::string Result;
  253 std::string noteMessage(const Diag &Main, const DiagBase &Note,
  255   std::string Result;
  419       std::string TidyDiag = Tidy->getCheckName(Diag.ID);
  443   std::set<std::pair<Range, std::string>> SeenDiags;
tools/clang/tools/extra/clangd/Diagnostics.h
   54   std::string Message;
   57   std::string File;
   59   llvm::Optional<std::string> AbsFile;
   63   std::string Category;
   73   std::string Message;
   86   std::string Name; // if ID was recognized.
tools/clang/tools/extra/clangd/DraftStore.cpp
   16 llvm::Optional<std::string> DraftStore::getDraft(PathRef File) const {
   42 llvm::Expected<std::string> DraftStore::updateDraft(
   53   std::string Contents = EntryIt->second;
   96     std::string NewContents;
tools/clang/tools/extra/clangd/DraftStore.h
   30   llvm::Optional<std::string> getDraft(PathRef File) const;
   44   llvm::Expected<std::string>
   53   llvm::StringMap<std::string> Drafts;
tools/clang/tools/extra/clangd/ExpectedTypes.cpp
   81 OpaqueType::OpaqueType(std::string Data) : Data(std::move(Data)) {}
tools/clang/tools/extra/clangd/ExpectedTypes.h
   58   explicit OpaqueType(std::string Data);
   60   std::string Data;
tools/clang/tools/extra/clangd/FS.h
   65   std::string MainFilePath;
tools/clang/tools/extra/clangd/FSProvider.cpp
   62     llvm::ErrorOr<std::string> getName() override { return Wrapped->getName(); }
tools/clang/tools/extra/clangd/FileDistance.cpp
  179 static std::pair<std::string, int> scopeToPath(llvm::StringRef Scope) {
  186 createScopeFileDistance(llvm::ArrayRef<std::string> QueryScopes) {
  214 ScopeDistance::ScopeDistance(llvm::ArrayRef<std::string> QueryScopes)
tools/clang/tools/extra/clangd/FileDistance.h
  120   ScopeDistance(llvm::ArrayRef<std::string> QueryScopes);
tools/clang/tools/extra/clangd/FindSymbols.cpp
   99     std::string Scope = Sym.Scope;
tools/clang/tools/extra/clangd/FindTarget.cpp
   43 LLVM_ATTRIBUTE_UNUSED std::string
   45   std::string S = N.getNodeKind().asStringRef();
tools/clang/tools/extra/clangd/Format.cpp
   24 void closeBrackets(std::string &Code, const format::FormatStyle &Style) {
  115   std::string CursorPlaceholder;
  158     std::string IndentAndComment =
  258   std::string CodeToFormat = cantFail(
  329   std::string FinalCode = OriginalCode;
tools/clang/tools/extra/clangd/FormattedString.cpp
   22 static std::string renderText(llvm::StringRef Input) {
   27   std::string R;
   43 static std::string renderInlineBlock(llvm::StringRef Input) {
   44   std::string R;
   69 static std::string renderCodeBlock(llvm::StringRef Input,
   85   std::string BlockMarker(/*Repeat=*/std::max(3u, MaxBackticks + 1), '`');
   91 void FormattedString::appendText(std::string Text) {
   98 void FormattedString::appendCodeBlock(std::string Code, std::string Language) {
   98 void FormattedString::appendCodeBlock(std::string Code, std::string Language) {
  106 void FormattedString::appendInlineCode(std::string Code) {
  113 std::string FormattedString::renderAsMarkdown() const {
  114   std::string R;
  143 std::string FormattedString::renderAsPlainText() const {
  144   std::string R;
  177 std::string FormattedString::renderForTests() const {
  178   std::string R;
tools/clang/tools/extra/clangd/FormattedString.h
   27   void appendText(std::string Text);
   31   void appendCodeBlock(std::string Code, std::string Language = "cpp");
   31   void appendCodeBlock(std::string Code, std::string Language = "cpp");
   34   void appendInlineCode(std::string Code);
   36   std::string renderAsMarkdown() const;
   37   std::string renderAsPlainText() const;
   38   std::string renderForTests() const;
   48     std::string Contents;
   50     std::string Language;
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.cpp
   49 std::string getStandardResourceDir() {
   66 static std::string getFallbackClangPath() {
   68   std::string ClangdExecutable =
   78   std::vector<std::string> Argv = {getFallbackClangPath()};
  126 static std::string maybeCaseFoldPath(PathRef Path) {
  150     std::string Error = "";
  206   std::vector<std::string> AllFiles = Result.CDB->getAllFiles();
  234   std::vector<std::string> GovernedFiles;
  265                        std::vector<std::string> FallbackFlags,
  266                        llvm::Optional<std::string> ResourceDir)
  308   std::string CanonPath = removeDots(File);
tools/clang/tools/extra/clangd/GlobalCompilationDatabase.h
   30   std::string SourceRoot;
   52   using CommandChanged = Event<std::vector<std::string>>;
   85     std::string Path; // Not case-folded.
  118 getQueryDriverDatabase(llvm::ArrayRef<std::string> QueryDriverGlobs,
  128              std::vector<std::string> FallbackFlags = {},
  129              llvm::Optional<std::string> ResourceDir = llvm::None);
  145   std::string ResourceDir;
  146   std::vector<std::string> FallbackFlags;
tools/clang/tools/extra/clangd/Headers.cpp
  189 llvm::Optional<std::string>
  196   std::string Suggested;
tools/clang/tools/extra/clangd/Headers.h
   34   std::string File;
   54   std::string Written; // Inclusion name as written e.g. <vector>.
  131   std::vector<std::string> RealPathNames; // In file index order.
  181   llvm::Optional<std::string>
tools/clang/tools/extra/clangd/IncludeFixer.cpp
  122   std::string TypeName = printQualifiedName(*TD);
  195 llvm::Optional<std::string> qualifiedByUnresolved(const SourceManager &SM,
  198   std::string Result;
  217   std::string Name;
  221   llvm::Optional<std::string> ResolvedScope;
  226   llvm::Optional<std::string> UnresolvedScope;
  258         std::string Spelling = (Code.substr(B, E - B) + "::").str();
  305 std::vector<std::string>
  308   std::vector<std::string> Scopes;
  362       for (std::string &Scope : Unresolved.Scopes)
tools/clang/tools/extra/clangd/IncludeFixer.h
   59     std::string Name;   // E.g. "X" in foo::X.
   61     std::vector<std::string> Scopes; // Namespace scopes we should search in.
   73   std::string File;
tools/clang/tools/extra/clangd/JSONTransport.cpp
   18   std::string Message;
   35   std::string Msg = O.getString("message").getValueOr("Unspecified error");
  107     std::string S;
  117   llvm::Optional<std::string> readRawMessage() {
  121   llvm::Optional<std::string> readDelimitedMessage();
  122   llvm::Optional<std::string> readStandardMessage();
  171 bool readLine(std::FILE *In, std::string &Out) {
  195 llvm::Optional<std::string> JSONTransport::readStandardMessage() {
  199   std::string Line;
  244   std::string JSON(ContentLength, '\0');
  267 llvm::Optional<std::string> JSONTransport::readDelimitedMessage() {
  268   std::string JSON;
  269   std::string Line;
tools/clang/tools/extra/clangd/ParsedAST.cpp
  232   std::string Content = Buffer->getBuffer();
  233   std::string Filename = Buffer->getBufferIdentifier(); // Absolute.
  273         std::string CheckName = CTContext->getCheckName(Info.getID());
tools/clang/tools/extra/clangd/Path.h
   20 using Path = std::string;
tools/clang/tools/extra/clangd/Protocol.h
   57   std::string Message;
   61   LSPError(std::string Message, ErrorCode Code)
   96   std::string uri() const { return URI::createFile(File).toString(); }
  111   explicit URIForFile(std::string &&File) : File(std::move(File)) {}
  113   std::string File;
  209   std::string newText;
  223   std::string languageId;
  229   std::string text;
  437   std::string workingDirectory;
  438   std::vector<std::string> compilationCommand;
  448   std::map<std::string, ClangdCompileCommand> compilationDatabaseChanges;
  459   llvm::Optional<std::string> compilationDatabasePath;
  463   std::vector<std::string> fallbackFlags;
  481   llvm::Optional<std::string> rootPath;
  520   std::string message;
  544   std::string text;
  619   std::string ch;
  642   std::string message;
  656   std::string code;
  660   std::string source;
  663   std::string message;
  673   llvm::Optional<std::string> category;
  715   llvm::Optional<std::map<std::string, std::vector<TextEdit>>> changes;
  733   std::string tweakID;
  753   std::string command;
  762   std::string title;
  773   std::string title;
  777   llvm::Optional<std::string> kind;
  800   std::string name;
  803   std::string detail;
  831   std::string name;
  840   std::string containerName;
  848   std::string name;
  850   std::string containerName;
  857   std::string USR;
  868   std::string query;
  879   llvm::Optional<std::string> failureReason;
  908   std::string triggerCharacter;
  919   std::string value;
  954   std::string label;
  962   std::string detail;
  965   std::string documentation;
  969   std::string sortText;
  973   std::string filterText;
  977   std::string insertText;
 1024   std::string labelString;
 1033   std::string documentation;
 1041   std::string label;
 1044   std::string documentation;
 1082   std::string newName;
 1131   std::string name;
 1135   llvm::Optional<std::string> detail;
 1169   llvm::Optional<std::string> data;
 1200   std::string state;
 1211   std::string Tokens;
tools/clang/tools/extra/clangd/Quality.cpp
  481 std::string sortText(float Score, llvm::StringRef Name) {
  484   std::string S;
tools/clang/tools/extra/clangd/Quality.h
  193 std::string sortText(float Score, llvm::StringRef Tiebreak = "");
tools/clang/tools/extra/clangd/QueryDriverDatabase.cpp
   59 std::vector<std::string> parseDriverOutput(llvm::StringRef Output) {
   60   std::vector<std::string> SystemIncludes;
   88 std::vector<std::string> extractSystemIncludes(PathRef Driver,
  150                   llvm::ArrayRef<std::string> SystemIncludes) {
  160 std::string convertGlobToRegex(llvm::StringRef Glob) {
  161   std::string RegText;
  185 llvm::Regex convertGlobsToRegex(llvm::ArrayRef<std::string> Globs) {
  187   std::vector<std::string> RegTexts;
  203   QueryDriverDatabase(llvm::ArrayRef<std::string> QueryDriverGlobs,
  242     std::vector<std::string> SystemIncludes;
  264   mutable std::map<std::pair<std::string, std::string>,
  264   mutable std::map<std::pair<std::string, std::string>,
  265                    std::vector<std::string>>
  275 getQueryDriverDatabase(llvm::ArrayRef<std::string> QueryDriverGlobs,
tools/clang/tools/extra/clangd/Selection.cpp
  139 std::string printNodeToString(const DynTypedNode &N, const PrintingPolicy &PP) {
  140   std::string S;
  413   std::string indent(int Offset = 0) {
  455 std::string SelectionTree::Node::kind() const {
  456   std::string S;
tools/clang/tools/extra/clangd/Selection.h
  108     std::string kind() const;
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  309 std::string encodeBase64(const llvm::SmallVectorImpl<char> &Bytes) {
  313   std::string Res;
tools/clang/tools/extra/clangd/SourceCode.cpp
  218     std::string PrintLoc = SM.getSpellingLoc(Loc).printToString(SM);
  629 llvm::Optional<std::string> getCanonicalPath(const FileEntry *F,
  725   std::string NullTerminatedCode = Code.str();
  765   std::string Payload;
  774   std::vector<std::string> Enclosing; // Contains e.g. "clang", "clangd"
  786   std::string NSName;
  894 std::vector<std::string> visibleNamespaces(llvm::StringRef Code,
  896   std::string Current;
  922   std::vector<std::string> Found;
 1006 llvm::Expected<std::string> Edit::apply() const {
 1063   std::vector<std::string> Enclosing = {""};
 1076     std::string CurrentNamespace;
tools/clang/tools/extra/clangd/SourceCode.h
  189 llvm::Optional<std::string> getCanonicalPath(const FileEntry *F,
  212   std::string InitialCode;
  218   llvm::Expected<std::string> apply() const;
  262 std::vector<std::string> visibleNamespaces(llvm::StringRef Code,
  270   std::string EnclosingNamespace;
tools/clang/tools/extra/clangd/TUScheduler.cpp
   75 static clang::clangd::Key<std::string> kFileBeingProcessed;
  235     std::string Name;
  797 std::string renderTUAction(const TUAction &Action) {
  798   std::string Result;
  841   std::string Contents;
tools/clang/tools/extra/clangd/TUScheduler.h
   77   std::string Name;
tools/clang/tools/extra/clangd/Trace.cpp
  140     std::string Name;
tools/clang/tools/extra/clangd/URI.cpp
   35   llvm::Expected<std::string>
   52     std::string Body;
   97 void percentEncode(llvm::StringRef Content, std::string &Out) {
   98   std::string Result;
  110 std::string percentDecode(llvm::StringRef Content) {
  111   std::string Result;
  147 std::string URI::toString() const {
  148   std::string Result;
  186 llvm::Expected<std::string> URI::resolve(llvm::StringRef FileURI,
  233 llvm::Expected<std::string> URI::resolve(const URI &Uri,
  241 llvm::Expected<std::string> URI::resolvePath(llvm::StringRef AbsPath,
  261 llvm::Expected<std::string> URI::includeSpelling(const URI &Uri) {
tools/clang/tools/extra/clangd/URI.h
   40   std::string toString() const;
   63   static llvm::Expected<std::string> resolve(const URI &U,
   67   static llvm::Expected<std::string> resolve(llvm::StringRef FileURI,
   74   static llvm::Expected<std::string> resolvePath(llvm::StringRef AbsPath,
   85   static llvm::Expected<std::string> includeSpelling(const URI &U);
  100   std::string Scheme;
  101   std::string Authority;
  102   std::string Body;
  115   virtual llvm::Expected<std::string>
  124   virtual llvm::Expected<std::string> getIncludeSpelling(const URI &U) const {
tools/clang/tools/extra/clangd/XRefs.cpp
  111 SymbolLocation toIndexLocation(const Location &Loc, std::string &URIStorage) {
  125                                     std::string &Scratch) {
  314     std::string Scratch;
  458 static std::string getLocalScope(const Decl *D) {
  459   std::vector<std::string> Scopes;
  463     std::string Name = ND->getNameAsString();
  483 static std::string getNamespaceScope(const Decl *D) {
  496 static std::string printDefinition(const Decl *D) {
  497   std::string Definition;
  661         std::string Param;
  995       std::string QName = printQualifiedName(*ND);
tools/clang/tools/extra/clangd/XRefs.h
   40   std::string Name;
   69     llvm::Optional<std::string> Type;
   71     llvm::Optional<std::string> Name;
   73     llvm::Optional<std::string> Default;
   86   llvm::Optional<std::string> NamespaceScope;
   89   std::string LocalScope;
   91   std::string Name;
   96   std::string Documentation;
   98   std::string Definition;
  102   llvm::Optional<std::string> Type;
  104   llvm::Optional<std::string> ReturnType;
  110   llvm::Optional<std::string> Value;
tools/clang/tools/extra/clangd/benchmarks/IndexBenchmark.cpp
   38   std::string Log((std::istreambuf_iterator<char>(InputStream)),
tools/clang/tools/extra/clangd/index/Background.cpp
   84   std::string HintPath;
   85   llvm::StringMap<std::string> URIToPathCache;
   93   std::string FileURI = U.toString();
  165     const std::vector<std::string> &ChangedFiles) {
  198     const std::string FileName = Cmd.Filename;
  447 BackgroundIndex::loadProject(std::vector<std::string> MainFiles) {
tools/clang/tools/extra/clangd/index/Background.h
   76     std::string Tag;       // Allows priority to be boosted later.
  130   void enqueue(const std::vector<std::string> &ChangedFiles) {
  180   loadProject(std::vector<std::string> MainFiles);
  183   changedFilesTask(const std::vector<std::string> &ChangedFiles);
tools/clang/tools/extra/clangd/index/BackgroundIndexStorage.cpp
   30 std::string getShardPathFromFilePath(llvm::StringRef ShardRoot,
   42   std::string DiskShardRoot;
   61     const std::string ShardPath =
tools/clang/tools/extra/clangd/index/CanonicalIncludes.h
   59   llvm::StringMap<std::string> FullPathMapping;
tools/clang/tools/extra/clangd/index/FileIndex.cpp
   65   std::string FileName = MainFileEntry ? MainFileEntry->getName() : "";
tools/clang/tools/extra/clangd/index/Index.h
   29   std::string Query;
   36   std::vector<std::string> Scopes;
   47   std::vector<std::string> ProximityPaths;
   49   std::vector<std::string> PreferredTypes;
tools/clang/tools/extra/clangd/index/IndexAction.cpp
   32 llvm::Optional<std::string> toURI(const FileEntry *File) {
tools/clang/tools/extra/clangd/index/Serialization.cpp
  170     std::string RawTable;
  577   std::string StringSection;
  584   std::string SymbolSection;
  592   std::string RefsSection;
  602   std::string RelationSection;
  612   std::string SrcsSection;
  622   std::string CmdlSection;
tools/clang/tools/extra/clangd/index/Serialization.h
   77 std::string toYAML(const Symbol &);
   78 std::string toYAML(const std::pair<SymbolID, ArrayRef<Ref>> &);
   79 std::string toYAML(const Relation &);
tools/clang/tools/extra/clangd/index/Symbol.cpp
   17   std::string S;
tools/clang/tools/extra/clangd/index/SymbolCollector.cpp
   56 std::string toURI(const SourceManager &SM, llvm::StringRef Path,
  155                  std::string &FileURIStorage) {
  396   std::string FileURI;
  406   std::string Signature;
  407   std::string SnippetSuffix;
  504   llvm::DenseMap<FileID, std::string> URICache;
  558   std::string QName = printQualifiedName(ND);
  562   std::string TemplateSpecializationArgs = printTemplateSpecializationArgs(ND);
  573   std::string FileURI;
  595   std::string Documentation =
  605   std::string Signature;
  606   std::string SnippetSuffix;
  610   std::string ReturnType = getReturnType(*CCS);
  633   std::string FileURI;
  647 llvm::Optional<std::string>
tools/clang/tools/extra/clangd/index/SymbolCollector.h
   52     std::string FallbackDir;
  129   llvm::Optional<std::string> getIncludeHeader(llvm::StringRef QName, FileID);
tools/clang/tools/extra/clangd/index/SymbolID.cpp
   33 std::string SymbolID::str() const { return llvm::toHex(raw()); }
tools/clang/tools/extra/clangd/index/SymbolID.h
   50   std::string str() const;
tools/clang/tools/extra/clangd/index/YAMLSerialization.cpp
   86   std::string HexString;
  149   std::string URI;
  388 std::string toYAML(const Symbol &S) {
  389   std::string Buf;
  399 std::string toYAML(const std::pair<SymbolID, llvm::ArrayRef<Ref>> &Data) {
  401   std::string Buf;
  410 std::string toYAML(const Relation &R) {
  411   std::string Buf;
tools/clang/tools/extra/clangd/index/dex/Dex.cpp
  111     llvm::ArrayRef<std::string> ProximityPaths) const {
  148 Dex::createTypeBoostingIterator(llvm::ArrayRef<std::string> Types) const {
  300 std::vector<std::string> generateProximityURIs(llvm::StringRef URIPath) {
  301   std::vector<std::string> Result;
tools/clang/tools/extra/clangd/index/dex/Dex.h
   93   createFileProximityIterator(llvm::ArrayRef<std::string> ProximityPaths) const;
   95   createTypeBoostingIterator(llvm::ArrayRef<std::string> Types) const;
  123 std::vector<std::string> generateProximityURIs(llvm::StringRef URIPath);
tools/clang/tools/extra/clangd/index/dex/Token.h
  103   std::string Data;
tools/clang/tools/extra/clangd/index/dex/Trigram.cpp
   29   std::string LowercaseIdentifier = Identifier.lower();
   89   std::string LowercaseQuery = Query.lower();
   98   std::string Chars;
tools/clang/tools/extra/clangd/index/dex/dexp/Dexp.cpp
   28 llvm::cl::opt<std::string> IndexPath("index-path",
   32 static const std::string Overview = R"(
   67     std::string SymQualifiedName = (Sym.Scope + Sym.Name).str();
   90     std::string ParseErrs;
  120   llvm::cl::opt<std::string> Query{
  126   llvm::cl::opt<std::string> Scopes{
  159   llvm::cl::opt<std::string> ID{
  164   llvm::cl::opt<std::string> Name{
  200   llvm::cl::opt<std::string> ID{
  205   llvm::cl::opt<std::string> Name{
  209   llvm::cl::opt<std::string> Filter{
  294   while (llvm::Optional<std::string> Request = LE.readLine()) {
tools/clang/tools/extra/clangd/refactor/Rename.cpp
   24 llvm::Optional<std::string> filePath(const SymbolLocation &Loc,
   42 llvm::Optional<std::string> getOtherRefFile(const Decl &D, StringRef MainFile,
   51   llvm::Optional<std::string> OtherFile;
  146   std::vector<std::string> RenameUSRs =
  148   std::string OldName = CanonicalRenameDecl->getNameAsString();
tools/clang/tools/extra/clangd/refactor/Tweak.h
   79     llvm::Optional<std::string> ShowMessage;
  122   virtual std::string title() const = 0;
tools/clang/tools/extra/clangd/refactor/tweaks/AnnotateHighlightings.cpp
   30   std::string title() const override { return "Annotate highlighting tokens"; }
tools/clang/tools/extra/clangd/refactor/tweaks/DefineInline.cpp
  139 llvm::Expected<std::string> qualifyAllDecls(const FunctionDecl *FD) {
  196     std::string Qualifier = printNamespaceScope(*ND->getDeclContext());
  279   std::string title() const override {
  355     llvm::SmallVector<std::pair<std::string, Edit>, 2> Edits;
tools/clang/tools/extra/clangd/refactor/tweaks/DumpAST.cpp
   43   std::string title() const override {
   61   std::string Str;
   91   std::string title() const override { return "Show selection tree"; }
  118     std::string Str;
  123   std::string title() const override {
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandAutoType.cpp
   43   std::string title() const override;
   50   llvm::Error createErrorMessage(const std::string& Message,
   57 std::string ExpandAutoType::title() const { return "Expand auto type"; }
   99   std::string PrettyTypeName = printType(*DeducedType,
  109 llvm::Error ExpandAutoType::createErrorMessage(const std::string& Message,
  112   std::string ErrorMessage =
tools/clang/tools/extra/clangd/refactor/tweaks/ExpandMacro.cpp
   38   std::string title() const override;
   42   std::string MacroName;
  109   std::string Replacement;
  128 std::string ExpandMacro::title() const {
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractFunction.cpp
  276     std::string Name;
  280     std::string render(const DeclContext *Context) const;
  285   std::string Name = "extracted";
  286   std::string ReturnType;
  297   std::string renderCall() const;
  299   std::string renderDefinition(const SourceManager &SM) const;
  302   std::string renderParametersForDefinition() const;
  303   std::string renderParametersForCall() const;
  305   std::string getFuncBody(const SourceManager &SM) const;
  308 std::string NewFunction::renderParametersForDefinition() const {
  309   std::string Result;
  320 std::string NewFunction::renderParametersForCall() const {
  321   std::string Result;
  332 std::string NewFunction::renderCall() const {
  337 std::string NewFunction::renderDefinition(const SourceManager &SM) const {
  342 std::string NewFunction::getFuncBody(const SourceManager &SM) const {
  351 std::string NewFunction::Parameter::render(const DeclContext *Context) const {
  623   std::string title() const override { return "Extract to function"; }
  634   std::string FuncCall = ExtractedFunc.renderCall();
  641   std::string FunctionDef = ExtractedFunc.renderDefinition(SM);
tools/clang/tools/extra/clangd/refactor/tweaks/ExtractVariable.cpp
  179   std::string ExtractedVarDecl = std::string("auto ") + VarName.str() + " = " +
  438   std::string title() const override {
  463   std::string VarName = "dummy";
tools/clang/tools/extra/clangd/refactor/tweaks/RawStringLiteral.cpp
   43   std::string title() const override { return "Convert to raw string"; }
tools/clang/tools/extra/clangd/refactor/tweaks/RemoveUsingNamespace.cpp
   40   std::string title() const override;
  192   std::string Qualifier = printUsingNamespaceName(Ctx, *TargetDirective) + "::";
  201 std::string RemoveUsingNamespace::title() const {
tools/clang/tools/extra/clangd/refactor/tweaks/SwapIfBranches.cpp
   41   std::string title() const override { return "Swap if branches"; }
tools/clang/tools/extra/clangd/tool/ClangdMain.cpp
   92 list<std::string> QueryDriverGlobs{
  137 opt<std::string> ClangTidyChecks{
  174 opt<std::string> FallbackStyle{
  259 list<std::string> TweakList{
  383   llvm::Expected<std::string>
tools/clang/tools/extra/clangd/unittests/BackgroundIndexTests.cpp
   50   llvm::StringMap<std::string> &Storage;
   54   MemoryShardStorage(llvm::StringMap<std::string> &Storage, size_t &CacheHits)
   91   llvm::StringMap<std::string> Storage;
  131   llvm::StringMap<std::string> Storage;
  184   std::string A_CC = "";
  191   llvm::StringMap<std::string> Storage;
  257   std::string A_CC = "#include \"A.h\"\nvoid g() { (void)common; }";
  260   llvm::StringMap<std::string> Storage;
  309   llvm::StringMap<std::string> Storage;
  383   llvm::StringMap<std::string> Storage;
  440   llvm::StringMap<std::string> Storage;
  469   llvm::StringMap<std::string> Storage;
  532   llvm::StringMap<std::string> Storage;
  595     std::string ReadName;
  609   std::deque<std::string> VersionStorage;
  681   std::string Sequence;
tools/clang/tools/extra/clangd/unittests/ClangdTests.cpp
  115 std::string replacePtrsInDump(std::string const &Dump) {
  115 std::string replacePtrsInDump(std::string const &Dump) {
  120   std::string Result;
  133 std::string dumpASTWithoutMemoryLocs(ClangdServer &Server, PathRef File) {
  140   std::string parseSourceAndDumpAST(
  578   std::vector<std::string> FilePaths;
  581     std::string Name = std::string("Foo") + std::to_string(I) + ".cpp";
  836   std::string Code = R"cpp(
  842   std::string Expected = R"cpp(
  929     llvm::StringMap<std::string> Files;
 1045       std::vector<std::string> CommandLine = {"clangd", "-ffreestanding", File};
 1050     std::vector<std::string> ExtraClangFlags;
tools/clang/tools/extra/clangd/unittests/CodeCompleteTests.cpp
   82 Matcher<const std::vector<CodeCompletion> &> Has(std::string Name) {
   85 Matcher<const std::vector<CodeCompletion> &> Has(std::string Name,
  193   std::string Body = R"cpp(
  665   std::string Subdir = testPath("sub");
  666   std::string SearchDirArg = (Twine("-I") + Subdir).str();
  668   std::string BarHeader = testPath("sub/bar.h");
  714   std::string BarHeader = testPath("bar.h");
  800   const std::string FileContent(R"cpp(
  990   std::string Context = R"cpp(
 1031   std::string Text;
 1050   std::string Label = A.code();
 1408   std::string Context = R"cpp(
 1431   std::string DeclFile = URI::create(testPath("foo")).toString();
 2175   std::string DeclFile = URI::create(testPath("foo")).toString();
 2191   std::string FooHeader = testPath("foo.h");
 2197   std::string DeclFile = URI::create(testPath("foo")).toString();
 2223   std::string FooHeader = testPath("foo.h");
 2245   std::string Body = R"cpp(
 2341   std::string Subdir = testPath("sub");
 2342   std::string SearchDirArg = (Twine("-I") + Subdir).str();
 2344   std::string BarHeader = testPath("sub/bar.h");
tools/clang/tools/extra/clangd/unittests/CodeCompletionStringsTests.cpp
   36   std::string Signature;
   37   std::string Snippet;
tools/clang/tools/extra/clangd/unittests/DexTests.cpp
  356 tokensAre(std::initializer_list<std::string> Strings, Token::Kind Kind) {
  365 trigramsAre(std::initializer_list<std::string> Trigrams) {
  689   std::vector<std::string> Files;
tools/clang/tools/extra/clangd/unittests/DiagnosticsTests.cpp
  513   std::string QName;
  514   std::string DeclaringFile;
  515   std::string IncludeHeader;
tools/clang/tools/extra/clangd/unittests/DraftStoreTests.cpp
   51     llvm::Expected<std::string> Result = DS.updateDraft(Path, {Event});
   80   llvm::Expected<std::string> Result = DS.updateDraft(Path, Changes);
  197   Expected<std::string> Result = DS.updateDraft(File, {Change});
  218   Expected<std::string> Result = DS.updateDraft(File, {Change});
  239   Expected<std::string> Result = DS.updateDraft(File, {Change});
  260   Expected<std::string> Result = DS.updateDraft(File, {Change});
  281   Expected<std::string> Result = DS.updateDraft(File, {Change});
  301   Expected<std::string> Result = DS.updateDraft(File, {Change});
  334   Expected<std::string> Result = DS.updateDraft(File, {Change1, Change2});
  340   Optional<std::string> Contents = DS.getDraft(File);
tools/clang/tools/extra/clangd/unittests/ExpectedTypeTest.cpp
   49   using EquivClass = std::set<std::string>;
   51   Matcher<std::map<std::string, EquivClass>>
   53     using MapEntry = std::map<std::string, EquivClass>::value_type;
   64   std::map<std::string, EquivClass>
   66     std::map<std::string, EquivClass> Classes;
tools/clang/tools/extra/clangd/unittests/FSTests.cpp
   19   llvm::StringMap<std::string> Files;
tools/clang/tools/extra/clangd/unittests/FileIndexTests.cpp
  267   llvm::StringMap<std::string> Files;
tools/clang/tools/extra/clangd/unittests/FindSymbolsTests.cpp
  346   std::string FilePath = testPath("foo.cpp");
  435   std::string FilePath = testPath("foo.cpp");
  456   std::string FilePath = testPath("foo.cpp");
  468   std::string FilePath = testPath("foo.cpp");
  479   std::string FilePath = testPath("foo.h");
  501   std::string FilePath = testPath("foo.h");
  514   std::string FilePath = testPath("foo.cpp");
  551   std::string FilePath = testPath("foo.cpp");
  589   std::string FilePath = testPath("foo.cpp");
  617   std::string FilePath = testPath("foo.cpp");
  638   std::string FilePath = testPath("foo.cpp");
  653   std::string FilePath = testPath("foo.cpp");
tools/clang/tools/extra/clangd/unittests/FindTargetTests.cpp
   39     std::string S;
   48   std::string Name;
   67   std::string Code;
  513     std::string AnnotatedCode;
  514     std::string DumpedReferences;
  545     std::string AnnotatedCode;
  570     std::string DumpedReferences;
tools/clang/tools/extra/clangd/unittests/FormatTests.cpp
   23 std::string afterTyped(llvm::StringRef CodeWithCursor,
tools/clang/tools/extra/clangd/unittests/FormattedStringTests.cpp
   48   std::string ExpectedText = R"(foobar
   54   std::string ExpectedMarkdown = R"md(```cpp
   86   std::string Punctuation = R"txt(!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~)txt";
   88   std::string EscapedPunctuation;
tools/clang/tools/extra/clangd/unittests/FuzzyMatchTests.cpp
   40   std::string Word;
  212         std::string Buf;
  289 std::string segment(llvm::StringRef Text) {
  292   std::string Printed;
tools/clang/tools/extra/clangd/unittests/GlobalCompilationDatabaseTests.cpp
  129   std::vector<std::vector<std::string>> Changes;
  245     std::vector<std::string> DiscoveredFiles;
  267     std::vector<std::string> DiscoveredFiles;
  290   std::vector<std::string> DiscoveredFiles;
tools/clang/tools/extra/clangd/unittests/HeaderSourceSwitchTests.cpp
  142     llvm::Optional<std::string> ExpectedSource;
  211     llvm::Optional<std::string> ExpectedResult;
  261   std::string CppPath = testPath("src/lib/test.cpp");
  262   std::string HeaderPath = testPath("src/include/test.h");
  264   const std::string FileContent = R"cpp(
tools/clang/tools/extra/clangd/unittests/HeadersTests.cpp
   78   std::string calculate(PathRef Original, PathRef Preferred = "",
  121   std::string MainFile = testPath("main.cpp");
  122   std::string Subdir = testPath("sub");
  123   std::string SearchDirArg = (llvm::Twine("-I") + Subdir).str();
  143   std::string BarHeader = testPath("sub/bar.h");
  155   std::string BazHeader = testPath("sub/baz.h");
  157   std::string BarHeader = testPath("sub/bar.h");
  205   std::string Path = testPath("sub/bar.h");
  221   std::string BarHeader = testPath("sub/bar.h");
  231   std::string BarHeader =
  237   std::string BarHeader = testPath("sub/bar.h");
  240   std::string BazHeader = testPath("sub/baz.h");
  268   std::string MainFile = testPath("main.cpp");
tools/clang/tools/extra/clangd/unittests/IndexActionTests.cpp
   27 std::string toUri(llvm::StringRef Path) { return URI::create(Path).toString(); }
   37   const std::string &Path = ::testing::get<1>(arg);
   42 IncludesAre(const std::vector<std::string> &Includes) {
   48                               const std::vector<std::string> &Paths) {
   59 std::map<std::string, const IncludeGraphNode &> toMap(const IncludeGraph &IG) {
   60   std::map<std::string, const IncludeGraphNode &> Nodes;
   72                     const std::vector<std::string> &ExtraArgs = {}) {
   84     std::vector<std::string> Args = {"index_action", "-fsyntax-only",
  107   std::vector<std::string> FilePaths;
  112   std::string MainFilePath = testPath("main.cpp");
  113   std::string MainCode = "#include \"level1.h\"";
  114   std::string Level1HeaderPath = testPath("level1.h");
  115   std::string Level1HeaderCode = "#include \"level2.h\"";
  116   std::string Level2HeaderPath = testPath("level2.h");
  117   std::string Level2HeaderCode = "";
  140   std::string MainFilePath = testPath("main.cpp");
  141   std::string MainCode = "#include \"header.h\"";
  142   std::string HeaderPath = testPath("header.h");
  143   std::string HeaderCode = R"cpp(
  165   std::string MainFilePath = testPath("main.cpp");
  166   std::string MainCode = R"cpp(
  171   std::string CommonHeaderPath = testPath("common.h");
  172   std::string CommonHeaderCode = R"cpp(
  178   std::string HeaderPath = testPath("header.h");
  179   std::string HeaderCode = R"cpp(
  204   std::string MainFilePath = testPath("main.cpp");
  205   std::string MainCode = R"cpp(
  213   std::string HeaderPath = testPath("header.h");
  214   std::string HeaderCode = "";
  233   std::string MainFilePath = testPath("main.cpp");
  234   std::string MainCode = R"cpp(
tools/clang/tools/extra/clangd/unittests/JSONTransportTests.cpp
   25   std::string InBuf, OutBuf, MirrorBuf;
   33   std::unique_ptr<Transport> transport(std::string InData, bool Pretty,
   40   std::string input() const { return InBuf; }
   41   std::string output() { return Out.str(); }
   42   std::string input_mirror() { return Mirror.str(); }
   52   std::string LogBuf;
   58   std::string log() { return Log.str(); }
   89 std::string trim(llvm::StringRef S) { return S.trim().str(); }
tools/clang/tools/extra/clangd/unittests/ParsedASTTests.cpp
   54       std::string SpecializationArgs;
tools/clang/tools/extra/clangd/unittests/PrintASTTests.cpp
   48     std::vector<std::string> TemplateArgsAtPoints;
tools/clang/tools/extra/clangd/unittests/SelectionTests.cpp
   55 std::string nodeKind(const SelectionTree::Node *N) {
tools/clang/tools/extra/clangd/unittests/SemanticHighlightingTests.cpp
   41   static const std::map<HighlightingKind, std::string> KindToString{
   75 std::string annotate(llvm::StringRef Input,
   83   std::string Result;
tools/clang/tools/extra/clangd/unittests/SerializationTests.cpp
  160 std::vector<std::string> YAMLFromSymbols(const SymbolSlab &Slab) {
  161   std::vector<std::string> Result;
  166 std::vector<std::string> YAMLFromRefs(const RefSlab &Slab) {
  167   std::vector<std::string> Result;
  173 std::vector<std::string> YAMLFromRelations(const RelationSlab &Slab) {
  174   std::vector<std::string> Result;
  187   std::string Serialized = llvm::to_string(Out);
  208   std::string TestContent("TestContent");
  222     std::string Serialized = llvm::to_string(Out);
  259     std::string Serialized = llvm::to_string(Out);
tools/clang/tools/extra/clangd/unittests/SourceCodeTests.cpp
  317   std::string Preamble = R"cpp(
  323   for (const std::string &Text : std::vector<std::string>{
  357     std::string WithPreamble = Preamble + Text;
  393   std::set<std::string> ActualWords(Words.keys().begin(), Words.keys().end());
  394   std::set<std::string> ExpectedWords = {"define",  "fizz",    "buzz",  "this",
  401   std::vector<std::pair<const char *, std::vector<std::string>>> Cases = {
tools/clang/tools/extra/clangd/unittests/SymbolCollectorTests.cpp
  134   std::string HeaderName = "f.h";
  135   std::string FileName = "f.cpp";
  258                           const std::vector<std::string> &ExtraArgs = {}) {
  265     std::vector<std::string> Args = {"symbol_collector", "-fsyntax-only",
  289   std::string TestHeaderName;
  290   std::string TestHeaderURI;
  291   std::string TestFileName;
  292   std::string TestFileURI;
  301   const std::string Header = R"(
  374   const std::string Header = R"(
  381   const std::string Main = R"(
  491   const std::string Header = R"(
  527   const std::string Header = R"(
  685   std::string Header = R"(
  697   const std::string Header = R"(
  705   const std::string Main = R"(
  753   const std::string Header = R"(
  782   const std::string Header = R"(
  828   const std::string Main = R"(
  851   const std::string Header = R"(
  876   const std::string Header = R"(
  885   const std::string Main = R"(
  902   const std::string Header = R"(
  917   const std::string Header = R"(
  929   const std::string Header = R"(
  949   const std::string Header = R"(
  964   const std::string Header = R"(
 1006   const std::string Header = R"(
 1021   const std::string Header = R"(
 1204   const std::string Header = R"(
 1208   const std::string Main = R"(
 1262   const std::string Header = R"(
 1273   const std::string Header = R"(
tools/clang/tools/extra/clangd/unittests/SymbolInfoTests.cpp
   29 auto CreateExpectedSymbolDetails = [](const std::string &name,
   30                                       const std::string &container,
   31                                       const std::string &USR) {
tools/clang/tools/extra/clangd/unittests/SyncAPI.cpp
  107 std::string runDumpAST(ClangdServer &Server, PathRef File) {
  108   llvm::Optional<std::string> Result;
tools/clang/tools/extra/clangd/unittests/SyncAPI.h
   44 std::string runDumpAST(ClangdServer &Server, PathRef File);
tools/clang/tools/extra/clangd/unittests/TUSchedulerTests.cpp
   47   ParseInputs getInputs(PathRef File, std::string Contents) {
  119   llvm::StringMap<std::string> Files;
  236 static std::vector<std::string> includes(const PreambleData *Preamble) {
  237   std::vector<std::string> Result;
  302   std::vector<std::string> DiagsSeen, ReadsSeen, ReadsCanceled;
  380     std::vector<std::string> Files;
  382       std::string Name = "foo" + std::to_string(I) + ".cpp";
tools/clang/tools/extra/clangd/unittests/TestFS.cpp
   22 buildTestFS(llvm::StringMap<std::string> const &Files,
   82 std::string testPath(PathRef File) {
   99   llvm::Expected<std::string>
tools/clang/tools/extra/clangd/unittests/TestFS.h
   27 buildTestFS(llvm::StringMap<std::string> const &Files,
   38   llvm::StringMap<std::string> Files;
   57   std::vector<std::string> ExtraClangFlags;
   68 std::string testPath(PathRef File);
tools/clang/tools/extra/clangd/unittests/TestIndex.cpp
   30 static std::string replace(llvm::StringRef Haystack, llvm::StringRef Needle,
   42   std::string USR = "c:"; // We synthesize a few simple cases of USRs by hand!
   76 SymbolSlab generateSymbols(std::vector<std::string> QualifiedNames) {
   84   std::vector<std::string> Names;
   90 std::string getQualifiedName(const Symbol &Sym) {
   94 std::vector<std::string> match(const SymbolIndex &I,
   96   std::vector<std::string> Matches;
  106 std::vector<std::string> lookup(const SymbolIndex &I,
  110   std::vector<std::string> Results;
tools/clang/tools/extra/clangd/unittests/TestIndex.h
   35 SymbolSlab generateSymbols(std::vector<std::string> QualifiedNames);
   41 std::string getQualifiedName(const Symbol &Sym);
   46 std::vector<std::string> match(const SymbolIndex &I,
   51 std::vector<std::string> lookup(const SymbolIndex &I,
tools/clang/tools/extra/clangd/unittests/TestTU.cpp
   23   std::string FullFilename = testPath(Filename),
   29   std::string ThunkContents = "#import \"" + FullHeaderName + "\"\n";
   31   llvm::StringMap<std::string> Files(AdditionalFiles);
tools/clang/tools/extra/clangd/unittests/TestTU.h
   46   std::string Code;
   47   std::string Filename = "TestTU.cpp";
   50   std::string HeaderCode;
   51   std::string HeaderFilename = "TestTU.h";
   54   llvm::StringMap<std::string> AdditionalFiles;
   59   llvm::Optional<std::string> ClangTidyChecks;
   60   llvm::Optional<std::string> ClangTidyWarningsAsErrors;
tools/clang/tools/extra/clangd/unittests/TraceTests.cpp
   35                   std::map<std::string, std::string> Expected) {
   35                   std::map<std::string, std::string> Expected) {
   47     std::string KS = K->getValue(Tmp).str();
   57     std::string VS = V->getValue(Tmp).str();
   73   std::string JSON;
tools/clang/tools/extra/clangd/unittests/TweakTesting.cpp
   38 std::string wrap(Context Ctx, llvm::StringRef Inner) {
   68   std::string WrappedCode = wrap(Ctx, arg);
   87 std::string TweakTest::apply(llvm::StringRef MarkedCode,
   88                              llvm::StringMap<std::string> *EditedFiles) const {
   89   std::string WrappedCode = wrap(Context, MarkedCode);
  114   std::string EditedMainFile;
  138 std::vector<std::string> TweakTest::expandCases(llvm::StringRef MarkedCode) {
  141   std::vector<std::string> Cases;
tools/clang/tools/extra/clangd/unittests/TweakTesting.h
   55   llvm::StringMap<std::string> ExtraFiles;
   63   std::string Header;
   87   std::string apply(llvm::StringRef MarkedCode,
   88                     llvm::StringMap<std::string> *EditedFiles = nullptr) const;
   93   static std::vector<std::string> expandCases(llvm::StringRef MarkedCode);
tools/clang/tools/extra/clangd/unittests/TweakTests.cpp
  573   std::string ParameterCheckInput = R"cpp(
  584   std::string ParameterCheckOutput = R"cpp(
  601   std::string ConstCheckInput = R"cpp(
  605   std::string ConstCheckOutput = R"cpp(
  619   std::string MethodFailInput = R"cpp(
  630   std::string TemplateFailInput = R"cpp(
  640   std::string MacroFailInput = R"cpp(
  649   std::string CompoundFailInput = R"cpp(
 1241   llvm::StringMap<std::string> EditedFiles;
tools/clang/tools/extra/clangd/unittests/TypeHierarchyTests.cpp
  234     std::string QName;
tools/clang/tools/extra/clangd/unittests/URITests.cpp
   30 std::string createOrDie(llvm::StringRef AbsolutePath,
   63 std::string resolveOrDie(const URI &U, llvm::StringRef HintPath = "") {
  139 std::string resolvePathOrDie(llvm::StringRef AbsPath,
tools/clang/tools/extra/clangd/unittests/XRefsTests.cpp
  135 ::testing::Matcher<LocatedSymbol> Sym(std::string Name, Range Decl) {
  562   std::string BuildDir = testPath("build");
 2282     std::vector<std::string> Names;
tools/clang/tools/extra/modularize/CoverageChecker.cpp
  145     std::vector<std::string> &IncludePaths,
  146     ArrayRef<std::string> CommandLine,
  155     StringRef ModuleMapPath, std::vector<std::string> &IncludePaths,
  156     ArrayRef<std::string> CommandLine, clang::ModuleMap *ModuleMap) {
  250     std::string File(I->path());
  284   std::vector<std::string> HeaderPath;
  332     for (std::vector<std::string>::const_iterator I = IncludePaths.begin(),
  413   for (std::vector<std::string>::const_iterator I = FileSystemHeaders.begin(),
tools/clang/tools/extra/modularize/CoverageChecker.h
   47   std::vector<std::string> IncludePaths;
   49   llvm::ArrayRef<std::string> CommandLine;
   57   std::string ModuleMapDirectory;
   62   std::vector<std::string> FileSystemHeaders;
   64   std::vector<std::string> UnaccountedForHeaders;
   79     std::vector<std::string> &IncludePaths,
   80     llvm::ArrayRef<std::string> CommandLine,
   94       llvm::StringRef ModuleMapPath, std::vector<std::string> &IncludePaths,
   95       llvm::ArrayRef<std::string> CommandLine, clang::ModuleMap *ModuleMap);
tools/clang/tools/extra/modularize/Modularize.cpp
  264 static cl::list<std::string>
  270 static cl::list<std::string>
  275 static cl::opt<std::string> HeaderPrefix(
  284 static cl::opt<std::string> ModuleMapPath(
  292 static cl::opt<std::string> ProblemFilesList(
  299 static cl::opt<std::string>
  313 static cl::list<std::string>
  336 std::string CommandLine;
  339 static std::string findInputFile(const CommandLineArguments &CLArgs) {
  347   std::vector<std::string> Inputs = Args.getAllArgValues(OPT_INPUT);
  358     std::string InputFile = findInputFile(Args);
  364         std::string File(std::string("\"") + FileDependents[Index] +
  460   std::string Name;
  489   void add(const std::string &Name, enum Entry::EntryKind Kind, Location Loc) {
  602     std::string Label("namespace ");
  633     std::string Name;
  886       llvm::SmallVector<std::string, 32> CompileCheckFileArray;
tools/clang/tools/extra/modularize/Modularize.h
   28 extern std::string CommandLine;
   31 typedef llvm::SmallVector<std::string, 4> DependentsVector;
   48                      llvm::ArrayRef<std::string> HeaderFileNames,
   49                      llvm::ArrayRef<std::string> ProblemFileNames,
tools/clang/tools/extra/modularize/ModularizeUtilities.cpp
   43 ModularizeUtilities::ModularizeUtilities(std::vector<std::string> &InputPaths,
   66     std::vector<std::string> &InputPaths, llvm::StringRef Prefix,
  115     std::vector<std::string> &IncludePaths,
  116     llvm::ArrayRef<std::string> CommandLine) {
  354     std::string HeaderPath = getCanonicalPath(UmbrellaHeader->getName());
  381     std::string HeaderPath = getCanonicalPath(Header.Entry->getName());
  388     std::string MissingFile = Mod.MissingHeaders[Index].FileName;
  410     std::string File(I->path());
  425     std::string HeaderPath = getCanonicalPath(File);
  433 static std::string replaceDotDot(StringRef Path) {
  455 std::string ModularizeUtilities::getCanonicalPath(StringRef FilePath) {
  456   std::string Tmp(replaceDotDot(FilePath));
  485 std::string ModularizeUtilities::getDirectoryFromPath(StringRef Path) {
  495 void ModularizeUtilities::addUniqueProblemFile(std::string FilePath) {
  507 void ModularizeUtilities::addNoCompileErrorsFile(std::string FilePath) {
tools/clang/tools/extra/modularize/ModularizeUtilities.h
   42   std::vector<std::string> InputFilePaths;
   51   llvm::SmallVector<std::string, 32> HeaderFileNames;
   60   llvm::SmallVector<std::string, 32> GoodFileNames;
   62   llvm::SmallVector<std::string, 32> ProblemFileNames;
   72   ModularizeUtilities(std::vector<std::string> &InputPaths,
   82       std::vector<std::string> &InputPaths,
  105   std::error_code doCoverageCheck(std::vector<std::string> &IncludePaths,
  106                                   llvm::ArrayRef<std::string> CommandLine);
  111   void addUniqueProblemFile(std::string FilePath);
  116   void addNoCompileErrorsFile(std::string FilePath);
  178   static std::string getCanonicalPath(llvm::StringRef FilePath);
  192   static std::string getDirectoryFromPath(llvm::StringRef Path);
tools/clang/tools/extra/modularize/ModuleAssistant.cpp
   53   std::string Name;
   54   std::vector<std::string> HeaderFileNames;
  140 static std::string
  142   std::string SafeName = MightBeReservedName;
  154 static std::string
  156   std::string SafeName = MightBeInvalidName;
  172   std::string FilePath;
  200     std::string Stem = llvm::sys::path::stem(*I);
  217     llvm::StringRef RootModuleName, llvm::ArrayRef<std::string> HeaderFileNames,
  218     llvm::ArrayRef<std::string> ProblemFileNames,
  232   for (llvm::ArrayRef<std::string>::iterator I = HeaderFileNames.begin(),
  235     std::string Header(*I);
  299                      llvm::ArrayRef<std::string> HeaderFileNames,
  300                      llvm::ArrayRef<std::string> ProblemFileNames,
tools/clang/tools/extra/modularize/PreprocessorTracker.cpp
  269 static std::string getSourceLocationString(clang::Preprocessor &PP,
  278 static std::string getSourceLocationFile(clang::Preprocessor &PP,
  280   std::string Source(getSourceLocationString(PP, Loc));
  282   if (Offset == std::string::npos)
  302 static std::string getSourceString(clang::Preprocessor &PP,
  313 static std::string getSourceLine(clang::Preprocessor &PP,
  339 static std::string getSourceLine(clang::Preprocessor &PP, clang::FileID FileID,
  376 static std::string getMacroUnexpandedString(clang::SourceRange Range,
  383   std::string Unexpanded;
  401 static std::string getMacroExpandedString(clang::Preprocessor &PP,
  405   std::string Expanded;
  416         std::string Name = II->getName().str();
  446         std::string Name = II->getName().str();
  777   std::string RootHeaderFile;
  796   PreprocessorTrackerImpl(llvm::SmallVector<std::string, 32> &Headers,
  802     for (llvm::ArrayRef<std::string>::iterator I = Headers.begin(),
  860     std::string SourcePath = getSourceLocationFile(PP, BlockStartLoc);
  928   std::string getCanonicalPath(llvm::StringRef path) const {
  929     std::string CanonicalPath(path);
  936     std::string CanonicalPath = getCanonicalPath(HeaderPath);
  937     for (llvm::ArrayRef<std::string>::iterator I = HeaderList.begin(),
  949     std::string CanonicalPath = getCanonicalPath(HeaderPath);
  962     std::string CanonicalPath = getCanonicalPath(HeaderPath);
 1060       std::string InstanceSourceLine =
 1063       std::string DefinitionSourceLine =
 1082         std::string DefinitionSourceLine =
 1108       std::string InstanceSourceLine =
 1255   llvm::SmallVector<std::string, 32> HeaderList;
 1279     llvm::SmallVector<std::string, 32> &Headers,
 1294   std::string HeaderPath = getSourceLocationFile(PP, HashLoc);
 1331   std::string MacroName = II->getName().str();
 1332   std::string Unexpanded(getMacroUnexpandedString(Range, PP, MacroName, MI));
 1333   std::string Expanded(getMacroExpandedString(PP, MacroName, MI, Args));
 1345   std::string MacroName = II->getName().str();
 1346   std::string Unexpanded(getSourceString(PP, Range));
 1356   std::string Unexpanded(getSourceString(PP, ConditionRange));
 1366   std::string Unexpanded(getSourceString(PP, ConditionRange));
tools/clang/tools/extra/modularize/PreprocessorTracker.h
   80     llvm::SmallVector<std::string, 32> &Headers,
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.cpp
   24 static std::string getSourceLocationString(Preprocessor &PP,
   36     std::string Str;
   43     std::string Result = SS.str();
  275   std::string Str;
  439   std::string Str;
  460                                         const std::string &Value) {
  517   std::string Str;
  538   std::string Str;
  575   std::string Str;
  598   std::string Str;
  639                                               const std::string &Value) {
  640   std::string Str;
  649   std::string Path(Value);
tools/clang/tools/extra/pp-trace/PPCallbacksTracker.h
   40   std::string Name;
   41   std::string Value;
   51   std::string Name;
  171   void appendArgument(const char *Name, const std::string &Value);
  213   void appendQuotedArgument(const char *Name, const std::string &Value);
tools/clang/tools/extra/pp-trace/PPTrace.cpp
   59 static cl::opt<std::string> Callbacks(
   67 static cl::opt<std::string> OutputFileName(
tools/clang/tools/extra/unittests/clang-apply-replacements/ApplyReplacementsTest.cpp
   21 makeTUDiagnostics(const std::string &MainSourceFile, StringRef DiagnosticName,
tools/clang/tools/extra/unittests/clang-change-namespace/ChangeNamespaceTests.cpp
   34   std::string runChangeNamespaceOnCode(llvm::StringRef Code) {
   38     std::map<std::string, tooling::Replacements> FileToReplacements;
   53   std::string format(llvm::StringRef Code) {
   66   std::string FileName = "input.cc";
   67   std::string OldNamespace = "na::nb";
   68   std::string NewNamespace = "x::y";
   69   std::string FilePattern = "input.cc";
   73   std::string Code = "namespace na {\n"
   78   std::string Expected = "namespace na {\n"
   87   std::string Code = "namespace na {\n"
   92   std::string Expected = "\n\n"
  103   std::string Code = "namespace na {\n"
  108   std::string Expected = "namespace na {\n"
  120   std::string Code = "namespace na {\n"
  127   std::string Expected = "namespace na {\n"
  141   std::string Code = "namespace na {\n"
  148   std::string Expected = "\n\n"
  161   std::string Code = "namespace na {\n"
  169   std::string Expected = "namespace na {\n"
  184   std::string Code = "namespace na {\n"
  189   std::string Expected = "namespace na {\n"
  200   std::string Code = "namespace na {\n"
  206   std::string Expected = "namespace na {\n"
  217   std::string Code = "namespace x {\n"
  231   std::string Expected = "namespace x {\n"
  252   std::string Code = "namespace na {\n"
  258   std::string Expected = "namespace na {\n"
  271   std::string Code = "namespace na {\n"
  287   std::string Expected = "namespace na {\n"
  310   std::string Code = "namespace na {\n"
  328   std::string Expected = "namespace na {\n"
  351   std::string Code = "namespace na {\n"
  360   std::string Expected = "namespace na {\n"
  378   std::string Code = "namespace na {\n"
  389   std::string Expected = "namespace na {\n"
  408   std::string Code = "namespace na {\n"
  418   std::string Expected = "namespace na {\n"
  437   std::string Code = "namespace na {\n"
  446   std::string Expected = "\n\n"
  460   std::string Code = "namespace na {\n"
  473   std::string Expected = "namespace na {\n"
  492   std::string Code = "class GLOB {};\n"
  509   std::string Expected = "class GLOB {};\n"
  532   std::string Code = "namespace na {\n"
  544   std::string Expected = "namespace na {\n"
  562   std::string Code =
  583   std::string Expected =
  611   std::string Code =
  626   std::string Expected =
  648   std::string Code =
  664   std::string Expected =
  689   std::string Code = "namespace na {\n"
  704   std::string Expected =
  727   std::string Code = "namespace na {\n"
  741   std::string Expected = "namespace na {\n"
  762   std::string Code = "namespace na {\n"
  776   std::string Expected = "namespace na {\n"
  797   std::string Code = "namespace na {\n"
  803   std::string Expected = "namespace na {\n"
  818   std::string Code = "namespace na {\n"
  831   std::string Expected = "\n"
  850   std::string Code = "namespace glob {\n"
  862   std::string Expected = "namespace glob {\n"
  878   std::string Code = "namespace util {\n"
  892   std::string Expected = "namespace util {\n"
  910   std::string Code = "namespace glob {\n"
  920   std::string Expected = "namespace glob {\n"
  934   std::string Code = "namespace glob {\n"
  946   std::string Expected =
  963   std::string Code = "namespace glob {\n"
  973   std::string Expected = "namespace glob {\n"
  988   std::string Code = "namespace glob {\n"
  999   std::string Expected = "namespace glob {\n"
 1014   std::string Code = "namespace glob {\n"
 1025   std::string Expected = "namespace glob {\n"
 1042   std::string Code = "namespace glob {\n"
 1053   std::string Expected = "namespace glob {\n"
 1069   std::string Code = "namespace glob {\n"
 1079   std::string Expected = "namespace glob {\n"
 1093   std::string Code = "namespace glob1 {\n"
 1106   std::string Expected = "namespace glob1 {\n"
 1123   std::string Code = "namespace glob {\n"
 1134   std::string Expected = "namespace glob {\n"
 1149   std::string Code = "namespace na { class C_A {};\n }\n"
 1159   std::string Expected = "namespace na { class C_A {};\n }\n"
 1174   std::string Code = "namespace na { class C_A {};\n }\n"
 1184   std::string Expected = "namespace na { class C_A {};\n }\n"
 1199   std::string Code = "namespace glob {\n"
 1211   std::string Expected = "namespace glob {\n"
 1227   std::string Code = "namespace na { class C_A {}; }\n"
 1236   std::string Expected = "namespace na { class C_A {}; }\n"
 1250   std::string Code = "namespace nx { void f(); }\n"
 1258   std::string Expected = "namespace nx { void f(); }\n"
 1273   std::string Code = "namespace nx { void f(); }\n"
 1279   std::string Expected = "namespace nx { void f(); }\n"
 1293   std::string Code = "namespace nx { void f(); void g(); }\n"
 1306   std::string Expected = "namespace nx { void f(); void g(); }\n"
 1327   std::string Code = "namespace na { class A {}; }\n"
 1335   std::string Expected = "namespace na { class A {}; }\n"
 1349   std::string Code = "namespace na { class A {}; }\n"
 1356   std::string Expected = "namespace na { class A {}; }\n"
 1369   std::string Code = "namespace na {\n"
 1378   std::string Expected = "namespace na {\n"
 1393   std::string Code = "namespace na {\n"
 1402   std::string Expected = "namespace na {\n"
 1415   std::string Code =
 1424   std::string Expected = "namespace nx { namespace ny { class X {}; } }\n"
 1436   std::string Code =
 1445   std::string Expected = "namespace nx { namespace ny { class X {}; } }\n"
 1458   std::string Code =
 1467   std::string Expected = "namespace nx { namespace ny { class X {}; } }\n"
 1479   std::string Code =
 1491   std::string Expected =
 1508   std::string Code =
 1520   std::string Expected =
 1537   std::string Code =
 1549   std::string Expected =
 1567   std::string Code = "namespace na {\n"
 1583   std::string Expected = "namespace na {\n"
 1602   std::string Code = "class Glob {};\n"
 1619   std::string Expected = "class Glob {};\n"
 1644   std::string Code = "namespace some_ns {\n"
 1659   std::string Expected = "namespace some_ns {\n"
 1681   std::string Code = "namespace some_ns {\n"
 1706   std::string Expected = "namespace some_ns {\n"
 1739   std::string Code = "namespace na {\n"
 1750   std::string Expected = "namespace na {\n"
 1772   std::string Code = "namespace na {\n"
 1787   std::string Expected = "namespace na {\n"
 1813   std::string Code = "class G {};\n"
 1826   std::string Expected = "class G {};\n"
 1848   std::string Code = "class G {};\n"
 1863   std::string Expected = "class G {};\n"
 1885   std::string Code = "namespace na {\n"
 1891   std::string Expected = "\n\nnamespace x {\n"
 1902   std::string Code = "enum Glob { G1, G2 };\n"
 1916   std::string Expected = "enum Glob { G1, G2 };\n"
 1938   std::string Code = "namespace ns {\n"
 1951   std::string Expected = "namespace ns {\n"
 1971   std::string Code = "namespace ns {\n"
 1989   std::string Expected = "namespace ns {\n"
 2013   std::string Code = "namespace ns {\n"
 2033   std::string Expected = "namespace ns {\n"
 2059   std::string Code = "namespace na {\n"
 2068   std::string Expected = "namespace na {\n"
 2085   std::string Code = "namespace na {\n"
 2104   std::string Expected = "namespace na {\n"
 2131   std::string Code = "namespace na {\n"
 2159   std::string Expected = "namespace na {\n"
 2194   std::string Code = "namespace a{\n"
 2218   std::string Expected = "namespace a{\n"
 2247   std::string Code =
 2261   std::string Expected =
tools/clang/tools/extra/unittests/clang-doc/BitcodeTest.cpp
   20 template <typename T> static std::string writeInfo(T &I) {
   28 std::string writeInfo(Info *I) {
   66   std::string WriteResult = writeInfo(&I);
   95   std::string WriteResult = writeInfo(&I);
  115   std::string WriteResult = writeInfo(&I);
  137   std::string WriteResult = writeInfo(&I);
  155   std::string WriteResult = writeInfo(&I);
  271   std::string WriteResult = writeInfo(&F);
tools/clang/tools/extra/unittests/clang-doc/HTMLGeneratorTest.cpp
   19 static const std::string ClangDocVersion =
   30 getClangDocContext(std::vector<std::string> UserStylesheets = {},
   58   std::string Buffer;
   63   std::string Expected = R"raw(<!DOCTYPE html>
  169   std::string Buffer;
  174   std::string Expected = R"raw(<!DOCTYPE html>
  286   std::string Buffer;
  291   std::string Expected = R"raw(<!DOCTYPE html>
  333   std::string Buffer;
  338   std::string Expected = R"raw(<!DOCTYPE html>
  418   std::string Buffer;
  423   std::string Expected = R"raw(<!DOCTYPE html>
tools/clang/tools/extra/unittests/clang-doc/MDGeneratorTest.cpp
   40   std::string Buffer;
   44   std::string Expected = R"raw(# namespace Namespace
  103   std::string Buffer;
  107   std::string Expected = R"raw(# class r
  166   std::string Buffer;
  170   std::string Expected = R"raw(### f
  194   std::string Buffer;
  198   std::string Expected = R"raw(| enum class e |
  325   std::string Buffer;
  329   std::string Expected =
tools/clang/tools/extra/unittests/clang-doc/SerializeTest.cpp
   75                                   std::vector<std::string> &Args) {
  485   std::vector<std::string> Args;
tools/clang/tools/extra/unittests/clang-doc/YAMLGeneratorTest.cpp
   43   std::string Buffer;
   47   std::string Expected =
  107   std::string Buffer;
  111   std::string Expected =
  193   std::string Buffer;
  197   std::string Expected =
  241   std::string Buffer;
  245   std::string Expected =
  379   std::string Buffer;
  383   std::string Expected =
tools/clang/tools/extra/unittests/clang-include-fixer/FuzzySymbolIndexTests.cpp
   32   std::string err;
   38   std::string Target = llvm::join(Tokens.begin(), Tokens.end(), " ");
tools/clang/tools/extra/unittests/clang-include-fixer/IncludeFixerTest.cpp
   25                       const std::vector<std::string> &ExtraArgs) {
   31   std::vector<std::string> Args = {"include_fixer", "-fsyntax-only",
   52 static std::string runIncludeFixer(
   54     const std::vector<std::string> &ExtraArgs = std::vector<std::string>()) {
  101   std::string FakeFileName = "input.cc";
  153   std::vector<std::string> IncludePath = {"-Idir/"};
  225   std::string Code = "#include \"header.h\"";
  233   std::string Code = "#include \"a.h\"\n"
  237   std::string Expected = "#include \"a.h\"\n"
tools/clang/tools/extra/unittests/clang-include-fixer/find-all-symbols/FindAllSymbolsTests.cpp
   70     std::string FileName = "symbol.cc";
   72     const std::string InternalHeader = "internal/internal_header.h";
   73     const std::string TopHeader = "<top>";
   76     std::string IncHeader = "internal/private.inc";
   77     std::string IncHeaderCode = "class IncHeaderClass {};";
   83     std::string InternalCode =
  106     std::string Content = "#include\"" + std::string(HeaderName) +
  112     const std::string DirtyHeader = "./internal/./a/b.h";
  114     const std::string CleanHeader = "internal/a/b.h";
  115     const std::string DirtyHeaderContent =
tools/clang/tools/extra/unittests/clang-move/ClangMoveTests.cpp
  204 std::map<std::string, std::string>
  204 std::map<std::string, std::string>
  226   std::map<std::string, tooling::Replacements> FileToReplacements;
  240   std::map<std::string, std::string> Results;
  240   std::map<std::string, std::string> Results;
  257   std::string ExpectedHeader = "#include \"" + Spec.NewHeader + "\"\n\n";
  281   std::string ExpectedHeader = "#include \"foo.h\"\n\n";
  326   std::vector<std::string> TestHeaders = {
  352   std::vector<std::string> TestHeaders = {
  378   std::vector<std::string> TestHeaders = {
  392     std::string ExpectedOldHeader = Header.substr(0, Header.size() - 32);
  399   std::vector<std::string> TestHeaders = {
  458   const std::string CommonHeader =
  474   const std::string CommonCode = "\n"
  491   const std::string TestHeader = CommonHeader + "class D {};\n";
  492   const std::string TestCode = "#include \"foo.h\"\n" + CommonCode;
  493   const std::string ExpectedNewHeader = "#ifndef NEW_FOO_H\n"
  499   const std::string ExpectedNewCC = "#include \"new_foo.h\"\n" + CommonCode;
tools/clang/tools/extra/unittests/clang-query/QueryEngineTest.cpp
   46   std::string Str;
   54   std::string FooMatcherString = "functionDecl(hasName(\"foo1\"))";
tools/clang/tools/extra/unittests/clang-tidy/ClangTidyTest.h
   82 std::string
   85                ArrayRef<std::string> ExtraArgs = None,
   98   std::vector<std::string> Args(1, "clang-tidy");
  100   std::string extension(llvm::sys::path::extension(Filename.str()));
  133     std::string ErrorText;
tools/clang/tools/extra/unittests/clang-tidy/GoogleModuleTest.cpp
   61   bool runCheckOnCode(const std::string &Code, const std::string &Filename) {
   61   bool runCheckOnCode(const std::string &Code, const std::string &Filename) {
   68     std::vector<std::string> Args;
tools/clang/tools/extra/unittests/clang-tidy/IncludeInserterTest.cpp
  117 std::string runCheckOnCode(StringRef Code, StringRef Filename) {
tools/clang/tools/extra/unittests/clang-tidy/LLVMModuleTest.cpp
   14 static std::string runHeaderGuardCheck(StringRef Code, const Twine &Filename,
   17   std::string Result = test::runCheckOnCode<LLVMHeaderGuardCheck>(
   35 static std::string
   39   std::string Result = test::runCheckOnCode<WithEndifComment>(
tools/clang/tools/extra/unittests/clang-tidy/NamespaceAliaserTest.cpp
   50 std::string runChecker(StringRef Code, unsigned ExpectedWarningCount) {
   59   std::string result =
tools/clang/tools/extra/unittests/clang-tidy/OverlappingReplacementsTest.cpp
   68   virtual std::string newName(StringRef OldName) = 0;
   77     std::string NewName = newName(VD->getName());
  112   const std::string NamePattern;
  120   std::string newName(StringRef OldName) override {
  130   std::string newName(StringRef OldName) override {
  230   std::string Res;
  272   std::string Res;
  329   std::string Res;
  359   std::string Res;
  388   std::string Res;
tools/clang/tools/extra/unittests/clang-tidy/TransformerClangTidyCheckTest.cpp
   52   const std::string Input = R"cc(
   61   const std::string Expected = R"(
   82   const std::string Input = R"cc(
   86   const std::string Expected = R"cc(
  108   const std::string Input = R"cc(
  112   const std::string Expected = R"cc(
  137   const std::string Input = "void log() {}";
  162   const std::string Input = "void log(int);";
  163   const std::string Expected = "void nothing();";
  193   std::string Input = R"cc(
  197   std::string Expected = R"cc(#include "clang/OtherLib.h"
  209   std::string Input = R"cc(
  213   std::string Expected = R"cc(#include <clang/OtherLib.h>
tools/clang/tools/extra/unittests/clang-tidy/UsingInserterTest.cpp
   54 std::string runChecker(StringRef Code, unsigned ExpectedWarningCount) {
   63   std::string result =
tools/clang/tools/libclang/ARCMigrate.cpp
   26   std::vector<std::pair<std::string, std::string> > Vec;
   26   std::vector<std::pair<std::string, std::string> > Vec;
tools/clang/tools/libclang/BuildSystem.cpp
   97   std::string ModuleName;
   98   std::string UmbrellaHeader;
tools/clang/tools/libclang/CIndex.cpp
 3650   std::string encoding;
 3831     std::string floatStr(Buffer.data(), Buffer.size());
 3858       std::string strRef(StrE->getString().str());
 3879     std::string strRef(StrE->getString().str());
 3896         std::string strLiteral(S->getString().str());
 3922         std::string strLiteral(S->getString().str());
 3935       std::string strName = V->getNameAsString();
 4200   std::string Triple =
 4767   std::vector<std::string> Manglings = ASTNameGen.getAllManglings(D);
 4781   std::vector<std::string> Manglings = ASTNameGen.getAllManglings(D);
tools/clang/tools/libclang/CIndexCodeCompletion.cpp
  295   std::string ContainerUSR;
  303   std::string Selector;
  752   std::string CompletionInvocation =
tools/clang/tools/libclang/CIndexDiagnostic.cpp
   41   std::string Message;
tools/clang/tools/libclang/CIndexer.cpp
   98 const std::string &CIndexer::getClangResourcesPath() {
  153     llvm::ArrayRef<std::string> InvocationArgs,
tools/clang/tools/libclang/CIndexer.h
   39   std::string ResourcesPath;
   42   std::string ToolchainPath;
   44   std::string InvocationEmissionPath;
   76   const std::string &getClangResourcesPath();
   96                              llvm::ArrayRef<std::string> InvocationArgs,
  101   std::string File;
tools/clang/tools/libclang/CLog.h
   41   std::string Name;
tools/clang/tools/libclang/CXCompilationDatabase.cpp
   14   std::string ErrorMsg;
tools/clang/tools/libclang/CXString.cpp
  113 CXStringSet *createSet(const std::vector<std::string> &Strings) {
tools/clang/tools/libclang/CXString.h
   65 CXString createRef(std::string String) = delete;
   70 CXStringSet *createSet(const std::vector<std::string> &Strings);
tools/clang/tools/libclang/CXTranslationUnit.h
   36   std::vector<std::string> Arguments;
tools/clang/tools/libclang/CXType.cpp
 1103   std::string encoding;
tools/clang/tools/libclang/FatalErrorHandler.cpp
   13 static void aborting_fatal_error_handler(void *, const std::string &reason,
tools/clang/unittests/AST/ASTImporterFixtures.h
   97   std::string ToCode;
  103     std::string Code;
  104     std::string FileName;
tools/clang/unittests/AST/ASTImporterGenericRedeclTest.cpp
  114   std::string getPrototype() { return TypeParam::Prototype; }
  115   std::string getDefinition() { return TypeParam::Definition; }
tools/clang/unittests/AST/ASTImporterODRStrategiesTest.cpp
  126   static std::string getDef0() { return Definition0; }
  127   static std::string getDef1() { return Definition1; }
  201   static std::string getDef0() { return Definition0; }
  202   static std::string getDef1() { return Definition1; }
  235   static std::string getPrototype() { return TypeParam::Prototype; }
  236   static std::string getConflictingPrototype() {
  239   static std::string getDefinition() { return TypeParam::Definition; }
  240   static std::string getConflictingDefinition() {
  243   static std::string getConflictingProtoDef() {
tools/clang/unittests/AST/ASTImporterTest.cpp
   62   testImport(const std::string &FromCode, const ArgVector &FromArgs,
   63              const std::string &ToCode, const ArgVector &ToArgs,
   97       std::string ErrorText;
  110   testImport(const std::string &FromCode, const ArgVector &FromArgs,
  111              const std::string &ToCode, const ArgVector &ToArgs,
  130   void testImport(const std::string &FromCode, Language FromLang,
  131                   const std::string &ToCode, Language ToLang,
  152                  const std::string &DeclName)
  161     std::string CodeSample;
 2291     std::string Code = "static int v; static int v = 0;";
 3296   std::string ClassTemplate =
 3342   std::string ClassTemplate =
 3384   std::string ClassTemplate =
 3429   std::string ClassTemplate =
 3523   std::string PrimaryTemplate =
tools/clang/unittests/AST/ASTImporterVisibilityTest.cpp
   94   std::string getCode() const { return std::get<1>(GetParam()); }
   99     std::string Code = getCode() + getCode();
  185   std::string getCode0() const { return std::get<0>(std::get<1>(GetParam())); }
  186   std::string getCode1() const { return std::get<1>(std::get<1>(GetParam())); }
tools/clang/unittests/AST/ASTPrint.h
   62 PrintedStmtMatches(StringRef Code, const std::vector<std::string> &Args,
tools/clang/unittests/AST/ASTTraverserTest.cpp
   75 template <typename... NodeType> std::string dumpASTString(NodeType &&... N) {
   76   std::string Buffer;
   89                                     const std::string &Name) {
   97   static void withDynNode(T Node, const std::string &DumpString) {
  104   static void withDynNode(T *Node, const std::string &DumpString) {
  111 void verifyWithDynNode(T Node, const std::string &DumpString) {
  186     std::string expectedString = R"cpp(
  205     std::string expectedString = R"cpp(
tools/clang/unittests/AST/CommentTextTest.cpp
   30   std::string formatComment(llvm::StringRef CommentText) {
tools/clang/unittests/AST/DeclPrinterTest.cpp
   75 PrintedDeclMatches(StringRef Code, const std::vector<std::string> &Args,
  110   std::vector<std::string> Args(1, "-std=c++98");
  123   std::vector<std::string> Args(1, "-std=c++98");
  135   std::vector<std::string> Args(1, "-std=c++11");
  147   std::vector<std::string> Args(1, "-std=c++11");
  159   std::vector<std::string> Args(1, "-std=c++11");
  171   std::vector<std::string> Args(1, "-std=c++1z");
  183   std::vector<std::string> Args(1, "");
tools/clang/unittests/AST/DeclTest.cpp
   33   std::vector<std::string> Args(1, "-std=c++11");
   97   std::string MangleF, MangleG;
tools/clang/unittests/AST/EvaluateAsRValueTest.cpp
   28 typedef std::map<std::string, bool> VarInfoMap;
   87   std::string ModesToTest[] = {"-std=c++03", "-std=c++11", "-std=c++1y"};
   88   for (std::string const &Mode : ModesToTest) {
   89     std::vector<std::string> Args(1, Mode);
tools/clang/unittests/AST/Language.h
   23 typedef std::vector<std::string> ArgVector;
tools/clang/unittests/AST/MatchVerifier.h
   36   testing::AssertionResult match(const std::string &Code,
   38     std::vector<std::string> Args;
   43   testing::AssertionResult match(const std::string &Code,
   46     std::vector<std::string> Args;
   51   testing::AssertionResult match(const std::string &Code,
   53                                  std::vector<std::string>& Args,
   75   std::string VerifyResult;
   82     const std::string &Code, const MatcherType &AMatcher,
   83     std::vector<std::string>& Args, Language L) {
  193       std::string MsgStr;
  238       std::string MsgStr;
  261   void expectSubstring(const std::string &Str) {
  268     std::string DumpStr;
  272     if (Dump.str().find(ExpectSubstring) == std::string::npos) {
  273       std::string MsgStr;
  282   std::string ExpectSubstring;
  288   void expectString(const std::string &Str) {
  295     std::string PrintStr;
  300       std::string MsgStr;
  309   std::string ExpectString;
tools/clang/unittests/AST/NamedDeclPrinterTest.cpp
   65     StringRef Code, const std::vector<std::string> &Args,
   97 PrintedNamedDeclMatches(StringRef Code, const std::vector<std::string> &Args,
  114   std::vector<std::string> Args(1, "-std=c++98");
  126   std::vector<std::string> Args(1, "-std=c++11");
  138   std::vector<std::string> Args{"-std=c++11", "-xobjective-c++"};
  150   std::vector<std::string> Args{"-std=c++11"};
tools/clang/unittests/AST/OMPStructuredBlockTest.cpp
   48   std::vector<std::string> Args = {
  153   const std::string Source =
  166   const std::string Source =
  181   const std::string Source =
  196   const std::string Source =
  210   const std::string Source =
tools/clang/unittests/AST/SourceLocationTest.cpp
  369   std::vector<std::string> Args;
  516   const std::string Code = "struct B {\n"
  534   const std::string Code = "struct B {\n"
  709   std::vector<std::string> Args;
tools/clang/unittests/AST/StmtPrinterTest.cpp
   55   std::vector<std::string> Args = {
   68   std::vector<std::string> Args = {
   83   std::vector<std::string> Args = {
tools/clang/unittests/AST/StructuralEquivalenceTest.cpp
   19   std::string Code0, Code1; // Buffers for SourceManager
   26       const std::string &SrcCode0, const std::string &SrcCode1, Language Lang,
   26       const std::string &SrcCode0, const std::string &SrcCode1, Language Lang,
   46       const std::string &SrcCode0, const std::string &SrcCode1, Language Lang) {
   46       const std::string &SrcCode0, const std::string &SrcCode1, Language Lang) {
   64       const std::string &SrcCode0, const std::string &SrcCode1, Language Lang,
   64       const std::string &SrcCode0, const std::string &SrcCode1, Language Lang,
   74       const std::string &SrcCode0, const std::string &SrcCode1,
   74       const std::string &SrcCode0, const std::string &SrcCode1,
 1013   std::string Code =
 1034   std::string Code =
 1066   std::string Code =
 1087   std::string Code =
 1119   std::string Code =
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
  820   std::string T =
 1449   std::string code = "namespace a { inline namespace b { class C; } }";
 1457   std::string code = "namespace a { namespace { class C; } }";
 1482   std::string code =
 1495   const std::string Code = "namespace a { namespace b { class C; } }";
 1561   std::string ObjCString =
 2514   const std::string Source0 = R"(
 2521   const std::string Source1 = R"(
 2529   const std::string Source0 = R"(
 2537   const std::string Source1 = R"(
 2549   const std::string Source0 = R"(
 2557   const std::string Source1 = R"(
 2567   const std::string Source2 = R"(
 2579   const std::string Source0 = R"(
 2585   const std::string Source1 = R"(
 2592   const std::string Source2 = R"(
 2599   const std::string Source3 = R"(
 2606   const std::string Source4 = R"(
 2618   const std::string Source0 = R"(
 2624   const std::string Source1 = R"(
 2631   const std::string Source2 = R"(
 2638   const std::string Source3 = R"(
 2645   const std::string Source4 = R"(
 2657   const std::string Source0 = R"(
 2663   const std::string Source1 = R"(
 2670   const std::string Source2 = R"(
 2677   const std::string Source3 = R"(
 2684   const std::string Source4 = R"(
 2696   const std::string Source0 = R"(
 2702   const std::string Source1 = R"(
 2709   const std::string Source2 = R"(
 2716   const std::string Source3 = R"(
 2723   const std::string Source4 = R"(
 2730   const std::string Source5 = R"(
 2736   const std::string Source6 = R"(
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
   98   const std::string Code = "int MyVar1;\n"
  216     std::string S = NS_Str;
  603   std::string ClassString = "class string { public: string(); ~string(); }; ";
  632   std::string ClassString =
  969   std::string foo_class = "class Foo { public: Foo(const char*); };";
  975   std::string FooClass = "class Foo { public: Foo(const char*); };";
 1092   const std::string code = "namespace std {"
 1331   std::string Fragment = "struct A { int i; }; int A::* ptr = &A::i;";
 1385   std::string Fragment = "auto a = 1;"
 1465   const std::string code = "template <typename T>"
 1611   std::string Code = R"(
 1630   std::string Objc1String =
 1685   std::string ObjCString =
 1734   std::string ObjCString =
 1757   std::string ObjCString =
 1764   std::string ObjCStringNoPool = "void f() { int x = 1; }";
 1771   const std::string Source0 = R"(
 1778   const std::string Source1 = R"(
 1785   const std::string Source2 = R"(
 1795   const std::string Source0 = R"(
 1801   const std::string Source1 = R"(
 1808   const std::string Source2 = R"(
 1815   const std::string Source3 = R"(
 1822   const std::string Source4 = R"(
tools/clang/unittests/ASTMatchers/ASTMatchersTest.h
   73     const std::string &Code, const T &AMatcher, bool ExpectMatch,
   76     const std::string &Filename = "input.cc") {
   94   std::vector<std::string> Args(CompileArgs.begin(), CompileArgs.end());
  120     const std::string &Code, const T &AMatcher, bool ExpectMatch,
  123     const std::string &Filename = "input.cc") {
  131 matchesConditionally(const std::string &Code, const T &AMatcher,
  156     std::string LangModeArg;
  185 matches(const std::string &Code, const T &AMatcher,
  192 notMatches(const std::string &Code, const T &AMatcher,
  198 testing::AssertionResult matchesObjC(const std::string &Code, const T &AMatcher,
  207 testing::AssertionResult matchesC(const std::string &Code, const T &AMatcher) {
  213 testing::AssertionResult matchesC99(const std::string &Code,
  220 testing::AssertionResult notMatchesC(const std::string &Code,
  227 testing::AssertionResult notMatchesObjC(const std::string &Code,
  237     const std::string &Code, const T &AMatcher, bool ExpectMatch,
  239   const std::string CudaHeader =
  270   std::vector<std::string> Args = {
  294 testing::AssertionResult matchesWithCuda(const std::string &Code,
  300 testing::AssertionResult notMatchesWithCuda(const std::string &Code,
  306 testing::AssertionResult matchesWithOpenMP(const std::string &Code,
  312 testing::AssertionResult notMatchesWithOpenMP(const std::string &Code,
  319 matchAndVerifyResultConditionally(const std::string &Code, const T &AMatcher,
  331   std::vector<std::string> Args = {"-std=gnu++98", "-target",
  365 matchAndVerifyResultTrue(const std::string &Code, const T &AMatcher,
  373 matchAndVerifyResultFalse(const std::string &Code, const T &AMatcher,
  447   const std::string Id;
  450   const std::string ExpectedName;
  451   std::string Name;
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
 2377   std::string Fragment =
 2406   std::string Fragment =
 2422   std::string Fragment =
 2449   std::string Fragment =
 2478   std::string Id;
 2480   std::string InnerId;
 2605   std::string Fragment = "void foo(int p1);"
 2624   std::string Fragment = "template<typename T>"
tools/clang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
   66     std::string BoundID;
   69   std::vector<std::string> Errors;
   72   typedef std::map<std::string, ast_matchers::internal::Matcher<Stmt> >
  264 std::string ParseWithError(StringRef Code) {
  271 std::string ParseMatcherWithError(StringRef Code) {
tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp
  133   const std::string ClassSnippet = "struct Foo { int x; };\n"
  136   const std::string BoolSnippet = "bool Foo = true;\n";
  166   std::string code = "int i;";
  201   std::string Code = "class Y { public: void x(); }; void z() { Y y; y.x(); }";
tools/clang/unittests/Analysis/CFGBuildResult.h
   61   std::vector<std::string> Args = {"-std=c++11",
tools/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp
   34                          const std::vector<std::string> &Args) {
   60 SmallVector<std::string, 1>
   63   SmallVector<std::string, 1> Chain;
   67     std::string buffer;
   76 std::string removeSpace(std::string s) {
   76 std::string removeSpace(std::string s) {
   83 const std::string StdRemoveReference =
   89 const std::string StdMove =
   95 const std::string StdForward =
  111 class AssignmentTest : public ::testing::TestWithParam<std::string> {};
  114   const std::string ModExpr = "x " + GetParam() + " 10";
  125 class IncDecTest : public ::testing::TestWithParam<std::string> {};
  128   const std::string ModExpr = GetParam();
  998   const std::string UniquePtrDef =
 1186   const std::string UniquePtrDef =
 1243   const std::string Reproducer =
tools/clang/unittests/Basic/SourceManagerTest.cpp
  322   std::string Name;
tools/clang/unittests/CodeGen/TBAAMetadataTest.cpp
   39     std::string TrStr = llvm::Triple::normalize(llvm::sys::getProcessTriple());
tools/clang/unittests/CrossTU/CrossTranslationUnitTest.cpp
  150   llvm::StringMap<std::string> Index;
  154   std::string IndexText = createCrossTUIndexString(Index);
  164   llvm::Expected<llvm::StringMap<std::string>> IndexOrErr =
  167   llvm::StringMap<std::string> ParsedIndex = IndexOrErr.get();
  177   llvm::StringMap<std::string> Index;
  179   std::string IndexText = createCrossTUIndexString(Index);
  189   llvm::Expected<llvm::StringMap<std::string>> IndexOrErr =
  192   llvm::StringMap<std::string> ParsedIndex = IndexOrErr.get();
tools/clang/unittests/DirectoryWatcher/DirectoryWatcherTest.cpp
   38   std::string TestRootDir;
   39   std::string TestWatchedDir;
   60   SmallString<128> getPathInWatched(const std::string &testFile) {
   67   void addFile(const std::string &testFile) {
   79   void deleteFile(const std::string &testFile) {
   86 std::string eventKindToString(const EventKind K) {
tools/clang/unittests/Driver/MultilibTest.cpp
  329     std::string Suffix;
tools/clang/unittests/Driver/ToolChainTest.cpp
   66   std::string S;
  106   std::string S;
  196   std::string IgnoredError;
tools/clang/unittests/Format/CleanupTest.cpp
   26   std::string cleanup(llvm::StringRef Code,
   37   std::string cleanupAroundOffsets(llvm::ArrayRef<unsigned> Offsets,
   48   std::string Code = "namespace A {\n"
   56   std::string Expected = "\n\n\n\n\nnamespace C {\n"
   63   std::string Code = "namespace A {\n"
   70   std::string Expected = "namespace A {\n"
   79   std::string Code = "namespace A {\n\n"
   83   std::string Expected = "namespace A {\n\n"
   90   std::string Code = "namespace A {\n"
   97   std::string Expected = "\n\n\n\n\n\n";
   99   std::string Result = cleanup(Code, Ranges);
  104   std::string Code = "namespace A\n"
  114   std::string Expected = "\n\n\n\n\n\n\n\n\n\n";
  118   std::string Result = cleanup(Code, Ranges, Style);
  123   std::string Code = "#ifdef A\n"
  129   std::string Expected = "#ifdef A\n"
  136   std::string Result = cleanup(Code, Ranges, Style);
  141   std::string Code = "class A {\nA() : , {} };";
  142   std::string Expected = "class A {\nA()  {} };";
  155   std::string Code = "class A {\nA() : =default; };";
  156   std::string Expected = "class A {\nA()  =default; };";
  165   std::string Code = "void f() { std::vector<int> v = {1,2,,,3,{4,5}}; }";
  166   std::string Expected = "void f() { std::vector<int> v = {1,2,3,{4,5}}; }";
  175   std::string Code = "function f() { var x = [a, b, , c]; }";
  176   std::string Expected = "function f() { var x = [a, b, , c]; }";
  183   std::string Code = "int main() { f(,1,,2,3,f(1,2,),4,,);}";
  184   std::string Expected = "int main() { f(1,2,3,f(1,2),4);}";
  198   std::string Code = "void f() { std::vector<int> v = {1,2,3,,}; }";
  199   std::string Expected = "void f() { std::vector<int> v = {1,2,3,}; }";
  220   std::string Code = "class A {\nA() : x({1}),, {} };";
  221   std::string Expected = "class A {\nA() : x({1}) {} };";
  226   std::string Code =
  228   std::string Expected =
  233   std::string Result = cleanup(Code, Ranges);
  245   std::string Code =
  247   std::string Expected = "class A {\nA() : x({1}) {} };";
  276   std::string Code = "namespace A {\n"
  283   std::string Expected = "namespace A {\n"
  288   std::string Result = cleanup(Code, Ranges);
  307   inline std::string apply(StringRef Code,
  317   inline std::string formatAndApply(StringRef Code,
  338   const std::string FileName = "fix.cpp";
  343   std::string Code = "namespace A {\n"
  354   std::string Expected = "\n\nnamespace C {\n"
  366   std::string Code = "#include \"x/fix.h\"\n"
  372   std::string Expected = "#include \"x/fix.h\"\n"
  387   std::string Code = "#include \"x/fix.h\"\n"
  393   std::string Expected = "#include \"x/fix.h\"\n"
  409   std::string Code = "\nint x;";
  410   std::string Expected = "\n#include \"fix.h\"\n"
  426   std::string Code = "\nint x;";
  427   std::string Expected = "\n#include \"fix.h\"\n"
  446   std::string Code = "#include <map>";
  449   std::string Expected =
  459   std::string Code = "\n"
  465   std::string Expected = "\n#include \"x.h\"\n"
  484   std::string Code = "#include \"abc.h\"\n"
  488   std::string Expected = "#include \"xyz\"\n"
  496   std::string Code = "#include \"a.h\"\n"
  499   std::string Expected = "#include \"a.h\"\n"
tools/clang/unittests/Format/FormatTest.cpp
   34   std::string format(llvm::StringRef Code,
 4821   std::string input = "Constructor()\n"
 9077   std::string Code("A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(A(\n" // 20x
12750   std::vector<std::string> BoostForeach;
12753   std::vector<std::string> BoostAndQForeach;
12945   std::string YAML = configurationAsText(Style);
14089   std::string code = "#if A\n"
14357   std::string Code = "Type *a =\n"
14362   std::string Expected = "auto a = new Type();\n"
14390   std::string Code = "#include \"a.h\"\n"
14396   std::string Expected = "#include \"a.h\"\n"
14645   std::vector<std::string> TypenameMacros = {"STACK_OF", "LIST", "TAILQ_ENTRY"};
tools/clang/unittests/Format/FormatTestCSharp.cpp
   21   static std::string format(llvm::StringRef Code, unsigned Offset,
   33   static std::string
tools/clang/unittests/Format/FormatTestComments.cpp
   37   std::string format(llvm::StringRef Code,
tools/clang/unittests/Format/FormatTestJS.cpp
   21   static std::string format(llvm::StringRef Code, unsigned Offset,
   36   static std::string format(
   53     std::string Result = format(test::messUp(Code), Style);
   63     std::string Result = format(Code, Style);
 1441   std::string MpegTS(200, ' ');
tools/clang/unittests/Format/FormatTestJava.cpp
   21   static std::string format(llvm::StringRef Code, unsigned Offset,
   33   static std::string
tools/clang/unittests/Format/FormatTestObjC.cpp
   40   std::string format(llvm::StringRef Code,
tools/clang/unittests/Format/FormatTestProto.cpp
   21   static std::string format(llvm::StringRef Code, unsigned Offset,
   33   static std::string format(llvm::StringRef Code) {
tools/clang/unittests/Format/FormatTestRawStrings.cpp
   32   std::string format(llvm::StringRef Code,
   79   FormatStyle getRawStringLLVMCppStyleBasedOn(std::string BasedOnStyle) {
   93   FormatStyle getRawStringGoogleCppStyleBasedOn(std::string BasedOnStyle) {
  109   void expect_eq(const std::string Expected, const std::string Actual) {
  109   void expect_eq(const std::string Expected, const std::string Actual) {
tools/clang/unittests/Format/FormatTestSelective.cpp
   22   std::string format(llvm::StringRef Code, unsigned Offset, unsigned Length) {
  599   std::string Code = "#include <a> // line 1\n" // 23 chars long
tools/clang/unittests/Format/FormatTestTableGen.cpp
   21   static std::string format(llvm::StringRef Code, unsigned Offset,
   33   static std::string format(llvm::StringRef Code) {
tools/clang/unittests/Format/FormatTestTextProto.cpp
   21   static std::string format(llvm::StringRef Code, unsigned Offset,
   33   static std::string format(llvm::StringRef Code, const FormatStyle &Style) {
tools/clang/unittests/Format/FormatTestUtils.h
   22 inline std::string messUp(llvm::StringRef Code) {
   23   std::string MessedUp(Code.str());
   53   std::string WithoutWhitespace;
tools/clang/unittests/Format/NamespaceEndCommentsFixerTest.cpp
   23   std::string
   37   std::string
tools/clang/unittests/Format/SortImportsTestJS.cpp
   22   std::string sort(StringRef Code, unsigned Offset = 0, unsigned Length = 0) {
   38     std::string Result = sort(Code, Offset, Length);
tools/clang/unittests/Format/SortImportsTestJava.cpp
   16   std::string sort(StringRef Code, std::vector<tooling::Range> Ranges) {
   27   std::string sort(StringRef Code) { return sort(Code, GetCodeRange(Code)); }
  282   std::string Code = "import org.a;\n"
  289   std::string Code = "import org.a;\r\n"
tools/clang/unittests/Format/SortIncludesTest.cpp
   27   std::string sort(StringRef Code, std::vector<tooling::Range> Ranges,
   41   std::string sort(StringRef Code,
  146   std::string Code = "#include <a>\n"
  570   std::string Code = "#include <ccc>\n"    // Start of line: 0
  655   std::string Code = "#include <b>\n"      // Start of line: 0
  661   std::string Expected = "#include <a>\n"  // Start of line: 0
  692   std::string Code = "#include <a>\n"
  719   std::string Code = R"(
  730   std::string Code = "#include \"b.h\"\r\n"
tools/clang/unittests/Format/UsingDeclarationsSorterTest.cpp
   22   std::string sortUsingDeclarations(llvm::StringRef Code,
   35   std::string sortUsingDeclarations(llvm::StringRef Code,
tools/clang/unittests/Frontend/CompilerInstanceTest.cpp
   35   const std::string CurrentPathStr = CurrentPath.str();
   36   const std::string FileNameStr = FileName.str();
   51   const std::string VFSArg = "-ivfsoverlay" + FileNameStr;
   82   std::string DiagnosticOutput;
tools/clang/unittests/Frontend/FrontendActionTest.cpp
   40   std::vector<std::string> decl_names;
   59             std::vector<std::string> &decl_names) :
   78     std::vector<std::string> &decl_names_;
tools/clang/unittests/Frontend/OutputStreamTest.cpp
   58   std::string VerboseBuffer;
   75   std::string VerboseBuffer;
tools/clang/unittests/Frontend/PCHPreambleTest.cpp
   29   std::map<std::string, unsigned> ReadCounts;
   50   StringMap<std::string> RemappedFiles;
   69   void AddFile(const std::string &Filename, const std::string &Contents) {
   69   void AddFile(const std::string &Filename, const std::string &Contents) {
   75   void RemapFile(const std::string &Filename, const std::string &Contents) {
   75   void RemapFile(const std::string &Filename, const std::string &Contents) {
   79   std::unique_ptr<ASTUnit> ParseAST(const std::string &EntryFile) {
  109   unsigned GetFileReadCount(const std::string &Filename) const {
  114   std::vector<std::pair<std::string, llvm::MemoryBuffer *>>
  116     std::vector<std::pair<std::string, llvm::MemoryBuffer *>> Remapped;
  127   std::string Header1 = "//./header1.h";
  128   std::string MainName = "//./main.cpp";
  147   std::string Header1 = "//./header1.h";
  148   std::string MainName = "//./main.cpp";
  169   std::string Header1 = "//./foo/header1.h";
  170   std::string MainName = "//./main.cpp";
  171   std::string MainFileContent = R"cpp(
  193   std::string Header1 = "//./header1.h";
  194   std::string Header2 = "//./header2.h";
  195   std::string MainName = "//./main.cpp";
  222   std::string Header = "//./header.h";
  223   std::string Main = "//./main.cpp";
tools/clang/unittests/Index/IndexTests.cpp
   57   std::string QName;
  164   std::string Code = "#define INDEX_MAC 1";
  178   std::string Code = "void foo(int bar);";
  193   std::string Code = R"cpp(
  214   std::string Code = R"cpp(
  233   std::string Code = R"cpp(
  257   std::string Code = R"cpp(
  271   std::string Code = R"cpp(
tools/clang/unittests/Lex/LexerTest.cpp
   93   std::string getSourceText(Token Begin, Token End) {
  453   std::string TextToLex = "rabarbar\n"
  487   std::string String1 = R"(foo
  495   std::string String3 = R"(\
  501   std::string String5 = R"(a\
  545   std::vector<std::string> GeneratedByNextToken;
tools/clang/unittests/Rename/ClangRenameTest.h
   38   std::string Before;
   39   std::string After;
   40   std::string OldName;
   41   std::string NewName;
   49   std::string runClangRenameOnCode(llvm::StringRef Code,
   52     std::string NewCode;
   71     const std::vector<std::vector<std::string>> &USRList =
   73     std::vector<std::string> NewNames = {NewName};
   74     std::map<std::string, tooling::Replacements> FileToReplacements;
   89     std::string ExpectedCode;
   95   std::string format(llvm::StringRef Code) {
  107   std::string HeaderContent;
  108   std::string HeaderName = "header.h";
  109   std::string CCName = "input.cc";
tools/clang/unittests/Rename/RenameAliasTest.cpp
  199   std::string Actual =
  205   std::string Before = R"(
  209   std::string Expected = R"(
  213   std::string After = runClangRenameOnCode(Before, "TOld", "TNew");
  218   std::string Before = R"(
  222   std::string Expected = R"(
  226   std::string After = runClangRenameOnCode(Before, "UOld", "UNew");
  231   std::string Before = R"(
  238   std::string Expected = R"(
  245   std::string After = runClangRenameOnCode(Before, "Old", "New");
  250   std::string Before = R"(
  256   std::string Expected = R"(
  262   std::string After = runClangRenameOnCode(Before, "ns::UOld", "ns::UNew");
  267   std::string Before = R"(
  281   std::string Expected = R"(
  295   std::string After =
tools/clang/unittests/Rename/RenameClassTest.cpp
  196   std::string OldName = Param.OldName.empty() ? "a::Foo" : Param.OldName;
  197   std::string NewName = Param.NewName.empty() ? "b::Bar" : Param.NewName;
  198   std::string Actual = runClangRenameOnCode(Param.Before, OldName, NewName);
  305   std::string Actual =
  401   std::string Actual =
  407   std::string Before = R"(
  423   std::string Expected = R"(
  439   std::string After = runClangRenameOnCode(Before, "Old", "New");
  444   std::string Before = R"(
  456   std::string Expected = R"(
  468   std::string After = runClangRenameOnCode(Before, "Old", "New");
  473   std::string Before = R"(
  487   std::string Expected = R"(
  501   std::string After = runClangRenameOnCode(Before, "ns::Old", "ns::New");
  506   std::string Before = R"(
  524   std::string Expected = R"(
  542   std::string After = runClangRenameOnCode(Before, "ns::Old", "ns::New");
  549   std::string Before = R"(
  571   std::string Expected = R"(
  593   std::string After = runClangRenameOnCode(Before, "ns::Old", "ns::New");
  598   std::string Before = R"(
  613   std::string Expected = R"(
  628   std::string After = runClangRenameOnCode(Before, "ns::Old", "::new_ns::New");
  633   std::string Before = R"(
  653   std::string Expected = R"(
  673   std::string After = runClangRenameOnCode(Before, "ns::Old", "::new_ns::New");
  678   std::string Before = R"(
  690   std::string Expected = R"(
  702   std::string After = runClangRenameOnCode(Before, "foo::Old", "foo::Old");
  707   std::string Before = R"(
  719   std::string Expected = R"(
  731   std::string After = runClangRenameOnCode(Before, "foo::Old", "::foo::Old");
  736   std::string Before = R"(
  748   std::string Expected = R"(
  760   std::string After = runClangRenameOnCode(Before, "::foo::Old", "::foo::Old");
  765   std::string Before = R"(
  772   std::string Expected = R"(
  779   std::string After = runClangRenameOnCode(Before, "a::A", "b::B");
  784   std::string Before = R"(
  787   std::string Expected = R"(
  790   std::string After = runClangRenameOnCode(Before, "a::A", "b::B");
tools/clang/unittests/Rename/RenameEnumTest.cpp
  151   std::string Actual =
  157   std::string Before = R"(
  162   std::string Expected = R"(
  167   std::string After = runClangRenameOnCode(Before, "ns::Old1", "ns::New1");
  172   std::string Before = R"(
  177   std::string Expected = R"(
  182   std::string After = runClangRenameOnCode(Before, "ns::Old1", "ns::New1");
tools/clang/unittests/Rename/RenameFunctionTest.cpp
   40   std::string Before = R"(
   45   std::string Expected = R"(
   51   std::string After = runClangRenameOnCode(Before, "A::Foo", "A::Bar");
   56   std::string Before = R"(
   65   std::string Expected = R"(
   74   std::string After = runClangRenameOnCode(Before, "A::Foo", "A::Bar");
   79   std::string Before = R"(
   83   std::string Expected = R"(
   87   std::string After = runClangRenameOnCode(Before, "Eric", "Larry");
   92   std::string Before = R"(
  100   std::string Expected = R"(
  108   std::string After = runClangRenameOnCode(Before, "Eric", "Larry");
  113   std::string Before = R"(
  117   std::string After = runClangRenameOnCode(Before, "A::Foo", "A::Bar");
  122   std::string Before = R"(
  126   std::string After = runClangRenameOnCode(Before, "Eric", "Larry");
  131   std::string Before = R"(
  136   std::string Expected = R"(
  141   std::string After = runClangRenameOnCode(Before, "Eric", "Larry");
  146   std::string Before = R"(
  153   std::string After = runClangRenameOnCode(Before, "Eric", "Larry");
  158   std::string Before = R"(
  180   std::string Expected = R"(
  202   std::string After = runClangRenameOnCode(Before, "base::ToNanoSeconds",
  208   std::string Before = R"(
  213   std::string Expected = R"(
  218   std::string After = runClangRenameOnCode(Before, "na::X", "na::Y");
  223   std::string Before = R"(
  230   std::string Expected = R"(
  237   std::string After = runClangRenameOnCode(Before, "na::X", "nb::Y");
  242   std::string Before = R"(
  248   std::string Expected = R"(
  254   std::string After = runClangRenameOnCode(Before, "na::X", "na::Y");
  259   std::string Before = R"(
  269   std::string Expected = R"(
  279   std::string After = runClangRenameOnCode(Before, "::old_ns::X", "new_ns::Y");
  284   std::string Before = R"(
  294   std::string Expected = R"(
  304   std::string After =
  310   std::string Before = R"(
  320   std::string Expected = R"(
  330   std::string After =
  336   std::string Before = R"(
  346   std::string Expected = R"(
  356   std::string After =
  362   std::string Before = R"(
  371   std::string Expected = R"(
  380   std::string After =
  386   std::string Before = R"(
  394   std::string Expected = R"(
  402   std::string After =
  409   std::string Before = R"(
  425   std::string Expected = R"(
  441   std::string After =
  447   std::string Before = R"(
  471   std::string Expected = R"(
  495   std::string After = runClangRenameOnCode(Before, "::X", "ns::X");
  500   std::string Before = R"(
  509   std::string Expected = R"(
  518   std::string After = runClangRenameOnCode(Before, "base::ToNanoSeconds",
  526   std::string Before = R"(
  546   std::string Expected = R"(
  566   std::string After = runClangRenameOnCode(Before, "ns::Old", "::new_ns::New");
tools/clang/unittests/Rename/RenameMemberTest.cpp
  163   std::string Actual =
  169   std::string Before = R"(
  174   std::string Expected = R"(
  179   std::string After = runClangRenameOnCode(Before, "X::Moo", "Y::Meh");
  184   std::string Before = R"(
  189   std::string Expected = R"(
  194   std::string After = runClangRenameOnCode(Before, "X::Foo", "X::Bar");
  199   std::string Before = R"(
  210   std::string Expected = R"(
  221   std::string After = runClangRenameOnCode(Before, "X::a", "X::bar");
tools/clang/unittests/Rewrite/RewriteBufferTest.cpp
   19 static std::string writeOutput(const RewriteBuffer &Buf) {
   20   std::string Result;
   29   std::string BeginTag;
   31   std::string EndTag;
tools/clang/unittests/Sema/CodeCompleteTest.cpp
   32   std::vector<std::string> VisitedNamespaces;
   33   std::string PreferredType;
   36   std::string PtrDiffType;
   62   std::vector<std::string> getVisitedNamespace(
   64     std::vector<std::string> NSNames;
  116 std::vector<std::string>
  118                       std::string *PtrDiffType = nullptr) {
  120   std::vector<std::string> Types;
  209     std::string PtrDiff;
tools/clang/unittests/Sema/ExternalSemaSourceTest.cpp
   45   std::string FromName;
   46   std::string ToName;
   61       const std::string &CorrectedQuotedStr = Info.getArgStdStr(1);
   66       const std::string &CorrectedQuotedStr = Info.getArgStdStr(3);
   95   std::string CorrectFrom;
   96   std::string CorrectTo;
  137   std::string CorrectFrom;
  138   std::string CorrectTo;
  226   std::vector<std::string> Args(1, "-std=c++11");
  240   std::vector<std::string> Args(1, "-std=c++11");
  259   std::vector<std::string> Args(1, "-std=c++11");
  274   std::vector<std::string> Args(1, "-std=c++11");
  288   std::vector<std::string> Args(1, "-std=c++11");
  308   std::vector<std::string> Args(1, "-std=c++11");
tools/clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp
   59 bool runCheckerOnCode(const std::string &Code, std::string &Diags) {
   59 bool runCheckerOnCode(const std::string &Code, std::string &Diags) {
   65 bool runCheckerOnCode(const std::string &Code) {
   66   std::string Diags;
   82   std::string Diags;
tools/clang/unittests/Tooling/ASTSelectionTest.cpp
  167         std::string DumpValue;
tools/clang/unittests/Tooling/CommentHandlerTest.cpp
   15   Comment(const std::string &Message, unsigned Line, unsigned Col)
   18   std::string Message;
   41     std::string C(SM.getCharacterData(Start),
tools/clang/unittests/Tooling/CompilationDatabaseTest.cpp
   28   std::string ErrorMessage;
   55 static std::vector<std::string> getAllFiles(StringRef JSONDatabase,
   56                                             std::string &ErrorMessage,
   70                       std::string &ErrorMessage) {
   82   std::string ErrorMessage;
   87   std::vector<std::string> expected_files;
  110   std::string ErrorMessage;
  176                                                     std::string &ErrorMessage) {
  195    std::string ErrorMessage;
  225   std::string Error;
  285   std::string ErrorMessage;
  296   std::string ErrorMessage;
  325   std::string ErrorMessage;
  342   std::string ErrorMessage;
  356   std::string JsonDatabase = "[";
  365   std::string ErrorMessage;
  374   std::vector<std::pair<std::string, std::string>> Cases = {
  374   std::vector<std::pair<std::string, std::string>> Cases = {
  385   std::string ErrorMessage;
  388     std::string DB =
  398 static std::vector<std::string> unescapeJsonCommandLine(StringRef Command) {
  399   std::string JsonDatabase =
  402   std::string ErrorMessage;
  410   std::vector<std::string> Result = unescapeJsonCommandLine("");
  415   std::vector<std::string> Result = unescapeJsonCommandLine("a b c");
  423   std::vector<std::string> Result = unescapeJsonCommandLine("   a   b   ");
  430   std::vector<std::string> Backslash = unescapeJsonCommandLine("a\\\\\\\\");
  433   std::vector<std::string> Quote = unescapeJsonCommandLine("a\\\\\\\"");
  439   std::vector<std::string> Result = unescapeJsonCommandLine("\\\"  a  b  \\\"");
  445   std::vector<std::string> Result = unescapeJsonCommandLine(
  453   std::vector<std::string> Result = unescapeJsonCommandLine(
  460   std::vector<std::string> Result = unescapeJsonCommandLine(
  467   std::vector<std::string> Result = unescapeJsonCommandLine(
  477   std::vector<std::string> QuotedNoSpaces = unescapeJsonCommandLine(
  482   std::vector<std::string> MixedNoSpaces = unescapeJsonCommandLine(
  489   std::vector<std::string> Unclosed = unescapeJsonCommandLine("\\\"abc");
  493   std::vector<std::string> Empty = unescapeJsonCommandLine("\\\"");
  499   std::vector<std::string> Args = unescapeJsonCommandLine("a'\\\\b \\\"c\\\"'");
  517   std::vector<std::string> CommandLine;
  526   std::vector<std::string> CommandLine;
  536   std::string ErrorMsg;
  547   std::string ErrorMsg;
  560   std::string ErrorMsg;
  577   std::string ErrorMsg;
  594   std::string ErrorMsg;
  613   std::string ErrorMessage;
  629   std::string ErrorMsg;
  638   std::vector<std::string> Expected;
  654   std::vector<std::string> getAllFiles() const override {
  655     std::vector<std::string> Result;
  679   std::string path(llvm::SmallString<32> File) {
  695   std::string getCommand(llvm::StringRef F) {
  709   std::string getProxy(llvm::StringRef F) {
  843   std::string getCommand(llvm::StringRef F) {
tools/clang/unittests/Tooling/DependencyScannerTest.cpp
   36                     std::vector<std::string> &Deps)
   45   std::vector<std::string> &Deps;
   50   TestDependencyScanningAction(std::vector<std::string> &Deps) : Deps(Deps) {}
   73   std::vector<std::string> &Deps;
   79   std::vector<std::string> Compilation = {"-c", "-E", "-MT", "test.cpp.o"};
   86   std::string HeaderPath = llvm::formatv("{0}root{0}header.h", Sept);
   87   std::string SymlinkPath = llvm::formatv("{0}root{0}symlink.h", Sept);
   88   std::string TestPath = llvm::formatv("{0}root{0}test.cpp", Sept);
   99   std::vector<std::string> Deps;
  126   std::vector<std::string> Compilation = {"-c", "-E", "-MT", "test.cpp.o"};
  133   std::string HeaderPath = llvm::formatv("{0}root{0}header.h", Sept);
  134   std::string SymlinkPath = llvm::formatv("{0}root{0}symlink.h", Sept);
  135   std::string TestPath = llvm::formatv("{0}root{0}test.cpp", Sept);
  136   std::string Test2Path = llvm::formatv("{0}root{0}test2.cpp", Sept);
  151   std::vector<std::string> Deps;
  165   std::vector<std::string> Compilation = {"-c", "-E", "-MT", "test.cpp.o"};
  172   std::string HeaderPath = llvm::formatv("{0}root{0}header.h", Sept);
  173   std::string SymlinkPath = llvm::formatv("{0}root{0}symlink.h", Sept);
  174   std::string TestPath = llvm::formatv("{0}root{0}test.cpp", Sept);
  186   std::vector<std::string> Deps;
tools/clang/unittests/Tooling/DiagnosticsYamlTest.cpp
   22 static DiagnosticMessage makeMessage(const std::string &Message, int FileOffset,
   23                                      const std::string &FilePath,
   34                                  const std::string &Message, int FileOffset,
   35                                  const std::string &FilePath,
  106   std::string YamlContent;
tools/clang/unittests/Tooling/ExecutionTest.cpp
  110   llvm::ArrayRef<std::string> getSourcePaths() const {
  120   std::string SourcePaths;
  121   std::map<std::string, std::string> VFS;
  121   std::map<std::string, std::string> VFS;
  149   llvm::cl::opt<std::string> BeforeReset(
  231                                     ArrayRef<std::string> Files,
  232                                     ArrayRef<std::string> CommandLine)
  240   std::vector<std::string> getAllFiles() const override { return Files; }
  244   std::vector<std::string> Files;
  270   std::vector<std::string> Files;
  271   std::map<std::string, std::string> FileToContent;
  271   std::map<std::string, std::string> FileToContent;
  272   std::vector<std::string> ExpectedSymbols;
  274     std::string File = "f" + std::to_string(i) + ".cc";
  275     std::string Symbol = "looong_function_name_" + std::to_string(i);
  290   std::vector<std::string> Results;
tools/clang/unittests/Tooling/FixItTest.cpp
   30 std::string LocationToString(SourceLocation Loc, ASTContext *Context) {
tools/clang/unittests/Tooling/HeaderIncludesTest.cpp
   23   std::string insert(llvm::StringRef Code, llvm::StringRef Header) {
   34   std::string remove(llvm::StringRef Code, llvm::StringRef Header) {
   43   const std::string FileName = "fix.cpp";
   48   std::string Code = "int main() {}";
   49   std::string Expected = "#include \"a.h\"\n"
   55   std::string Code = "#ifndef A_H\n"
   60   std::string Expected = "#ifndef A_H\n"
   71   std::string Code = "#ifndef A_H\n"
   80   std::string Expected = "#ifndef A_H\n"
   95   std::string Code = "#include \"fix.h\"\n"
   98   std::string Expected = "#include \"fix.h\"\n"
  108   std::string Code = "#include <memory>\n"
  111   std::string Expected = "#include \"z.h\"\n"
  119   std::string Code = "#include <memory>\n"
  122   std::string Expected = "#include <memory>\n"
  132   std::string Code = "#include \"x/fix.h\"\n"
  137   std::string Expected = "#include \"x/fix.h\"\n"
  147   std::string Code = "#include \"x/fix.h\"\n"
  151   std::string Expected = "#include \"x/fix.h\"\n"
  160   std::string Code = "#include \"x/fix.h\"\n"
  168   std::string Expected = "#include \"x/fix.h\"\n"
  181   std::string Code = "#include \"x/fix.h\"\n"
  186   std::string Expected = "#include \"x/fix.h\"\n"
  196   std::string Code = "#include \"x/fix.h\"\n"
  202   std::string Expected = "#include \"x/fix.h\"\n"
  213   std::string Code = "void f() {}\n"
  216   std::string Expected = "#include <vector>\n"
  224   std::string Code = "// comment\n"
  227   std::string Expected = "// comment\n"
  235   std::string Code = "// comment\n"
  241   std::string Expected = "// comment\n"
  252   std::string Code = "/*\n"
  258   std::string Expected = "/*\n"
  269   std::string Code = "/*\n"
  277   std::string Expected = "/*\n"
  290   std::string Code = "// comment \n"
  293   std::string Expected = "// comment \n"
  301   std::string Code = "// comment \n"
  306   std::string Expected = "// comment \n"
  316   std::string Code = "// comment \n"
  319   std::string Expected = "// comment \n"
  327   std::string Code = "// comment \n"
  331   std::string Expected = "// comment \n"
  340   std::string Code = "// comment \n"
  343   std::string Expected = "// comment \n"
  351   std::string Code = "// comment \n"
  359   std::string Expected = "// comment \n"
  372   std::string Code = "";
  373   std::string Expected = "#include <vector>\n";
  378   std::string Code = "#include <map>";
  379   std::string Expected = "#include <map>\n#include <vector>\n";
  384   std::string Code = "#include \"a.h\"\n"
  386   std::string Expected = "#include \"a.h\"\n"
  393   std::string Code = "#include <vector>\n";
  395   std::string Expected = "#include \"vector\"\n"
  401   std::string Code = "#include \"a.h\"\n"
  404   std::string Expected = "#include \"a.h\"\n"
  412   std::string Code = "#include \"a.h\"\n"
  416   std::string Expected = "#include \"a.h\"\n"
  425   std::string Code = "#include \"a.h\"\n"
  429   std::string Expected = "#include \"a.h\"\n"
  438   std::string Code = "#include \"a.h\"\n"
  441   std::string Expected = "#include \"a.h\"\n"
  449   std::string Code = "#include \"a.h\"\n"
  456   std::string Expected = "#include \"a.h\"\n"
  468   std::string Code = "// Loooooooooooooooooooooooooong comment\n"
  476   std::string Expected = "// Loooooooooooooooooooooooooong comment\n"
  491   std::string Code = "#include \"abc.h\"\n"
  494   std::string Expected = "#include \"abc.h\"\n"
  500   std::string Code = "#include \"abc.h\"\n"
  503   std::string Expected = "#include <abc.h>\n"
  509   std::string Code = "#include \"xyz.h\"\n";
  510   std::string Expected = "";
  515   std::string Code = "#include \"xyz.h\"\n"
  518   std::string Expected = "#include \"xyz.h\"\n"
  524   std::string Code = "#include \"a.h\"\n"
  527   std::string Expected = "#include \"a.h\"\n"
tools/clang/unittests/Tooling/LexicallyOrderedRecursiveASTVisitorTest.cpp
   73   std::string Path;
   95   std::string Name = D->getFoundDecl()->getNameAsString();
tools/clang/unittests/Tooling/QualTypeNamesTest.cpp
   15   llvm::StringMap<std::string> ExpectedQualTypeNames;
   25     std::string ExpectedName =
   33       std::string ActualName = TypeName::getFullyQualifiedName(
tools/clang/unittests/Tooling/RangeSelectorTest.cpp
  450   std::string ExpectedString = R"(  // Header
tools/clang/unittests/Tooling/RecursiveASTVisitorTestDeclVisitor.cpp
   65     std::string NameWithTemplateArgs;
tools/clang/unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp
   29   std::vector<std::string> VisitedNodes;
   87   std::vector<std::string> expected = {"4", "9",      "i",         "5",    "-",
  107   std::vector<std::string> expected = {"A", "A::B", "A::B::foo", "return",
tools/clang/unittests/Tooling/RecursiveASTVisitorTests/TemplateArgumentLocTraverser.cpp
   19     std::string ArgStr;
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp
   33   std::string DefaultCode = std::string(100, 'a');
  112     std::string YAMLString =
  171   std::string Message;
tools/clang/unittests/Tooling/RefactoringCallbacksTest.cpp
   21 void expectRewritten(const std::string &Code, const std::string &Expected,
   21 void expectRewritten(const std::string &Code, const std::string &Expected,
   23   std::map<std::string, Replacements> FileToReplace;
   38   std::string Code = "void f() { int i = 1; }";
   39   std::string Expected = "void f() { ; }";
   45   std::string Code = "#define A void f() { int i = 1; }\nA";
   46   std::string Expected = "#define A void f() { ; }\nA";
   52   std::string Code = "#define A void f() { int i = 1; }";
   53   std::string Expected = "#define A void f() { int i = 1; }";
   59   std::string Code = "void f() { int i = 1; }";
   60   std::string Expected = "void f() { int i = 2; }";
   66   std::string Code = "void f() { int i = false ? 1 : i * 2; }";
   67   std::string Expected = "void f() { int i = i * 2; }";
   78   std::string Code = "bool a; void f() { if (a) f(); else a = true; }";
   79   std::string Expected = "bool a; void f() { f(); }";
   89   std::string Code = "void f() { if (false) int i = 0; }";
   90   std::string Expected = "void f() {  }";
   98   std::string Code = "void f() { int i = 1; }";
   99   std::string Expected = "void f() { FOO }";
  106   std::string Code = "void f() { int i = 1; }";
  107   std::string Expected = "void f() { long x = 1; }";
  116   std::string Code = "void f() { int i = 1; }";
  117   std::string Expected = "void f() { string x = \"$-1\"; }";
  126 static void ExpectStringError(const std::string &Expected,
  128   std::string Found;
tools/clang/unittests/Tooling/RefactoringTest.cpp
  113   std::string ErrorMessage;
  513   std::string Code1 = "Long *a =\n"
  516   std::string Expected1 = "auto a = new Long();\n"
  519   std::string Code2 = "int x = 123;\n"
  521   std::string Expected2 = "int x =\n"
  530   std::map<std::string, Replacements> FileToReplaces;
  591     for (llvm::StringMap<std::string>::iterator I = TemporaryFiles.begin(),
  622   std::string getFileContentFromDisk(llvm::StringRef Name) {
  623     std::string Path = TemporaryFiles.lookup(Name);
  634   llvm::StringMap<std::string> TemporaryFiles;
 1034   std::map<std::string, Replacements> FileToReplaces;
 1055   std::map<std::string, Replacements> FileToReplaces;
 1076   std::map<std::string, Replacements> FileToReplaces;
 1103     std::string DefaultCode = std::string(100, 'a');
 1119   std::string YAMLString = Change.toYAMLString();
 1144   std::string YamlContent = "---\n"
 1327   std::string rewrite(bool FailureExpected = false) {
 1328     llvm::Expected<std::string> ChangedCode =
 1342   std::string Code;
 1343   std::string FilePath;
tools/clang/unittests/Tooling/ReplacementsYamlTest.cpp
   27   std::string YamlContent;
   55   std::string YamlContent;
   74   std::string YamlContent = "---\n"
  104   std::string YamlContent = "---\n"
tools/clang/unittests/Tooling/RewriterTestContext.h
   93   std::string getRewrittenText(FileID ID) {
   94     std::string Result;
  101   std::string getFileContentFromDisk(StringRef Name) {
  102     std::string Path = TemporaryFiles.lookup(Name);
  124   llvm::StringMap<std::string> TemporaryFiles;
tools/clang/unittests/Tooling/SourceCodeBuildersTest.cpp
   26 static std::string wrapSnippet(StringRef StatementCode) {
  130     llvm::Optional<std::string> (*Builder)(const Expr &, const ASTContext &),
tools/clang/unittests/Tooling/SourceCodeTest.cpp
  160   std::string Code = R"cpp(
tools/clang/unittests/Tooling/StencilTest.cpp
   32 static std::string wrapSnippet(StringRef StatementCode) {
   79                  ::testing::Matcher<std::string> Matcher) {
   80     const std::string Snippet = R"cc(
  121   const std::string Snippet = R"cc(
  140   const std::string Snippet = R"cc(
  158   const std::string Snippet = R"cc(
  183                  testing::Matcher<std::string> MessageMatcher) {
tools/clang/unittests/Tooling/Syntax/TokensTest.cpp
  142   std::string collectAndDump(llvm::StringRef Code) {
  164   Matcher<syntax::Token> HasText(std::string Text) const {
  263   std::pair</*Input*/ std::string, /*Expected*/ std::string> TestCases[] = {
  263   std::pair</*Input*/ std::string, /*Expected*/ std::string> TestCases[] = {
  349   std::string Code = R"cpp(
  367   std::string Expected =
  381   std::pair</*Input*/ std::string, /*Expected*/ std::string> TestCases[] = {
  381   std::pair</*Input*/ std::string, /*Expected*/ std::string> TestCases[] = {
  529   std::string ExpectedTokens =
  551   std::string Expected = R"(expanded tokens:
tools/clang/unittests/Tooling/Syntax/TreeTest.cpp
  125   std::pair</*Input*/ std::string, /*Expected*/ std::string> Cases[] = {
  125   std::pair</*Input*/ std::string, /*Expected*/ std::string> Cases[] = {
  154     std::string Expected = llvm::StringRef(T.second).trim().str();
  155     std::string Actual = llvm::StringRef(Root->dump(*Arena)).trim();
tools/clang/unittests/Tooling/TestVisitor.h
   55     std::vector<std::string> Args;
  182     std::string ExpectedName;
  242     std::string PartialMatches;
tools/clang/unittests/Tooling/ToolingTest.cpp
  158   std::vector<std::string> Args;
  184   std::vector<std::string> Args;
  222   std::vector<std::string> Sources;
  257   std::vector<std::string> Args = {"-std=c++11"};
  258   std::vector<std::string> Args2 = {"-fno-delayed-template-parsing"};
  322   std::vector<std::string> Args;
  514 std::string getAnyTarget() {
  517     std::string Error;
  530   std::string Target = getAnyTarget();
  533   std::vector<std::string> Args = {"clang", "-foo"};
  543   std::string Target = getAnyTarget();
  549   std::vector<std::string> Args = {"clang", "-foo"};
  557   std::string Target = getAnyTarget();
  560   std::vector<std::string> Args = {"clang", "-foo", "-target", "something"};
  566   std::vector<std::string> ArgsAlt = {"clang", "-foo", "-target=something"};
  574   std::string Target = getAnyTarget();
  577   std::vector<std::string> Args = {"clang", "-foo", "--driver-mode=abc"};
  583   std::vector<std::string> ArgsAlt = {"clang", "-foo", "--driver-mode", "abc"};
  594   std::vector<std::string> Sources;
tools/clang/unittests/Tooling/TransformerTest.cpp
   51 static std::string format(StringRef Code) {
   65                      const llvm::Optional<std::string> &MaybeActual) {
   68   std::string HL = "#include \"header.h\"\n";
   70   if (I != std::string::npos)
   84   llvm::Optional<std::string> rewrite(StringRef Input) {
   85     std::string Code = ("#include \"header.h\"\n" + Input).str();
  155   std::string Input = "int f(string s) { return strlen(s.c_str()); }";
  156   std::string Expected = "int f(string s) { return REPLACED; }";
  162   std::string Input = "int f(string s) { return s.size(); }";
  176   std::string Input = R"cc(
  181   std::string Expected = R"cc(
  195   std::string Input = R"cc(
  199   std::string Expected = R"cc(#include "clang/OtherLib.h"
  213   std::string Input = R"cc(
  217   std::string Expected = R"cc(#include <clang/OtherLib.h>
  231   std::string Input = R"cc(
  235   std::string Expected = R"cc(
  244   std::string Input = R"cc(
  251   std::string Expected = R"cc(
  266   std::string Input = R"cc(
  290   std::string Input = R"cc(
  299   std::string Expected = R"cc(
  313   std::string Input = R"cc(
  326   std::string Expected = R"cc(
  346   std::string Input = R"cc(
  358   std::string Expected = R"cc(
  378   std::string Input = R"cc(
  383   std::string Expected = R"cc(
  397   std::string Input = R"cc(
  403   std::string Expected = R"cc(
  418   std::string Input = R"cc(
  424   std::string Expected = R"cc(
  436   std::string Input = R"cc(
  444   std::string Expected = R"(
  469   std::string Input = R"cc(
  475   std::string Expected = R"cc(
  486   std::string Input = R"cc(
  492   std::string Expected = R"cc(
  511   std::string Input = R"cc(
  517   std::string Expected = R"cc(
  539   std::string Input = R"cc(
  545   std::string Expected = R"cc(
  572   std::string Input = "int conflictOneRule() { return 3 + 7; }";
  589   std::string Input = "int conflictOneRule() { return 3 + 7; }";
  604   std::string Input = "int conflictOneRule() { return -7; }";
  619   std::string Input = "void errorOccurred() { 3 }";
  634   std::string Input = R"cc(
  638   std::string Expected = R"cc(
  652   std::string Input = R"cc(
  656   std::string Expected = R"cc(
  666   std::string Input = R"cc(
  670   std::string Expected = R"cc(
  681   std::string Input = R"cc(
  686   std::string Expected = R"cc(
  701   std::string Input = R"cc(
  705   std::string Expected = R"cc(
  716   std::string Input = R"cc(
  720   std::string Expected = R"cc(
  731   std::string Input = R"cc(
  735   std::string Expected = R"cc(
  749   std::string Input = R"cc(
  753   std::string Expected = R"cc(
  769   std::string Input = R"cc(
  784   std::string Input = R"cc(
tools/clang/unittests/libclang/CrashTests/LibclangCrashTest.cpp
   18   std::string Main = "main.h";
   31   std::string Main = "main.h";
tools/clang/unittests/libclang/LibclangTest.cpp
   68       std::string BufStr(BufPtr, BufSize);
  350   std::string BufStr(BufPtr, BufSize);
  357   std::string Header = "header.h", Main = "main.cpp";
  394   std::string Main = "main.m";
  460   std::string CppName = "main.cpp";
  480   std::string HeaderName = "HeaderFile.h";
  481   std::string CppName = "CppFile.cpp";
  494   std::string NewHeaderContents =
  509   std::string HeaderName = "HeaderFile.h";
  510   std::string MName = "MFile.m";
  511   std::string ModName = "module.modulemap";
  516   std::string ModulesCache = std::string("-fmodules-cache-path=") + TestDir;
  529   std::string NewHeaderContents =
  541   std::string EmptyFiles[] = {"lib/gcc/arm-linux-gnueabi/99.9.9/crtbegin.o",
  548   std::string Filename = "test.cc";
  551   std::string Clang = "bin/clang";
  571     std::string File = "file.cpp";
  596   std::string Header = "header.h", Main = "main.cpp";
  678   bool SaveAndLoadTU(const std::string &Filename) {
  702   std::string HeaderName = "test.h";
  732   std::string ASTName = "test.ast";
tools/clang/unittests/libclang/TestUtils.h
   24   std::set<std::string> Files;
   25   typedef std::unique_ptr<std::string> fixed_addr_string;
   28   std::string TestDir;
   46     for (const std::string &Path : Files)
   50   void WriteFile(std::string &Filename, const std::string &Contents) {
   50   void WriteFile(std::string &Filename, const std::string &Contents) {
   62   void MapUnsavedFile(std::string Filename, const std::string &Contents) {
   62   void MapUnsavedFile(std::string Filename, const std::string &Contents) {
   69         fixed_addr_string(new std::string(Filename)),
   70         fixed_addr_string(new std::string(Contents))));
tools/clang/utils/TableGen/ClangASTNodesEmitter.cpp
   36   const std::string &NodeClassName;
   37   const std::string &BaseSuffix;
   38   std::string MacroHierarchyName;
   42   static std::string macroName(std::string S) {
   42   static std::string macroName(std::string S) {
   49   const std::string &macroHierarchyName() {
   59   std::string baseName(Record &R) {
   70   explicit ClangASTNodesEmitter(RecordKeeper &R, const std::string &N,
   71                                 const std::string &S)
   87   std::string BaseName = macroName(Base->getName());
   98     std::string NodeName = macroName(R->getName());
  199                               const std::string &N, const std::string &S) {
  199                               const std::string &N, const std::string &S) {
tools/clang/utils/TableGen/ClangAttrEmitter.cpp
   50   std::string V, N, NS;
   54   FlattenedSpelling(const std::string &Variety, const std::string &Name,
   54   FlattenedSpelling(const std::string &Variety, const std::string &Name,
   55                     const std::string &Namespace, bool KnownToGCC) :
   69   const std::string &variety() const { return V; }
   70   const std::string &name() const { return N; }
   71   const std::string &nameSpace() const { return NS; }
  101 static std::string ReadPCHRecord(StringRef type) {
  121 static std::string WritePCHRecord(StringRef type, StringRef name) {
  158 typedef std::vector<std::pair<std::string, const Record *>> ParsedAttrMap;
  163   std::set<std::string> Seen;
  167       std::string AN;
  192     std::string lowerName, upperName;
  238     virtual std::string getIsOmitted() const { return "false"; }
  254     std::string type;
  257     SimpleArgument(const Record &Arg, StringRef Attr, std::string T)
  260     std::string getType() const { return type; }
  293       std::string read = ReadPCHRecord(type);
  306     std::string getIsOmitted() const override {
  369                           std::string T, int64_t Default)
  600     std::string getIsOmitted() const override {
  629     std::string Type, ArgName, ArgSizeName, RangeName;
  642     VariadicArgument(const Record &Arg, StringRef Attr, std::string T)
  647     const std::string &getType() const { return Type; }
  648     const std::string &getArgName() const { return ArgName; }
  649     const std::string &getArgSizeName() const { return ArgSizeName; }
  653       std::string IteratorType = getLowerName().str() + "_iterator";
  654       std::string BeginFn = getLowerName().str() + "_begin()";
  655       std::string EndFn = getLowerName().str() + "_end()";
  722       std::string StorageType = getStorageType(getType());
  723       std::string StorageName = getLowerName();
  733       std::string read = ReadPCHRecord(Type);
  803     std::string type;
  923     std::string type, QualifiedTypeName;
 1335 static void writeDeprecatedAttrValue(raw_ostream &OS, std::string &Variety) {
 1392     std::string Name = Spellings[I].name();
 1393     std::string Variety = Spellings[I].variety();
 1401       std::string Namespace = Spellings[I].nameSpace();
 1418       std::string Namespace = Spellings[I].nameSpace();
 1498         std::string IsOmitted = arg->getIsOmitted();
 1580   std::string FirstName = NormalizeNameForSpellingComparison(
 1584     std::string Name = NormalizeNameForSpellingComparison(Spelling.name());
 1591 typedef std::map<unsigned, std::string> SemanticSpellingMap;
 1592 static std::string
 1599   std::string Ret("  enum Spelling {\n");
 1600   std::set<std::string> Uniques;
 1611     const std::string &Variety = S.variety();
 1612     const std::string &Spelling = S.name();
 1613     const std::string &Namespace = S.nameSpace();
 1614     std::string EnumName;
 1647 void WriteSemanticSpellingSwitch(const std::string &VarName,
 1729   std::string getSpelling() const {
 1730     std::string Result = MetaSubject->getValueAsString("Name");
 1743   std::string getEnumValueName() const {
 1758   std::string getEnumValue() const { return "attr::" + getEnumValueName(); }
 1804   std::string generateStrictConformsTo(const Record &Attr, raw_ostream &OS);
 1941 static std::string GenerateTestExpression(ArrayRef<Record *> LangOpts) {
 1942   std::string Test;
 1965 std::string
 1972   std::string FnName = "matchRulesFor" + Attr.getName().str();
 2049     std::string SubRuleFunction;
 2255     std::string SuperName;
 2880 static bool GenerateTargetSpecificAttrCheck(const Record *R, std::string &Test,
 2881                                             std::string *FnName,
 2912                                              std::string &Test,
 2913                                              std::string *FnName) {
 2962     const std::string &Variety = "", const std::string &Scope = "") {
 2962     const std::string &Variety = "", const std::string &Scope = "") {
 2985     std::string Test;
 3003     std::string TestStr =
 3022   std::map<std::string, std::vector<Record *>> CXX, C2x;
 3029       const std::string &Variety = SI.variety();
 3300 static std::string GetDiagnosticSpelling(const Record &R) {
 3301   std::string Ret = R.getValueAsString("DiagSpelling");
 3314 static std::string CalculateDiagnostic(const Record &S) {
 3321   std::vector<std::string> DiagList;
 3326     std::string V = GetDiagnosticSpelling(R);
 3363   std::string Diag = llvm::join(DiagList.begin(), DiagList.end() - 1, ", ");
 3367 static std::string GetSubjectWithSuffix(const Record *R) {
 3368   const std::string &B = R->getName();
 3374 static std::string functionNameForCustomAppertainsTo(const Record &Subject) {
 3378 static std::string GenerateCustomAppertainsTo(const Record &Subject,
 3380   std::string FnName = functionNameForCustomAppertainsTo(Subject);
 3384   static std::set<std::string> CustomSubjectSet;
 3411 static std::string GenerateAppertainsTo(const Record &Attr, raw_ostream &OS) {
 3435   std::string FnName = "check" + Attr.getName().str() + "AppertainsTo";
 3514 static std::string GenerateLangOptRequirements(const Record &R,
 3525   std::string FnName = "check";
 3532   static std::set<std::string> CustomLangOptsSet;
 3556 static std::string GenerateTargetRequirements(const Record &Attr,
 3586   std::string FnName = "isTarget";
 3587   std::string Test;
 3592   static std::set<std::string> CustomTargetSet;
 3614 static std::string GenerateSpellingIndexToSemanticSpelling(const Record &Attr,
 3629   std::string Enum = CreateSemanticSpellings(Spellings, SemanticToSyntacticMap);
 3630   std::string Name = Attr.getName().str() + "AttrSpellingMap";
 3672   std::string Buffer;
 3723   std::set<std::string> Seen;
 3740       std::string AttrName;
 3752         const std::string &RawSpelling = S.name();
 3754         std::string Spelling;
 3755         const std::string &Variety = S.variety();
 3828     std::string FunctionContent;
 3860     std::string FunctionContent;
 3906   std::vector<std::string> Spellings[NumSpellingKinds];
 3909   ArrayRef<std::string> operator[](SpellingKind K) const {
 3922     std::string Name;
 3946   std::string Heading;
 3950                     std::pair<std::string, SpellingList> HeadingAndSpellings)
 3969 static std::pair<std::string, SpellingList>
 3983   std::string Heading = Documentation.getValueAsString("Heading");
 3989       std::set<std::string> Uniques;
 3992         std::string Spelling = NormalizeNameForSpellingComparison(I->name());
tools/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp
   66     std::string Name = Tag.getValueAsString("Name");
   67     std::string Return;
   79 static std::string MangleName(StringRef Str) {
   80   std::string Mangled;
  120     std::string MangledName = MangleName(Tag.getValueAsString("Name"));
tools/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp
   57     std::string Spelling = Tag.getValueAsString("Spelling");
tools/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp
   43     std::string Spelling = Tag->getValueAsString("Spelling");
tools/clang/utils/TableGen/ClangDiagnosticsEmitter.cpp
   61 static std::string
   65   std::string CatName = Group->getValueAsString("CategoryName");
   80 static std::string getDiagnosticCategory(const Record *R,
   85     std::string CatName = getCategoryFromDiagGroup(Group->getDef(),
   98     std::vector<std::string> CategoryStrings;
  110         std::string Category = getDiagnosticCategory(Diags[i], ParentInfo);
  125     typedef std::vector<std::string>::const_iterator const_iterator;
  132     std::vector<std::string> SubGroups;
  162                              std::map<std::string, GroupInfo> &DiagsInGroup) {
  171     std::string GroupName = DI->getDef()->getValueAsString("GroupName");
  200   for (std::map<std::string, GroupInfo>::iterator
  222       std::string Name = (*I)->ExplicitDef->getValueAsString("GroupName");
  247       std::string Name = NextDiagGroup->getValueAsString("GroupName");
  278   std::map<std::string, GroupInfo> &DiagsInGroup;
  285                 std::map<std::string, GroupInfo> &DiagsInGroup)
  319   const std::string &GroupName = Group->getValueAsString("GroupName");
  333   const std::string &ClsName = Diag->getValueAsDef("Class")->getName();
  338   const std::string &DefSeverity =
  527   std::string Text;
  590   std::string Name;
  625   std::vector<std::string> buildForDocumentation(StringRef Role,
  627   std::string buildForDefinition(const Record *R);
  771 void escapeRST(StringRef Str, std::string &Out) {
  784     (*I) += std::string(Width - I->size(), ' ');
  795 void makeRowSeparator(std::string &Str) {
  803                      std::vector<std::string> &RST)
  836     std::string EmptyLinePrefix;
  840       std::vector<std::string> Lines;
  859       std::string Empty(Lines[0].size(), ' ');
  883     std::string Suffix;
  925   std::vector<std::string> &RST;
  931   DiagTextPrinter(DiagnosticTextBuilder &Builder, std::string &Result)
  988   std::string &Result;
 1142 std::vector<std::string>
 1158   std::vector<std::string> Result;
 1163 std::string DiagnosticTextBuilder::buildForDefinition(const Record *R) {
 1167   std::string Result;
 1179   const std::string &ClsName = Diag.getValueAsDef("Class")->getName();
 1184   const std::string &ClsName = Diag.getValueAsDef("Class")->getName();
 1192                                const std::string &Component) {
 1195     std::string ComponentName = StringRef(Component).upper();
 1210   std::map<std::string, GroupInfo> DiagsInGroup;
 1229         const std::string &GroupName = GroupRec->getValueAsString("GroupName");
 1259       std::map<std::string, GroupInfo>::iterator I =
 1264       std::map<std::string, GroupInfo>::iterator I =
 1296 static std::string getDiagCategoryEnum(llvm::StringRef name) {
 1319 static void emitDiagSubGroups(std::map<std::string, GroupInfo> &DiagsInGroup,
 1326     const std::vector<std::string> &SubGroups = I.second.SubGroups;
 1330         std::map<std::string, GroupInfo>::const_iterator RI =
 1338           const std::string &GroupName = Group->getValueAsString("GroupName");
 1339           std::map<std::string, GroupInfo>::const_iterator RI =
 1370 static void emitDiagArrays(std::map<std::string, GroupInfo> &DiagsInGroup,
 1422 static void emitAllDiagArrays(std::map<std::string, GroupInfo> &DiagsInGroup,
 1449 static void emitDiagTable(std::map<std::string, GroupInfo> &DiagsInGroup,
 1466         std::string::npos)
 1471     std::string Name = char(I.first.size()) + I.first;
 1492     const std::vector<std::string> &SubGroups = I.second.SubGroups;
 1539   std::map<std::string, GroupInfo> DiagsInGroup;
 1551   for (std::map<std::string, GroupInfo>::const_iterator
 1556     std::string Name = char(I->first.size()) + I->first;
 1578   std::string Name;
 1613                    const std::map<std::string, GroupInfo> &DiagsInGroup) {
 1632 std::string getDefaultSeverity(const Record *Diag) {
 1636 std::set<std::string>
 1638                      const std::map<std::string, GroupInfo> &DiagsInGroup) {
 1639   std::set<std::string> States;
 1662     std::vector<std::string> Out = Builder.buildForDocumentation(Role, R);
 1696   std::map<std::string, GroupInfo> DiagsInGroup;
tools/clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
   98                         StringMap<bool> &TypesSeen, std::string &Output,
  199                                           std::string &Output,
  221   std::string GenTypeEnums;
  222   std::string TypeEnums;
  427     std::string RetStmt;
tools/clang/utils/TableGen/ClangOptionDocEmitter.cpp
   49   std::map<std::string, Record*> OptionsByName;
   84     std::string Name = R->getValueAsString("Name");
  179 std::string escapeRST(StringRef Str) {
  180   std::string Out;
  205 void emitHeading(int Depth, std::string Heading, raw_ostream &OS) {
  213 std::string getRSTStringWithTextFallback(const Record *R, StringRef Primary,
  248   std::vector<std::string> Args;
  316   std::vector<std::string> SphinxOptionIDs;
  323   static std::map<std::string, int> NextSuffix;
  346   std::string Description =
  364   std::string Description =
tools/clang/utils/TableGen/ClangSACheckersEmitter.cpp
   27 static std::string getPackageFullName(const Record *R);
   29 static std::string getParentPackageFullName(const Record *R) {
   30   std::string name;
   36 static std::string getPackageFullName(const Record *R) {
   37   std::string name = getParentPackageFullName(R);
   45 static std::string getCheckerFullName(const Record *R) {
   46   std::string name = getParentPackageFullName(R);
   54 static std::string getStringValue(const Record &R, StringRef field) {
   76 static std::string getCheckerDocs(const Record &R) {
   97 static std::string getCheckerOptionType(const Record &R) {
  114 static std::string getDevelopmentStage(const Record &R) {
tools/clang/utils/TableGen/MveEmitter.cpp
  142   virtual std::string cName() const = 0;
  143   virtual std::string llvmName() const {
  146   virtual std::string acleSuffix() const {
  152 inline std::string toLetter(ScalarTypeKind kind) {
  163 inline std::string toCPrefix(ScalarTypeKind kind) {
  180   std::string cName() const override { return "void"; }
  183   std::string acleSuffix() const override { return ""; }
  195   std::string cName() const override {
  196     std::string Name = Pointee->cName();
  223   virtual std::string cNameBase() const = 0;
  226   std::string cName() const override { return cNameBase() + "_t"; }
  243   std::string suffix() const { return toLetter(Kind) + utostr(Bits); }
  244   std::string cNameBase() const override {
  247   std::string llvmName() const override {
  259   std::string acleSuffix() const override {
  283   std::string cNameBase() const override {
  286   std::string llvmName() const override {
  309   std::string cNameBase() const override {
  331   std::string cNameBase() const override { return "mve_pred16"; }
  333   std::string llvmName() const override {
  385   std::vector<std::string> *ParamTypes = nullptr;
  386   std::vector<std::string> *ParamValues = nullptr;
  404   std::string allocParam(StringRef Type, StringRef Value) {
  454   std::string VarName;
  460   using Scope = std::map<std::string, Ptr>;
  464   virtual std::string typeName() const { return "Value *"; }
  500   std::string varname() {
  539   std::string typeName() const override {
  637   std::string IntrinsicID;
  645     std::string IntNo = ParamAlloc.allocParam(
  695   std::string ShortName, FullName;
  702   std::map<std::string, std::string> CustomCodeGenArgs;
  702   std::map<std::string, std::string> CustomCodeGenArgs;
  717   const std::string &shortName() const { return ShortName; }
  718   const std::string &fullName() const { return FullName; }
  754         std::string Type = V->typeName();
  766   std::string genSema() const {
  767     std::vector<std::string> SemaChecks;
  795       std::string Index = utostr(kv.first);
  805         std::string Suffix;
  833   std::map<std::string, std::unique_ptr<ScalarType>> ScalarTypes;
  836   std::map<std::pair<std::string, unsigned>, std::unique_ptr<MultiVectorType>>
  839   std::map<std::string, std::unique_ptr<PointerType>> PointerTypes;
  842   std::map<std::string, std::unique_ptr<ACLEIntrinsic>> ACLEIntrinsics;
  862     std::pair<std::string, unsigned> key(VT->cNameBase(), Registers);
  875     std::string key = PT.cName();
 1038       std::string IntName = Op->getValueAsString("intname");
 1240   std::string S;
 1311         std::string FunctionName =
 1319         std::string RetTypeName = Int.returnType()->cName();
 1323         std::vector<std::string> ArgTypeNames;
 1326         std::string ArgTypesString =
 1415     std::vector<std::string> conditions;
 1421     std::string condition =
 1440   std::set<std::string> ShortNamesSeen;
 1455   std::map<std::string, std::set<std::string>> Checks;
 1455   std::map<std::string, std::set<std::string>> Checks;
 1459     std::string Check = Int.genSema();
 1481 struct ComparableStringVector : std::vector<std::string> {
 1497   std::string Name;
 1506   std::string Code;
tools/clang/utils/TableGen/NeonEmitter.cpp
   61 static void assert_with_loc(bool Assertion, const std::string &Str) {
  116 class TypeSpec : public std::string {
  241   std::string str() const;
  245   std::string builtin_str() const;
  271   std::string N;
  275   Variable(Type T, std::string N) : T(std::move(T)), N(std::move(N)) {}
  278   std::string getName() const { return "__" + N; }
  293   std::string Name, Proto;
  306   std::string Guard;
  317   std::map<std::string, Variable> Variables;
  331   std::string VariablePostfix;
  358     if (Proto.find('i') != std::string::npos)
  363     if (Proto.find('p') != std::string::npos ||
  364         Proto.find('c') != std::string::npos)
  369     if (OutTS.find('h') != std::string::npos &&
  370         Proto.find('s') != std::string::npos)
  388   std::string getGuard() const { return Guard; }
  390   std::string getName() const { return Name; }
  394     return Proto.find('i') != std::string::npos;
  406   bool hasSplat() const { return Proto.find('a') != std::string::npos; }
  421   std::string getProto() const { return Proto; }
  463   std::string getMangledName(bool ForceClassS = false) const;
  465   std::string getInstTypeCode(Type T, ClassKind CK) const;
  467   std::string getBuiltinTypeStr();
  470   std::string generate();
  476   std::string mangleName(std::string Name, ClassKind CK) const;
  476   std::string mangleName(std::string Name, ClassKind CK) const;
  479   std::string replaceParamsIn(std::string S);
  479   std::string replaceParamsIn(std::string S);
  504     std::pair<Type, std::string> emitDagArg(Init *Arg, std::string ArgName);
  504     std::pair<Type, std::string> emitDagArg(Init *Arg, std::string ArgName);
  505     std::pair<Type, std::string> emitDagSaveTemp(DagInit *DI);
  506     std::pair<Type, std::string> emitDagSplat(DagInit *DI);
  507     std::pair<Type, std::string> emitDagDup(DagInit *DI);
  508     std::pair<Type, std::string> emitDagDupTyped(DagInit *DI);
  509     std::pair<Type, std::string> emitDagShuffle(DagInit *DI);
  510     std::pair<Type, std::string> emitDagCast(DagInit *DI, bool IsBitCast);
  511     std::pair<Type, std::string> emitDagCall(DagInit *DI);
  512     std::pair<Type, std::string> emitDagNameReplace(DagInit *DI);
  513     std::pair<Type, std::string> emitDagLiteral(DagInit *DI);
  514     std::pair<Type, std::string> emitDagOp(DagInit *DI);
  515     std::pair<Type, std::string> emitDag(DagInit *DI);
  526   std::map<std::string, std::deque<Intrinsic>> IntrinsicMap;
  584 std::string Type::str() const {
  587   std::string S;
  614 std::string Type::builtin_str() const {
  615   std::string S;
  657   std::string Ret;
  761   std::string S = TS;
 1044 std::string Intrinsic::getInstTypeCode(Type T, ClassKind CK) const {
 1073   std::string S;
 1086 std::string Intrinsic::getBuiltinTypeStr() {
 1088   std::string S;
 1143 std::string Intrinsic::getMangledName(bool ForceClassS) const {
 1154 std::string Intrinsic::mangleName(std::string Name, ClassKind LocalCK) const {
 1154 std::string Intrinsic::mangleName(std::string Name, ClassKind LocalCK) const {
 1155   std::string typeCode = getInstTypeCode(BaseType, LocalCK);
 1156   std::string S = Name;
 1204 std::string Intrinsic::replaceParamsIn(std::string S) {
 1204 std::string Intrinsic::replaceParamsIn(std::string S) {
 1205   while (S.find('$') != std::string::npos) {
 1211     std::string VarName = S.substr(Pos + 1, End - Pos - 1);
 1227     std::string Name = "p";
 1248     std::string Name = "p";
 1313     std::string Name = "p" + utostr(I);
 1314     std::string NewName = "rev" + utostr(I);
 1353     std::string Name = "p" + utostr(I);
 1358     std::string NewName = "s" + utostr(I);
 1372   return (Proto.find('s') != std::string::npos ||
 1373           Proto.find('z') != std::string::npos ||
 1374           Proto.find('r') != std::string::npos ||
 1375           Proto.find('b') != std::string::npos ||
 1376           Proto.find('$') != std::string::npos ||
 1377           Proto.find('y') != std::string::npos ||
 1378           Proto.find('o') != std::string::npos);
 1382   std::string S;
 1415       std::string Cast;
 1428     std::string Arg;
 1473   std::string RetExpr;
 1482   std::vector<std::string> Lines;
 1527 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDag(DagInit *DI) {
 1530   std::string Op = DefI->getAsString();
 1556 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagOp(DagInit *DI) {
 1557   std::string Op = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
 1560     std::pair<Type, std::string> R =
 1565     std::pair<Type, std::string> R1 =
 1567     std::pair<Type, std::string> R2 =
 1574 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagCall(DagInit *DI) {
 1576   std::vector<std::string> Values;
 1578     std::pair<Type, std::string> R =
 1585   std::string N;
 1597   std::string S = "";
 1611 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagCast(DagInit *DI,
 1614   std::pair<Type, std::string> R = emitDagArg(
 1655   std::string S;
 1659     std::string N = "reint";
 1678 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagShuffle(DagInit *DI){
 1745   std::pair<Type, std::string> Arg1 =
 1747   std::pair<Type, std::string> Arg2 =
 1762   std::string S = "__builtin_shufflevector(" + Arg1.second + ", " + Arg2.second;
 1788 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagDup(DagInit *DI) {
 1790   std::pair<Type, std::string> A = emitDagArg(DI->getArg(0),
 1796   std::string S = "(" + T.str() + ") {";
 1807 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagDupTyped(DagInit *DI) {
 1809   std::pair<Type, std::string> A = emitDagArg(DI->getArg(0),
 1811   std::pair<Type, std::string> B = emitDagArg(DI->getArg(1),
 1818   std::string S = "(" + T.str() + ") {";
 1829 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagSplat(DagInit *DI) {
 1831   std::pair<Type, std::string> A = emitDagArg(DI->getArg(0),
 1833   std::pair<Type, std::string> B = emitDagArg(DI->getArg(1),
 1839   std::string S = "__builtin_shufflevector(" + A.second + ", " + A.second;
 1848 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagSaveTemp(DagInit *DI) {
 1850   std::pair<Type, std::string> A = emitDagArg(DI->getArg(1),
 1856   std::string N = DI->getArgNameStr(0);
 1864   std::string S =
 1870 std::pair<Type, std::string>
 1872   std::string S = Intr.Name;
 1875   std::string ToReplace = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
 1876   std::string ReplaceWith = cast<StringInit>(DI->getArg(1))->getAsUnquotedString();
 1880   assert_with_loc(Idx != std::string::npos, "name should contain '" + ToReplace + "'!");
 1886 std::pair<Type, std::string> Intrinsic::DagEmitter::emitDagLiteral(DagInit *DI){
 1887   std::string Ty = cast<StringInit>(DI->getArg(0))->getAsUnquotedString();
 1888   std::string Value = cast<StringInit>(DI->getArg(1))->getAsUnquotedString();
 1892 std::pair<Type, std::string>
 1893 Intrinsic::DagEmitter::emitDagArg(Init *Arg, std::string ArgName) {
 1910 std::string Intrinsic::generate() {
 2002   std::string ErrMsg = "looking up intrinsic '" + Name.str() + "(";
 2046   std::string Name = R->getValueAsString("Name");
 2047   std::string Proto = R->getValueAsString("Prototype");
 2048   std::string Types = R->getValueAsString("Types");
 2052   std::string Guard = R->getValueAsString("ArchGuard");
 2105   std::set<std::string> Builtins;
 2115     std::string S = "BUILTIN(__builtin_neon_" + Def->getMangledName() + ", \"";
 2143   std::map<std::string, OverloadInfo> OverloadMap;
 2170     std::string Proto = Def->getProto();
 2189     std::string Name = Def->getName();
 2202       std::string Name = Def->getMangledName();
 2229   std::set<std::string> Emitted;
 2245     std::string LowerBound, UpperBound;
 2253 		  Def->getName().find('h') != std::string::npos)
 2263       if (Def->getName().find('r') != std::string::npos ||
 2264           Def->getName().find("cvt") != std::string::npos)
 2273       if (Def->getName().find('r') != std::string::npos)
 2404   std::string TypedefTypes(
 2488   std::string InGuard;
 2595   std::string InGuard;
tools/clang/utils/TableGen/TableGen.cpp
  193 cl::opt<std::string>
tools/clang/utils/TableGen/TableGenBackends.h
   29                        const std::string &N, const std::string &S);
   29                        const std::string &N, const std::string &S);
   63                         const std::string &Component);
tools/dsymutil/BinaryHolder.h
   50     std::string FatBinaryName;
   99       std::string Filename;
tools/dsymutil/CFBundle.h
   19   std::string VersionStr = "1";
   20   std::string ShortVersionStr = "1.0";
   21   std::string IDStr;
tools/dsymutil/CompileUnit.h
  119   const std::string &getClangModuleName() const { return ClangModuleName; }
  325   std::string ClangModuleName;
tools/dsymutil/DebugMap.cpp
  158   std::string Filename;
  164     mapping(IO &io, std::pair<std::string, DebugMapObject::SymbolMapping> &s) {
tools/dsymutil/DebugMap.h
   76   std::string BinaryPath;
  155   using YAMLSymbolMapping = std::pair<std::string, SymbolMapping>;
  187   const std::vector<std::string> &getWarnings() const { return Warnings; }
  201   std::string Filename;
  207   std::vector<std::string> Warnings;
  235                       std::pair<std::string, DebugMapObject::SymbolMapping> &s);
tools/dsymutil/DeclContext.cpp
  140               std::string File;
tools/dsymutil/DeclContext.h
   34   StringRef resolve(std::string Path, NonRelocatableStringpool &StringPool) {
   53   StringMap<std::string> ResolvedPaths;
tools/dsymutil/DwarfLinker.cpp
  256     std::map<std::string, std::string> &ParseableSwiftInterfaces,
  256     std::map<std::string, std::string> &ParseableSwiftInterfaces,
  292     std::map<std::string, std::string> &ParseableSwiftInterfaces,
  292     std::map<std::string, std::string> &ParseableSwiftInterfaces,
 1467       std::string MethodNameNoCategory(Name.getString().data(), OpenParens + 2);
 2164   std::string PCMfile = dwarf::toString(
 2172   std::string Name = dwarf::toString(CUDie.find(dwarf::DW_AT_name), "");
 2307         std::string Err =
 2506     const std::map<std::string, std::string> &ParseableSwiftInterfaces,
 2506     const std::map<std::string, std::string> &ParseableSwiftInterfaces,
tools/dsymutil/DwarfLinker.h
  501   std::map<std::string, std::string> ParseableSwiftInterfaces;
  501   std::map<std::string, std::string> ParseableSwiftInterfaces;
tools/dsymutil/DwarfStreamer.cpp
   48   std::string ErrorStr;
   49   std::string TripleName;
tools/dsymutil/LinkUtils.h
   63   std::string PrependPath;
   66   Optional<std::string> ResourceDir;
tools/dsymutil/MachODebugMapParser.cpp
   26   MachODebugMapParser(StringRef BinaryPath, ArrayRef<std::string> Archs,
   43   std::string BinaryPath;
   45   std::string PathPrefix;
   56   std::vector<std::string> CommonSymbols;
  182 static std::string getArchName(const object::MachOObjectFile &Obj) {
  585 parseDebugMap(StringRef InputFile, ArrayRef<std::string> Archs,
  596 bool dumpStab(StringRef InputFile, ArrayRef<std::string> Archs,
tools/dsymutil/MachOUtils.cpp
   50 std::string getArchName(StringRef Arch) {
   66   std::string ErrMsg;
tools/dsymutil/MachOUtils.h
   27   std::string Arch;
   46 std::string getArchName(StringRef Arch);
tools/dsymutil/SymbolMap.cpp
   45   const std::string &Translation = UnobfuscatedStrings[LineNumber];
   67   std::string SymbolMapPath = SymbolMap;
  125   std::vector<std::string> UnobfuscatedStrings;
tools/dsymutil/SymbolMap.h
   26   SymbolMapTranslator(std::vector<std::string> UnobfuscatedStrings,
   36   std::vector<std::string> UnobfuscatedStrings;
   43   SymbolMapLoader(std::string SymbolMap) : SymbolMap(std::move(SymbolMap)) {}
   48   const std::string SymbolMap;
tools/dsymutil/dsymutil.cpp
   92   std::string SymbolMap;
   93   std::string OutputFile;
   94   std::string Toolchain;
   95   std::vector<std::string> Archs;
   96   std::vector<std::string> InputFiles;
  105 static Expected<std::vector<std::string>> getInputs(opt::InputArgList &Args,
  107   std::vector<std::string> InputFiles;
  115   std::vector<std::string> Inputs;
  236   if (Expected<std::vector<std::string>> InputFiles =
  379   OutputLocation(std::string DWARFFile, Optional<std::string> ResourceDir = {})
  379   OutputLocation(std::string DWARFFile, Optional<std::string> ResourceDir = {})
  382   Optional<std::string> getResourceDir() const { return ResourceDir; }
  383   std::string DWARFFile;
  384   Optional<std::string> ResourceDir;
  417   std::string DwarfFile = InputFile == "-" ? StringRef("a.out") : InputFile;
  429   std::string ResourceDir = Path.str();
  445   std::string SDKPath = sys::fs::getMainExecutable(argv[0], P);
  567       std::string OutputFile = OutputLocationOrErr->DWARFFile;
tools/dsymutil/dsymutil.h
   38 parseDebugMap(StringRef InputFile, ArrayRef<std::string> Archs,
   43 bool dumpStab(StringRef InputFile, ArrayRef<std::string> Archs,
tools/gold/gold-plugin.cpp
   75   std::string name;
  119 static std::string output_name = "";
  123 static std::vector<std::string> Cleanup;
  147   static std::string obj_path;
  148   static std::string extra_library_path;
  149   static std::string triple;
  150   static std::string mcpu;
  170   static std::string thinlto_linked_objects_file;
  182   static std::string thinlto_prefix_replace;
  188   static std::string thinlto_object_suffix_replace;
  190   static std::string cache_dir;
  192   static std::string cache_policy;
  198   static std::string sample_profile;
  204   static std::string dwo_dir;
  206   static std::string stats_file;
  209   static std::string RemarksFilename;
  210   static std::string RemarksPasses;
  212   static std::string RemarksFormat;
  215   static std::string cs_profile_path;
  251       if (thinlto_prefix_replace.find(';') == std::string::npos)
  256       if (thinlto_object_suffix_replace.find(';') == std::string::npos)
  457   std::string ErrStorage;
  479 static void check(Error E, std::string Msg = "LLVM gold plugin") {
  674 static void getThinLTOOldAndNewSuffix(std::string &OldSuffix,
  675                                       std::string &NewSuffix) {
  684 static std::string getThinLTOObjectFileName(StringRef Path, StringRef OldSuffix,
  778 static void recordFile(const std::string &Filename, bool TempOutFile) {
  828 static void getThinLTOOldAndNewPrefix(std::string &OldPrefix,
  829                                       std::string &NewPrefix) {
  866     std::string OldPrefix, NewPrefix;
  941 static void writeEmptyDistributedBuildOutputs(const std::string &ModulePath,
  942                                               const std::string &OldPrefix,
  943                                               const std::string &NewPrefix,
  945   std::string NewModulePath =
 1004   std::string OldPrefix, NewPrefix;
 1008   std::string OldSuffix, NewSuffix;
 1018     std::string Identifier =
 1130   for (std::string &Name : Cleanup) {
tools/llc/llc.cpp
   61 static cl::opt<std::string>
   64 static cl::opt<std::string>
   67 static cl::opt<std::string>
   70 static cl::opt<std::string>
   98 static cl::opt<std::string>
  101 static cl::opt<std::string> SplitDwarfFile(
  134 static cl::list<std::string> IncludeDirs("I", cl::desc("include search path"));
  147 static cl::opt<std::string>
  152 static cl::opt<std::string>
  158 static cl::opt<std::string> RemarksFormat(
  164 static ManagedStatic<std::vector<std::string>> RunPassNames;
  167   void operator=(const std::string &Val) const {
  180 static cl::opt<RunPassOption, true, cl::parser<std::string>> RunPass(
  384   std::string Banner = std::string("After ") + std::string(P->getPassName());
  427   std::string Error;
  435   std::string CPUStr = getCPUStr(), FeaturesStr = getFeaturesStr();
  511     std::string Prefix =
  565       for (const std::string &RunPassName : *RunPassNames) {
tools/lld/COFF/Chunks.cpp
  339   std::vector<std::string> symbolLocations =
  342   std::string out;
  345   for (const std::string &s : symbolLocations)
tools/lld/COFF/Config.h
   92   std::string outputFile;
   93   std::string importName;
  109   std::vector<std::string> natvisFiles;
  118   std::set<std::string> noDefaultLibs;
  126   std::set<std::string> delayLoads;
  127   std::map<std::string, int> dllOrder;
  164   std::vector<std::string> manifestInput;
  170   std::map<std::string, int> alignComm;
  182   std::string mapFile;
tools/lld/COFF/DLL.cpp
  142   std::map<std::string, std::vector<DefinedImportData *>,
  143            bool(*)(const std::string &, const std::string &)> m(less);
  143            bool(*)(const std::string &, const std::string &)> m(less);
tools/lld/COFF/DebugTypes.cpp
   50   static std::map<std::string, std::pair<std::string, TypeServerSource *>>
   50   static std::map<std::string, std::pair<std::string, TypeServerSource *>>
  131 std::map<std::string, std::pair<std::string, TypeServerSource *>>
  131 std::map<std::string, std::pair<std::string, TypeServerSource *>>
  135 static std::string getPdbBaseName(const ObjFile *file, StringRef tSPath) {
  149 static std::string normalizePdbPath(StringRef path) {
  158 static Optional<std::string> findPdbPath(StringRef pdbPath,
  166   std::string ret = getPdbBaseName(dependentFile, pdbPath);
  178   Optional<std::string> p = findPdbPath(ts.Name, dependentFile);
  188   std::pair<std::string, TypeServerSource *> &pdb = it->second;
  222   Optional<std::string> p = findPdbPath(ts.Name, dependentFile);
  239   std::string path = normalizePdbPath(m.getBufferIdentifier());
tools/lld/COFF/Driver.cpp
  106 static std::string getOutputPath(StringRef path) {
  129 static std::future<MBErrPair> createFutureForFile(std::string path) {
  231   std::string pathStr = path;
  235       std::string msg =
  242       std::string nearest;
  301   std::string childName = CHECK(
  495   Optional<std::string> envOpt = Process::GetEnv("LIB");
  594 static std::string createResponseFile(const opt::InputArgList &args,
  625     std::string relPath = relativeToRoot(path);
  698 static std::string getMapFile(const opt::InputArgList &args) {
  710 static std::string getImplibPath() {
  725 static std::string getImportName(bool asLib) {
  761   std::string libName = getImportName(asLib);
  762   std::string path = getImplibPath();
  895   for (std::string s : args::getLines(mb->getMemBufferRef())) {
 1078 Optional<std::string> getReproduceFile(const opt::InputArgList &args) {
 1154   if (Optional<std::string> path = getReproduceFile(args)) {
 1368     std::string str = StringRef(arg->getValue()).lower();
tools/lld/COFF/Driver.h
  111   std::set<std::string> visitedLibs;
  195 void runMSVCLinker(std::string rsp, ArrayRef<StringRef> objects);
tools/lld/COFF/DriverUtils.cpp
   52   void add(std::string &s) { args.push_back(saver.save(s)); }
   57     ErrorOr<std::string> exeOrErr = sys::findProgramByName(prog);
  117   std::string sysStrLower = sysStr.lower();
  355   std::string path;
  359 static std::string createDefaultXml() {
  360   std::string ret;
  389 static std::string createManifestXmlWithInternalMt(StringRef defaultXml) {
  409 static std::string createManifestXmlWithExternalMt(StringRef defaultXml) {
  439 static std::string createManifestXml() {
  440   std::string defaultXml = createDefaultXml();
  495   std::string manifest = createManifestXml();
  510   std::string path = config->manifestFile;
  691     std::string sourceStr = source ? toString(source) : "cmd-line";
  692     std::string existingStr =
  707   std::vector<std::string> duplicates;
  828     std::string msg = "Command line:";
  847     std::string nearest;
  893   if (Optional<std::string> s = Process::GetEnv("LINK")) {
  897   if (Optional<std::string> s = Process::GetEnv("_LINK_")) {
tools/lld/COFF/InputFiles.cpp
   57 std::string toString(const coff::InputFile *file) {
  804   Optional<std::pair<std::string, unsigned>> ret = dwarf->getVariableLoc(var);
  883   std::string path = mb.getBufferIdentifier().str();
  918       std::string fallback = objSym.getCOFFWeakExternalFallback();
  953 std::string replaceThinLTOSuffix(StringRef path) {
tools/lld/COFF/InputFiles.h
  313   std::string dllName;
  360 std::string replaceThinLTOSuffix(StringRef path);
  363 std::string toString(const coff::InputFile *file);
tools/lld/COFF/LTO.cpp
   57 static std::string getThinLTOOutputFile(StringRef path) {
  170     std::string path = getThinLTOOutputFile(s);
tools/lld/COFF/MapFile.cpp
   75 static DenseMap<DefinedRegular *, std::string>
   77   std::vector<std::string> str(syms.size());
   84   DenseMap<DefinedRegular *, std::string> ret;
  102   DenseMap<DefinedRegular *, std::string> symStr = getSymbolStrings(syms);
tools/lld/COFF/PDB.cpp
 1370 static std::string quote(ArrayRef<StringRef> args) {
 1371   std::string r;
 1431   std::string argStr = quote(args);
 1511   std::map<std::string, llvm::pdb::DbiModuleDescriptorBuilder *> dllToModuleDbi;
 1523     std::string dll = StringRef(file->dllName).lower();
tools/lld/COFF/SymbolTable.cpp
  102 static std::vector<std::string> getSymbolLocations(BitcodeFile *file) {
  103   std::string res("\n>>> referenced by ");
  138 std::vector<std::string> getSymbolLocations(ObjFile *file, uint32_t symIndex) {
  165   std::vector<std::string> symbolLocations(locations.size());
  180 std::vector<std::string> getSymbolLocations(InputFile *file,
  202   std::string out;
  209     std::vector<std::string> symbolLocations =
  212     for (const std::string &s : symbolLocations) {
  521 static std::string getSourceLocationBitcode(BitcodeFile *file) {
  522   std::string res("\n>>> defined at ");
  530 static std::string getSourceLocationObj(ObjFile *file, SectionChunk *sc,
  538   std::string res;
  547 static std::string getSourceLocation(InputFile *file, SectionChunk *sc,
  566   std::string msg;
  755     std::string prefix = t.str();
tools/lld/COFF/SymbolTable.h
  136 std::vector<std::string> getSymbolLocations(ObjFile *file, uint32_t symIndex);
tools/lld/COFF/Symbols.cpp
   30 static std::string maybeDemangleSymbol(StringRef symName) {
   32     std::string prefix;
   39     std::string demangled = demangle(demangleInput);
   46 std::string toString(coff::Symbol &b) {
   49 std::string toCOFFString(const Archive::Symbol &b) {
tools/lld/COFF/Symbols.h
   25 std::string toString(coff::Symbol &b);
   30 std::string toCOFFString(const coff::Archive::Symbol &b);
tools/lld/COFF/Writer.cpp
  712       std::string key1 =
  714       std::string key2 =
  967     std::string dll = StringRef(file->dllName).lower();
tools/lld/Common/DWARF.cpp
   72 Optional<std::pair<std::string, unsigned>>
   80   std::string fileName;
tools/lld/Common/ErrorHandler.cpp
  111 std::string ErrorHandler::getLocation(const Twine &msg) {
  133   std::string str = msg.str();
  180     std::string str = msg.str();
tools/lld/Common/Reproduce.cpp
   24 std::string lld::relativeToRoot(StringRef path) {
   45 std::string lld::quote(StringRef s) {
   53 std::string lld::toString(const opt::Arg &arg) {
   54   std::string k = arg.getSpelling();
   57   std::string v = quote(arg.getValue());
tools/lld/Common/Strings.cpp
   22 std::string lld::demangleItanium(StringRef name) {
tools/lld/Common/TargetOptionsCommandFlags.cpp
   37 std::string lld::getCPUStr() { return ::getCPUStr(); }
   39 std::vector<std::string> lld::getMAttrs() { return ::MAttrs; }
tools/lld/Common/Timer.cpp
   70   std::string s = std::string(depth * 2, ' ') + name + std::string(":");
tools/lld/Common/Version.cpp
   21 std::string lld::getLLDVersion() {
tools/lld/ELF/Arch/MipsArchTree.cpp
  260 static std::string getFullArchName(uint32_t flags) {
tools/lld/ELF/Config.h
  115   std::string rpath;
tools/lld/ELF/Driver.cpp
  274   if (Optional<std::string> path = searchLibrary(name))
  509 static std::string getRpath(opt::InputArgList &args) {
  805   std::string err;
 1081     if (Optional<std::string> path = searchScript(arg->getValue())) {
 1171       if (Optional<std::string> path = searchScript(arg->getValue())) {
tools/lld/ELF/Driver.h
   67 std::string createResponseFile(const llvm::opt::InputArgList &args);
   69 llvm::Optional<std::string> findFromSearchPaths(StringRef path);
   70 llvm::Optional<std::string> searchScript(StringRef path);
   71 llvm::Optional<std::string> searchLibraryBaseName(StringRef path);
   72 llvm::Optional<std::string> searchLibrary(StringRef path);
tools/lld/ELF/DriverUtils.cpp
  136     std::string nearest;
  160 static std::string rewritePath(StringRef s) {
  168 std::string createResponseFile(const opt::InputArgList &args) {
  207 static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
  219 Optional<std::string> findFromSearchPaths(StringRef path) {
  221     if (Optional<std::string> s = findFile(dir, path))
  228 Optional<std::string> searchLibraryBaseName(StringRef name) {
  231       if (Optional<std::string> s = findFile(dir, "lib" + name + ".so"))
  233     if (Optional<std::string> s = findFile(dir, "lib" + name + ".a"))
  240 Optional<std::string> searchLibrary(StringRef name) {
  249 Optional<std::string> searchScript(StringRef name) {
tools/lld/ELF/InputFiles.cpp
   41 std::string toString(const elf::InputFile *f) {
  223 static std::string createFileLineMsg(StringRef path, unsigned line) {
  224   std::string filename = path::filename(path);
  225   std::string lineno = ":" + std::to_string(line);
  232 static std::string getSrcMsgAux(ObjFile<ELFT> &file, const Symbol &sym,
  240   if (Optional<std::pair<std::string, unsigned>> fileLine =
  248 std::string InputFile::getSrcMsg(const Symbol &sym, InputSectionBase &sec,
  274 Optional<std::pair<std::string, unsigned>>
  489   else if (Optional<std::string> s = findFromSearchPaths(specifier))
  491   else if (Optional<std::string> s = searchLibraryBaseName(specifier))
 1364   std::string path = mb.getBufferIdentifier().str();
 1453   std::string s = "_binary_" + mb.getBufferIdentifier().str();
 1558 std::string replaceThinLTOSuffix(StringRef path) {
tools/lld/ELF/InputFiles.h
   37 std::string toString(const elf::InputFile *f);
   99   std::string archiveName;
  109   mutable std::string toStringCache;
  111   std::string getSrcMsg(const Symbol &sym, InputSectionBase &sec,
  224   llvm::Optional<std::pair<std::string, unsigned>> getVariableLoc(StringRef name);
  357   std::string soName;
  384 std::string replaceThinLTOSuffix(StringRef path);
tools/lld/ELF/InputSection.cpp
   42 std::string toString(const elf::InputSectionBase *sec) {
  295 std::string InputSectionBase::getLocation(uint64_t offset) {
  296   std::string secAndOffset = (name + "+0x" + utohexstr(offset)).str();
  310   std::string srcFile = getFile<ELFT>()->sourceFile;
  327 std::string InputSectionBase::getSrcMsg(const Symbol &sym, uint64_t offset) {
  340 std::string InputSectionBase::getObjMsg(uint64_t off) {
  341   std::string filename = file->getName();
  343   std::string archive;
  857       std::string msg = getLocation<ELFT>(offset) +
tools/lld/ELF/InputSection.h
  173   template <class ELFT> std::string getLocation(uint64_t offset);
  174   std::string getSrcMsg(const Symbol &sym, uint64_t offset);
  175   std::string getObjMsg(uint64_t offset);
  361 std::string toString(const elf::InputSectionBase *);
tools/lld/ELF/LTO.cpp
   61 static std::string getThinLTOOutputFile(StringRef modulePath) {
  220     std::string path = replaceThinLTOSuffix(getThinLTOOutputFile(f->getName()));
  261     std::string path = getThinLTOOutputFile(s);
tools/lld/ELF/LinkerScript.cpp
  323 static std::string getFilename(InputFile *file) {
  334   std::string filename = getFilename(s->file);
  429       std::string filename = getFilename(sec->file);
tools/lld/ELF/LinkerScript.h
   63   std::string loc;
   87   SymbolAssignment(StringRef name, Expr e, std::string loc)
  106   std::string location;
  109   std::string commandString;
  134   std::string name;
  187   ByteCommand(Expr e, unsigned size, std::string commandString)
  194   std::string commandString;
tools/lld/ELF/MapFile.cpp
   84 static DenseMap<Symbol *, std::string>
   86   std::vector<std::string> str(syms.size());
   96   DenseMap<Symbol *, std::string> ret;
  156   DenseMap<Symbol *, std::string> symStr = getSymbolStrings(syms);
tools/lld/ELF/OutputSections.h
   89   std::string location;
   90   std::string memoryRegionName;
   91   std::string lmaRegionName;
tools/lld/ELF/Relocations.cpp
   67 static Optional<std::string> getLinkerScriptLocation(const Symbol &sym) {
   80 static std::string getLocation(InputSectionBase &s, const Symbol &sym,
   82   std::string msg = "\n>>> defined in ";
   85   else if (Optional<std::string> loc = getLinkerScriptLocation(sym))
   89   std::string src = s.getSrcMsg(sym, off);
  652 static std::string maybeReportDiscarded(Undefined &sym) {
  660   std::string msg;
  730     std::string newName = (name.substr(0, i) + "0" + name.substr(i)).str();
  783   std::string msg = maybeReportDiscarded<ELFT>(cast<Undefined>(sym));
  796     std::string src = sec.getSrcMsg(sym, offset);
tools/lld/ELF/ScriptLexer.cpp
   66 std::string ScriptLexer::getCurrentLocation() {
   67   std::string filename = getCurrentMB().getBufferIdentifier();
   78   std::string s = (getCurrentLocation() + ": " + msg).str();
tools/lld/ELF/ScriptLexer.h
   36   std::string getCurrentLocation();
tools/lld/ELF/ScriptParser.cpp
  301     if (Optional<std::string> path = findFromSearchPaths(s))
  349   if (Optional<std::string> path = searchScript(tok)) {
  768 static Expr checkAlignment(Expr e, std::string &loc) {
  800   std::string location = getCurrentLocation();
  935     std::string loc = getCurrentLocation();
  961     std::string loc = getCurrentLocation();
  970     std::string loc = getCurrentLocation();
 1035   std::string location = getCurrentLocation();
 1099   std::string commandString =
 1138   std::string location = getCurrentLocation();
tools/lld/ELF/Symbols.cpp
   28 static std::string demangle(StringRef symName) {
   34 std::string toString(const elf::Symbol &b) { return demangle(b.getName()); }
   35 std::string toELFString(const Archive::Symbol &b) {
  300   std::string s;
  585   std::string src1 = sec1->getSrcMsg(*sym, d->value);
  586   std::string obj1 = sec1->getObjMsg(d->value);
  587   std::string src2 = errSec->getSrcMsg(*sym, errOffset);
  588   std::string obj2 = errSec->getObjMsg(errOffset);
  590   std::string msg = "duplicate symbol: " + toString(*sym) + "\n>>> defined at ";
tools/lld/ELF/Symbols.h
   24 std::string toString(const elf::Symbol &);
   29 std::string toELFString(const llvm::object::Archive::Symbol &);
tools/lld/ELF/SyntheticSections.cpp
  112     std::string filename = toString(sec->file);
  184     std::string filename = toString(sec->file);
tools/lld/ELF/Target.cpp
   39 std::string toString(elf::RelType type) {
tools/lld/ELF/Target.h
   19 std::string toString(elf::RelType type);
  156   std::string loc;
  162 static inline std::string getErrorLocation(const uint8_t *loc) {
tools/lld/ELF/Thunks.cpp
  747   std::string buf;
tools/lld/ELF/Writer.cpp
 2332 static std::string rangeToString(uint64_t addr, uint64_t len) {
tools/lld/MinGW/Driver.cpp
  113 static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
  122 static std::string
  126       if (Optional<std::string> s = findFile(dir, name.substr(1)))
  134       if (Optional<std::string> s = findFile(dir, "lib" + name + ".dll.a"))
  136       if (Optional<std::string> s = findFile(dir, name + ".dll.a"))
  139     if (Optional<std::string> s = findFile(dir, "lib" + name + ".a"))
  142       if (Optional<std::string> s = findFile(dir, name + ".lib"))
  144       if (Optional<std::string> s = findFile(dir, "lib" + name + ".dll")) {
  149       if (Optional<std::string> s = findFile(dir, name + ".dll")) {
  196   std::vector<std::string> linkArgs;
  382   for (const std::string &s : linkArgs)
tools/lld/include/lld/Common/DWARF.h
   31   llvm::Optional<std::pair<std::string, unsigned>>
tools/lld/include/lld/Common/ErrorHandler.h
  106   std::string getLocation(const Twine &msg);
  143 T check2(ErrorOr<T> e, llvm::function_ref<std::string()> prefix) {
  150 T check2(Expected<T> e, llvm::function_ref<std::string()> prefix) {
  156 inline std::string toString(const Twine &s) { return s.str(); }
tools/lld/include/lld/Common/Reproduce.h
   25 std::string relativeToRoot(StringRef path);
   28 std::string quote(StringRef s);
   31 std::string toString(const llvm::opt::Arg &arg);
tools/lld/include/lld/Common/Strings.h
   22 std::string demangleItanium(llvm::StringRef name);
tools/lld/include/lld/Common/TargetOptionsCommandFlags.h
   21 std::string getCPUStr();
   22 std::vector<std::string> getMAttrs();
tools/lld/include/lld/Common/Timer.h
   52   std::string name;
tools/lld/include/lld/Common/Version.h
   21 std::string getLLDVersion();
tools/lld/include/lld/Core/Error.h
   50   const std::string &getMessage() const { return Msg; }
   58   std::string Msg;
tools/lld/include/lld/Core/File.h
  232   std::string _archivePath;
  233   mutable std::string _archiveMemberPath;
tools/lld/include/lld/Core/LinkingContext.h
  174   virtual std::string demangle(StringRef symbolName) const = 0;
tools/lld/include/lld/ReaderWriter/MachOLinkingContext.h
   92   std::string demangle(StringRef symbolName) const override;
tools/lld/lib/Core/Error.cpp
   25   std::string message(int ev) const override {
   56   std::string message(int ev) const override {
   63   int add(std::string msg) {
   74   std::vector<std::string> _messages;
tools/lld/lib/Driver/DarwinLdDriver.cpp
  147 static std::string canonicalizePath(StringRef path) {
  150     std::string fixedPath = path;
  535       std::string Msg;
tools/lld/lib/ReaderWriter/FileArchive.cpp
  144     std::string memberPath = (_archive->getFileName() + "("
tools/lld/lib/ReaderWriter/MachO/ArchHandler_arm.cpp
 1423     std::string name = std::string(targetName) + "$shim";
 1468     std::string name = std::string(targetName) + "$shim";
tools/lld/lib/ReaderWriter/MachO/Atoms.h
  135   const std::string _name;
tools/lld/lib/ReaderWriter/MachO/LayoutPass.cpp
   34 static std::string formatReason(StringRef reason, int leftVal, int rightVal) {
   55 static std::string atomToDebugString(const Atom *atom) {
   57   std::string str;
  178                             std::string &reason) {
  252   std::string reason;
tools/lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  448   std::string key = path.str();
  836       std::string abi2className("_OBJC_CLASS_$_");
  839       std::string abi2metaclassName("_OBJC_METACLASS_$_");
  863 std::string MachOLinkingContext::demangle(StringRef symbolName) const {
  879     std::string result(demangled);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  854   std::unordered_set<std::string> seenFiles;
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  259       std::string segSectName = section.segmentName.str()
  477         std::string segSectName = section.segmentName.str()
  696   std::string strName = name.str();
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp
  772     std::string buffer;
tools/lld/lib/ReaderWriter/MachO/SectCreateFile.h
   57     std::string _combinedName;
tools/lld/lib/ReaderWriter/YAML/ReaderWriterYAML.cpp
   88           std::string storage;
  118       std::string Storage;
  132         std::string Storage2;
  162   typedef llvm::DenseMap<const lld::Atom *, std::string> AtomToRefName;
tools/lld/unittests/DriverTests/DarwinLdDriverTest.cpp
   34   std::string inputFile(int index) {
tools/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
   37 static void toYAML(const NormalizedFile &f, std::string &out) {
  141   std::string intermediate;
tools/lld/wasm/Config.h
   66   llvm::Optional<std::vector<std::string>> features;
tools/lld/wasm/Driver.cpp
  150 static Optional<std::string> findFile(StringRef path1, const Twine &path2) {
  261     if (Optional<std::string> s = findFile(dir, "lib" + name + ".a")) {
  540 static std::string createResponseFile(const opt::InputArgList &args) {
tools/lld/wasm/InputChunks.cpp
   35 std::string toString(const wasm::InputChunk *c) {
tools/lld/wasm/InputChunks.h
  228 std::string toString(const wasm::InputChunk *);
tools/lld/wasm/InputEvent.h
   56 inline std::string toString(const wasm::InputEvent *e) {
tools/lld/wasm/InputFiles.cpp
   32 std::string toString(const wasm::InputFile *file) {
tools/lld/wasm/InputFiles.h
   57   std::string archiveName;
  174 std::string toString(const wasm::InputFile *file);
tools/lld/wasm/InputGlobal.h
   49 inline std::string toString(const wasm::InputGlobal *g) {
tools/lld/wasm/OutputSections.cpp
   27 std::string toString(const wasm::OutputSection &sec) {
tools/lld/wasm/OutputSections.h
   23 std::string toString(const wasm::OutputSection &section);
   31   OutputSection(uint32_t type, std::string name = "")
   48   std::string header;
   51   std::string name;
   72   std::string codeSectionHeader;
   90   std::string dataSectionHeader;
  103   CustomSection(std::string name, ArrayRef<InputSection *> inputSections)
  117   std::string nameData;
tools/lld/wasm/OutputSegment.h
   47   std::string header;
tools/lld/wasm/SymbolTable.cpp
  669   std::string msg = ("function signature mismatch: " + symName +
tools/lld/wasm/Symbols.cpp
   26 std::string toString(const wasm::Symbol &sym) {
   30 std::string maybeDemangleSymbol(StringRef name) {
   36 std::string toString(wasm::Symbol::Kind kind) {
  347   std::string s;
tools/lld/wasm/Symbols.h
  546 std::string toString(const wasm::Symbol &sym);
  547 std::string toString(wasm::Symbol::Kind kind);
  548 std::string maybeDemangleSymbol(StringRef name);
tools/lld/wasm/SyntheticSections.cpp
   50   std::string body;
  563   SmallVector<std::string, 8> emitted(features.begin(), features.end());
tools/lld/wasm/SyntheticSections.h
   38   SyntheticSection(uint32_t type, std::string name = "")
   65   std::string body;
  307   SmallVector<std::pair<std::string, std::string>, 8> languages;
  307   SmallVector<std::pair<std::string, std::string>, 8> languages;
  308   SmallVector<std::pair<std::string, std::string>, 8> tools;
  308   SmallVector<std::pair<std::string, std::string>, 8> tools;
  309   SmallVector<std::pair<std::string, std::string>, 8> sDKs;
  309   SmallVector<std::pair<std::string, std::string>, 8> sDKs;
  321   llvm::SmallSet<std::string, 8> features;
tools/lld/wasm/Writer.cpp
   95   std::string header;
  372   StringMap<std::string> used;
  373   StringMap<std::string> required;
  374   StringMap<std::string> disallowed;
  375   SmallSet<std::string, 8> &allowed = out.targetFeaturesSec->features;
  461     SmallSet<std::string, 8> objectFeatures;
  705   std::string functionBody;
  719   std::string bodyContent;
  845   std::string bodyContent;
  865   std::string bodyContent;
  891   std::string bodyContent;
tools/lld/wasm/WriterUtils.cpp
   21 std::string toString(ValType type) {
   39 std::string toString(const WasmSignature &sig) {
   54 std::string toString(const WasmGlobalType &type) {
   59 std::string toString(const WasmEventType &type) {
tools/lld/wasm/WriterUtils.h
   65 std::string toString(llvm::wasm::ValType type);
   66 std::string toString(const llvm::wasm::WasmSignature &sig);
   67 std::string toString(const llvm::wasm::WasmGlobalType &type);
   68 std::string toString(const llvm::wasm::WasmEventType &type);
tools/lldb/include/lldb/Breakpoint/Breakpoint.h
  149                                    std::vector<std::string> &names);
  531   void GetNames(std::vector<std::string> &names) {
  641   std::unordered_set<std::string> m_name_list; // If not empty, this is the name
  659   std::string m_kind_description;
tools/lldb/include/lldb/Breakpoint/BreakpointName.h
  203   std::string        m_help;
tools/lldb/include/lldb/Breakpoint/BreakpointOptions.h
   65     std::string script_source;
  395   std::string m_condition_text;
tools/lldb/include/lldb/Breakpoint/BreakpointResolverFileRegex.h
   28       const std::unordered_set<std::string> &func_name_set, bool exact_match);
   67   std::unordered_set<std::string> m_function_names; // Limit the search to
tools/lldb/include/lldb/Breakpoint/BreakpointResolverName.h
   40   BreakpointResolverName(Breakpoint *bkpt, std::vector<std::string> names,
tools/lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h
   64   std::string m_class_name;
tools/lldb/include/lldb/Breakpoint/Watchpoint.h
   84   void SetDeclInfo(const std::string &str);
   85   std::string GetWatchSpec();
   86   void SetWatchSpec(const std::string &str);
  192   std::string m_decl_str;       // Declaration information, if any.
  193   std::string m_watch_spec_str; // Spec for the watchpoint.
tools/lldb/include/lldb/Breakpoint/WatchpointList.h
   75   const lldb::WatchpointSP FindBySpec(std::string spec) const;
  105   lldb::watch_id_t FindIDBySpec(std::string spec);
tools/lldb/include/lldb/Breakpoint/WatchpointOptions.h
  174     std::string script_source;
tools/lldb/include/lldb/Core/Communication.h
  307   std::string
tools/lldb/include/lldb/Core/Disassembler.h
  225   std::string m_opcode_name;
  226   std::string m_mnemonics;
  227   std::string m_comment;
  345   std::string m_description;
  542   std::string m_flavor;
tools/lldb/include/lldb/Core/EmulateInstruction.h
  383                                        uint32_t reg_num, std::string &reg_name);
tools/lldb/include/lldb/Core/FormatEntity.h
  169     std::string string;
  170     std::string printf_format;
tools/lldb/include/lldb/Core/Highlighter.h
   29     std::string m_prefix;
   30     std::string m_suffix;
  119   std::string Highlight(const HighlightStyle &options, llvm::StringRef line,
tools/lldb/include/lldb/Core/IOHandler.h
  242                                       std::string &data) = 0;
  245                                          std::string &data) {}
  319   const std::string m_end_line;
  392   bool GetLine(std::string &line, bool &interrupted);
  424   std::string m_prompt;
  425   std::string m_continuation_prompt;
  434   std::string m_line_buffer;
  452                               std::string &data) override;
tools/lldb/include/lldb/Core/LoadedModuleInfoList.h
   39     void set_name(const std::string &name) {
   43     bool get_name(std::string &out) const {
   98     std::string m_name;
tools/lldb/include/lldb/Core/Module.h
  213   std::string GetSpecificationDescription() const;
  863   bool RemapSourceFile(llvm::StringRef path, std::string &new_path) const;
  864   bool RemapSourceFile(const char *, std::string &) const = delete;
tools/lldb/include/lldb/Core/STLUtils.h
   71 typedef std::vector<std::string> STLStringArray;
tools/lldb/include/lldb/Core/SourceManager.h
   51     bool GetLine(uint32_t line_no, std::string &buffer);
tools/lldb/include/lldb/Core/StreamAsynchronousIO.h
   34   std::string m_data;
tools/lldb/include/lldb/Core/ValueObject.h
  431                                  std::string &destination);
  433   bool GetValueAsCString(lldb::Format format, std::string &destination);
  503   GetSummaryAsCString(TypeSummaryImpl *summary_ptr, std::string &destination,
  506   bool GetSummaryAsCString(std::string &destination,
  510                            std::string &destination,
  513   std::pair<TypeValidatorResult, std::string> GetValidationStatus();
  848   std::string m_value_str; // Cached value string that will get cleared if/when
  850   std::string m_old_value_str; // Cached old value string from the last time the
  852   std::string m_location_str;  // Cached location string that will get cleared
  854   std::string m_summary_str;   // Cached summary string that will get cleared
  856   std::string m_object_desc_str; // Cached result of the "object printer".  This
  860   llvm::Optional<std::pair<TypeValidatorResult, std::string>>
tools/lldb/include/lldb/DataFormatters/DumpValueObjectOptions.h
  136   std::string m_root_valobj_name;
tools/lldb/include/lldb/DataFormatters/FormatClasses.h
  154     std::string m_type_name;
tools/lldb/include/lldb/DataFormatters/FormattersContainer.h
   49   std::string type_cstr(type.AsCString());
  173   FormattersContainer(std::string name, IFormatChangeListener *lst)
  223   std::string m_name;
tools/lldb/include/lldb/DataFormatters/FormattersHelpers.h
   51                std::vector<std::string> children, const char *description,
tools/lldb/include/lldb/DataFormatters/StringPrinter.h
   35     void SetPrefixToken(const std::string &p) { m_prefix_token = p; }
   41     void SetSuffixToken(const std::string &p) { m_suffix_token = p; }
   79     std::string m_prefix_token;
   81     std::string m_suffix_token;
tools/lldb/include/lldb/DataFormatters/TypeCategory.h
  364   std::string GetDescription();
tools/lldb/include/lldb/DataFormatters/TypeFormat.h
  147   virtual bool FormatObject(ValueObject *valobj, std::string &dest) const = 0;
  149   virtual std::string GetDescription() = 0;
  176   bool FormatObject(ValueObject *valobj, std::string &dest) const override;
  178   std::string GetDescription() override;
  204   bool FormatObject(ValueObject *valobj, std::string &dest) const override;
  206   std::string GetDescription() override;
tools/lldb/include/lldb/DataFormatters/TypeSummary.h
  256   virtual bool FormatObject(ValueObject *valobj, std::string &dest,
  259   virtual std::string GetDescription() = 0;
  278   std::string m_format_str;
  290   bool FormatObject(ValueObject *valobj, std::string &dest,
  293   std::string GetDescription() override;
  312   std::string m_description;
  332   bool FormatObject(ValueObject *valobj, std::string &dest,
  335   std::string GetDescription() override;
  349   std::string m_function_name;
  350   std::string m_python_script;
  378   bool FormatObject(ValueObject *valobj, std::string &dest,
  381   std::string GetDescription() override;
tools/lldb/include/lldb/DataFormatters/TypeSynthetic.h
  254   virtual std::string GetDescription() = 0;
  272   std::vector<std::string> m_expression_paths;
  301   void AddExpressionPath(const std::string &path);
  303   bool SetExpressionPathAtIndex(size_t i, const std::string &path);
  307   std::string GetDescription() override;
  362   std::string GetDescription() override;
  372   std::string m_description;
  379   std::string m_python_class;
  380   std::string m_python_code;
  403   std::string GetDescription() override;
  409     FrontEnd(std::string pclass, ValueObject &backend);
  434     std::string m_python_class;
tools/lldb/include/lldb/DataFormatters/TypeValidator.h
  139     std::string m_message;
  150   virtual std::string GetDescription() = 0;
  154   static ValidationResult Failure(std::string message);
  170   TypeValidatorImpl_CXX(ValidatorFunction f, std::string d,
  189   std::string GetDescription() override;
  192   std::string m_description;
tools/lldb/include/lldb/DataFormatters/ValueObjectPrinter.h
   93   void GetValueSummaryError(std::string &value, std::string &summary,
   93   void GetValueSummaryError(std::string &value, std::string &summary,
   94                             std::string &error);
  144   std::string m_value;
  145   std::string m_summary;
  146   std::string m_error;
  148   std::pair<TypeValidatorResult, std::string> m_validation;
tools/lldb/include/lldb/Expression/DiagnosticManager.h
   85   std::string m_message;
  134   std::string GetString(char separator = '\n');
  138   const std::string &GetFixedExpression() { return m_fixed_expression; }
  141   void SetFixedExpression(std::string fixed_expression) {
  147   std::string m_fixed_expression;
tools/lldb/include/lldb/Expression/ExpressionSourceCode.h
   38   std::string m_name;
   39   std::string m_prefix;
   40   std::string m_body;
tools/lldb/include/lldb/Expression/FunctionCaller.h
  309   std::string
  320   std::string m_wrapper_function_name; ///< The name of the wrapper function.
  321   std::string
  323   std::string m_wrapper_struct_name; ///< The name of the struct that contains
tools/lldb/include/lldb/Expression/IRExecutionUnit.h
   64                   std::vector<std::string> &cpu_features);
  293     bool finalizeMemory(std::string *ErrMsg) override {
  304     uint64_t getSymbolAddress(const std::string &Name) override;
  308     uint64_t GetSymbolAddressAndPresence(const std::string &Name, 
  311     llvm::JITSymbol findSymbol(const std::string &Name) override;
  313     void *getPointerToNamedFunction(const std::string &Name,
  342     std::string m_name;
  377   std::vector<std::string> m_cpu_features;
tools/lldb/include/lldb/Expression/LLVMUserExpression.h
   97   std::string
tools/lldb/include/lldb/Expression/REPL.h
   87                                  std::string &line) override;
  104                               std::string &line) override;
  120   virtual bool SourceIsComplete(const std::string &source) = 0;
  133   virtual int CompleteCode(const std::string &current_code,
  139   std::string m_compiler_options;
  142   std::string m_indent_str; // Use this string for each level of indentation
  143   std::string m_current_indent_str;
  146   std::string m_repl_source_path;
  156   std::string GetSourcePath();
tools/lldb/include/lldb/Expression/UserExpression.h
  265            std::string *fixed_expression = nullptr,
  299   std::string m_expr_text; ///< The text of the expression, as typed by the user
  300   std::string m_expr_prefix; ///< The text of the translation-level definitions,
  302   std::string m_fixed_text; ///< The text of the expression with fix-its applied
tools/lldb/include/lldb/Expression/UtilityFunction.h
  112   std::string m_function_text; ///< The text of the function.  Must be a
  114   std::string m_function_name; ///< The name of the function.
tools/lldb/include/lldb/Host/Editline.h
   69 using EditLineStringType = std::string;
  195   bool GetLine(std::string &line, bool &interrupted);
  212   std::string PromptForIndex(int line_index);
  342   std::string m_set_prompt;
  343   std::string m_set_continuation_prompt;
  344   std::string m_current_prompt;
  346   std::string m_editor_name;
tools/lldb/include/lldb/Host/FileSystem.h
  182   llvm::ErrorOr<std::string> GetExternalPath(const llvm::Twine &path);
  183   llvm::ErrorOr<std::string> GetExternalPath(const FileSpec &file_spec);
tools/lldb/include/lldb/Host/Host.h
  209                                 int *signo_ptr, std::string *command_output,
  223                                 std::string *command_output,
tools/lldb/include/lldb/Host/OptionParser.h
   50   static std::string GetShortOptionString(struct option *long_options);
tools/lldb/include/lldb/Host/ProcessLaunchInfo.h
  152   std::string m_plugin_name;
  161   std::string m_event_data; // A string passed to the plugin launch, having no
tools/lldb/include/lldb/Host/Socket.h
  102                                 std::string &host_str, std::string &port_str,
  102                                 std::string &host_str, std::string &port_str,
  106   virtual std::string GetRemoteConnectionURI() const { return ""; };
tools/lldb/include/lldb/Host/SocketAddress.h
   82   std::string GetIPAddress() const;
tools/lldb/include/lldb/Host/ThreadLauncher.h
   31     std::string thread_name;
tools/lldb/include/lldb/Host/XML.h
   38 typedef std::vector<std::string> NamePath;
   62   bool GetElementText(std::string &text) const;
  161   bool GetValueAsString(const char *key, std::string &value) const;
  172                                          std::string &value);
tools/lldb/include/lldb/Host/common/NativeProcessProtocol.h
   36   std::string name;
tools/lldb/include/lldb/Host/common/NativeThreadProtocol.h
   26   virtual std::string GetName() = 0;
   33                              std::string &description) = 0;
tools/lldb/include/lldb/Host/common/TCPSocket.h
   28   std::string GetLocalIPAddress() const;
   36   std::string GetRemoteIPAddress() const;
   49   std::string GetRemoteConnectionURI() const override;
tools/lldb/include/lldb/Host/common/UDPSocket.h
   22   std::string GetRemoteConnectionURI() const override;
tools/lldb/include/lldb/Host/linux/HostInfoLinux.h
   33   static bool GetOSBuildString(std::string &s);
   34   static bool GetOSKernelDescription(std::string &s);
tools/lldb/include/lldb/Host/posix/ConnectionFileDescriptorPosix.h
   62   std::string GetURI() override;
  114   std::string m_uri;
tools/lldb/include/lldb/Host/posix/DomainSocket.h
   23   std::string GetRemoteConnectionURI() const override;
   30   std::string GetSocketName() const;
tools/lldb/include/lldb/Host/posix/HostInfoPosix.h
   24   static bool GetHostname(std::string &s);
   33   static bool GetEnvironmentVar(const std::string &var_name, std::string &var);
   33   static bool GetEnvironmentVar(const std::string &var_name, std::string &var);
tools/lldb/include/lldb/Interpreter/CommandAlias.h
   76   std::string m_option_string;
tools/lldb/include/lldb/Interpreter/CommandHistory.h
   51   typedef std::vector<std::string> History;
tools/lldb/include/lldb/Interpreter/CommandInterpreter.h
  246   bool GetAliasFullName(llvm::StringRef cmd, std::string &full_name) const;
  255                                   std::string &raw_input_string,
  256                                   std::string &alias_result,
  378                              std::string &raw_input_string,
  493                               std::string &line) override;
  516   Status PreprocessCommand(std::string &command);
  523   CommandObject *ResolveCommandImpl(std::string &command_line,
  566   std::string m_repeat_command; // Stores the command that will be executed for
tools/lldb/include/lldb/Interpreter/CommandObject.h
   36     const std::map<std::string, ValueType> &in_map, llvm::StringRef cmd_str,
   55 size_t FindLongestCommandWord(std::map<std::string, ValueType> &dict) {
  109   typedef std::map<std::string, lldb::CommandObjectSP> CommandMap;
  360   std::string m_cmd_name;
  361   std::string m_cmd_help_short;
  362   std::string m_cmd_help_long;
  363   std::string m_cmd_syntax;
tools/lldb/include/lldb/Interpreter/CommandObjectRegexCommand.h
   44     std::string command;
tools/lldb/include/lldb/Interpreter/OptionGroupArchitecture.h
   39   std::string m_arch_str; // Save the arch triple in case a platform is
tools/lldb/include/lldb/Interpreter/OptionGroupPlatform.h
   64   std::string m_platform_name;
tools/lldb/include/lldb/Interpreter/OptionGroupPythonClassWithDict.h
   48   const std::string &GetName() {
   53   std::string m_name;
   54   std::string m_current_key;
   56   std::string m_class_usage_text, m_key_usage_text, m_value_usage_text;
tools/lldb/include/lldb/Interpreter/OptionValueFormatEntity.h
   59   std::string m_current_format;
   60   std::string m_default_format;
tools/lldb/include/lldb/Interpreter/OptionValueString.h
  130   std::string m_current_value;
  131   std::string m_default_value;
tools/lldb/include/lldb/Interpreter/Options.h
   27 typedef std::vector<std::tuple<std::string, int, std::string>> OptionArgVector;
   27 typedef std::vector<std::tuple<std::string, int, std::string>> OptionArgVector;
  136                                   std::string &input_line);
tools/lldb/include/lldb/Interpreter/ScriptInterpreter.h
  125       std::string &output,
  133                                                      std::string &output) {
  138                                           std::string &output,
  144                                           std::string &output,
  150                                            std::string &output) {
  154   virtual bool GenerateTypeSynthClass(StringList &input, std::string &output,
  159   virtual bool GenerateTypeSynthClass(const char *oneliner, std::string &output,
  217                            std::string &error_str,
  340                                   std::string &retval) {
  403                                       Process *process, std::string &output,
  410                                       std::string &output, Status &error) {
  416                                       std::string &output, Status &error) {
  422                                       StackFrame *frame, std::string &output,
  429                                       ValueObject *value, std::string &output,
  435   virtual bool GetDocumentationForItem(const char *item, std::string &dest) {
  442                                std::string &dest) {
  453                                            std::string &dest) {
  482   static std::string LanguageToString(lldb::ScriptLanguage language);
tools/lldb/include/lldb/Symbol/ClangASTContext.h
  605                               std::string &class_name);
  734                                std::string &name, uint64_t *bit_offset_ptr,
  755       bool ignore_array_bounds, std::string &child_name,
  981   std::string m_target_triple;
tools/lldb/include/lldb/Symbol/CompilerType.h
  275   CompilerType GetFieldAtIndex(size_t idx, std::string &name,
  299       std::string &child_name, uint32_t &child_byte_size,
tools/lldb/include/lldb/Symbol/ObjectFile.h
  490   virtual std::string GetIdentifierString () { 
tools/lldb/include/lldb/Symbol/SymbolContext.h
  376   std::string m_module_spec;
  381   std::string m_function_spec;
  382   std::string m_class_name;
tools/lldb/include/lldb/Symbol/SymbolFile.h
  201   GetMangledNamesForFunction(const std::string &scope_qualified_name,
tools/lldb/include/lldb/Symbol/Type.h
  439                          const std::string &name,
  462   std::string GetPrintableTypeName();
tools/lldb/include/lldb/Symbol/TypeList.h
   54   void RemoveMismatchedTypes(const std::string &type_scope,
   55                              const std::string &type_basename,
tools/lldb/include/lldb/Symbol/TypeMap.h
   57   void RemoveMismatchedTypes(const std::string &type_scope,
   58                              const std::string &type_basename,
tools/lldb/include/lldb/Symbol/TypeSystem.h
  309                                        size_t idx, std::string &name,
  331       bool ignore_array_bounds, std::string &child_name,
tools/lldb/include/lldb/Target/InstrumentationRuntimeStopInfo.h
   32       Thread &thread, std::string description,
   36   InstrumentationRuntimeStopInfo(Thread &thread, std::string description,
tools/lldb/include/lldb/Target/Language.h
  208                                         std::string &prefix,
  209                                         std::string &suffix);
tools/lldb/include/lldb/Target/ModuleCache.h
   69   std::unordered_map<std::string, lldb::ModuleWP> m_loaded_modules;
tools/lldb/include/lldb/Target/PathMappingList.h
   81   bool RemapPath(llvm::StringRef path, std::string &new_path) const;
   82   bool RemapPath(const char *, std::string &) const = delete;
tools/lldb/include/lldb/Target/Platform.h
  214   bool GetOSBuildString(std::string &s);
  216   bool GetOSKernelDescription(std::string &s);
  242   virtual bool GetRemoteOSBuildString(std::string &s) {
  247   virtual bool GetRemoteOSKernelDescription(std::string &s) {
  436   const std::string &GetRemoteURL() const { return m_remote_url; }
  485                                    std::vector<std::string> &options);
  622       std::string
  630   virtual std::string GetPlatformSpecificConnectionInformation() { return ""; }
  662   virtual std::string
  799                                const std::vector<std::string> &paths,
  805                                const std::vector<std::string> *paths,
  843   std::string m_remote_url;
  844   std::string m_name;
  855   std::string m_rsync_opts;
  856   std::string m_rsync_prefix;
  858   std::string m_ssh_opts;
  860   std::string m_local_cache_directory;
  997   std::string m_rsync_opts;
  998   std::string m_rsync_prefix;
 1022   std::string m_ssh_opts;
 1044   std::string m_cache_dir;
tools/lldb/include/lldb/Target/Process.h
  188   std::string m_plugin_name;
  486     std::vector<std::string> m_restarted_reasons;
 1533   size_t ReadCStringFromMemory(lldb::addr_t vm_addr, std::string &out_str,
 2570     std::string m_exit_string;
 2669   std::string m_exit_string; ///< A textual description of why a process exited.
 2712   std::string m_stdout_data;
 2713   std::string m_stderr_data;
 2715   std::vector<std::string> m_profile_data;
 2818   void BroadcastAsyncProfileData(const std::string &one_profile_data);
tools/lldb/include/lldb/Target/ProcessStructReader.h
   51       std::string name;
tools/lldb/include/lldb/Target/Queue.h
  142   std::string m_queue_name;
tools/lldb/include/lldb/Target/QueueItem.h
  122   void SetThreadLabel(std::string thread_name) { m_thread_label = thread_name; }
  124   std::string GetThreadLabel();
  126   void SetQueueLabel(std::string queue_name) { m_queue_label = queue_name; }
  128   std::string GetQueueLabel();
  130   void SetTargetQueueLabel(std::string queue_name) {
  157   std::string m_thread_label;
  158   std::string m_queue_label;
  159   std::string m_target_queue_label;
tools/lldb/include/lldb/Target/RemoteAwarePlatform.h
   63   bool GetRemoteOSBuildString(std::string &s) override;
   64   bool GetRemoteOSKernelDescription(std::string &s) override;
   69                          std::string *command_output,
tools/lldb/include/lldb/Target/StackFrameRecognizer.h
   55   virtual std::string GetName() {
   71   std::string m_python_class;
   78   std::string GetName() override {
  109       std::function<void(uint32_t recognizer_id, std::string recognizer_name,
  110                          std::string module, std::string symbol,
  110                          std::string module, std::string symbol,
tools/lldb/include/lldb/Target/StopInfo.h
  166   std::string m_description; // A textual description describing this stop.
tools/lldb/include/lldb/Target/SystemRuntime.h
  188   virtual std::string
tools/lldb/include/lldb/Target/Target.h
  394   std::string m_prefix;
  420   mutable std::string m_pound_line_file;
  602       const std::unordered_set<std::string> &function_names,
  669                    const std::vector<std::string> &func_names,
  713   void GetBreakpointNames(std::vector<std::string> &names);
  766                                    std::vector<std::string> &names,
  988   size_t ReadCStringFromMemory(const Address &addr, std::string &out_str,
 1107       std::string *fixed_expression = nullptr, ValueObject *ctx_obj = nullptr);
tools/lldb/include/lldb/Target/Thread.h
  419                     bool can_leave_function, std::string *warnings = nullptr);
tools/lldb/include/lldb/Target/ThreadPlan.h
  597   std::string m_name;
tools/lldb/include/lldb/Target/ThreadPlanPython.h
   60   std::string m_class_name;
   65   std::string m_error_str;
tools/lldb/include/lldb/Target/ThreadSpec.h
  123   std::string m_name;
  124   std::string m_queue_name;
tools/lldb/include/lldb/Target/UnixSignals.h
  101     std::string m_description;
tools/lldb/include/lldb/Utility/AnsiTerminal.h
   62 inline std::string FormatAnsiTerminalCodes(llvm::StringRef format,
  109   std::string fmt;
tools/lldb/include/lldb/Utility/ArchSpec.h
  292   std::string GetClangTargetCPU() const;
  297   std::string GetTargetABI() const;
  508   void SetFlags(std::string elf_abi);
tools/lldb/include/lldb/Utility/Args.h
  105   bool GetCommandString(std::string &command) const;
  107   bool GetQuotedCommandString(std::string &command) const;
  292                                           std::string &safe_arg);
  301   static void EncodeEscapeSequences(const char *src, std::string &dst);
  309   static void ExpandEscapedCharacters(const char *src, std::string &dst);
  311   static std::string EscapeLLDBCommandArgument(const std::string &arg,
  311   static std::string EscapeLLDBCommandArgument(const std::string &arg,
  387   const std::string &GetRawPart() const { return m_suffix; }
  400   std::string m_suffix;
tools/lldb/include/lldb/Utility/Broadcaster.h
  507     typedef std::map<uint32_t, std::string> event_names_map;
tools/lldb/include/lldb/Utility/CompletionRequest.h
   38     std::string m_completion;
   39     std::string m_descripton;
   47     const std::string &GetCompletion() const { return m_completion; }
   48     const std::string &GetDescription() const { return m_descripton; }
   52     std::string GetUniqueKey() const;
  172     for (const std::string &completion : completions)
tools/lldb/include/lldb/Utility/Connection.h
  151   virtual std::string GetURI() = 0;
tools/lldb/include/lldb/Utility/Environment.h
   18 class Environment : private llvm::StringMap<std::string> {
   19   using Base = llvm::StringMap<std::string>;
   78   static std::string compose(const value_type &KeyValue) {
tools/lldb/include/lldb/Utility/Event.h
   79   void SwapBytes(std::string &new_bytes);
   93   std::string m_bytes;
tools/lldb/include/lldb/Utility/FileSpec.h
  316   std::string GetPath(bool denormalize = true) const;
tools/lldb/include/lldb/Utility/GDBRemote.h
   69     std::string data;
tools/lldb/include/lldb/Utility/Listener.h
  130   std::string m_name;
tools/lldb/include/lldb/Utility/Log.h
  187   void WriteMessage(const std::string &message);
tools/lldb/include/lldb/Utility/ProcessInfo.h
   93   std::string m_arg0; // argv[0] if supported. If empty, then use m_executable.
tools/lldb/include/lldb/Utility/RegularExpression.h
   87   std::string m_regex_text;
tools/lldb/include/lldb/Utility/Reproducer.h
  126   void SetVersion(std::string version) {
  131   std::string m_version;
  152   std::string m_cwd;
  305   template <typename T> llvm::Expected<std::string> LoadBuffer() {
  322   std::vector<std::string> m_files;
  365   CommandLoader(std::vector<std::string> files) : m_files(files) {}
  368   llvm::Optional<std::string> GetNextFile();
  371   std::vector<std::string> m_files;
tools/lldb/include/lldb/Utility/ReproducerInstrumentation.h
   59 template <typename... Ts> inline std::string stringify_args(const Ts &... ts) {
   60   std::string buffer;
  440     std::string ToString() const;
  486   std::string GetSignature(unsigned id);
  631   Recorder(llvm::StringRef pretty_func = {}, std::string &&pretty_args = {});
  712   std::string m_pretty_args;
tools/lldb/include/lldb/Utility/Status.h
  203   mutable std::string m_string; ///< A string representation of the error code.
tools/lldb/include/lldb/Utility/StreamString.h
   48   std::string m_packet;
tools/lldb/include/lldb/Utility/StringExtractor.h
   92   size_t GetHexByteString(std::string &str);
   94   size_t GetHexByteStringFixedLength(std::string &str, uint32_t nibble_length);
   96   size_t GetHexByteStringTerminatedBy(std::string &str, char terminator);
  113   std::string m_packet;
tools/lldb/include/lldb/Utility/StringExtractorGDBRemote.h
  196   size_t GetEscapedBinaryData(std::string &str);
tools/lldb/include/lldb/Utility/StringLexer.h
   20   typedef std::string::size_type Position;
   21   typedef std::string::size_type Size;
   23   typedef std::string::value_type Character;
   25   StringLexer(std::string s);
   34   bool AdvanceIf(const std::string &token);
   40   std::string GetUnlexed();
   48   std::string m_data;
tools/lldb/include/lldb/Utility/StringList.h
   26   typedef std::vector<std::string> collection;
   37   void AppendString(const std::string &s);
   39   void AppendString(std::string &&s);
   65   std::string &operator[](size_t idx) {
   70   const std::string &operator[](size_t idx) const {
   82   std::string LongestCommonPrefix();
   84   void InsertStringAtIndex(size_t idx, const std::string &str);
   86   void InsertStringAtIndex(size_t idx, std::string &&str);
   94   size_t SplitIntoLines(const std::string &lines);
   98   std::string CopyList(const char *item_preamble = nullptr,
  103   StringList &operator<<(const std::string &s);
  108   StringList &operator=(const std::vector<std::string> &rhs);
tools/lldb/include/lldb/Utility/StructuredData.h
  349     std::string m_value;
  550   static ObjectSP ParseJSON(std::string json_text);
tools/lldb/include/lldb/Utility/UUID.h
   64   std::string GetAsString(llvm::StringRef separator = "-") const;
tools/lldb/include/lldb/Utility/UserIDResolver.h
   39   virtual llvm::Optional<std::string> DoGetUserName(id_t uid) = 0;
   40   virtual llvm::Optional<std::string> DoGetGroupName(id_t gid) = 0;
   43   using Map = llvm::DenseMap<id_t, llvm::Optional<std::string>>;
tools/lldb/include/lldb/lldb-private-enumerations.h
  232 inline std::string GetStatDescription(lldb_private::StatisticKind K) {
tools/lldb/source/API/SBBreakpoint.cpp
  707     std::vector<std::string> names_vec;
  709     for (std::string name : names_vec) {
tools/lldb/source/API/SBBreakpointName.cpp
   71   std::string m_name;
tools/lldb/source/API/SBCommandInterpreter.cpp
  387     std::string command_partial_str = request.GetCursorArgumentPrefix().str();
  389     std::string common_prefix = lldb_matches.LongestCommonPrefix();
tools/lldb/source/API/SBCommandReturnObject.cpp
  317     std::string buffer(string, len);
tools/lldb/source/API/SBDebugger.cpp
  321     llvm::Optional<std::string> nextfile = loader->GetNextFile();
  604       const std::string &triple_str = default_arch.GetTriple().str();
 1275       const std::string &value_str = value_strm.GetString();
 1586     std::string error;
tools/lldb/source/API/SBModule.cpp
  601     std::string triple(module_sp->GetArchitecture().GetTriple().str());
tools/lldb/source/API/SBModuleSpec.cpp
  115   std::string triple(m_opaque_up->GetArchitecture().GetTriple().str());
tools/lldb/source/API/SBPlatform.cpp
   41   std::string m_url;
   42   std::string m_rsync_options;
   43   std::string m_rsync_remote_path_prefix;
   59   std::string m_command;
   60   std::string m_working_dir;
   61   std::string m_output;
  387     std::string s;
  404     std::string s;
tools/lldb/source/API/SBProcess.cpp
 1083       std::vector<std::string> paths_vec;
tools/lldb/source/API/SBReproducer.cpp
  109   static std::string error;
  118   static std::string error;
  128   static std::string error;
tools/lldb/source/API/SBStream.cpp
   79   std::string local_data;
  127   std::string local_data;
  148   std::string local_data;
tools/lldb/source/API/SBStructuredData.cpp
   65   std::string json_str(stream.GetData());
tools/lldb/source/API/SBTarget.cpp
  224     std::string Desc = lldb_private::GetStatDescription(
 1058     std::unordered_set<std::string> func_names_set;
 1202     std::vector<std::string> name_vec;
 1286   std::vector<std::string> name_vector;
 1675     std::string triple(target_sp->GetArchitecture().GetTriple().str());
 1801       std::string regexstr;
 1964     std::string regexstr;
tools/lldb/source/API/SBType.cpp
  464       std::string name_sstr;
tools/lldb/source/API/SBTypeCategory.cpp
  430           std::string output;
  554           std::string output;
tools/lldb/source/API/SBValue.cpp
  464     std::string buffer;
tools/lldb/source/Breakpoint/Breakpoint.cpp
  214     StructuredData::ObjectSP &bkpt_object_sp, std::vector<std::string> &names) {
  234   std::vector<std::string>::iterator begin = names.begin();
  235   std::vector<std::string>::iterator end = names.end();
  912         for (std::string name : m_name_list) {
tools/lldb/source/Breakpoint/BreakpointIDList.cpp
  120   std::set<std::string> names_found;
  315         for (std::string name : names_found) {
tools/lldb/source/Breakpoint/BreakpointOptions.cpp
  490   std::hash<std::string> hasher;
tools/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp
   24     const std::unordered_set<std::string> &func_names, bool exact_match)
   54   std::unordered_set<std::string> names_set;
   87     for (std::string name : m_function_names) {
  123         std::string name(
tools/lldb/source/Breakpoint/BreakpointResolverName.cpp
   60                                                std::vector<std::string> names,
   68   for (const std::string &name : names) {
  160     std::vector<std::string> names;
tools/lldb/source/Breakpoint/BreakpointResolverScripted.cpp
  140   std::string short_help;
tools/lldb/source/Breakpoint/Watchpoint.cpp
   88 void Watchpoint::SetDeclInfo(const std::string &str) { m_decl_str = str; }
   90 std::string Watchpoint::GetWatchSpec() { return m_watch_spec_str; }
   92 void Watchpoint::SetWatchSpec(const std::string &str) {
tools/lldb/source/Breakpoint/WatchpointList.cpp
   71 const WatchpointSP WatchpointList::FindBySpec(std::string spec) const {
  130 lldb::watch_id_t WatchpointList::FindIDBySpec(std::string spec) {
tools/lldb/source/Breakpoint/WatchpointOptions.cpp
  173     for (const std::string &line : data->user_source) {
tools/lldb/source/Commands/CommandCompletions.cpp
  229   std::string partial_name_str = partial_name.str();
  306       const std::string &str = strm.GetString();
  311   for (const std::string &s : g_property_names)
  423   std::string regex_str;
  431   std::string::iterator pos =
tools/lldb/source/Commands/CommandObjectBreakpoint.cpp
  163           for (std::string &str : m_commands)
  178   std::vector<std::string> m_commands;
  504     std::string m_condition;
  508     std::vector<std::string> m_func_names;
  509     std::vector<std::string> m_breakpoint_names;
  511     std::string m_func_regexp;
  512     std::string m_source_text_regexp;
  525     std::unordered_set<std::string> m_source_regex_func_names;
  526     std::string m_current_key;
 1280     std::string m_filename;
 1917     std::vector<std::string> name_list;
 1930       for (const std::string &name_str : name_list) {
 2069     std::string m_filename;
 2070     std::vector<std::string> m_names;
 2180     std::string m_filename;
tools/lldb/source/Commands/CommandObjectBreakpointCommand.cpp
  238                               std::string &line) override {
  356     std::string m_one_liner;
tools/lldb/source/Commands/CommandObjectCommands.cpp
  355       std::string option_str(option_value);
  566       if ((pos != std::string::npos) && (pos > 0))
  656     const std::string alias_command(args[0].ref());
  657     const std::string actual_command(args[1].ref());
  709     std::string args_string;
  958                               std::string &data) override {
  964         for (const std::string &line : lines) {
 1066     if (second_separator_char_pos == std::string::npos) {
 1079     if (third_separator_char_pos == std::string::npos) {
 1093           std::string::npos) {
 1117       std::string regex(regex_sed.substr(first_separator_char_pos + 1,
 1120       std::string subst(regex_sed.substr(second_separator_char_pos + 1,
 1186     std::string m_help;
 1187     std::string m_syntax;
 1197   CommandObjectPythonFunction(CommandInterpreter &interpreter, std::string name,
 1198                               std::string funct, std::string help,
 1198                               std::string funct, std::string help,
 1215   const std::string &GetFunctionName() { return m_function_name; }
 1227     std::string docstring;
 1264   std::string m_function_name;
 1272                                std::string name,
 1297     std::string docstring;
 1314     std::string docstring;
 1581     std::string m_class_name;
 1582     std::string m_funct_name;
 1583     std::string m_short_help;
 1596                               std::string &data) override {
 1605         std::string funct_name_str;
 1712   std::string m_cmd_name;
 1713   std::string m_short_help;
tools/lldb/source/Commands/CommandObjectDisassemble.h
   52     std::string func_name;
   58     std::string plugin_name;
   59     std::string flavor_string;
tools/lldb/source/Commands/CommandObjectExpression.cpp
  496                                                      std::string &line) {
  664       std::string fixed_command("expression ");
tools/lldb/source/Commands/CommandObjectExpression.h
   62                               std::string &line) override;
   81   std::string m_expr_lines;       // Multi-line expression support
   82   std::string m_fixed_expression; // Holds the current expression's fixed text.
tools/lldb/source/Commands/CommandObjectFrame.cpp
  549                       std::string scope_string;
  595               std::string scope_string;
  654             std::string scope_string;
  783     std::string m_class_name;
  784     std::string m_module;
  785     std::string m_function;
tools/lldb/source/Commands/CommandObjectHelp.cpp
   27   std::string command_str = command.str();
   28   std::string prefix_str = prefix.str();
   29   std::string subcommand_str = subcommand.str();
   30   const std::string &lookup_str = !subcommand_str.empty() ? subcommand_str : command_str;
  108       std::string sub_command;
  131         std::string cmd_string;
  163       std::string alias_full_name;
tools/lldb/source/Commands/CommandObjectLog.cpp
  169     const std::string channel = args[0].ref();
  177     std::string error;
  242     const std::string channel = args[0].ref();
  248       std::string error;
  293     std::string output;
tools/lldb/source/Commands/CommandObjectMemory.cpp
  404       std::string type_str(view_as_type_cstr);
  412         while ((idx = type_str.find(keyword, idx)) != std::string::npos) {
  425       if (idx > 0 && idx != std::string::npos)
  724         std::string buffer;
  773     std::string path = outfile_spec.GetPath();
tools/lldb/source/Commands/CommandObjectMultiword.cpp
  126   std::string error_msg;
  141     for (const std::string &match : matches) {
  166     std::string indented_command("    ");
  169       std::string help_text(pos->second->GetHelp());
tools/lldb/source/Commands/CommandObjectPlatform.cpp
  351           std::string hostname;
  447       std::string cmd_line;
  497       std::string cmd_line;
  550       std::string cmd_line;
  590       std::string cmd_line;
  594       std::string buffer(m_options.m_count, 0);
  677       std::string cmd_line;
  736     std::string m_data;
  885       std::string remote_file_path(args.GetArgumentAtIndex(0));
 1629       std::string output;
tools/lldb/source/Commands/CommandObjectProcess.cpp
  100   std::string m_new_process_action;
  782     std::string plugin_name;
 1282     std::string stop;
 1283     std::string notify;
 1284     std::string pass;
 1311   bool VerifyCommandOptionValue(const std::string &option, int &real_value) {
tools/lldb/source/Commands/CommandObjectQuit.cpp
   88       std::string arg_str = arg.str();
tools/lldb/source/Commands/CommandObjectReproducer.cpp
  265       std::string str;
  276       Expected<std::string> version = loader->LoadBuffer<VersionProvider>();
  286       Expected<std::string> cwd =
  309         llvm::Optional<std::string> command_file =
tools/lldb/source/Commands/CommandObjectSettings.cpp
  369     std::string m_filename;
  377     std::string path(file_spec.GetPath());
  466     std::string m_filename;
tools/lldb/source/Commands/CommandObjectSource.cpp
  108     std::string file_name;
  109     std::string symbol_name;
  710     std::string file_name;
  711     std::string symbol_name;
 1260   std::string m_reverse_name;
tools/lldb/source/Commands/CommandObjectTarget.cpp
  391               std::string remote_path = remote_file.GetPath();
 1301     std::string arch_str = arch_strm.GetString();
 1352       std::string fullpath = file_spec_ptr->GetPath();
 2579           std::string resolved_path = file_spec.GetPath();
 2846         std::string uuid_str;
 3302     std::string m_str; // Holds name lookup
 3676     std::string m_str; // Holds name lookup
 4347               std::string resolved_symfile_path =
 4541     std::string m_class_name;
 4542     std::string m_function_name;
 4545     std::string m_file_name;
 4546     std::string m_module_name;
 4550     std::string m_thread_name;
 4551     std::string m_queue_name;
 4557     std::vector<std::string> m_one_liner;
 4584                               std::string &line) override {
tools/lldb/source/Commands/CommandObjectThread.cpp
  512   std::string m_avoid_regexp;
  513   std::string m_step_in_target;
 1808       std::string warnings;
tools/lldb/source/Commands/CommandObjectType.cpp
   52   std::string m_category;
   55                    ConstString name, std::string catg)
   68   std::string m_category;
   70   SynthAddOptions(bool sptr, bool sref, bool casc, bool regx, std::string catg)
  123     std::string m_format_string;
  125     std::string m_python_script;
  126     std::string m_python_function;
  128     std::string m_category;
  162                               std::string &data) override {
  180             std::string funct_name_str;
  198                 for (const std::string &type_name : options->m_target_types) {
  263                          SummaryFormatType type, std::string category,
  352     std::string m_class_name;
  354     std::string m_category;
  394                               std::string &data) override {
  412             std::string class_name_str;
  436                 for (const std::string &type_name : options->m_target_types) {
  489                        SynthFormatType type, std::string category_name,
  561     std::string m_category;
  562     std::string m_custom_type_name;
  755     std::string m_category;
 1282     std::string code =
 1307     std::string funct_name_str;
 1320     std::string code = "    " + m_options.m_python_script;
 1596     std::string type_name_str(type_name.GetCString());
 1611                                              std::string category_name,
 2335                                          std::string category_name,
 2382     typedef std::vector<std::string> option_vector;
 2446     std::string m_category;
 2460                  FilterFormatType type, std::string category_name,
 2874         std::string description(formatter_sp->GetDescription());
 2896   std::string m_formatter_name;
tools/lldb/source/Commands/CommandObjectWatchpoint.cpp
  673     std::string m_condition;
tools/lldb/source/Commands/CommandObjectWatchpointCommand.cpp
  219                               std::string &line) override {
  385     std::string m_one_liner;
  387     std::string m_function_name;
  448             std::string oneliner(m_options.m_function_name);
tools/lldb/source/Core/Debugger.cpp
  280       std::string str = lldb_private::ansi::FormatAnsiTerminalCodes(
  350   std::string str =
tools/lldb/source/Core/Disassembler.cpp
  792     std::string line(buffer);
  806       std::string value;
  853     std::string line(buffer);
  875       std::string key;
  876       std::string value;
 1268     std::string thumb_arch_name(arch.GetTriple().getArchName().str());
tools/lldb/source/Core/DumpDataExtractor.cpp
  115     std::string apint_str(apint.getValue().toString(radix, is_signed));
  243         std::string binary_value(64, '0');
tools/lldb/source/Core/DumpRegisterValue.cpp
   36     std::string fmt = format_string.GetString();
tools/lldb/source/Core/FormatEntity.cpp
  402       std::string script_output;
  627   std::string ptr_deref_buffer(10, 0);
  769     const std::string &expr_path = entry.string;
 1675               std::string buffer;
 2156             if (entry.printf_format.find('%') == std::string::npos) {
 2324 static std::string MakeMatch(const llvm::StringRef &prefix,
 2326   std::string match(prefix.str());
 2338       std::string match = prefix.str();
 2358     std::string match = str.str();
tools/lldb/source/Core/Highlighter.cpp
   73 std::string Highlighter::Highlight(const HighlightStyle &options,
tools/lldb/source/Core/IOHandler.cpp
  185                                               std::string &line) {
  314 static Optional<std::string> SplitLine(std::string &line_buffer) {
  314 static Optional<std::string> SplitLine(std::string &line_buffer) {
  316   if (pos == std::string::npos)
  318   std::string line = StringRef(line_buffer.c_str(), pos).rtrim("\n\r");
  325 static Optional<std::string> SplitLineEOF(std::string &line_buffer) {
  325 static Optional<std::string> SplitLineEOF(std::string &line_buffer) {
  328   std::string line = std::move(line_buffer);
  333 bool IOHandlerEditline::GetLine(std::string &line, bool &interrupted) {
  362   Optional<std::string> got_line = SplitLine(m_line_buffer);
  520       std::string line;
  549   std::string line;
 1292   std::string m_name;
 1385   std::string &GetName() { return m_name; }
 1396   std::string m_name;
 1397   std::string m_key_name;
 1485       if (pos != std::string::npos) {
tools/lldb/source/Core/Mangled.cpp
   83         std::string shortname;
tools/lldb/source/Core/Module.cpp
  768             std::string qualified_name;
  996         std::string name_str(name.AsCString(""));
 1051 std::string Module::GetSpecificationDescription() const {
 1052   std::string spec(GetFileSpec().GetPath());
 1186       std::string back_trace;
 1408           std::string new_path(file.GetPath());
 1409           std::string old_path(obj_file->GetFileSpec().GetPath());
 1595                              std::string &new_path) const {
tools/lldb/source/Core/ModuleList.cpp
  860         std::string uuid_str;
  940           std::string uuid_str;
tools/lldb/source/Core/PluginManager.cpp
  113       std::string pluginLoadError;
  206   std::string description;
  282   std::string description;
  335   std::string description;
  418   std::string description;
  503   std::string description;
  585   std::string description;
  667   std::string description;
  750   std::string description;
  828   std::string description;
  932   std::string description;
 1015   std::string description;
 1156   std::string description;
 1251   std::string description;
 1369   std::string description;
 1469   std::string description;
 1562   std::string description;
 1666   std::string description;
 1748   std::string description;
 1828   std::string description;
 1908   std::string description;
 1989   std::string description;
 2087   std::string description;
 2190   std::string description;
tools/lldb/source/Core/SourceManager.cpp
  208         std::string src_line;
  552   std::string path = GetFileSpec().GetPath(/*denormalize*/ false);
  595     std::string buffer;
  668 bool SourceManager::File::GetLine(uint32_t line_no, std::string &buffer) {
tools/lldb/source/Core/ValueObject.cpp
  646   std::string child_name_str;
  684                                       std::string &destination,
  691                                       std::string &destination,
  739 bool ValueObject::GetSummaryAsCString(std::string &destination,
 1093 std::pair<TypeValidatorResult, std::string> ValueObject::GetValidationStatus() {
 1148                                     std::string &destination) {
 1156                                     std::string &destination) {
 2026     std::string cxx_class_name;
 2833     std::string child_name_str;
 2910         std::string name(1, '&');
tools/lldb/source/Core/ValueObjectConstResultImpl.cpp
   59   std::string child_name_str;
  128     std::string new_name("&");
tools/lldb/source/DataFormatters/CXXFunctionPointer.cpp
   24   std::string destination;
tools/lldb/source/DataFormatters/FormattersHelpers.cpp
  107     std::vector<std::string> children, const char *description,
tools/lldb/source/DataFormatters/TypeCategory.cpp
  578 std::string TypeCategoryImpl::GetDescription() {
tools/lldb/source/DataFormatters/TypeFormat.cpp
   42                                          std::string &dest) const {
  125 std::string TypeFormatImpl_Format::GetDescription() {
  141                                            std::string &dest) const {
  198 std::string TypeFormatImpl_EnumType::GetDescription() {
tools/lldb/source/DataFormatters/TypeSummary.cpp
   69 bool StringSummaryFormat::FormatObject(ValueObject *valobj, std::string &retval,
  101 std::string StringSummaryFormat::GetDescription() {
  123                                             std::string &dest,
  133 std::string CXXFunctionSummaryFormat::GetDescription() {
  157 bool ScriptSummaryFormat::FormatObject(ValueObject *valobj, std::string &retval,
  182 std::string ScriptSummaryFormat::GetDescription() {
tools/lldb/source/DataFormatters/TypeSynthetic.cpp
   27 void TypeFilterImpl::AddExpressionPath(const std::string &path) {
   39                                               const std::string &path) {
   74 std::string TypeFilterImpl::GetDescription() {
   88 std::string CXXSyntheticChildren::GetDescription() {
  128 ScriptedSyntheticChildren::FrontEnd::FrontEnd(std::string pclass,
  209 std::string ScriptedSyntheticChildren::GetDescription() {
tools/lldb/source/DataFormatters/TypeValidator.cpp
   28 TypeValidatorImpl::Failure(std::string message) {
   33     ValidatorFunction f, std::string d, const TypeValidatorImpl::Flags &flags)
   46 std::string TypeValidatorImpl_CXX::GetDescription() {
tools/lldb/source/DataFormatters/ValueObjectPrinter.cpp
  260       std::string type_name_str(type_name.GetCString());
  262         for (auto iter = type_name_str.find(" *"); iter != std::string::npos;
  350 void ValueObjectPrinter::GetValueSummaryError(std::string &value,
  351                                               std::string &summary,
  352                                               std::string &error) {
tools/lldb/source/Expression/DiagnosticManager.cpp
   22   std::string str = GetString();
   47 std::string DiagnosticManager::GetString(char separator) {
   48   std::string ret;
tools/lldb/source/Expression/IRExecutionUnit.cpp
   44                                  std::vector<std::string> &cpu_features)
  247   std::string error_string;
  250     std::string s;
  277   llvm::SmallVector<std::string, 0> mAttrs;
  279   for (std::string &feature : m_cpu_features)
  303       std::string object_name_model =
  653   std::string scope_qualified_name = cpp_name.GetScopeQualifiedName();
 1009 IRExecutionUnit::MemoryManager::findSymbol(const std::string &Name) {
 1021 IRExecutionUnit::MemoryManager::getSymbolAddress(const std::string &Name) {
 1028     const std::string &Name, bool &missing_weak) {
 1050     const std::string &Name, bool AbortOnFailure) {
tools/lldb/source/Expression/IRInterpreter.cpp
   45 static std::string PrintValue(const Value *value, bool truncate = false) {
   46   std::string s;
   62 static std::string PrintType(const Type *type, bool truncate = false) {
   63   std::string s;
  134   std::string SummarizeValue(const Value *value) {
  385   std::string PrintData(lldb::addr_t addr, llvm::Type *type) {
  649     std::string s;
tools/lldb/source/Expression/REPL.cpp
   52 std::string REPL::GetSourcePath() {
  106 void REPL::IOHandlerInputInterrupted(IOHandler &io_handler, std::string &line) {
  142   std::string source_string(lines.CopyList());
  147   std::string last_line = lines[lines.GetSize() - 1];
  182 void REPL::IOHandlerInputComplete(IOHandler &io_handler, std::string &code) {
  407               std::string code(m_code.CopyList());
  413               std::string message = llvm::toString(file.takeError());
  467   std::string current_code;
tools/lldb/source/Expression/UserExpression.cpp
  145     std::string *fixed_expression, lldb::ModuleSP *jit_module_sp_ptr,
  202   std::string full_prefix_storage;
  254   std::string tmp_fixed_expression;
tools/lldb/source/Expression/UtilityFunction.cpp
   75   std::string name(m_function_name);
tools/lldb/source/Host/common/Editline.cpp
  113     if (end == std::string::npos) {
  166   EditlineHistory(const std::string &prefix, uint32_t size, bool unique_entries)
  187         std::string filename = m_prefix + "-history";
  210   static EditlineHistorySP GetHistory(const std::string &prefix) {
  211     typedef std::map<std::string, EditlineHistoryWP> WeakHistoryMap;
  262   std::string m_prefix; // The prefix name (usually the editline program name)
  264   std::string m_path;   // Path to the history file
  279 std::string Editline::PromptForIndex(int line_index) {
  281   std::string prompt = m_set_prompt;
  285   std::string continuation_prompt = prompt;
  812   std::string currentLine = lines.GetStringAtIndex(m_current_line_index);
  949       std::string to_add = completion.GetCompletion();
  958       std::string to_add = completion.GetCompletion();
  973   std::string longest_prefix = completions.LongestCommonPrefix();
 1321 bool Editline::GetLine(std::string &line, bool &interrupted) {
tools/lldb/source/Host/common/FileSystem.cpp
  286   const ErrorOr<std::string> external_path = GetExternalPath(path);
  326   const std::string filename_str(filename.GetCString());
  327   llvm::ErrorOr<std::string> error_or_path =
  445 ErrorOr<std::string> FileSystem::GetExternalPath(const llvm::Twine &path) {
  466 ErrorOr<std::string> FileSystem::GetExternalPath(const FileSpec &file_spec) {
tools/lldb/source/Host/common/Host.cpp
  460                              std::string *command_output_ptr,
  471                              std::string *command_output_ptr,
tools/lldb/source/Host/common/HostInfoBase.cpp
   50   std::string m_host_triple;
  223   std::string raw_path = lldb_file_spec.GetPath();
  275   std::string pid_str{llvm::to_string(Host::GetCurrentProcessID())};
tools/lldb/source/Host/common/OptionParser.cpp
   44   std::string opt_cstr = optstring;
   55 std::string OptionParser::GetShortOptionString(struct option *long_options) {
   56   std::string s;
tools/lldb/source/Host/common/ProcessLaunchInfo.cpp
  251       std::string shell_executable = m_shell.GetPath();
  257       std::string safe_arg;
  278           std::string new_path("PATH=\"");
  288           std::string curr_path;
tools/lldb/source/Host/common/PseudoTerminal.cpp
   31   std::string strerror = llvm::sys::StrError();
tools/lldb/source/Host/common/Socket.cpp
  176   std::string host_str;
  177   std::string port_str;
  282                                std::string &host_str, std::string &port_str,
  282                                std::string &host_str, std::string &port_str,
tools/lldb/source/Host/common/SocketAddress.cpp
  136 std::string SocketAddress::GetIPAddress() const {
tools/lldb/source/Host/common/TCPSocket.cpp
   87 std::string TCPSocket::GetLocalIPAddress() const {
  109 std::string TCPSocket::GetRemoteIPAddress() const {
  121 std::string TCPSocket::GetRemoteConnectionURI() const {
  146   std::string host_str;
  147   std::string port_str;
  182   std::string host_str;
  183   std::string port_str;
tools/lldb/source/Host/common/UDPSocket.cpp
   64   std::string host_str;
   65   std::string port_str;
  137 std::string UDPSocket::GetRemoteConnectionURI() const {
tools/lldb/source/Host/common/XML.cpp
  281 bool XMLNode::GetElementText(std::string &text) const {
  424                                          std::string &value) const {
  455                                                    std::string &value) {
tools/lldb/source/Host/linux/Host.cpp
  165   std::string ExePath(PATH_MAX, '\0');
  279   std::string process_task_dir = procdir + llvm::to_string(pid) + taskdir;
tools/lldb/source/Host/linux/HostInfoLinux.cpp
   29   std::string m_distribution_id;
   59 bool HostInfoLinux::GetOSBuildString(std::string &s) {
   71 bool HostInfoLinux::GetOSKernelDescription(std::string &s) {
  108       std::string get_distribution_id_command(get_distribution_info_exe);
  130           std::string id_string(distribution_id + strlen(distributor_id_key));
  197     std::string user_plugin_dir(xdg_data_home);
tools/lldb/source/Host/linux/Support.cpp
   16   std::string File =
   28   std::string File = ("/proc/" + llvm::Twine(pid) + "/" + file).str();
   38   std::string File = ("/proc/" + file).str();
tools/lldb/source/Host/posix/ConnectionFileDescriptorPosix.cpp
  238       std::string addr_str = addr->str();
  530 std::string ConnectionFileDescriptor::GetURI() { return m_uri; }
tools/lldb/source/Host/posix/DomainSocket.cpp
  129 std::string DomainSocket::GetSocketName() const {
  136       std::string name(saddr_un.sun_path + GetNameOffset(),
  147 std::string DomainSocket::GetRemoteConnectionURI() const {
tools/lldb/source/Host/posix/HostInfoPosix.cpp
   30 bool HostInfoPosix::GetHostname(std::string &s) {
   50   llvm::Optional<std::string> DoGetUserName(id_t uid) override;
   51   llvm::Optional<std::string> DoGetGroupName(id_t gid) override;
   56   std::string username;
   57   std::string shell;
   82 llvm::Optional<std::string> PosixUserIDResolver::DoGetUserName(id_t uid) {
   88 llvm::Optional<std::string> PosixUserIDResolver::DoGetGroupName(id_t gid) {
  142 bool HostInfoPosix::GetEnvironmentVar(const std::string &var_name,
  143                                       std::string &var) {
tools/lldb/source/Initialization/SystemInitializerCommon.cpp
   81     if (llvm::Expected<std::string> cwd =
tools/lldb/source/Interpreter/CommandAlias.cpp
   32   std::string options_string(options_args);
  151   std::string opt;
  152   std::string value;
  176   std::string opt;
  177   std::string value;
tools/lldb/source/Interpreter/CommandHistory.cpp
  103     const std::string hist_item = m_history[counter];
tools/lldb/source/Interpreter/CommandInterpreter.cpp
  189   std::string command = command_line;
  852   std::string cmd = cmd_str;
  957   std::string name_sstr(name);
 1082                                           std::string &full_name) const {
 1237     if (start != std::string::npos) {
 1240       if (end == std::string::npos)
 1242       std::string cmd_word = command_string.substr(start, end - start);
 1281 static void StripLeadingSpaces(std::string &s) {
 1284     if (pos == std::string::npos)
 1292 static size_t FindArgumentTerminator(const std::string &s) {
 1297     if (pos == std::string::npos)
 1310   return std::string::npos;
 1313 static bool ExtractCommand(std::string &command_string, std::string &command,
 1313 static bool ExtractCommand(std::string &command_string, std::string &command,
 1314                            std::string &suffix, char &quote_char) {
 1327       if (end_quote_pos == std::string::npos) {
 1341       if (first_space_pos == std::string::npos) {
 1357       if (pos > 0 && pos != std::string::npos) {
 1368     llvm::StringRef alias_name, std::string &raw_input_string,
 1369     std::string &alias_result, CommandReturnObject &result) {
 1383   std::string alias_name_str = alias_name;
 1397   std::string option;
 1398   std::string value;
 1425       if (strpos != std::string::npos)
 1436 Status CommandInterpreter::PreprocessCommand(std::string &command) {
 1446   while ((start_backtick = command.find('`', pos)) != std::string::npos) {
 1463     if (end_backtick == std::string::npos) {
 1474     std::string expr_str(command, expr_content_start,
 1595   std::string command_string(command_line);
 1596   std::string original_command_string(command_line);
 1632     if (non_space == std::string::npos)
 1734     std::string remainder;
 1741     if (pos != 0 && pos != std::string::npos)
 1869                                                std::string &raw_input_string,
 1877   std::string alias_name_str = alias_name;
 1891       if (pos == std::string::npos) {
 1904     std::string option;
 1905     std::string value;
 1945         if (strpos != std::string::npos) {
 2017   std::string init_file_name = ".lldbinit";
 2341   std::string cmd_file_path = cmd_file.GetPath();
 2345     std::string error = llvm::toString(input_file_up.takeError());
 2721                                                 std::string &line) {
 2948 CommandInterpreter::ResolveCommandImpl(std::string &command_line,
 2950   std::string scratch_command(command_line); // working copy so we don't modify
 2956   std::string next_word;
 2961     std::string suffix;
 2964       std::string full_name;
 2971         std::string alias_result;
 3067               std::string gdb_format_option("--gdb-format=");
 3070               std::string cmd = revised_command_line.GetString();
 3072               if (arg_terminator_idx != std::string::npos) {
 3083                   FindArgumentTerminator(cmd) == std::string::npos)
tools/lldb/source/Interpreter/CommandObject.cpp
  294   std::string options_usage_help;
  488       std::string name_str = names.GetString();
  655   static std::string help_text;
  682   static std::string help_text;
  813   std::string line;
  820     if (result == std::string::npos) {
  823     std::string whitespace_prefix = line.substr(0, result);
  824     std::string remainder = line.substr(result);
  839     std::string help_text(GetHelp());
  994     std::string full_command(GetCommandName());
tools/lldb/source/Interpreter/CommandObjectRegexCommand.cpp
   35       std::string new_command(pos->command);
   40           const std::string match_str = matches[match_idx].str();
   44                              percent_var, idx)) != std::string::npos;) {
tools/lldb/source/Interpreter/CommandReturnObject.cpp
   17 static void DumpStringToStreamWithNewline(Stream &strm, const std::string &s,
   49   const std::string &s = sstrm.GetString();
tools/lldb/source/Interpreter/OptionArgParser.cpp
  218       std::string name = matches[1].str();
  219       std::string sign = matches[2].str();
  220       std::string str_offset = matches[3].str();
tools/lldb/source/Interpreter/OptionValueArch.cpp
   47     std::string value_str = value.trim().str();
tools/lldb/source/Interpreter/OptionValueFormatEntity.cpp
   39 static void EscapeBackticks(llvm::StringRef str, std::string &dst) {
   60     std::string escaped;
tools/lldb/source/Interpreter/OptionValueSInt64.cpp
   45     std::string value_str = value_ref.trim().str();
tools/lldb/source/Interpreter/OptionValueString.cpp
   28         std::string expanded_escape_value;
   49   std::string value_str = value.str();
   79     std::string new_value(m_current_value);
   82         std::string str;
  138       std::string new_value(m_current_value);
tools/lldb/source/Interpreter/OptionValueUInt64.cpp
   50     std::string value_str = value_ref.trim().str();
tools/lldb/source/Interpreter/Options.cpp
  269   std::string actual_text;
  669         std::string opt_str = "-a";
  680         std::string full_name("--");
  933   std::string short_opt = llvm::formatv("-{0}", char(long_option.val)).str();
  934   std::string long_opt =
  945 static std::string BuildShortOptions(const Option *long_options) {
  946   std::string storage;
  974                                          std::string &input_line) {
  982   std::string short_options = BuildShortOptions(long_options);
 1079       if (pos != std::string::npos)
 1091         if (pos != std::string::npos)
 1110   std::string short_options = BuildShortOptions(long_options);
 1299   std::string short_options = BuildShortOptions(long_options);
tools/lldb/source/Interpreter/ScriptInterpreter.cpp
   45 std::string ScriptInterpreter::LanguageToString(lldb::ScriptLanguage language) {
   46   std::string return_value;
tools/lldb/source/Plugins/ABI/SysV-arc/ABISysV_arc.cpp
  588   static const std::string ra_reg_name = "blink";
tools/lldb/source/Plugins/ABI/SysV-arm/ABISysV_arm.cpp
 1742             std::string name;
tools/lldb/source/Plugins/ABI/SysV-mips64/ABISysV_mips64.cpp
  923       std::string name;
tools/lldb/source/Plugins/ABI/SysV-ppc/ABISysV_ppc.cpp
  695         std::string name;
tools/lldb/source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp
  439     std::string GetName() const {
  829       std::string name;
  898   CompilerType GetChildType(uint32_t i, std::string &name, uint32_t &size) {
tools/lldb/source/Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp
  733     std::string name;
 1072   std::string Name = std::string(reg_info->name);
tools/lldb/source/Plugins/ABI/Windows-x86_64/ABIWindows_x86_64.cpp
 1532     std::string name;
 1769   std::string Name = std::string(reg_info->name);
tools/lldb/source/Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
   56   void PrintMCInst(llvm::MCInst &mc_inst, std::string &inst_string,
   57                    std::string &comments_string);
  259   void AppendComment(std::string &description) {
  274       std::string out_string;
  275       std::string comment_string;
  457     std::string str;
  498     std::string str;
  932   std::string Status;
 1031     llvm::MCInst &mc_inst, std::string &inst_string,
 1032     std::string &comments_string) {
 1042   static std::string g_newlines("\r\n");
 1105     std::string thumb_arch_name(thumb_arch.GetTriple().getArchName().str());
 1125   std::string features_str = "";
 1215     std::string thumb_triple(thumb_arch.GetTriple().getTriple());
 1417           std::string str = ss.GetString();
 1419           if (first_eol_char != std::string::npos) {
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
  488         std::string uuid_str;
  635 std::string DynamicLoaderDarwinKernel::KextImageInfo::GetName() const {
 1273   std::vector<std::pair<std::string, UUID>> kexts_failed_to_load;
 1349         std::string uuid;
tools/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.h
  162     std::string GetName() const;
  201     std::string m_name;
tools/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/HexagonDYLDRendezvous.cpp
  239 std::string HexagonDYLDRendezvous::ReadStringFromMemory(addr_t addr) {
  240   std::string str;
tools/lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/HexagonDYLDRendezvous.h
  146     std::string path;       ///< File name of shared object.
  224   std::string ReadStringFromMemory(lldb::addr_t addr);
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
  386       std::string os_name = image->GetValueForKey("min_version_os_name")
  989   std::string equivalent_regex_buf("^");
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h
  123     std::string min_version_os_sdk;
tools/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOS.cpp
  481       std::string uuid_str =
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
  268   std::string name;
  475 std::string DYLDRendezvous::ReadStringFromMemory(addr_t addr) {
  476   std::string str;
  490 static bool isLoadBiasIncorrect(Target &target, const std::string &file_path) {
  501                                                std::string const &file_path) {
  548   std::string file_path = ReadStringFromMemory(entry.path_addr);
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.h
  218   std::string ReadStringFromMemory(lldb::addr_t addr);
  244   void UpdateBaseAddrIfNecessary(SOEntry &entry, std::string const &file_path);
tools/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
  340     static std::vector<std::string> DebugStateCandidates{
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTDumper.h
   35   std::string m_dump;
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
  126     std::string s;
  142     std::string s;
  166     std::string s;
  186     std::string s;
  309     std::string s = expr_qual_type.getAsString();
  463         std::string s;
tools/lldb/source/Plugins/ExpressionParser/Clang/ASTStructExtractor.h
  129   std::string m_struct_name;       ///< The name of the structure to extract.
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
  184   std::string decl_name(clang_decl_name.getAsString());
 1079     const std::string &decl_name_string = decl_name.getAsString();
 1080     std::string decl_name_string_without_colon(decl_name_string.c_str(),
 1232   std::string interface_name = interface_decl->getNameAsString();
 1464   std::string name_str = context.m_decl_name.getAsString();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
 1502         std::string warning("got name from symbols: ");
 1649   std::string decl_name(context.m_decl_name.getAsString());
 1738   std::string decl_name(context.m_decl_name.getAsString());
 1871   std::string decl_name(context.m_decl_name.getAsString());
 2040   std::string decl_name(context.m_decl_name.getAsString());
 2064     std::string function_str =
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
  209       std::string stripped_output = llvm::StringRef(m_output).trim();
  239   std::string m_output;
  243                                    std::vector<std::string> include_directories,
  249   for (const std::string &dir : include_directories) {
  271     bool generate_debug_info, std::vector<std::string> include_directories,
  272     std::string filename)
  324   std::string abi;
  350     std::string triple = target_arch.GetTriple().str();
  367   if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos &&
  368       m_compiler->getTargetOpts().Triple.find("arm") != std::string::npos &&
  369       m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos) {
  609   std::string module_name("$__lldb_module");
  630   std::string m_expr;
  684   std::string mergeCompletion(StringRef existing, unsigned pos,
  711                std::string expr, unsigned position)
  775       std::string ToInsert;
  776       std::string Description;
  824         std::string CompletionSuggestion =
  909       std::string temp_source_path = tmpdir_file_spec.GetPath();
 1056 std::string
 1058   std::string abi;
 1142   std::string fixed_expression;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.h
   62                         std::vector<std::string> include_directories = {},
   63                         std::string filename = "<clang expression>");
  145   std::string GetClangTargetABI(const ArchSpec &target_arch);
  185   std::vector<std::string> m_include_directories;
  187   std::string m_filename;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp
  192   TokenVerifier(std::string body);
  201 TokenVerifier::TokenVerifier(std::string body) {
  256     std::string token_str = body.substr(start, token.getLength());
  265                                   const std::string &expr,
  297     std::string &text, lldb::LanguageType wrapping_language, bool static_method,
  299     llvm::ArrayRef<std::string> modules) const {
  301   std::string module_macros;
  395     std::string module_imports;
  396     for (const std::string &module : modules) {
  410     std::string tagged_body;
  492     std::string transformed_text, lldb::LanguageType wrapping_language,
  504   if (start_loc == std::string::npos)
  508   return end_loc != std::string::npos;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.h
   54   bool GetText(std::string &text, lldb::LanguageType wrapping_language,
   57                llvm::ArrayRef<std::string> modules) const;
   62   bool GetOriginalBodyBounds(std::string transformed_text,
   73   std::string m_start_marker;
   75   std::string m_end_marker;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangFunctionCaller.cpp
   78   std::string return_type_str(
  120   std::string args_buffer; // This one stores the definition of all the args in
  122   std::string args_list_buffer; // This one stores the argument list called from
  125     std::string type_name;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp
   51   std::string raw_path = lldb_shlib_spec.GetPath();
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
   58   typedef std::pair<clang::DiagnosticsEngine::Level, std::string>
   86                     std::function<bool(const std::string &)> handler) override;
  397     std::function<bool(const std::string &)> handler) {
  466       std::string macro_expansion = "#define ";
  515               std::string token_str(literal_data, ti->getLength());
  593   std::vector<std::string> compiler_invocation_arguments = {
  616     std::string module_cache_argument("-fmodules-cache-path=");
  626     std::string search_path_argument = "-I";
  648   for (const std::string &arg : compiler_invocation_arguments)
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.h
  100                std::function<bool(const std::string &)> handler) = 0;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.h
   54   std::string GetNextExprFileName() {
   55     std::string name;
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
  315 static void ApplyObjcCastHack(std::string &expr) {
  316   const std::string from = "(int)[";
  317   const std::string to = "(int)(long long)[";
  394     std::vector<std::string> modules_to_import, bool for_completion) {
  397   std::string prefix = m_expr_prefix;
  439 static CppModuleConfiguration LogConfigError(const std::string &msg) {
  529   llvm::ArrayRef<std::string> imported_modules =
  612         const std::string &fixed_expression =
tools/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h
  184                         std::vector<std::string> modules_to_import,
  212   std::vector<std::string> m_include_directories;
  222   std::string m_filename;
tools/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.cpp
   36   std::string dir_buffer = convert_to_slash(f.GetDirectory().GetStringRef());
tools/lldb/source/Plugins/ExpressionParser/Clang/CppModuleConfiguration.h
   25     std::string m_path;
   35     std::string Get() const {
   48   std::string m_resource_inc;
   50   std::vector<std::string> m_include_dirs;
   51   std::vector<std::string> m_imported_modules;
   73   llvm::ArrayRef<std::string> GetIncludeDirs() const { return m_include_dirs; }
   77   llvm::ArrayRef<std::string> GetImportedModules() const {
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.cpp
   97 static std::string PrintValue(llvm::Value *V, bool truncate = false) {
   98   std::string s;
  482       std::string name_str = called_function->getName().str();
  488       if (name_str.find("objc_msgSend") == std::string::npos)
  574     std::string s;
tools/lldb/source/Plugins/ExpressionParser/Clang/IRDynamicChecks.h
  124   std::string m_func_name; ///< The name of the function to add checks to
tools/lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
   86 static std::string PrintValue(const Value *value, bool truncate = false) {
   87   std::string s;
   98 static std::string PrintType(const llvm::Type *type, bool truncate = false) {
   99   std::string s;
  248     std::string decl_desc_str;
  826   std::string omvn_initializer_string = omvn_initializer_array->getAsString();
  984   std::string ocn_initializer_string = ocn_initializer_array->getAsString();
 1853     std::string s;
 1908     std::string s;
 2015     std::string s;
tools/lldb/source/Plugins/Instruction/MIPS/EmulateInstructionMIPS.cpp
   64   std::string Status;
  138   std::string features = "";
tools/lldb/source/Plugins/Instruction/MIPS64/EmulateInstructionMIPS64.cpp
   64   std::string Status;
  138   std::string features = "";
tools/lldb/source/Plugins/InstrumentationRuntime/ASan/ASanRuntime.cpp
  171   std::string description;
  191 std::string
  193   std::string description = report->GetAsDictionary()
  254   std::string description;
tools/lldb/source/Plugins/InstrumentationRuntime/ASan/ASanRuntime.h
   61   std::string FormatDescription(StructuredData::ObjectSP report);
tools/lldb/source/Plugins/InstrumentationRuntime/MainThreadChecker/MainThreadCheckerRuntime.cpp
   99   std::string apiName = "";
  105   std::string className = "";
  106   std::string selector = "";
  109     if (spacePos != std::string::npos) {
  174     std::string description = report->GetAsDictionary()
tools/lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.cpp
  213                  const std::string &trace_item_name = ".trace") {
  230     ValueObjectSP return_value_sp, const std::string &items_name,
  231     const std::string &count_name,
  251 static std::string RetrieveString(ValueObjectSP return_value_sp,
  253                                   const std::string &expression_path) {
  257   std::string str;
  488 std::string
  490   std::string description = report->GetAsDictionary()
  533 static std::string Sprintf(const char *format, ...) {
  542 static std::string GetSymbolNameFromAddress(ProcessSP process_sp, addr_t addr) {
  552   std::string sym_name = symbol->GetName().GetCString();
  611 std::string
  615   std::string summary = report->GetAsDictionary()
  660     std::string object_type = loc->GetAsDictionary()
  678       std::string global_name = GetSymbolNameFromAddress(process_sp, addr);
  714 std::string ThreadSanitizerRuntime::GetLocationDescription(
  716     std::string &global_name, std::string &filename, uint32_t &line) {
  716     std::string &global_name, std::string &filename, uint32_t &line) {
  717   std::string result = "";
  729     std::string type =
  759       std::string object_type = loc->GetAsDictionary()
  811   std::string stop_reason_description;
  813     std::string issue_description = instance->FormatDescription(report);
  818     std::string summary = instance->GenerateSummary(report);
  824     std::string global_name = "";
  825     std::string location_filename = "";
  827     std::string location_description = instance->GetLocationDescription(
  937 static std::string GenerateThreadName(const std::string &path,
  937 static std::string GenerateThreadName(const std::string &path,
  940   std::string result = "additional information";
  952     std::string addr_string = Sprintf(" at 0x%llx", addr);
  980     std::string type =
 1012 static void AddThreadsForPath(const std::string &path,
tools/lldb/source/Plugins/InstrumentationRuntime/TSan/TSanRuntime.h
   64   std::string FormatDescription(StructuredData::ObjectSP report);
   66   std::string GenerateSummary(StructuredData::ObjectSP report);
   70   std::string GetLocationDescription(StructuredData::ObjectSP report,
   72                                      std::string &global_name,
   73                                      std::string &filename, uint32_t &line);
tools/lldb/source/Plugins/InstrumentationRuntime/UBSan/UBSanRuntime.cpp
   98                                const std::string &expression_path) {
  103 static std::string RetrieveString(ValueObjectSP return_value_sp,
  105                                   const std::string &expression_path) {
  107   std::string str;
  166   std::string IssueKind = RetrieveString(main_value, process_sp, ".issue_kind");
  167   std::string ErrMessage = RetrieveString(main_value, process_sp, ".message");
  168   std::string Filename = RetrieveString(main_value, process_sp, ".filename");
  188 static std::string GetStopReasonDescription(StructuredData::ObjectSP report) {
  192   std::string stop_reason_description = stop_reason_description_ref;
  332   std::string stop_reason_description = GetStopReasonDescription(info);
tools/lldb/source/Plugins/Language/CPlusPlus/BlockPointer.cpp
  109     std::string child_name;
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
  228 std::string CPlusPlusLanguage::MethodName::GetScopeQualifiedName() {
  234   std::string res;
  368     std::string fixed_scratch("_ZNK");
  376     std::string fixed_scratch("_ZL");
tools/lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h
   50     std::string GetScopeQualifiedName();
tools/lldb/source/Plugins/Language/CPlusPlus/CxxStringTypes.cpp
  165   std::string value;
  191   std::string value;
  217   std::string value;
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp
  230       std::string name;
  619                                  std::string prefix_token = "") {
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxAtomic.cpp
   75     std::string summary;
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
  273     std::string name;
  310     std::string child_name;
tools/lldb/source/Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp
  123         std::string name;
tools/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp
  146   std::string full_source = previous_lines.str() + line.str();
tools/lldb/source/Plugins/Language/ObjC/CF.cpp
   37   std::string buffer(1024, 0);
   96   std::string prefix, suffix;
  283   std::string prefix, suffix;
tools/lldb/source/Plugins/Language/ObjC/Cocoa.cpp
  298   std::string prefix, suffix;
  314   std::string prefix, suffix;
  330   std::string prefix, suffix;
  346   std::string prefix, suffix;
  363   std::string prefix, suffix;
  375   std::string str = value.toString(radix, isSigned);
  384   std::string prefix, suffix;
  400   std::string prefix, suffix;
  705     std::string summary_str = summary.GetString();
  862   std::string buffer(1024, 0);
tools/lldb/source/Plugins/Language/ObjC/NSArray.cpp
  445   std::string prefix, suffix;
tools/lldb/source/Plugins/Language/ObjC/NSDictionary.cpp
  419   std::string prefix, suffix;
tools/lldb/source/Plugins/Language/ObjC/NSSet.cpp
  284   std::string prefix, suffix;
tools/lldb/source/Plugins/Language/ObjC/NSString.cpp
  149   std::string prefix, suffix;
  353   std::string prefix, suffix;
tools/lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp
 1005                                             std::string &prefix,
 1006                                             std::string &suffix) {
tools/lldb/source/Plugins/Language/ObjC/ObjCLanguage.h
  117                                 std::string &prefix,
  118                                 std::string &suffix) override;
tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp
  217       std::string lambda_operator =
  229   std::string func_to_match = get_name();
tools/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
   91             std::string lookup_name("::");
  291     std::string corrected_name(type_and_or_name.GetName().GetCString());
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.h
  112     std::string m_name;
  148     std::string m_name;
  149     std::string m_types;
  177     std::string m_name;
  178     std::string m_type;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCDeclVendor.cpp
  414   typedef std::vector<std::string> TypeVector;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
  277     std::string corrected_name(type_and_or_name.GetName().GetCString());
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
  904     std::string buffer("OBJC_IVAR_$_");
 1076       std::string key_string;
 1638     std::string shared_class_expression = class_name_func_ptr_expr;
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.cpp
   34 std::string AppleObjCTypeEncodingParser::ReadStructName(StringLexer &type) {
   41 std::string AppleObjCTypeEncodingParser::ReadQuotedString(StringLexer &type) {
   97   std::string name(ReadStructName(type));
  103   const bool is_templated = name.find('<') != std::string::npos;
  182   std::string name;
  229     if (less_than_pos != std::string::npos) {
tools/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTypeEncodingParser.h
   30     std::string name;
   55   std::string ReadStructName(StringLexer &type);
   66   std::string ReadQuotedString(StringLexer &type);
tools/lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h
  172     std::unordered_set<std::string> m_class_names;
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptExpressionOpts.cpp
   85   std::string err;
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
  454     std::string group;
  496   empirical_type<std::string> res_name;
  498   empirical_type<std::string> shared_lib;
  500   empirical_type<std::string> cache_dir;
  805     std::string kernel_name_expanded(m_kernel_name.AsCString());
  894   std::vector<std::string> names;
 1489   std::string res_name;
 1496   std::string cache_dir;
 1634     std::string shared_lib;
 1661       std::string res_name;
 2062         std::string name;
 2658     std::string error = llvm::toString(file.takeError());
 4587       std::string path = outfile_spec.GetPath();
 4598         std::string error = llvm::toString(file.takeError());
tools/lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
  202   std::string m_slang_version;
  203   std::string m_bcc_version;
  232   std::map<std::string, std::string> m_pragmas;
  232   std::map<std::string, std::string> m_pragmas;
  233   std::string m_resname;
tools/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
  107   std::string count_path = "." + std::string(type) + "_count";
  108   std::string tid_path = "." + std::string(type) + "_tid";
  109   std::string trace_path = "." + std::string(type) + "_trace";
tools/lldb/source/Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
   62   std::string str;
   97     if (last_pos != std::string::npos) {
  147   std::string str;
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
  553           std::string gnu_debuglink_file;
 1308                                            std::string &gnu_debuglink_file,
 1680   std::string SegmentName;
 1698   std::string GetNextSegmentName() const {
 2846   std::string needle = std::string(".rel") + section_name;
 2847   std::string needlea = std::string(".rela") + section_name;
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
   29   std::string n_name;
  199   std::string m_gnu_debuglink_file;
  266                                      std::string &gnu_debuglink_file,
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
 1964       std::string name;
 2495   std::string memory_symbol_name;
 3901                 std::string full_so_path(so_path);
 3903                 if (double_slash_pos != std::string::npos) {
 5026     std::vector<std::string> rpath_paths;
 5027     std::vector<std::string> rpath_relative_paths;
 5028     std::vector<std::string> at_exec_relative_paths;
 5076       std::string loader_path("@loader_path");
 5077       std::string executable_path("@executable_path");
 5090           std::string path = rpath;
 5335 std::string ObjectFileMachO::GetIdentifierString() {
 5336   std::string result;
 6242         std::string core_file_path(outfile.GetPath());
tools/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
  113   std::string GetIdentifierString() override;
tools/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
  657           std::string symbol_name;
  735         std::string symbol_name;
 1178   std::string name = GetSectionName(sh);
tools/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
   87     std::string os_plugin_class_name(
  100         if (py_extension_pos != std::string::npos)
  339       std::string value = reg_context_data->GetValue();
tools/lldb/source/Plugins/Platform/Android/AdbClient.cpp
   95 Status AdbClient::CreateByDeviceID(const std::string &device_id,
  102   std::string android_serial;
  127 AdbClient::AdbClient(const std::string &device_id) : m_device_id(device_id) {}
  131 void AdbClient::SetDeviceID(const std::string &device_id) {
  135 const std::string &AdbClient::GetDeviceID() const { return m_device_id; }
  140   std::string port = "5037";
  144   std::string uri = "connect://localhost:" + port;
  220 Status AdbClient::SendMessage(const std::string &packet, const bool reconnect) {
  242 Status AdbClient::SendDeviceMessage(const std::string &packet) {
  476   std::string file_description_str = file_description.str();
  495   std::string response_id;
  501     std::string error_message(data_len, 0);
  519   const std::string remote_file_path(remote_file.GetPath(false));
  611 Status AdbClient::SyncService::ReadSyncHeader(std::string &response_id,
  630   std::string response_id;
  644     std::string error_message(data_len, 0);
tools/lldb/source/Plugins/Platform/Android/AdbClient.h
   33   using DeviceIDList = std::list<std::string>;
   56     Status ReadSyncHeader(std::string &response_id, uint32_t &data_len);
   76   static Status CreateByDeviceID(const std::string &device_id, AdbClient &adb);
   79   explicit AdbClient(const std::string &device_id);
   83   const std::string &GetDeviceID() const;
   97                std::string *output);
  109   void SetDeviceID(const std::string &device_id);
  111   Status SendMessage(const std::string &packet, const bool reconnect = true);
  113   Status SendDeviceMessage(const std::string &packet);
  133   std::string m_device_id;
tools/lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
  280   std::string version_string;
  319   std::string tmpdir;
  328   std::unique_ptr<std::string, std::function<void(std::string *)>>
  328   std::unique_ptr<std::string, std::function<void(std::string *)>>
tools/lldb/source/Plugins/Platform/Android/PlatformAndroid.h
   77   std::string m_device_id;
tools/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.cpp
   30     std::string &device_id) {
   58                                        const std::string &device_id) {
   84                                                      std::string &connect_url) {
   86   std::string socket_name;
  128   std::string connect_url;
  173     llvm::StringRef remote_socket_name, std::string &connect_url) {
  218   std::string new_connect_url;
tools/lldb/source/Plugins/Platform/Android/PlatformAndroidRemoteGDBServer.h
   42   std::string m_device_id;
   46   bool LaunchGDBServer(lldb::pid_t &pid, std::string &connect_url) override;
   54                         std::string &connect_url);
tools/lldb/source/Plugins/Platform/Linux/PlatformLinux.cpp
  234   std::string shell_string = shell.GetPath();
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
   84               std::string module_basename(
   86               std::string original_module_basename(module_basename);
  237     std::string cache_path(GetLocalCacheDirectory());
  240       std::string module_path(module_spec.GetFileSpec().GetPath());
 1106       std::string command_output;
 1115         if (first_non_newline != std::string::npos) {
 1162       std::string xcode_dir_path;
 1243   std::string shell_string = shell.GetPath();
 1278     std::string path_to_shlib = fspec.GetPath();
 1280     if (pos != std::string::npos) {
 1311       std::string basename_lower = fspec.GetFilename().GetCString();
 1505     Target *target, std::vector<std::string> &options, SDKType sdk_type) {
 1506   const std::vector<std::string> apple_arguments = {
 1600       std::string dyld_root_path = env.lookup("DYLD_ROOT_PATH");
 1604         std::string product_version;
 1714     std::vector<std::string> path_parts;
tools/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
  121                                              std::vector<std::string> &options,
  131   std::string m_developer_directory;
tools/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.cpp
  161       std::string xcode_contents_path;
  162       std::string default_xcode_sdk;
  168           std::string path;
  171           if (pos != std::string::npos) {
  180             std::string output;
  193               if (first_non_newline != std::string::npos)
  198               if (pos != std::string::npos)
  246     std::string local_os_build;
  250     std::string remote_os_build;
  258       std::string cache_path(GetLocalCacheDirectory());
  259       std::string module_path(platform_file.GetPath());
tools/lldb/source/Plugins/Platform/MacOSX/PlatformMacOSX.h
   74                                    std::vector<std::string> &options) override {
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.cpp
  168 void PlatformRemoteAppleBridge::GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) 
  174 std::string PlatformRemoteAppleBridge::GetPlatformName ()
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleBridge.h
   56   void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override;
   58   std::string GetPlatformName () override;
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.cpp
  227 void PlatformRemoteAppleTV::GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) 
  233 std::string PlatformRemoteAppleTV::GetPlatformName ()
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleTV.h
   56   void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override;
   58   std::string GetPlatformName () override;
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.cpp
  301 void PlatformRemoteAppleWatch::GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) 
  307 std::string PlatformRemoteAppleWatch::GetPlatformName ()
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteAppleWatch.h
   59   void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override;
   61   std::string GetPlatformName () override;
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.cpp
  199       std::vector<std::string>  device_support_dirnames;
  202       for (std::string &dirname : device_support_dirnames)
  205         std::string local_sdk_cache_str = "~/Library/Developer/Xcode/";
  343   std::string platform_dir = "/Platforms/" + GetPlatformName() + "/DeviceSupport";
  417     std::string sdkroot_path =
  644       std::string build;
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteDarwinDevice.h
   46                                    std::vector<std::string> &options) override {
   64   std::string m_device_support_directory;
   65   std::string m_device_support_directory_for_os_version;
   66   std::string m_build_update;
  101   virtual void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) = 0;
  103   virtual std::string GetPlatformName () = 0;
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.cpp
  145 void PlatformRemoteiOS::GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) 
  151 std::string PlatformRemoteiOS::GetPlatformName ()
tools/lldb/source/Plugins/Platform/MacOSX/PlatformRemoteiOS.h
   55   void GetDeviceSupportDirectoryNames (std::vector<std::string> &dirnames) override;
   57   std::string GetPlatformName () override;
tools/lldb/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
  203   std::string shell_string = shell.GetPath();
tools/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
  242     std::string src_path(source.GetPath());
  245     std::string dst_path(destination.GetPath());
  262       std::string src_path(source.GetPath());
  265       std::string dst_path(destination.GetPath());
  303   std::string src_path(source.GetPath());
  306   std::string dst_path(destination.GetPath());
  408 std::string PlatformPOSIX::GetPlatformSpecificConnectionInformation() {
  682   std::string expr(GetLibdlFunctionDeclarations(process));
  747                                     const std::vector<std::string> *paths,
  753   std::string path;
  853     std::string path_array;
  982       std::string name_string;
  991   std::string dlopen_error_str;
tools/lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h
   61   std::string GetPlatformSpecificConnectionInformation() override;
   71                        const std::vector<std::string> *paths,
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.cpp
  238 bool PlatformRemoteGDBServer::GetRemoteOSBuildString(std::string &s) {
  242 bool PlatformRemoteGDBServer::GetRemoteOSKernelDescription(std::string &s) {
  294       std::string path;
  341 llvm::Optional<std::string>
  343   std::string name;
  349 llvm::Optional<std::string>
  351   std::string name;
  423     std::string error_str;
  466       std::string connect_url;
  510                                               std::string &connect_url) {
  515   std::string socket_name;
  552       std::string connect_url;
  698     std::string
  772         std::string description{""};
  788 std::string PlatformRemoteGDBServer::MakeGdbServerUrl(
  789     const std::string &platform_scheme, const std::string &platform_hostname,
  789     const std::string &platform_scheme, const std::string &platform_hostname,
  805 std::string PlatformRemoteGDBServer::MakeUrl(const char *scheme,
  831   std::vector<std::string> connection_urls;
  843     std::vector<std::string> &connection_urls) {
  844   std::vector<std::pair<uint16_t, std::string>> remote_servers;
tools/lldb/source/Plugins/Platform/gdb-server/PlatformRemoteGDBServer.h
   84   bool GetRemoteOSBuildString(std::string &s) override;
   86   bool GetRemoteOSKernelDescription(std::string &s) override;
  145       std::string
  163   GetPendingGdbServerList(std::vector<std::string> &connection_urls);
  167   std::string m_platform_description; // After we connect we can get a more
  170   std::string m_platform_scheme;
  171   std::string m_platform_hostname;
  180   virtual bool LaunchGDBServer(lldb::pid_t &pid, std::string &connect_url);
  184   virtual std::string MakeUrl(const char *scheme, const char *hostname,
  188   std::string MakeGdbServerUrl(const std::string &platform_scheme,
  188   std::string MakeGdbServerUrl(const std::string &platform_scheme,
  189                                const std::string &platform_hostname,
  192   llvm::Optional<std::string> DoGetUserName(UserIDResolver::id_t uid) override;
  193   llvm::Optional<std::string> DoGetGroupName(UserIDResolver::id_t uid) override;
tools/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp
   96 std::string NativeThreadLinux::GetName() {
  108                                       std::string &description) {
tools/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h
   34   std::string GetName() override;
   39                      std::string &description) override;
  101   std::string m_stop_description;
tools/lldb/source/Plugins/Process/Linux/ProcessorTrace.cpp
  175   std::string vendor_id;
tools/lldb/source/Plugins/Process/POSIX/CrashReason.cpp
   17 void AppendFaultAddr(std::string &str, lldb::addr_t addr) {
   24 void AppendBounds(std::string &str, lldb::addr_t lower_bound,
  132 std::string GetCrashReasonString(CrashReason reason, const siginfo_t &info) {
  133   std::string str;
  150 std::string GetCrashReasonString(CrashReason reason, lldb::addr_t fault_addr) {
  151   std::string str;
tools/lldb/source/Plugins/Process/POSIX/CrashReason.h
   52 std::string GetCrashReasonString(CrashReason reason, lldb::addr_t fault_addr);
   53 std::string GetCrashReasonString(CrashReason reason, const siginfo_t &info);
tools/lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
  142           std::string reg_name_str = matches[1].str();
  143           std::string msbit_str = matches[2].str();
  144           std::string lsbit_str = matches[3].str();
tools/lldb/source/Plugins/Process/Utility/HistoryThread.h
   83   std::string m_queue_name;
   84   std::string m_thread_name;
tools/lldb/source/Plugins/Process/Utility/RegisterContextLLDB.cpp
 1372       std::string unwindplan_name("");
tools/lldb/source/Plugins/Process/Utility/ThreadMemory.h
   98   std::string m_name;
   99   std::string m_queue;
tools/lldb/source/Plugins/Process/elf-core/ProcessElfCore.h
  127   std::string m_dyld_plugin_name;
tools/lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp
  258     std::string abi = arch.GetTargetABI();
tools/lldb/source/Plugins/Process/elf-core/ThreadElfCore.h
  132   std::string name;
  165   std::string m_thread_name;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
   89       std::string inferior_stdout;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h
  108   std::string m_continue_packet;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
  127   std::string packet_str = packet.GetString();
  216     std::string output;
  329             std::string regex_str = "^";
  431   if (hash_mark_idx == std::string::npos)
  469       std::string bufsize_str(m_bytes.data() + 2, i - 2 - 1);
  617   std::string new_packet;
  666     size_t checksum_idx = std::string::npos;
  692         if (hash_pos != std::string::npos) {
  705             content_length = std::string::npos;
  739     if (content_length == std::string::npos) {
  814       std ::string packet_str;
  816       for (std::string::const_iterator c = m_bytes.begin() + content_start;
  943   std::string env_debugserver_path = host_env.lookup("LLDB_DEBUGSERVER_PATH");
 1103     std::string env_debugserver_log_file =
 1118     std::string env_debugserver_log_channels =
 1135       std::string extra_arg = host_env.lookup(env_var_name);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunication.h
  215   std::string m_listen_url;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
  342   std::vector<std::string> features = {"xmlRegisters=i386,arm,mips,arc"};
  383         std::vector<std::string> supported_compressions;
  402               std::string this_compression(
  655     const char *payload_prefix, std::string &response_string) {
  668   std::string payload_prefix_str(payload_prefix);
  685     const std::string &this_string = this_response.GetStringRef();
  694     response_string.append(this_string, 1, std::string::npos);
  748 bool GDBRemoteCommunicationClient::GetLaunchSuccess(std::string &error_str) {
  774   std::string exe_path;
  939 bool GDBRemoteCommunicationClient::GetOSBuildString(std::string &s) {
  950 bool GDBRemoteCommunicationClient::GetOSKernelDescription(std::string &s) {
  961 bool GDBRemoteCommunicationClient::GetHostname(std::string &s) {
 1017     std::vector<std::string> supported_compressions) {
 1019   std::string avail_name;
 1083     std::string packet = "QEnableCompression:type:" + avail_name + ";";
 1139         std::string arch_name;
 1140         std::string os_name;
 1141         std::string environment;
 1142         std::string vendor_name;
 1143         std::string triple;
 1144         std::string distribution_id;
 1253             std::string triple;
 1508           std::string name;
 1513           std::string error_string;
 1601   std::string xml;
 1752     std::string path{file_spec.GetPath(false)};
 1772     std::string path{file_spec.GetPath(false)};
 1792     std::string path{file_spec.GetPath(false)};
 1818     std::string cwd;
 1828     std::string path{working_dir.GetPath(false)};
 1891     std::string vendor;
 1892     std::string os_type;
 1921         std::string triple;
 1928         std::string name;
 1937           std::string arg;
 2022       std::string arch_name;
 2023       std::string os_name;
 2024       std::string environment;
 2025       std::string vendor_name;
 2026       std::string triple;
 2027       std::string elf_abi;
 2233                                                std::string &name) {
 2260                                                 std::string &name) {
 2483     std::string &socket_name) {
 2491   std::string hostname;
 2527     std::vector<std::pair<uint16_t, std::string>> &connection_urls) {
 2554     std::string socket_name;
 2810     std::string
 2824     std::string path{working_dir.GetPath(false)};
 2847     std::string output;
 2858   std::string path{file_spec.GetPath(false)};
 2880   std::string path{file_spec.GetPath(false)};
 2921   std::string path(file_spec.GetPath(false));
 2954   std::string path(file_spec.GetPath(false));
 2972   std::string path{file_spec.GetPath(false)};
 3025       std::string buffer;
 3072   std::string src_path{src.GetPath(false)}, dst_path{dst.GetPath(false)};
 3105   std::string path{file_spec.GetPath(false)};
 3138   std::string path(file_spec.GetPath(false));
 3157   std::string path(file_spec.GetPath(false));
 3536   std::string module_path = module_file_spec.GetPath(false);
 3569       std::string uuid;
 3574       std::string triple;
 3587       std::string path;
 3692     const lldb_private::ConstString annex, std::string &out,
 3722     const std::string &str = chunk.GetStringRef();
 3830             std::string symbol_name;
 3975   std::string packet = formatv("QPassSignals:{0:$[;]@(x-2)}", range).str();
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
   63                                      std::string &response_string);
   79   bool GetLaunchSuccess(std::string &error_str);
   82                        uint16_t &port, std::string &socket_name);
   85       std::vector<std::pair<uint16_t, std::string>> &connection_urls);
  254   bool GetOSBuildString(std::string &s);
  256   bool GetOSKernelDescription(std::string &s);
  260   bool GetHostname(std::string &s);
  271   bool GetUserName(uint32_t uid, std::string &name);
  273   bool GetGroupName(uint32_t gid, std::string &name);
  388       std::string
  436                       const lldb_private::ConstString annex, std::string &out,
  452   const std::string &GetServerSupportedFeatures() const {
  555   std::string m_os_build;
  556   std::string m_os_kernel;
  557   std::string m_hostname;
  558   std::string m_gdb_server_name; // from reply to qGDBServerVersion, empty if
  564   std::string m_qSupported_response; // the complete response to qSupported
  578   void MaybeEnableCompression(std::vector<std::string> supported_compressions);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
   47 void GDBRemoteCommunicationHistory::AddPacket(const std::string &src,
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.h
   37   void AddPacket(const std::string &src, uint32_t src_len,
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
  273   std::string s;
  348         std::string file;
  507   std::string path;
  584       std::string buffer(count, 0);
  615       std::string buffer;
  639   std::string path;
  661   std::string path;
  681   std::string path;
  701   std::string dst, src;
  719   std::string path;
  731   std::string path;
  732   std::string working_dir;
  741       std::string output;
  776   std::string path;
  800     std::string path;
  820     std::string path;
  894   std::string path;
  910   std::string path;
  926   std::string path;
  966     std::string str;
 1025             std::string arg;
 1073   std::string module_path;
 1081   std::string triple;
 1240     std::string ostype = proc_triple.getOSName();
 1273     std::string abi = proc_arch.GetTargetABI();
 1281     const std::string &module_path, const ArchSpec &arch) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.h
  145   virtual FileSpec FindModuleFile(const std::string &module_path,
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
  512     std::string description;
  543     const std::string thread_name = thread->GetName();
  592   std::string description;
  619   const std::string thread_name = thread->GetName();
 1335   std::string path;
 2298   std::string buf(byte_count, '\0');
 2823   std::string buffer_key = (xfer_object + xfer_action + xfer_annex).str();
 3139   std::string file_name;
 3293 GDBRemoteCommunicationServerLLGS::FindModuleFile(const std::string &module_path,
 3308 std::string GDBRemoteCommunicationServerLLGS::XMLEncodeAttributeValue(
 3310   std::string result;
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
  193   FileSpec FindModuleFile(const std::string &module_path,
  199   static std::string XMLEncodeAttributeValue(llvm::StringRef value);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.cpp
   91     const lldb_private::Args &args, std::string hostname, lldb::pid_t &pid,
   92     uint16_t &port, std::string &socket_name) {
  130     std::string platform_uri = GetConnection()->GetURI();
  169   std::string hostname;
  182   std::string socket_name;
  353   std::string path;
  544     lldb::pid_t pid, uint16_t port, const std::string &socket_name) {
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerPlatform.h
   57   Status LaunchGDBServer(const lldb_private::Args &args, std::string hostname,
   59                          std::string &socket_name);
   62                            const std::string &socket_name);
   66   const std::string m_socket_scheme;
   75     std::string socket_name;
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
  357             std::string triple_string = triple_string_value->GetValue();
  913           std::string error_str;
 1530 ProcessGDBRemote::UpdateThreadIDsFromStopReplyThreadsValue(std::string &value) {
 1534   while ((comma_pos = value.find(',')) != std::string::npos) {
 1549 ProcessGDBRemote::UpdateThreadPCsFromStopReplyThreadsValue(std::string &value) {
 1553   while ((comma_pos = value.find(',')) != std::string::npos) {
 1604         const std::string &stop_info_str = stop_info.GetStringRef();
 1608         if (thread_pcs_pos != std::string::npos) {
 1611           if (end != std::string::npos) {
 1612             std::string value = stop_info_str.substr(start, end - start);
 1618         if (threads_pos != std::string::npos) {
 1621           if (end != std::string::npos) {
 1622             std::string value = stop_info_str.substr(start, end - start);
 1757     uint8_t signo, const std::string &thread_name, const std::string &reason,
 1757     uint8_t signo, const std::string &thread_name, const std::string &reason,
 1758     const std::string &description, uint32_t exc_type,
 1763     std::string &queue_name, QueueKind queue_kind, uint64_t queue_serial) {
 2028   std::string value;
 2029   std::string thread_name;
 2030   std::string reason;
 2031   std::string description;
 2039   std::string queue_name;
 2075       std::string queue_kind_str = object->GetStringValue();
 2186     std::string thread_name;
 2187     std::string reason;
 2188     std::string description;
 2196     std::string queue_name;
 2242         std::string json;
 2251         std::string name;
 2570   std::string exit_string;
 2641       response.GetStringRef().find(";reason:exec;") != std::string::npos;
 3669   const std::string &pkt = packet.GetStringRef();
 3775                 std::string desc_string;
 4009     std::string response_string;
 4292 typedef std::vector<std::string> stringVec;
 4302   std::string arch;
 4303   std::string osabi;
 4318         std::string gdb_group;
 4319         std::string gdb_type;
 4421             std::string opcode_string = value.str();
 4494     ArchSpec &arch_to_use, std::string xml_filename, uint32_t &cur_reg_num,
 4497   std::string raw;
 4648     std::string raw;
 4710             std::string name;
 4738     std::string raw;
 4777             std::string name;
 4827     std::string mod_name;
 4902   std::string file_path = file.GetPath(false);
 4956   std::string input = data.str(); // '1' to move beyond 'A'
 4964   while ((found = input.find(end_delimiter, pos)) != std::string::npos) {
 4967     std::string profile_data =
 4980 std::string ProcessGDBRemote::HarmonizeThreadIdsForProfileData(
 4983   std::string output;
 5295         std::string response_str = response.GetStringRef();
 5348       const std::string &response_str = response.GetStringRef();
tools/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
  231   std::string HarmonizeThreadIdsForProfileData(
  262   typedef std::map<uint32_t, std::string> ExpeditedRegisterMap;
  336   size_t UpdateThreadPCsFromStopReplyThreadsValue(std::string &value);
  338   size_t UpdateThreadIDsFromStopReplyThreadsValue(std::string &value);
  364                     const std::string &thread_name, const std::string &reason,
  364                     const std::string &thread_name, const std::string &reason,
  365                     const std::string &description, uint32_t exc_type,
  369                     lldb::addr_t dispatch_queue_t, std::string &queue_name,
  383                                             std::string &dispatch_queue_name);
  388                                              std::string xml_filename, 
  410   std::string m_partial_profile_data;
  426   using ModuleCacheKey = std::pair<std::string, std::string>;
  426   using ModuleCacheKey = std::pair<std::string, std::string>;
tools/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
   69 void ThreadGDBRemote::SetQueueInfo(std::string &&queue_name,
tools/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.h
   80   void SetQueueInfo(std::string &&queue_name, lldb::QueueKind queue_kind,
   94   std::string m_thread_name;
   95   std::string m_dispatch_queue_name;
tools/lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
  299   std::string corefile_identifier = core_objfile->GetIdentifierString();
  301       corefile_identifier.find("Darwin Kernel") != std::string::npos) {
  304     if (corefile_identifier.find("UUID=") != std::string::npos) {
  306       std::string uuid_str = corefile_identifier.substr(p, 36);
  309     if (corefile_identifier.find("stext=") != std::string::npos) {
  329       && corefile_identifier.find("EFI ") != std::string::npos) {
  331       if (corefile_identifier.find("UUID=") != std::string::npos) {
  333           std::string uuid_str = corefile_identifier.substr(p, 36);
tools/lldb/source/Plugins/Process/mach-core/ThreadMachCore.h
   56   std::string m_thread_name;
   57   std::string m_dispatch_queue_name;
tools/lldb/source/Plugins/Process/minidump/MinidumpParser.cpp
  216       if (ExpectedCSD->find("Linux") != std::string::npos)
tools/lldb/source/Plugins/Process/minidump/ProcessMinidump.cpp
  286     std::string desc;
  412     std::string name = cantFail(m_minidump_parser->GetMinidumpFile().getString(
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
   53 Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) {
   53 Expected<std::string> python::As<std::string>(Expected<PythonObject> &&obj) {
  762   std::string str = module.str();
 1056 std::string PythonException::ReadBacktrace() const {
 1064   Expected<std::string> backtrace = As<std::string>(
 1064   Expected<std::string> backtrace = As<std::string>(
 1068     std::string message =
tools/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h
  403 llvm::Expected<std::string> As<std::string>(llvm::Expected<PythonObject> &&obj);
  403 llvm::Expected<std::string> As<std::string>(llvm::Expected<PythonObject> &&obj);
  598     std::string s = name;
  690   std::string ReadBacktrace() const;
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
   88     const lldb::TypeSummaryOptionsSP &options_sp, std::string &retval);
  103     std::string &error_string,
  173     lldb::ProcessSP &process, std::string &output);
  177     lldb::ThreadSP &thread, std::string &output);
  181     lldb::TargetSP &target, std::string &output);
  185     lldb::StackFrameSP &frame, std::string &output);
  189     lldb::ValueObjectSP &value, std::string &output);
  537                                                          std::string &data) {
  811 static std::string GenerateUniqueName(const char *base_name_wanted,
  860   std::string command_str = command.str();
 1233   std::string oneliner("return ");
 1344   std::string function_def_string(function_def.CopyList());
 1410     StringList &user_input, std::string &output, const void *name_token) {
 1422   std::string auto_generated_function_name(
 1437     StringList &user_input, std::string &output) {
 1446   std::string auto_generated_function_name(GenerateUniqueName(
 1461     StringList &user_input, std::string &output, const void *name_token) {
 1473   std::string auto_generated_class_name(GenerateUniqueName(
 1788   std::string param_format;
 1843     std::string &error_str, 
 2121     const char *oneliner, std::string &output, const void *name_token) {
 2128     const char *oneliner, std::string &output, const void *name_token) {
 2135     StringList &user_input, std::string &output,
 2146   std::string auto_generated_function_name(GenerateUniqueName(
 2165     StringList &user_input, std::string &output) {
 2173   std::string auto_generated_function_name(GenerateUniqueName(
 2189     const TypeSummaryOptions &options, std::string &retval) {
 2498   std::string buffer;
 2556     const char *impl_function, Process *process, std::string &output,
 2581     const char *impl_function, Thread *thread, std::string &output,
 2606     const char *impl_function, Target *target, std::string &output,
 2631     const char *impl_function, StackFrame *frame, std::string &output,
 2656     const char *impl_function, ValueObject *value, std::string &output,
 2680 uint64_t replace_all(std::string &str, const std::string &oldStr,
 2680 uint64_t replace_all(std::string &str, const std::string &oldStr,
 2681                      const std::string &newStr) {
 2684   while ((pos = str.find(oldStr, pos)) != std::string::npos) {
 2705     std::string basename(target_file.GetFilename().GetCString());
 2737       std::string directory = target_file.GetDirectory().GetCString();
 2904   std::string err_msg;
 2914     std::string args_str = args.str();
 2948   std::string err_msg;
 2958     std::string args_str = args.str();
 2976                                                           std::string &dest) {
 2980   std::string command(item);
 3003     StructuredData::GenericSP cmd_obj_sp, std::string &dest) {
 3113     StructuredData::GenericSP cmd_obj_sp, std::string &dest) {
 3217                                                std::string path) {
 3218   std::string path_copy;
 3220   std::string statement;
tools/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
   56   bool GenerateTypeScriptFunction(StringList &input, std::string &output,
   59   bool GenerateTypeSynthClass(StringList &input, std::string &output,
   62   bool GenerateTypeSynthClass(const char *oneliner, std::string &output,
   66   bool GenerateTypeScriptFunction(const char *oneliner, std::string &output,
   70                                    std::string &output) override;
   82                            std::string &error_str,
  184       std::string &output,
  188                                              std::string &output) override;
  193                           std::string &retval) override;
  195   bool GetDocumentationForItem(const char *item, std::string &dest) override;
  198                                     std::string &dest) override;
  204                                    std::string &dest) override;
  209     std::string temp;
  214                               std::string &output, Status &error) override;
  217                               std::string &output, Status &error) override;
  220                               std::string &output, Status &error) override;
  223                               std::string &output, Status &error) override;
  226                               std::string &output, Status &error) override;
  282                               std::string &data) override;
  353   static void AddToSysPath(AddLocation location, std::string path);
  399   std::string m_dictionary_name;
tools/lldb/source/Plugins/StructuredData/DarwinLog/StructuredDataDarwinLog.cpp
  186                                  const std::string &op_arg, Status &error)>;
  195                                  const std::string &op_arg, Status &error) {
  280                                       const std::string &op_arg,
  307                   const std::string &regex_text)
  311   const std::string m_regex_text;
  332                                       const std::string &op_arg,
  352                        const std::string &match_text)
  356   const std::string m_match_text;
  668     if (action_end_pos == std::string::npos) {
  687     if (attribute_end_pos == std::string::npos) {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
  357 static std::string GetUnitName(const DWARFDIE &die) {
  754     std::string object_pointer_name;
 1336       std::string qualified_name;
 2301       std::string qualified_name;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
  178 const char *DWARFDIE::GetQualifiedName(std::string &storage) const {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIE.h
   35   const char *GetQualifiedName(std::string &storage) const;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.cpp
  956                                                   std::string &storage) const {
  965                                       std::string &storage) const {
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugInfoEntry.h
  100   const char *GetQualifiedName(DWARFUnit *cu, std::string &storage) const;
  103                                std::string &storage) const;
tools/lldb/source/Plugins/SymbolFile/DWARF/DWARFDeclContext.h
   84   mutable std::string m_qualified_name;
tools/lldb/source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
  268   std::string data;
tools/lldb/source/Plugins/SymbolFile/DWARF/HashedNameToDIE.h
  169     std::string m_name;
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
  191     std::string original_file;
  201     std::string remapped_file;
  715             std::string remapped_file;
 2337     const std::string &scope_qualified_name,
 2943                 std::string qualified_name;
 2987       std::string scope_qualified_name(GetDeclContextForUID(die.GetID())
tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h
  181       const std::string &scope_qualified_name,
tools/lldb/source/Plugins/SymbolFile/NativePDB/CompileUnitIndex.cpp
  157   std::string s = main_file.str();
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.cpp
  181   std::string qname = parent.asTag().getUniqueName();
  189   std::string piece;
  214 std::pair<clang::DeclContext *, std::string>
  228   std::string uname = idn->toString(llvm::ms_demangle::OF_NoTagSpecifier);
  255       std::string str = nii->toString();
  325         std::string unnamed_type_name;
  394 static std::string
  398   std::string result = nodes.front()->toString();
  500 std::pair<clang::DeclContext *, std::string>
  526     std::string ns_name = spec.GetBaseName().str();
  555     std::string qname = RenderScopeList(name_components);
  569     std::string ns = name_components.front()->toString();
  771   std::string uname;
  882   std::string uname = DropNameScope(udt.Name);
  988   std::string context_name;
 1102   std::string uname;
 1199     std::string uname;
 1205     std::string actual_ns = ns->getQualifiedNameAsString();
 1328     std::string qname = ns.getQualifiedNameAsString();
tools/lldb/source/Plugins/SymbolFile/NativePDB/PdbAstBuilder.h
  125   std::pair<clang::DeclContext *, std::string>
  127   std::pair<clang::DeclContext *, std::string>
tools/lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
   83 static std::unique_ptr<PDBFile> loadPDBFile(std::string PdbPath,
  110 loadMatchingPDBFile(std::string exe_path, llvm::BumpPtrAllocator &allocator) {
  452   std::string name;
  529 static std::string GetUnqualifiedTypeName(const TagRecord &record) {
  553   std::string uname = GetUnqualifiedTypeName(record);
  578   std::string uname = GetUnqualifiedTypeName(er);
  808   std::string global_name("::");
  826   std::string global_name("::");
 1346   std::string name = var_info.name.str();
tools/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp
  398     std::string name = MSVCUndecoratedNameParser::DropScope(udt->getName());
  476     std::string name =
  549     std::string name =
  588     std::string name;
  899     std::string name = MSVCUndecoratedNameParser::DropScope(data->getName());
  925     std::string name = MSVCUndecoratedNameParser::DropScope(func->getName());
 1020   std::string name(symbol.getRawSymbol().getName());
 1059       std::string namespace_name = specs[i].GetBaseName();
 1131   std::string name = MSVCUndecoratedNameParser::DropScope(enum_value.getName());
 1345   std::string name = MSVCUndecoratedNameParser::DropScope(method.getName());
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp
  138     std::string exePath = m_objfile_sp->GetFileSpec().GetPath();
  215   std::string name = last_compiland_up->getName();
  812         std::string source_file = compiland->getSourceFileFullPath();
  900 std::string SymbolFilePDB::GetMangledForPDBData(const PDBSymbolData &pdb_data) {
 1374     const std::string &scope_qualified_name,
 1485       std::string type_name;
 1744   std::string path = compiland_up->getSourceFileFullPath();
 1780   std::string path = comp_unit.GetPath();
 1920   std::string func_decorated_name;
tools/lldb/source/Plugins/SymbolFile/PDB/SymbolFilePDB.h
  123       const std::string &scope_qualified_name,
  189   std::string GetMangledForPDBData(const llvm::pdb::PDBSymbolData &pdb_data);
  240   llvm::DenseMap<uint64_t, std::string> m_public_names;
tools/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp
  113 std::string
  115   std::string dispatch_queue_name;
tools/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h
   79   std::string
  132     std::string enqueuing_thread_label;
  133     std::string enqueuing_queue_label;
  134     std::string target_queue_label;
tools/lldb/source/Plugins/UnwindAssembly/x86/x86AssemblyInspectionEngine.cpp
 1571     std::string unwind_plan_source(unwind_plan.GetSourceName().AsCString());
tools/lldb/source/Symbol/ClangASTContext.cpp
 3854                                       std::string &class_name) {
 3926   std::string type_name;
 4619   std::string name;
 5910                     std::string &name, uint64_t *bit_offset_ptr,
 5960                                               size_t idx, std::string &name,
 6566     bool ignore_array_bounds, std::string &child_name,
 7458             std::string base_class_type_name(
 8422           std::string property_setter_no_colon(
 8428           std::string setter_sel_string("set");
 9062           std::string base_class_type_name(base_class_qual_type.getAsString());
 9129           std::string field_type_name(field_type.getAsString());
 9673         std::string clang_typedef_name(
 9728         std::string clang_type_name(qual_type.getAsString());
 9818     std::string template_basename(parent_name);
tools/lldb/source/Symbol/ClangASTImporter.cpp
  878     std::string namespace_string = decl->getDeclName().getAsString();
  970         std::string name_string;
  984         std::string ast_string;
 1056       std::string name_string;
tools/lldb/source/Symbol/ClangExternalASTSourceCallbacks.cpp
   59   std::string decl_name(clang_decl_name.getAsString());
tools/lldb/source/Symbol/CompilerType.cpp
  539 CompilerType CompilerType::GetFieldAtIndex(size_t idx, std::string &name,
  584   std::string field_name;
  601     std::string &child_name, uint32_t &child_byte_size,
tools/lldb/source/Symbol/CxxModuleHandler.cpp
   96   MissingDeclContext(DeclContext *context, std::string error)
  100   std::string m_error;
tools/lldb/source/Symbol/LocateSymbolFile.cpp
   83   std::string dsym_filename = filename.AsCString();
  106     std::string binary_name(filename.AsCString());
  108     if (last_dot != std::string::npos) {
  124   std::string dsym_yaa_filename = filename.AsCString();
  307   std::string uuid_str;
  326     std::vector<std::string> files;
  327     std::string dirname = dirspec.GetPath();
  346       const std::string &filename = files[idx_file];
tools/lldb/source/Symbol/SymbolFile.cpp
  125     const std::string &scope_qualified_name,
tools/lldb/source/Symbol/TypeList.cpp
  114 void TypeList::RemoveMismatchedTypes(const std::string &type_scope,
  115                                      const std::string &type_basename,
tools/lldb/source/Symbol/TypeMap.cpp
  144 void TypeMap::RemoveMismatchedTypes(const std::string &type_scope,
  145                                     const std::string &type_basename,
tools/lldb/source/Symbol/Variable.cpp
  398     std::string variable_name = matches[1].str();
  491     StackFrame *frame, const std::string &partial_member_name,
  498     StackFrame *frame, const std::string &partial_member_name,
  536       std::string member_name;
  564   std::string remaining_partial_path;
  697         std::string token(partial_path, 0, pos);
tools/lldb/source/Target/ABI.cpp
  217   std::string triple = arch.GetTriple().getTriple();
  218   std::string lookup_error;
tools/lldb/source/Target/InstrumentationRuntimeStopInfo.cpp
   19     Thread &thread, std::string description,
   32     Thread &thread, std::string description,
tools/lldb/source/Target/Language.cpp
  428                                         std::string &prefix,
  429                                         std::string &suffix) {
tools/lldb/source/Target/ModuleCache.cpp
   36 std::string GetEscapedHostname(const char *hostname) {
   39   std::string result(hostname);
tools/lldb/source/Target/PathMappingList.cpp
  149   std::string remapped;
  158                                 std::string &new_path) const {
  188   std::string path = file.GetPath();
  205   std::string orig_path = orig_spec.GetPath();
tools/lldb/source/Target/Platform.cpp
  402   std::string s;
  442   std::string specific_info(GetPlatformSpecificConnectionInformation());
  490 bool Platform::GetOSBuildString(std::string &s) {
  503 bool Platform::GetOSKernelDescription(std::string &s) {
  515     Target *target, std::vector<std::string> &options) {
  516   std::vector<std::string> default_compilation_options = {
  573     std::string src_dir_path(src.GetPath());
  658         std::string path;
  710         std::string src_dir_path(src.GetPath());
 1023         std::string shell_str = (shell) ? shell.GetPath() : "<null>";
 1321     std::string
 1736                                const std::vector<std::string> *paths,
 1745                                const std::vector<std::string> &paths,
tools/lldb/source/Target/Process.cpp
 1965 size_t Process::ReadCStringFromMemory(addr_t addr, std::string &out_str,
 2329     std::string buffer(size, 0);
 4205 void Process::BroadcastAsyncProfileData(const std::string &one_profile_data) {
 4233   std::string &one_profile_data = m_profile_data.front();
tools/lldb/source/Target/QueueItem.cpp
   83 std::string QueueItem::GetThreadLabel() {
   88 std::string QueueItem::GetQueueLabel() {
tools/lldb/source/Target/RemoteAwarePlatform.cpp
   29     int *signo_ptr, std::string *command_output,
  180 bool RemoteAwarePlatform::GetRemoteOSBuildString(std::string &s) {
  187 bool RemoteAwarePlatform::GetRemoteOSKernelDescription(std::string &s) {
tools/lldb/source/Target/SectionLoadList.cpp
  143       std::string module_name("<Unknown>");
  178     std::string module_name("<Unknown>");
tools/lldb/source/Target/StackFrame.cpp
  529   std::string var_expr_storage;
  610   while (separator_idx != std::string::npos) {
 1613         std::string name_str(
tools/lldb/source/Target/StackFrameList.cpp
  961   std::string buffer;
tools/lldb/source/Target/StackFrameRecognizer.cpp
   69       std::function<void(uint32_t recognized_id, std::string recognizer_name, std::string module,
   69       std::function<void(uint32_t recognized_id, std::string recognizer_name, std::string module,
   70                          std::string symbol, bool regexp)> const &callback) {
  171     std::function<void(uint32_t recognized_id, std::string recognizer_name, std::string module,
  171     std::function<void(uint32_t recognized_id, std::string recognizer_name, std::string module,
  172                        std::string symbol, bool regexp)> const &callback) {
tools/lldb/source/Target/Target.cpp
  307     const std::unordered_set<std::string> &function_names,
  439                          const std::vector<std::string> &func_names,
  739 void Target::GetBreakpointNames(std::vector<std::string> &names) {
  975   std::string path(file.GetPath());
 1059   std::vector<std::string> no_names;
 1064                                          std::vector<std::string> &names,
 1802 size_t Target::ReadCStringFromMemory(const Address &addr, std::string &out_str,
 2333     const EvaluateExpressionOptions &options, std::string *fixed_expression,
tools/lldb/source/Target/Thread.cpp
 1729                           bool can_leave_function, std::string *warnings) {
tools/lldb/source/Target/ThreadPlanStepInRange.cpp
  368           std::string match = matches[1].str();
tools/lldb/source/Utility/ArchSpec.cpp
  601 std::string ArchSpec::GetTargetABI() const {
  603   std::string abi;
  623 void ArchSpec::SetFlags(std::string elf_abi) {
  637 std::string ArchSpec::GetClangTargetCPU() const {
  638   std::string cpu;
 1435   std::string Status;
tools/lldb/source/Utility/Args.cpp
   25                                          std::string &result) {
   80 static std::tuple<std::string, char, llvm::StringRef>
   87   std::string arg;
  174   for (const std::string &arg : list)
  207 bool Args::GetCommandString(std::string &command) const {
  219 bool Args::GetQuotedCommandString(std::string &command) const {
  243   std::string arg;
  379                                        std::string &safe_arg) {
  406     if (pos != std::string::npos) {
  446 void Args::EncodeEscapeSequences(const char *src, std::string &dst) {
  545 void Args::ExpandEscapedCharacters(const char *src, std::string &dst) {
  596 std::string Args::EscapeLLDBCommandArgument(const std::string &arg,
  596 std::string Args::EscapeLLDBCommandArgument(const std::string &arg,
  614   std::string res;
  632   std::string arg;
tools/lldb/source/Utility/CompletionRequest.cpp
   44 std::string CompletionResult::Completion::GetUniqueKey() const {
   52   std::string result;
tools/lldb/source/Utility/Event.cpp
  183 void EventDataBytes::SwapBytes(std::string &new_bytes) {
tools/lldb/source/Utility/FileSpec.cpp
  347     std::string path{GetPath(true)};
  376   std::string result = GetPath(denormalize);
  381 std::string FileSpec::GetPath(bool denormalize) const {
tools/lldb/source/Utility/Log.cpp
  321 void Log::WriteMessage(const std::string &message) {
  342   std::string message_string;
tools/lldb/source/Utility/RegisterValue.cpp
  416     std::string value_string = value_str;
tools/lldb/source/Utility/RegularExpression.cpp
   36   std::string error;
tools/lldb/source/Utility/Reproducer.cpp
  192   std::vector<std::string> files;
  245   std::string filename = (llvm::Twine(Info::name) + llvm::Twine("-") +
  260   std::vector<std::string> files;
  316   std::vector<std::string> files;
  332 llvm::Optional<std::string> CommandLoader::GetNextFile() {
tools/lldb/source/Utility/ReproducerInstrumentation.cpp
   81 std::string Registry::GetSignature(unsigned id) {
   91 std::string Registry::SignatureStr::ToString() const {
  104 Recorder::Recorder(llvm::StringRef pretty_func, std::string &&pretty_args)
tools/lldb/source/Utility/StreamString.cpp
   43   if (last_line_begin_pos == std::string::npos) {
   56   if (last_line_begin_pos == std::string::npos) {
tools/lldb/source/Utility/StringExtractor.cpp
  299 size_t StringExtractor::GetHexByteString(std::string &str) {
  308 size_t StringExtractor::GetHexByteStringFixedLength(std::string &str,
  321 size_t StringExtractor::GetHexByteStringTerminatedBy(std::string &str,
tools/lldb/source/Utility/StringExtractorGDBRemote.cpp
  471     std::string error_messg;
  480 size_t StringExtractorGDBRemote::GetEscapedBinaryData(std::string &str) {
tools/lldb/source/Utility/StringLexer.cpp
   16 StringLexer::StringLexer(std::string s) : m_data(s), m_position(0) {}
   41 bool StringLexer::AdvanceIf(const std::string &token) {
   72 std::string StringLexer::GetUnlexed() {
tools/lldb/source/Utility/StringList.cpp
   43 void StringList::AppendString(const std::string &s) { m_strings.push_back(s); }
   45 void StringList::AppendString(std::string &&s) { m_strings.push_back(s); }
  101 std::string StringList::LongestCommonPrefix() {
  127 void StringList::InsertStringAtIndex(size_t idx, const std::string &str) {
  134 void StringList::InsertStringAtIndex(size_t idx, std::string &&str) {
  146 size_t StringList::SplitIntoLines(const std::string &lines) {
  192 std::string StringList::CopyList(const char *item_preamble,
  210 StringList &StringList::operator<<(const std::string &str) {
  220 StringList &StringList::operator=(const std::vector<std::string> &rhs) {
tools/lldb/source/Utility/StructuredData.cpp
   28 StructuredData::ObjectSP StructuredData::ParseJSON(std::string json_text) {
   58   std::string s;
  101     std::string key = match.first.str();
tools/lldb/source/Utility/UUID.cpp
   38 std::string UUID::GetAsString(llvm::StringRef separator) const {
   39   std::string result;
tools/lldb/source/Utility/UriParser.cpp
   26   if (pos == std::string::npos)
   33   if (path_pos != std::string::npos)
   40       ((path_pos != std::string::npos) ? path_pos : uri.size()) - host_pos);
   46     if (pos == std::string::npos)
tools/lldb/source/Utility/UserIDResolver.cpp
   32   llvm::Optional<std::string> DoGetUserName(id_t uid) override {
   36   llvm::Optional<std::string> DoGetGroupName(id_t gid) override {
tools/lldb/source/lldb.cpp
   42   static std::string g_version_str;
   60     std::string clang_rev(clang::getClangRevision());
   65     std::string llvm_rev(clang::getLLVMRevision());
tools/lldb/tools/driver/Driver.cpp
  117 void Driver::OptionData::AddInitialCommand(std::string command,
  459 std::string EscapeString(std::string arg) {
  459 std::string EscapeString(std::string arg) {
  460   std::string::size_type pos = 0;
  461   while ((pos = arg.find_first_of("\"\\", pos)) != std::string::npos) {
  737   std::string usage_str = tool_name.str() + "options";
  740   std::string examples = R"___(
tools/lldb/tools/driver/Driver.h
   50     void AddInitialCommand(std::string command, CommandPlacement placement,
   54       InitialCmdEntry(std::string contents, bool in_is_file,
   59       std::string contents;
   64     std::vector<std::string> m_args;
   69     std::string m_core_file;
   70     std::string m_crash_log;
   71     std::string m_repl_options;
   72     std::string m_process_name;
tools/lldb/tools/intel-features/intel-mpx/cli-wrapper-mpxtable.cpp
  261   const std::string triple_s(target.GetTriple());
tools/lldb/tools/lldb-instr/Instrument.cpp
   33 static std::string GetRecordMethodMacroName(bool Static, bool Const,
   35   std::string Macro;
   56 static std::string GetRegisterMethodMacroName(bool Static, bool Const) {
   57   std::string Macro;
   70 static std::string GetRecordMethodMacro(StringRef Result, StringRef Class,
   74   std::string Macro;
   89 static std::string GetRecordConstructorMacro(StringRef Class,
   92   std::string Macro;
  103 static std::string GetRecordDummyMacro(StringRef Result, StringRef Class,
  107   std::string Macro;
  116 static std::string GetRegisterConstructorMacro(StringRef Class,
  118   std::string Macro;
  124 static std::string GetRegisterMethodMacro(StringRef Result, StringRef Class,
  127   std::string Macro;
  151     std::string ReplacementText =
  190     std::vector<std::string> ParamTypes;
  191     std::vector<std::string> ParamNames;
  204     std::string ParamTypesStr = llvm::join(ParamTypes, ", ");
  205     std::string ParamNamesStr = llvm::join(ParamNames, ", ");
  211     std::string Macro;
tools/lldb/tools/lldb-server/Acceptor.cpp
   79 std::string Acceptor::GetLocalSocketId() const { return m_local_socket_id(); }
   97     std::string host_str;
   98     std::string port_str;
  121       const std::string socket_name = name;
tools/lldb/tools/lldb-server/Acceptor.h
   44   std::string GetLocalSocketId() const;
   47   typedef std::function<std::string()> LocalSocketIdFunc;
   53   const std::string m_name;
tools/lldb/tools/lldb-server/LLDBServerUtilities.cpp
   38 bool LLDBServerUtilities::SetupLogging(const std::string &log_file,
   47     std::string error;
   50     std::string channel(channel_then_categories.GetArgumentAtIndex(0));
tools/lldb/tools/lldb-server/LLDBServerUtilities.h
   18   static bool SetupLogging(const std::string &log_file,
tools/lldb/tools/lldb-server/lldb-gdbserver.cpp
  152                                    const std::string &process_name) {
  157                    const std::string &attach_target) {
  201 Status writeSocketIdToPipe(Pipe &port_pipe, const std::string &socket_id) {
  209                            const std::string &socket_id) {
  220                            const std::string &socket_id) {
  258     std::string final_host_and_port;
  259     std::string connection_host;
  260     std::string connection_port;
  269     const std::string::size_type colon_pos = final_host_and_port.find(':');
  270     if (colon_pos != std::string::npos) {
  318       const std::string socket_id = acceptor_up->GetLocalSocketId();
  375   std::string attach_target;
  376   std::string named_pipe_path;
  377   std::string log_file;
  396   std::string short_options(OptionParser::GetShortOptionString(g_long_options));
tools/lldb/tools/lldb-server/lldb-platform.cpp
   97 static Status save_socket_id_to_file(const std::string &socket_id,
  113                          std::string ErrorMsgBuffer;
  151   std::string listen_host_port;
  154   std::string log_file;
  168   std::string short_options(OptionParser::GetShortOptionString(g_long_options));
  352         std::string socket_name;
tools/lldb/tools/lldb-test/lldb-test.cpp
   61 cl::opt<std::string> Log("log", cl::desc("Path to a log file"), cl::init(""),
   68 TargetSP createTarget(Debugger &Dbg, const std::string &Filename);
   71 std::unique_ptr<MemoryBuffer> openFile(const std::string &Filename);
   74 static cl::opt<std::string> Target(cl::Positional, cl::desc("<target>"),
   76 static cl::opt<std::string> CommandFile(cl::Positional,
   87 static std::string substitute(StringRef Cmd);
   98 cl::list<std::string> InputFilenames(cl::Positional, cl::desc("<input files>"),
  104 static cl::opt<std::string> InputFile(cl::Positional, cl::desc("<input file>"),
  107 static cl::opt<std::string>
  131 static cl::opt<std::string> Name("name", cl::desc("Name to find."),
  138 static cl::opt<std::string>
  143 static cl::opt<std::string> CompilerContext(
  148 static cl::opt<std::string>
  180 static cl::opt<std::string> File("file",
  203 static cl::opt<std::string> Target(cl::Positional, cl::desc("<target>"),
  206 static cl::opt<std::string> CommandFile(cl::Positional,
  285 TargetSP opts::createTarget(Debugger &Dbg, const std::string &Filename) {
  297 std::unique_ptr<MemoryBuffer> opts::openFile(const std::string &Filename) {
  340 std::string opts::breakpoint::substitute(StringRef Cmd) {
  341   std::string Result;
  378     std::string Command = substitute(Line);
tools/lldb/tools/lldb-vscode/BreakpointBase.h
   22   std::string condition;
   25   std::string hitCondition;
   29   std::string logMessage;
tools/lldb/tools/lldb-vscode/ExceptionBreakpoint.cpp
   17   bool catch_value = filter.find("_catch") != std::string::npos;
   18   bool throw_value = filter.find("_throw") != std::string::npos;
tools/lldb/tools/lldb-vscode/ExceptionBreakpoint.h
   19   std::string filter;
   20   std::string label;
   24   ExceptionBreakpoint(std::string f, std::string l, lldb::LanguageType lang) :
   24   ExceptionBreakpoint(std::string f, std::string l, lldb::LanguageType lang) :
tools/lldb/tools/lldb-vscode/FunctionBreakpoint.h
   17   std::string functionName;
tools/lldb/tools/lldb-vscode/IOStream.cpp
   92                             std::string &text) {
   93   std::string data;
  135 bool InputStream::read_line(std::ofstream *log, std::string &line) {
  149   std::string result;
tools/lldb/tools/lldb-vscode/IOStream.h
   55   bool read_full(std::ofstream *log, size_t length, std::string &text);
   57   bool read_line(std::ofstream *log, std::string &line);
tools/lldb/tools/lldb-vscode/JSONUtils.cpp
  102 std::vector<std::string> GetStrings(const llvm::json::Object *obj,
  104   std::vector<std::string> strs;
  115       std::string s;
  137   std::string result;
  518     std::string line;
  661     std::string thread_with_name(thread_str);
tools/lldb/tools/lldb-vscode/JSONUtils.h
  144 std::vector<std::string> GetStrings(const llvm::json::Object *obj,
tools/lldb/tools/lldb-vscode/LLDBUtils.cpp
   15                      const llvm::ArrayRef<std::string> &commands,
   39 std::string RunLLDBCommands(llvm::StringRef prefix,
   40                             const llvm::ArrayRef<std::string> &commands) {
   41   std::string s;
tools/lldb/tools/lldb-vscode/LLDBUtils.h
   37                      const llvm::ArrayRef<std::string> &commands,
   55 std::string RunLLDBCommands(llvm::StringRef prefix,
   56                             const llvm::ArrayRef<std::string> &commands);
tools/lldb/tools/lldb-vscode/SourceReference.h
   19   std::string content;
tools/lldb/tools/lldb-vscode/VSCode.cpp
   64 ExceptionBreakpoint *VSCode::GetExceptionBreakpoint(const std::string &filter) {
   84 void VSCode::SendJSON(const std::string &json_str) {
  100   std::string s;
  109 std::string VSCode::ReadJSON() {
  110   std::string length_str;
  111   std::string json_str;
  282                              const std::vector<std::string> &commands) {
tools/lldb/tools/lldb-vscode/VSCode.h
   85   std::vector<std::string> init_commands;
   86   std::vector<std::string> pre_run_commands;
   87   std::vector<std::string> exit_commands;
   88   std::vector<std::string> stop_commands;
  100   ExceptionBreakpoint *GetExceptionBreakpoint(const std::string &filter);
  105   void SendJSON(const std::string &json_str);
  111   std::string ReadJSON();
  129                        const std::vector<std::string> &commands);
tools/lldb/tools/lldb-vscode/lldb-vscode.cpp
  113 std::vector<const char *> MakeArgv(const llvm::ArrayRef<std::string> &strs) {
  421   std::string sourceMapCommand;
 1704   std::set<std::string> unset_filters;
 2553 const std::map<std::string, RequestCallback> &GetRequestHandlers() {
 2556   static std::map<std::string, RequestCallback> g_request_handlers = {
 2622     std::string json = g_vsc.ReadJSON();
 2631         std::string error_str;
tools/lldb/unittests/Editline/EditlineTest.cpp
   69   bool SendLine(const std::string &line);
   71   bool SendLines(const std::vector<std::string> &lines);
   73   bool GetLine(std::string &line, bool &interrupted, size_t timeout_millis);
  140 bool EditlineAdapter::SendLine(const std::string &line) {
  148               line.length() * sizeof(std::string::value_type));
  160 bool EditlineAdapter::SendLines(const std::vector<std::string> &lines) {
  172 bool EditlineAdapter::GetLine(std::string &line, bool &interrupted,
  199   for (const std::string &line : lines) {
  279   const std::string input_text("Hello, world");
  283   std::string el_reported_line;
  295   std::vector<std::string> input_lines;
  314   std::vector<std::string> reported_lines;
  315   for (const std::string &line : el_reported_lines)
tools/lldb/unittests/Expression/ClangParserTest.cpp
   34 static std::string ComputeClangResourceDir(std::string lldb_shlib_path,
   34 static std::string ComputeClangResourceDir(std::string lldb_shlib_path,
   44   std::string path_to_liblldb = "/foo/bar/lib/";
   45   std::string path_to_clang_dir = "/foo/bar/lib/clang/" CLANG_VERSION_STRING;
tools/lldb/unittests/Expression/CppModuleConfigurationTest.cpp
   35 static std::string ResourceInc() {
   43 static FileSpecList makeFiles(llvm::ArrayRef<std::string> paths) {
   45   for (const std::string &path : paths)
   52   std::string libcpp = "/usr/include/c++/v1";
   53   std::string usr = "/usr/include";
   63   std::string libcpp = "/home/user/sysroot/usr/include/c++/v1";
   64   std::string usr = "/home/user/sysroot/usr/include";
   74   std::string libcpp = "/home/user/llvm-build/include/c++/v1";
   75   std::string usr = "/usr/include";
   85   std::string libcpp = "/home/user/llvm-build/include/c++/v1";
   86   std::string usr = "/usr/include";
   96   std::string p = "/Applications/Xcode.app/Contents/Developer/";
   97   std::string libcpp = p + "Toolchains/B.xctoolchain/usr/include/c++/v1";
   98   std::string usr =
tools/lldb/unittests/Expression/DiagnosticManagerTest.cpp
   42   std::string msg = "foo bar has happened";
tools/lldb/unittests/Host/ConnectionFileDescriptorTest.cpp
   25   void TestGetURI(std::string ip) {
   41     std::string uri(connection_file_descriptor.GetURI());
tools/lldb/unittests/Host/FileSystemTest.cpp
   38   std::string cwd;
   39   std::map<std::string, vfs::Status> FilesAndDirs;
   50     std::map<std::string, vfs::Status>::iterator I =
   63   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override {
   87     std::map<std::string, vfs::Status> &FilesAndDirs;
   88     std::map<std::string, vfs::Status>::iterator I;
   89     std::string Path;
   98     DirIterImpl(std::map<std::string, vfs::Status> &FilesAndDirs,
  279   std::vector<std::string> visited;
tools/lldb/unittests/Host/HostInfoTest.cpp
   56   std::string s("abc");
tools/lldb/unittests/Host/SocketTest.cpp
   25   std::string host_str;
   26   std::string port_str;
  169   std::string uri(socket_a_up->GetRemoteConnectionURI());
  189   std::string uri(socket->GetRemoteConnectionURI());
  214   std::string uri(socket_a_up->GetRemoteConnectionURI());
tools/lldb/unittests/Host/SocketTestUtilities.cpp
   29     const std::function<std::string(const SocketType &)> &get_connect_addr,
   46   std::string connect_remote_address = get_connect_addr(*listen_socket_up);
   69     std::string listen_remote_ip, std::unique_ptr<TCPSocket> *socket_a_up,
   95 bool lldb_private::IsAddressFamilySupported(std::string ip) {
  101 bool lldb_private::IsIPv4(std::string ip) {
tools/lldb/unittests/Host/SocketTestUtilities.h
   32     const std::function<std::string(const SocketType &)> &get_connect_addr,
   34 bool CreateTCPConnectedSockets(std::string listen_remote_ip,
   43 bool IsAddressFamilySupported(std::string ip);
   44 bool IsIPv4(std::string ip);
tools/lldb/unittests/Interpreter/TestCompletion.cpp
   69     std::string name = test_info->name();
  137 static std::vector<std::string> toVector(const StringList &SL) {
  138   std::vector<std::string> Result;
  151   std::string Prefixes[] = {(Twine(BaseDir) + "/").str(), ""};
  236   std::string sep = path::get_separator();
tools/lldb/unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp
   17     std::string input;
   18     std::string context, basename, arguments, qualifiers, scope_qualified_name;
  126     std::string input;
  127     std::string context, basename;
  174 static std::set<std::string> FindAlternate(llvm::StringRef Name) {
  179   std::set<std::string> Strings;
tools/lldb/unittests/Language/Highlighting/HighlighterTest.cpp
   44 static std::string getName(lldb::LanguageType type) {
   49 static std::string getName(llvm::StringRef path) {
   94   std::string output = h.Highlight(style, code, llvm::Optional<size_t>());
   99 static std::string
  129 static std::string
tools/lldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp
  166   std::string SO = GetInputFilePath("early-section-headers.so");
tools/lldb/unittests/Platform/PlatformDarwinTest.cpp
   54   std::string base = "/Applications/Xcode.app/Contents/Developer/Platforms/";
tools/lldb/unittests/Process/gdb-remote/GDBRemoteClientBaseTest.cpp
   27   std::string output;
   28   std::string misc_data;
   30   std::vector<std::string> structured_data_packets;
  297   const std::string json_payload =
  300   const std::string json_packet = "JSON-async:" + json_payload;
tools/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
   46                   const testing::Matcher<const std::string &> &expected,
   56 std::string all_registers_hex = "404142434445464748494a4b4c4d4e4f";
   58 std::string one_register_hex = "41424344";
  280       std::string response(size, 'X');
  386   std::string expected_packet1 =
  388   std::string expected_packet2 =
  436   std::string expected_packet1 =
  438   std::string expected_packet2 = R"("traceid":3})";
  468   std::string expected_packet1 =
  470   std::string expected_packet2 = R"("traceid":3})";
  500   std::string response1 =
  502   std::string response2 = R"(],"metabuffersize":8192,"threadid":35,"type":1}])";
  535   std::string incorrect_json1 =
  537   std::string incorrect_json2 =
  547   std::string incorrect_custom_params1 =
  549   std::string incorrect_custom_params2 =
tools/lldb/unittests/Process/gdb-remote/GDBRemoteTestUtils.h
   28   MockConnection(std::vector<std::string> &packets) { m_packets = &packets; };
   49   std::vector<std::string> *m_packets;
   81   llvm::ArrayRef<std::string> GetPackets() { return m_packets; };
   83   std::vector<std::string> m_packets;
tools/lldb/unittests/Process/minidump/MinidumpParserTest.cpp
   45     std::string filename = GetInputFilePath(minidump_filename);
   56     std::string data;
   77   std::string duplicate_streams;
tools/lldb/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.cpp
  856   auto g = As<std::string>(globals.GetItem("g"));
tools/lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
   79     const lldb::TypeSummaryOptionsSP &options_sp, std::string &retval) {
  100     std::string &error_string,
  206     lldb::ProcessSP &process, std::string &output) {
  212     lldb::ThreadSP &thread, std::string &output) {
  218     lldb::TargetSP &target, std::string &output) {
  224     lldb::StackFrameSP &frame, std::string &output) {
  230     lldb::ValueObjectSP &value, std::string &output) {
tools/lldb/unittests/Signals/UnixSignalsTest.cpp
   33   std::string location = llvm::formatv("{0}:{1}", file, line);
   61   std::string name =
tools/lldb/unittests/Symbol/PostfixExpressionTest.cpp
   21 static std::string ToString(BinaryOpNode::OpType type) {
   33 static std::string ToString(UnaryOpNode::OpType type) {
   41 struct ASTPrinter : public Visitor<std::string> {
   43   std::string Visit(BinaryOpNode &binary, Node *&) override {
   48   std::string Visit(InitialValueNode &, Node *&) override { return "InitialValue"; }
   50   std::string Visit(IntegerNode &integer, Node *&) override {
   54   std::string Visit(RegisterNode &reg, Node *&) override {
   58   std::string Visit(SymbolNode &symbol, Node *&) override {
   62   std::string Visit(UnaryOpNode &unary, Node *&) override {
   68   static std::string Print(Node *node) {
   75 static std::string ParseOneAndStringify(llvm::StringRef expr) {
  106 static std::vector<std::pair<std::string, std::string>>
  106 static std::vector<std::pair<std::string, std::string>>
  111   std::vector<std::pair<std::string, std::string>> result;
  111   std::vector<std::pair<std::string, std::string>> result;
  132 static std::string ParseAndGenerateDWARF(llvm::StringRef expr) {
tools/lldb/unittests/Symbol/TestClangASTContext.cpp
   38     std::string triple = HostInfo::GetTargetTriple();
tools/lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp
   68   std::string m_dwarf_test_exe;
tools/lldb/unittests/Target/ModuleCacheTest.cpp
   30   static std::string s_test_executable;
   38 std::string ModuleCacheTest::s_test_executable;
tools/lldb/unittests/Target/PathMappingListTest.cpp
   36     std::string orig_normalized = match.original.GetPath();
   42     std::string unmapped_path = unmapped_spec.GetPath();
tools/lldb/unittests/TestingSupport/TestUtilities.cpp
   22 std::string lldb_private::GetInputFilePath(const llvm::Twine &name) {
tools/lldb/unittests/TestingSupport/TestUtilities.h
   30 std::string GetInputFilePath(const llvm::Twine &name);
   51   llvm::Optional<std::string> Name;
tools/lldb/unittests/Utility/ArgsTest.cpp
  165   std::string stdstr;
  221   const std::string foo = "foo'";
  227   const std::string bar = "bar\"";
  233   const std::string baz = "baz`";
  239   const std::string quux = "quux\t";
tools/lldb/unittests/Utility/CompletionRequestTest.cpp
   15   std::string command = "a bad c";
   35   std::string command = "a bad c ";
   50   std::string command = "a bad c";
   66   std::string command = "a bad c";
   76   std::string command = "a bad c";
   87   std::string command = "a bad c";
  117   std::string command = "a bad c";
  180   std::string command = "a bad c";
  256   std::string command = "a bad c";
  263   std::string Temporary = "bar";
tools/lldb/unittests/Utility/EnvironmentTest.cpp
   36   std::string FOO_EQ_BAR("FOO=BAR");
   37   std::string BAR_EQ_BAZ("BAR=BAZ");
tools/lldb/unittests/Utility/EventTest.cpp
   15 static std::string to_string(const EventDataBytes &E) {
tools/lldb/unittests/Utility/LogTest.cpp
   33                           std::string &error) {
   42                            std::string &error) {
   48 static bool ListCategories(llvm::StringRef channel, std::string &result) {
   93   std::string error;
  128   std::string message;
  139   std::string message;
  142   std::string error;
  161   std::string message;
  164   std::string error;
  175   std::string message;
  178   std::string error;
  197   std::string list;
  199   std::string expected =
  213   std::string Err;
  267   std::string err;
  283   std::string err;
  301   std::string err;
tools/lldb/unittests/Utility/ProcessInstanceInfoTest.cpp
   19   llvm::Optional<std::string> DoGetUserName(id_t uid) override {
   25   llvm::Optional<std::string> DoGetGroupName(id_t gid) override {
tools/lldb/unittests/Utility/ReproducerInstrumentationTest.cpp
   80   mutable std::string m_d = {};
  304   std::string str;
  330   std::string str;
  356   std::string str;
  384   std::string str;
  400   std::string str;
  421   std::string str;
  439   std::string str;
  468   std::string str;
  506   std::string str;
  545   std::string str;
  580   std::string str;
tools/lldb/unittests/Utility/ScalarTest.cpp
  157 template <typename T> static std::string ScalarGetValue(T value) {
tools/lldb/unittests/Utility/StreamTest.cpp
   22   std::string TakeValue() {
   23     std::string result = s.GetString().str();
tools/lldb/unittests/Utility/StringListTest.cpp
   63   std::string foo = "foo";
   64   std::string bar = "bar";
   78   std::string foo = "foo";
   79   std::string bar = "bar";
  105   std::string foo = "foo";
  106   std::string bar = "bar";
  218   std::string prefix = s.LongestCommonPrefix();
  229   std::string prefix = s.LongestCommonPrefix();
  237   std::string prefix = s.LongestCommonPrefix();
  246   std::string prefix = s.LongestCommonPrefix();
  257   std::string prefix = s.LongestCommonPrefix();
  367   std::string foo = "foo";
  376   std::string foo = "foo";
  511   for (const std::string &e : s)
  520   std::vector<std::string> recorded;
  521   for (const std::string &e : s)
tools/lldb/unittests/Utility/StructuredDataTest.cpp
   40   std::string input = GetInputFilePath("StructuredData-basic.json");
tools/lldb/unittests/Utility/VASprintfTest.cpp
   34   std::string TestStr("small");
   43   std::string TestStr("bigger");
   52   std::string Current(::setlocale(LC_ALL, nullptr));
tools/lldb/unittests/tools/lldb-server/tests/MessageObjects.h
   44   std::string m_triple;
   59   std::string m_name;
   60   std::string m_reason;
  139   std::string Name;
  142   std::string Reason;
  173   std::string error =
tools/lldb/unittests/tools/lldb-server/tests/TestBase.cpp
   15 std::string TestBase::getLogFileName() {
tools/lldb/unittests/tools/lldb-server/tests/TestBase.h
   36   static std::string getInferiorPath(llvm::StringRef Name) {
   42   static std::string getLogFileName();
tools/lldb/unittests/tools/lldb-server/tests/TestClient.cpp
  128 Error TestClient::SetInferior(llvm::ArrayRef<std::string> inferior_args) {
  138     std::string hex_encoded = toHex(inferior_args[i]);
  179   std::string dummy_string;
  183 Error TestClient::SendMessage(StringRef message, std::string &response_string) {
  192 Error TestClient::SendMessage(StringRef message, std::string &response_string,
  223     std::string Message = formatv("qRegisterInfo{0:x-}", Reg).str();
tools/lldb/unittests/tools/lldb-server/tests/TestClient.h
   55   llvm::Error SetInferior(llvm::ArrayRef<std::string> inferior_args);
   73                           std::string &response_string);
   74   llvm::Error SendMessage(llvm::StringRef message, std::string &response_string,
   90   std::string FormatFailedResult(
   91       const std::string &message,
  104   std::string ResponseText;
tools/lldb/utils/TableGen/LLDBOptionDefEmitter.cpp
   27   std::vector<std::string> GroupsArg;
   29   std::string FullName;
   30   std::string ShortName;
   31   std::string ArgType;
   33   std::string Validator;
   34   std::string ArgEnum;
   36   std::string Description;
  125     std::vector<std::string> CompletionArgs;
  153 static void emitOptions(std::string Command, std::vector<Record *> Records,
  159   std::string ID = Command;
  163   std::string NeededMacro = "LLDB_OPTIONS_" + ID;
tools/lldb/utils/TableGen/LLDBPropertyDefEmitter.cpp
  119 static void emityProperties(std::string PropertyName,
  124   std::string NeededMacro = "LLDB_PROPERTIES_" + PropertyName;
  142 static void emitPropertyEnum(std::string PropertyName,
  147   std::string NeededMacro = "LLDB_PROPERTIES_" + PropertyName;
tools/lldb/utils/TableGen/LLDBTableGenUtils.h
   26 typedef std::map<std::string, std::vector<llvm::Record *>> RecordsByName;
tools/lli/RemoteJITUtils.h
  124   bool finalizeMemory(std::string *ErrMsg = nullptr) override {
  136   JITSymbol findSymbol(const std::string &Name) override {
  141   findSymbolInLogicalDylib(const std::string &Name) override {
tools/lli/lli.cpp
   76   cl::opt<std::string>
   79   cl::list<std::string>
  102   cl::list<std::string>
  113   cl::list<std::string>
  129   cl::opt<std::string>
  145   cl::opt<std::string>
  148   cl::opt<std::string>
  155   cl::list<std::string>
  160   cl::list<std::string>
  165   cl::list<std::string>
  175   cl::opt<std::string>
  181   cl::opt<std::string>
  236   LLIObjectCache(const std::string& CacheDir) : CacheDir(CacheDir) {
  245     const std::string &ModuleID = M->getModuleIdentifier();
  246     std::string CacheName;
  260     const std::string &ModuleID = M->getModuleIdentifier();
  261     std::string CacheName;
  278   std::string CacheDir;
  280   bool getCacheFilename(const std::string &ModID, std::string &CacheName) {
  280   bool getCacheFilename(const std::string &ModID, std::string &CacheName) {
  281     std::string Prefix("file:");
  285         std::string CacheSubdir = ModID.substr(PrefixLength);
  393     std::string CacheName("file:");
  406   std::string ErrorMsg;
  474       std::string CacheName("file:");
  503       std::string Buf;
  712           std::string Name(F.getName());
  854   std::vector<std::string> Args;
  942       std::string ChildInStr = utostr(PipeFD[0][0]);
  946       std::string ChildOutStr = utostr(PipeFD[1][1]);
tools/llvm-ar/llvm-ar.cpp
  147   std::string ContextStr = Context.str();
  158     std::string ContextStr = Context.str();
  175 static std::string Options;
  208 static std::string RelPos;
  217 static std::string ArchiveName;
  503 static std::string normalizePath(StringRef Path) {
  643     Expected<std::string> FileNameOrErr = M.getName();
  650       Expected<std::string> PathOrErr =
  658     Expected<std::string> FileNameOrErr = M.getFullName();
  689       Expected<std::string> PathOrErr =
  785       std::string Name = NameOrErr.get();
tools/llvm-as/llvm-as.cpp
   35 static cl::opt<std::string> InputFilename(cl::Positional,
   39 static cl::opt<std::string> OutputFilename("o",
   66 static cl::opt<std::string> ClDataLayout("data-layout",
  132     std::string ErrorStr;
tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
   39 static cl::opt<std::string>
   55 static cl::opt<std::string>
   63 static cl::opt<std::string> CheckHash(
tools/llvm-cat/llvm-cat.cpp
   41 static cl::opt<std::string> OutputFilename("o", cl::Required,
   46 static cl::list<std::string> InputFilenames(cl::Positional, cl::ZeroOrMore,
tools/llvm-cfi-verify/lib/FileAnalysis.cpp
  371   std::string TripleName = ObjectTriple.getTriple();
  374   std::string ErrorString;
tools/llvm-cfi-verify/lib/FileAnalysis.h
  200   std::string ArchName;
  201   std::string MCPU;
  238   std::string Text;
tools/llvm-cfi-verify/llvm-cfi-verify.cpp
   34 cl::opt<std::string> InputFilename(cl::Positional, cl::desc("<input file>"),
   36 cl::opt<std::string> BlacklistFilename(cl::Positional,
  263     std::string Error;
tools/llvm-config/llvm-config.cpp
   75 static void VisitComponent(const std::string &Name,
   78                            std::vector<std::string> &RequiredLibs,
   80                            const std::function<std::string(const StringRef &)>
   82                            std::vector<std::string> *Missing,
   83                            const std::string &DirSep) {
  121       std::string path = (*GetComponentLibraryPath)(AC->Library);
  140 static std::vector<std::string> ComputeLibsForComponents(
  142     bool GetComponentNames, const std::function<std::string(const StringRef &)>
  144     std::vector<std::string> *Missing, const std::string &DirSep) {
  144     std::vector<std::string> *Missing, const std::string &DirSep) {
  145   std::vector<std::string> RequiredLibs;
  158     std::string ComponentLower = Components[i].lower();
  227 std::string GetExecutablePath(const char *Argv0) {
  236 std::vector<std::string> GetAllDyLibComponents(const bool IsInDevelopmentTree,
  238                                                const std::string &DirSep) {
  246     if (NextOffset == std::string::npos) {
  272   std::string CurrentExecPrefix;
  273   std::string ActiveObjRoot;
  306   std::string ActivePrefix, ActiveBinDir, ActiveIncludeDir, ActiveLibDir,
  308   std::string ActiveIncludeOption;
  397   const std::string DyLibName =
  406     std::string path((SharedDir + DirSep + DyLibName).str());
  445     std::string LibFileName;
  512         std::vector<std::string> Components;
  520             std::string path(
  602     std::function<std::string(const StringRef &)>
  606     std::vector<std::string> MissingLibs;
  607     std::vector<std::string> RequiredLibs = ComputeLibsForComponents(
  638       std::unordered_set<std::string> FullDyLibComponents;
  639       std::vector<std::string> DyLibComponents =
tools/llvm-cov/CodeCoverage.cpp
   75   void addCollectedPath(const std::string &Path);
   79   void collectPaths(const std::string &Path);
  132   std::string PGOFilename;
  135   std::vector<std::string> SourceFiles;
  139   StringMap<std::string> RemappedFilenames;
  143   Optional<std::pair<std::string, std::string>> PathRemapping;
  143   Optional<std::pair<std::string, std::string>> PathRemapping;
  156   std::vector<std::pair<std::string, std::unique_ptr<MemoryBuffer>>>
  164 static std::string getErrorString(const Twine &Message, StringRef Whence,
  166   std::string Str = (Warning ? "warning" : "error");
  186 void CodeCoverageTool::addCollectedPath(const std::string &Path) {
  197 void CodeCoverageTool::collectPaths(const std::string &Path) {
  399   std::string RemapFrom = nativeWithTrailing(PathRemapping->first);
  400   std::string RemapTo = nativeWithTrailing(PathRemapping->second);
  413   StringMap<std::string> InvRemappedFilenames;
  417   for (std::string &Filename : SourceFiles) {
  480   std::string ErrMsg;
  539   cl::opt<std::string> CovFilename(
  542   cl::list<std::string> CovFilenames(
  546   cl::list<std::string> InputSourceFiles(
  553   cl::opt<std::string, true> PGOFilename(
  558   cl::list<std::string> Arches(
  574   cl::opt<std::string> PathRemap(
  581   cl::list<std::string> NameFilters(
  586   cl::list<std::string> NameFilterFiles(
  592   cl::list<std::string> NameRegexFilters(
  598   cl::list<std::string> IgnoreFilenameRegexFilters(
  632   cl::list<std::string> DemanglerOpts(
  660     for (const std::string &Filename : CovFilenames)
  706       std::string SpecialCaseListErr;
  753       for (const std::string &Arch : Arches) {
  767     for (const std::string &File : InputSourceFiles)
  771       for (const std::string &SF : SourceFiles)
  824   cl::opt<std::string> ShowOutputDirectory(
  835   cl::opt<std::string> ProjectTitle(
  872   std::string ModifiedTimeStr = to_string(ModifiedTime);
  874   ViewOpts.CreatedTimeStr = (found != std::string::npos)
  951     for (const std::string &SourceFile : SourceFiles)
  957     for (const std::string &SourceFile : SourceFiles)
tools/llvm-cov/CoverageExporter.h
   46   virtual void renderRoot(ArrayRef<std::string> SourceFiles) = 0;
tools/llvm-cov/CoverageExporterJson.cpp
  135                         const std::string &Filename,
  152                         ArrayRef<std::string> SourceFiles,
  194   std::vector<std::string> SourceFiles;
  202 void CoverageExporterJson::renderRoot(ArrayRef<std::string> SourceFiles) {
tools/llvm-cov/CoverageExporterJson.h
   30   void renderRoot(ArrayRef<std::string> SourceFiles) override;
tools/llvm-cov/CoverageExporterLcov.cpp
   80                 const std::string &Filename,
  100                  ArrayRef<std::string> SourceFiles,
  110   std::vector<std::string> SourceFiles;
  118 void CoverageExporterLcov::renderRoot(ArrayRef<std::string> SourceFiles) {
tools/llvm-cov/CoverageExporterLcov.h
   30   void renderRoot(ArrayRef<std::string> SourceFiles) override;
tools/llvm-cov/CoverageReport.cpp
  122 unsigned getNumRedundantPathComponents(ArrayRef<std::string> Paths) {
  152 unsigned getRedundantPrefixLen(ArrayRef<std::string> Paths) {
  279 void CoverageReport::renderFunctionReports(ArrayRef<std::string> Files,
  352     ArrayRef<std::string> Files, const CoverageViewOptions &Options,
  383   std::vector<std::string> UniqueSourceFiles;
  393     raw_ostream &OS, ArrayRef<std::string> Files) const {
  398     raw_ostream &OS, ArrayRef<std::string> Files,
tools/llvm-cov/CoverageReport.h
   36   void renderFunctionReports(ArrayRef<std::string> Files,
   42                      FileCoverageSummary &Totals, ArrayRef<std::string> Files,
   59   void renderFileReports(raw_ostream &OS, ArrayRef<std::string> Files) const;
   63   void renderFileReports(raw_ostream &OS, ArrayRef<std::string> Files,
tools/llvm-cov/CoverageSummaryInfo.cpp
   52   std::string Name;
tools/llvm-cov/CoverageSummaryInfo.h
  146   std::string Name;
  151   FunctionCoverageSummary(const std::string &Name)
  154   FunctionCoverageSummary(const std::string &Name, uint64_t ExecutionCount,
  205   StringMap<std::string> DemangledNames;
tools/llvm-cov/CoverageViewOptions.h
   40   std::string ShowOutputDirectory;
   41   std::vector<std::string> DemanglerOpts;
   43   std::string ProjectTitle;
   44   std::string CreatedTimeStr;
   66   std::string getLLVMVersionString() const {
   67     std::string VersionString = "Generated by llvm-cov -- llvm version ";
tools/llvm-cov/SourceCoverageView.cpp
   30 std::string CoveragePrinter::getOutputPath(StringRef Path, StringRef Extension,
   60   std::string FullPath = getOutputPath(Path, Extension, InToplevel, false);
  102 std::string SourceCoverageView::formatCount(uint64_t N) {
  103   std::string Number = utostr(N);
  108   std::string Result(Number.data(), IntLen);
  157 std::string SourceCoverageView::getSourceName() const {
tools/llvm-cov/SourceCoverageView.h
   87   std::string getOutputPath(StringRef Path, StringRef Extension,
  115   virtual Error createIndexFile(ArrayRef<std::string> SourceFiles,
  224   static std::string formatCount(uint64_t N);
  246   std::string getSourceName() const;
tools/llvm-cov/SourceCoverageViewHTML.cpp
   26 std::string escape(StringRef Str, const CoverageViewOptions &Opts) {
   27   std::string TabExpandedResult;
   44   std::string EscapedHTML;
   53 std::string tag(const std::string &Name, const std::string &Str,
   53 std::string tag(const std::string &Name, const std::string &Str,
   53 std::string tag(const std::string &Name, const std::string &Str,
   54                 const std::string &ClassName = "") {
   55   std::string Tag = "<" + Name;
   62 std::string a(const std::string &Link, const std::string &Str,
   62 std::string a(const std::string &Link, const std::string &Str,
   62 std::string a(const std::string &Link, const std::string &Str,
   63               const std::string &TargetName = "") {
   64   std::string Name = TargetName.empty() ? "" : ("name='" + TargetName + "' ");
  251 std::string getPathToStyle(StringRef ViewPath) {
  252   std::string PathToStyle = "";
  253   std::string PathSep = sys::path::get_separator();
  261                  const std::string &PathToStyle = "") {
  294     std::string ViewPath = getOutputPath(Path, "html", InToplevel);
  308   SmallVector<std::string, 4> Columns;
  320 std::string
  326   std::string LinkText = escape(LinkTextStr, Opts);
  327   std::string LinkTarget =
  337   SmallVector<std::string, 8> Columns;
  342     std::string S;
  360   std::string Filename;
  390     ArrayRef<std::string> SourceFiles, const CoverageMapping &Coverage,
  451         std::string Link = buildLinkToFile(SourceFiles[I], FileReports[I]);
  505   SmallVector<std::string, 8> Snippets;
  615   std::string Count = "";
  618   std::string CoverageClass =
  625   std::string LineNoStr = utostr(uint64_t(LineNo));
  626   std::string TargetName = "L" + LineNoStr;
  682   std::string SourceLabel;
  686     std::string LinkTarget = "#L" + utostr(uint64_t(FirstUncoveredLineNo));
tools/llvm-cov/SourceCoverageViewHTML.h
   32   Error createIndexFile(ArrayRef<std::string> SourceFiles,
   43   std::string buildLinkToFile(StringRef SF,
tools/llvm-cov/SourceCoverageViewText.cpp
   31     ArrayRef<std::string> SourceFiles, const CoverageMapping &Coverage,
  153   std::string C = formatCount(Line.getExecutionCount());
  194     std::string C = formatCount(S->Count);
tools/llvm-cov/SourceCoverageViewText.h
   30   Error createIndexFile(ArrayRef<std::string> SourceFiles,
tools/llvm-cov/TestingSupport.cpp
   22   cl::opt<std::string> InputSourceFile(cl::Positional, cl::Required,
   25   cl::opt<std::string> OutputFilename(
   34     std::string Buf;
tools/llvm-cov/gcov.cpp
   23                            const std::string &InputGCNO,
   24                            const std::string &InputGCDA, bool DumpGCOV,
   38   std::string GCNO = InputGCNO.empty()
   41   std::string GCDA = InputGCDA.empty()
   84   cl::list<std::string> SourceFiles(cl::Positional, cl::OneOrMore,
  112   cl::opt<std::string> ObjectDir(
  135   cl::opt<std::string> InputGCNO("gcno", cl::cat(DebugCat), cl::init(""),
  137   cl::opt<std::string> InputGCDA("gcda", cl::cat(DebugCat), cl::init(""),
tools/llvm-cov/llvm-cov.cpp
   80       std::string Invocation = std::string(argv[0]) + " " + argv[1];
tools/llvm-cvtres/llvm-cvtres.cpp
  134   std::vector<std::string> InputFiles = InputArgs.getAllArgValues(OPT_INPUT);
  186     std::vector<std::string> Duplicates;
tools/llvm-cxxdump/Error.cpp
   25   std::string message(int ev) const override {
tools/llvm-cxxdump/llvm-cxxdump.cpp
   36 cl::list<std::string> InputFilenames(cl::Positional,
  506         std::string Buf;
tools/llvm-cxxdump/llvm-cxxdump.h
   16 extern llvm::cl::list<std::string> InputFilenames;
tools/llvm-cxxfilt/llvm-cxxfilt.cpp
   52 static cl::list<std::string>
   58 static std::string demangle(llvm::raw_ostream &OS, const std::string &Mangled) {
   58 static std::string demangle(llvm::raw_ostream &OS, const std::string &Mangled) {
   80   std::string Result(Undecorated ? Undecorated : Mangled);
  123   std::string Result;
  141     for (std::string Mangled; std::getline(std::cin, Mangled);)
tools/llvm-cxxmap/llvm-cxxmap.cpp
   27 cl::opt<std::string> OldSymbolFile(cl::Positional, cl::Required,
   29 cl::opt<std::string> NewSymbolFile(cl::Positional, cl::Required,
   31 cl::opt<std::string> RemappingFile("remapping-file", cl::Required,
   34 cl::opt<std::string> OutputFilename("output", cl::value_desc("output"),
   46                  std::string Hint = "") {
   48   std::string WhenceStr = Whence.str();
   57                           std::string Hint = "") {
   59   std::string WhenceStr = Whence.str();
tools/llvm-diff/llvm-diff.cpp
   58 static cl::opt<std::string> LeftFilename(cl::Positional,
   61 static cl::opt<std::string> RightFilename(cl::Positional,
   64 static cl::list<std::string> GlobalsToCompare(cl::Positional,
tools/llvm-dis/llvm-dis.cpp
   38 static cl::opt<std::string>
   41 static cl::opt<std::string>
tools/llvm-dwarfdump/Statistics.cpp
  179 static void collectStatsForDie(DWARFDie Die, uint64_t UnitLowPC, std::string FnPrefix,
  180                                std::string VarPrefix, uint64_t ScopeLowPC,
  302   std::string VarName = StringRef(Die.getName(DINameKind::ShortName));
  352 static void collectStatsRecursive(DWARFDie Die, uint64_t UnitLowPC, std::string FnPrefix,
  353                                   std::string VarPrefix, uint64_t ScopeLowPC,
  410       std::string FnName = StringRef(Die.getName(DINameKind::ShortName));
  439     std::string ChildVarPrefix = VarPrefix;
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
   95 static list<std::string>
  123 static list<std::string>
  134 static list<std::string>
  147 static list<std::string> Name(
  159 static opt<std::string>
  287   std::string Name =
  293       std::string Error;
  366 static void filterByAccelName(ArrayRef<std::string> Names, DWARFContext &DICtx,
  477     std::string Name = (Filename + "(" + NameOrErr.get() + ")").str();
  499       std::string ObjName =
  534 static std::vector<std::string> expandBundle(const std::string &InputPath) {
  534 static std::vector<std::string> expandBundle(const std::string &InputPath) {
  535   std::vector<std::string> BundlePaths;
  546       const std::string &Path = Dir->path();
  626   std::vector<std::string> Objects;
tools/llvm-dwp/DWPError.h
   11   DWPError(std::string Info) : Info(std::move(Info)) {}
   19   std::string Info;
tools/llvm-dwp/llvm-dwp.cpp
   50 static cl::list<std::string> InputFiles(cl::Positional, cl::ZeroOrMore,
   54 static cl::list<std::string> ExecFilenames(
   59 static cl::opt<std::string> OutputFilename(cl::Required, "o",
  202   std::string Name;
  203   std::string DWOName;
  347 std::string buildDWODescription(StringRef Name, StringRef DWPName, StringRef DWOName) {
  348   std::string Text = "\'";
  476 static Expected<SmallVector<std::string, 16>>
  485   SmallVector<std::string, 16> DWOPaths;
  488     std::string DWOName = dwarf::toString(
  492     std::string DWOCompDir =
  505 static Error write(MCStreamer &Out, ArrayRef<std::string> Inputs) {
  662   std::string ErrorStr;
  672   std::string TripleName = TheTriple.getTriple();
  729   std::vector<std::string> DWOFilenames = InputFiles;
tools/llvm-elfabi/ELFObjHandler.cpp
   66   std::string Message;
tools/llvm-elfabi/ErrorCollector.h
   68   std::vector<std::string> Tags;
tools/llvm-elfabi/llvm-elfabi.cpp
   42 cl::opt<std::string> InputFilePath(cl::Positional, cl::desc("input"),
   44 cl::opt<std::string>
   48 cl::opt<std::string> SOName(
tools/llvm-exegesis/lib/Analysis.cpp
  104   SmallVector<std::string, 3> Lines;
tools/llvm-exegesis/lib/Assembler.cpp
   66   std::string Banner = std::string("After ") + std::string(P->getPassName());
  297   std::string Error;
tools/llvm-exegesis/lib/BenchmarkCode.h
   29   std::string Info;
tools/llvm-exegesis/lib/BenchmarkResult.cpp
   86   std::string &getLastError() { return ErrorStream.str(); }
  175   std::string LastError;
  302       std::string Str;
tools/llvm-exegesis/lib/BenchmarkResult.h
   40   std::string Config;
   45   static BenchmarkMeasure Create(std::string Key, double Value) {
   48   std::string Key;
   62   std::string CpuName;
   63   std::string LLVMTriple;
   73   std::string Error;
   74   std::string Info;
  107   const std::string &key() const { return Key; }
  110   std::string Key;
tools/llvm-exegesis/lib/BenchmarkRunner.cpp
  157 Expected<std::string>
tools/llvm-exegesis/lib/BenchmarkRunner.h
   79   Expected<std::string> writeObjectFile(const BenchmarkCode &Configuration,
tools/llvm-exegesis/lib/Clustering.cpp
  245     const std::string *Config;
tools/llvm-exegesis/lib/CodeTemplate.h
  119   std::string Config;
  121   std::string Info;
tools/llvm-exegesis/lib/LlvmState.cpp
   24 LLVMState::LLVMState(const std::string &Triple, const std::string &CpuName,
   24 LLVMState::LLVMState(const std::string &Triple, const std::string &CpuName,
   25                      const std::string &Features) {
   26   std::string Error;
   48 LLVMState::LLVMState(const std::string &CpuName)
tools/llvm-exegesis/lib/LlvmState.h
   39   LLVMState(const std::string &CpuName);
   41   LLVMState(const std::string &Triple,
   42             const std::string &CpuName,
   43             const std::string &Features = ""); // For tests.
tools/llvm-exegesis/lib/PerfHelper.h
   59   const std::string EventString;
   60   std::string FullQualifiedEventString;
tools/llvm-exegesis/llvm-exegesis.cpp
   54 static cl::opt<std::string>
   59 static cl::opt<std::string> SnippetsFile("snippets-file",
   64 static cl::opt<std::string>
  135 static cl::opt<std::string>
  138 static cl::opt<std::string>
  152 static cl::opt<std::string> CpuName(
  299 static void maybeRunAnalysis(const Analysis &Analyzer, const std::string &Name,
  300                              const std::string &OutputFilename) {
  342   std::string Error;
tools/llvm-extract/llvm-extract.cpp
   39 static cl::opt<std::string> InputFilename(cl::Positional,
   44 static cl::opt<std::string> OutputFilename("o",
   61 static cl::list<std::string>
   68 static cl::list<std::string>
   76 static cl::list<std::string> ExtractBlocks(
   91 static cl::list<std::string>
   98 static cl::list<std::string>
  106 static cl::list<std::string>
  113 static cl::list<std::string>
  166     std::string Error;
  200     std::string Error;
  232     std::string Error;
tools/llvm-ifs/llvm-ifs.cpp
   40 static cl::opt<std::string> Action("action", cl::desc("<llvm-ifs action>"),
   44 static cl::opt<std::string> ForceFormat("force-format",
   49 static cl::list<std::string> InputFilenames(cl::Positional,
   53 static cl::opt<std::string> OutputFilename("o", cl::desc("<output file>"),
   64 std::string getTypeName(IFSSymbolType Type) {
   79   IFSSymbol(std::string SymbolName) : Name(SymbolName) {}
   80   std::string Name;
   84   Optional<std::string> Warning;
  146     std::string Name = Key.str();
  166   std::string Triple;
  167   std::string ObjectFileFormat;
  168   Optional<std::string> SOName;
  169   std::vector<std::string> NeededLibs;
  349   std::string YamlStr = OS.str();
  373   std::string ObjectFileFormat =
  406   std::map<std::string, IFSSymbol> SymbolMap;
  408   std::string PreviousInputFilePath = "";
  409   for (const std::string &InputFilePath : InputFilenames) {
tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
   46 static cl::opt<std::string>
  107 static void handleLLVMFatalError(void *, const std::string &Message, bool) {
  134   std::string Error;
  143   std::string CPUStr = getCPUStr(), FeaturesStr = getFeaturesStr();
tools/llvm-itanium-demangle-fuzzer/llvm-itanium-demangle-fuzzer.cpp
   16   std::string NullTerminatedString((const char *)Data, Size);
tools/llvm-jitlink/llvm-jitlink.cpp
   49 static cl::list<std::string> InputFiles(cl::Positional, cl::OneOrMore,
   55 static cl::list<std::string>
   59 static cl::opt<std::string>
   63 static cl::list<std::string> JITLinkDylibs(
   67 static cl::list<std::string>
   71 static cl::list<std::string> InputArgv("args", cl::Positional,
   80 static cl::list<std::string> AbsoluteDefs(
  104 static cl::opt<std::string> SlabAllocateSizeString(
  550   std::string ErrMsg;
  572     std::string ErrMsg;
  594     std::string JDNamePrefix("lib");
  676   std::string ErrorStr;
tools/llvm-link/llvm-link.cpp
   42 static cl::list<std::string>
   46 static cl::list<std::string> OverridingInputs(
   53 static cl::list<std::string> Imports(
   63 static cl::opt<std::string>
   67 static cl::opt<std::string>
  117                                         const std::string &FN,
  152                                         const std::string &FileName)>
  158                             const char *argv0, const std::string &FileName)>
  163   Module &operator()(const char *argv0, const std::string &FileName);
  165   std::unique_ptr<Module> takeModule(const std::string &FileName) {
  176                                           const std::string &Identifier) {
  229     if (Idx == std::string::npos) {
  233     std::string FunctionName = Import.substr(0, Idx);
  234     std::string FileName = Import.substr(Idx + 1, std::string::npos);
  234     std::string FileName = Import.substr(Idx + 1, std::string::npos);
  276                       const cl::list<std::string> &Files,
tools/llvm-lipo/llvm-lipo.cpp
   41   std::string Buf;
   97   SmallVector<std::string, 1> VerifyArchList;
  100   std::string ThinArchType;
  101   std::string OutputFile;
  160   std::string ArchName;
  235   std::string getArchString() const {
  261     std::string Buf;
  361     std::string Buf;
  463                        ArrayRef<std::string> VerifyArchList) {
tools/llvm-lto/llvm-lto.cpp
  136 static cl::opt<std::string>
  141 static cl::opt<std::string> ThinLTOPrefixReplace(
  148 static cl::opt<std::string> ThinLTOModuleId(
  153 static cl::opt<std::string>
  172 static cl::opt<std::string> ThinLTOSaveTempsPrefix(
  177 static cl::opt<std::string> ThinLTOGeneratedObjectsDir(
  186 static cl::list<std::string> InputFilenames(cl::Positional, cl::OneOrMore,
  189 static cl::opt<std::string> OutputFilename("o", cl::init(""),
  193 static cl::list<std::string> ExportedSymbols(
  198 static cl::list<std::string>
  254 static std::string CurrentActivity;
  388     std::string E;
  431 static void getThinLTOOldAndNewPrefix(std::string &OldPrefix,
  432                                       std::string &NewPrefix) {
  444 static std::string getThinLTOOutputFile(const std::string &Path,
  444 static std::string getThinLTOOutputFile(const std::string &Path,
  445                                         const std::string &OldPrefix,
  446                                         const std::string &NewPrefix) {
  468     std::string CurrentActivity = ("loading file '" + Filename + "'").str();
  573       std::string CurrentActivity = "loading file '" + Filename + "'";
  600     std::string OldPrefix, NewPrefix;
  612       std::map<std::string, GVSummaryMapTy> ModuleToSummariesForIndex;
  616       std::string OutputName = OutputFilename;
  637     std::string OldPrefix, NewPrefix;
  646       std::string OutputName = OutputFilename;
  676       std::string OutputName = OutputFilename;
  709       std::string OutputName = OutputFilename;
  742       std::string OutputName = OutputFilename;
  767       std::string OutputName = OutputFilename;
  796       std::string OutputName = OutputFilename;
  825       std::string CurrentActivity = "loading file '" + Filename + "'";
  943   std::vector<std::string> KeptDSOSyms;
  987   std::string attrs;
 1008       std::string ModuleFilename = OutputFilename;
 1010       std::string ErrMsg;
 1019       std::string PartFilename = OutputFilename;
tools/llvm-lto2/llvm-lto2.cpp
   42 static cl::list<std::string> InputFilenames(cl::Positional, cl::OneOrMore,
   45 static cl::opt<std::string> OutputFilename("o", cl::Required,
   49 static cl::opt<std::string> CacheDir("cache-dir", cl::desc("Cache Directory"),
   52 static cl::opt<std::string> OptPipeline("opt-pipeline",
   56 static cl::opt<std::string> AAPipeline("aa-pipeline",
   71 static cl::list<std::string> SymbolResolutions(
   85 static cl::opt<std::string> OverrideTriple(
   89 static cl::opt<std::string> DefaultTriple(
   99 static cl::opt<std::string>
  104 static cl::opt<std::string>
  110 static cl::opt<std::string> RemarksFormat(
  115 static cl::opt<std::string>
  119 static cl::opt<std::string>
  137 static cl::opt<std::string>
  140 static void check(Error E, std::string Msg) {
  149 template <typename T> static T check(Expected<T> E, std::string Msg) {
  156 static void check(std::error_code EC, std::string Msg) {
  160 template <typename T> static T check(ErrorOr<T> E, std::string Msg) {
  179   std::map<std::pair<std::string, std::string>, std::list<SymbolResolution>>
  179   std::map<std::pair<std::string, std::string>, std::list<SymbolResolution>>
  181   for (std::string R : SymbolResolutions) {
  286   for (std::string F : InputFilenames) {
  333     std::string Path = OutputFilename + "." + utostr(Task);
tools/llvm-mc/Disassembler.cpp
  133 int Disassembler::disassemble(const Target &T, const std::string &Triple,
tools/llvm-mc/Disassembler.h
   32   static int disassemble(const Target &T, const std::string &Triple,
tools/llvm-mc/llvm-mc.cpp
   44 static cl::opt<std::string>
   47 static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
   51 static cl::opt<std::string> SplitDwarfFile("split-dwarf-file",
   87 static cl::list<std::string>
  110 static cl::list<std::string>
  114 static cl::opt<std::string>
  118 static cl::opt<std::string>
  122 static cl::opt<std::string>
  128 static cl::list<std::string>
  150 static cl::opt<std::string>
  154 static cl::list<std::string>
  159 static cl::opt<std::string>
  199   std::string Error;
  224 static std::string DwarfDebugFlags;
  235 static std::string DwarfDebugProducer;
  410   std::string FeaturesStr;
tools/llvm-mca/Views/BottleneckAnalysis.cpp
  291   std::string Instruction;
  643   std::string Buffer;
tools/llvm-mca/Views/DispatchStatistics.cpp
   35   std::string Buffer;
   64   std::string Buffer;
tools/llvm-mca/Views/InstructionInfoView.cpp
   21   std::string Buffer;
   25   std::string Instruction;
tools/llvm-mca/Views/RegisterFileStatistics.cpp
  105   std::string Buffer;
tools/llvm-mca/Views/ResourcePressureView.cpp
  103   std::string Buffer;
  146   std::string Buffer;
  154   std::string Instruction;
tools/llvm-mca/Views/RetireControlUnitStatistics.cpp
   56   std::string Buffer;
tools/llvm-mca/Views/SummaryView.cpp
   75   std::string Buffer;
tools/llvm-mca/Views/TimelineView.cpp
  176   std::string Header =
  186   std::string Instruction;
  296   std::string Instruction;
tools/llvm-mca/llvm-mca.cpp
   68 static cl::opt<std::string> InputFilename(cl::Positional,
   72 static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
   76 static cl::opt<std::string>
   82 static cl::opt<std::string>
   87 static cl::opt<std::string>
   92 static cl::opt<std::string>
  224   std::string Error;
  474                   std::string InstructionStr;
tools/llvm-microsoft-demangle-fuzzer/llvm-microsoft-demangle-fuzzer.cpp
   16   std::string NullTerminatedString((const char *)Data, Size);
tools/llvm-modextract/llvm-modextract.cpp
   27 static cl::opt<std::string> OutputFilename("o", cl::Required,
   31 static cl::opt<std::string>
tools/llvm-mt/llvm-mt.cpp
   98     std::string Diag;
  102     std::string Nearest;
  121   std::vector<std::string> InputFiles = InputArgs.getAllArgValues(OPT_manifest);
tools/llvm-nm/llvm-nm.cpp
   61 cl::list<std::string> InputFilenames(cl::Positional, cl::desc("<input files>"),
  103 static cl::list<std::string>
  186 cl::list<std::string> SegSect("s", cl::multi_val(2), cl::ZeroOrMore,
  221 std::string ToolName;
  258   std::string Buf;
  277   std::string Buf;
  688 static Optional<std::string> demangle(StringRef Name, bool StripUnderscore) {
  701   std::string S(Undecorated);
  711                                    const std::string &ArchiveName,
  712                                    const std::string &ArchitectureName) {
  796     std::string Name = S.Name.str();
  799       if (Optional<std::string> Opt = demangle(S.Name, MachO))
 1186                           const std::string &ArchiveName = std::string(),
 1187                           const std::string &ArchitectureName = std::string()) {
 1197   std::string NameBuffer;
 1264   std::string ExportsNameBuffer;
 1266   std::string BindsNameBuffer;
 1268   std::string LazysNameBuffer;
 1270   std::string WeaksNameBuffer;
 1272   std::string FunctionStartsNameBuffer;
 1747 static bool checkMachOAndArchFlags(SymbolicFile *O, std::string &Filename) {
 1766   const std::string ArchFlagName(ArchFlag);
 1776 static void dumpSymbolNamesFromFile(std::string &Filename) {
 1864             std::string ArchiveName;
 1865             std::string ArchitectureName;
 1948           std::string ArchiveName;
 1998       std::string ArchiveName;
 1999       std::string ArchitectureName;
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  207   std::string FullMsg = (EC.message() + ": " + Msg).str();
tools/llvm-objcopy/ELF/Object.cpp
 1157   std::string SanitizedFilename = MemBuf->getBufferIdentifier().str();
tools/llvm-objcopy/ELF/Object.h
  384   std::string Name;
  611   std::string Name;
tools/llvm-objcopy/MachO/Object.h
   39   std::string Sectname;
   40   std::string Segname;
   42   std::string CanonicalName;
   89   std::string Name;
  122   std::vector<std::string> Strings;
tools/llvm-objcopy/llvm-objcopy.cpp
   64   std::string Buf;
   79   std::string Buf;
tools/llvm-objcopy/llvm-objcopy.h
   32   std::string Buf;
tools/llvm-objdump/COFFDump.cpp
  641     std::string Name;
tools/llvm-objdump/ELFDump.cpp
   80   std::string FmtBuf;
  167     std::string Str = Elf->getDynamicTagAsString(Dyn.d_tag);
tools/llvm-objdump/MachODump.cpp
   69 extern cl::list<std::string> FilterSections;
   70 extern cl::list<std::string> MAttrs;
   71 extern cl::opt<std::string> MCPU;
   80 extern cl::opt<std::string> TripleName;
  112 static cl::opt<std::string> DSYMFile("dsym",
  180 cl::opt<std::string> DisSymName(
  190 static cl::list<std::string>
  196 static std::string ThumbTripleName;
  212     std::string ThumbName = (Twine("thumb") + TT.getArchName().substr(3)).str();
  218   std::string Error;
  508   std::string FmtBuf;
 1896   const std::string ArchFlagName(ArchFlag);
 2401           std::string ArchitectureName = "";
 2467         std::string ArchiveName;
 2517     std::string ArchitectureName = "";
 7192   std::string MachOMCPU;
 7204   std::string FeaturesStr;
 7345       std::string DSYMPath(DSYMFile);
tools/llvm-objdump/WasmDump.cpp
   34   std::string FmtBuf;
tools/llvm-objdump/llvm-objdump.cpp
  109 static cl::opt<std::string>
  146 static cl::list<std::string>
  162 static cl::list<std::string>
  208 static cl::list<std::string> InputFilenames(cl::Positional,
  228 cl::opt<std::string>
  233 cl::list<std::string> MAttrs("mattr", cl::CommaSeparated,
  271 cl::list<std::string>
  321 cl::opt<std::string> TripleName("triple",
  396 std::string getFileNameForError(const object::Archive::Child &C,
  432   std::string Buf;
  479   std::string Error;
  547   std::unordered_map<std::string, std::unique_ptr<MemoryBuffer>> SourceCache;
  549   std::unordered_map<std::string, std::vector<StringRef>> LineCache;
  614   std::string ErrorMessage;
  622       std::string Warning =
  744     std::string Buffer;
 1279       std::string SymbolName = std::get<1>(Symbols[SI]).str();
 1733     std::string Type = Section.isText() ? "TEXT" : "";
tools/llvm-objdump/llvm-objdump.h
  155 std::string getFileNameForError(const object::Archive::Child &C,
tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
   26 static cl::opt<std::string>
   30 static cl::opt<std::string> PassPipeline(
   76   std::string Buf;
  165 static void handleLLVMFatalError(void *, const std::string &Message, bool) {
  214   std::string Error;
tools/llvm-opt-report/OptReport.cpp
   43 static cl::opt<std::string>
   47 static cl::opt<std::string>
   51 static cl::opt<std::string>
   63 static cl::opt<std::string> ParserFormat("format",
  144 typedef std::map<std::string, std::map<int, std::map<std::string, std::map<int,
  144 typedef std::map<std::string, std::map<int, std::map<std::string, std::map<int,
  363         std::string USpaces(Succinct ? 0 : UCDigits, ' ');
  364         std::string VSpaces(Succinct ? 0 : VFDigits + ICDigits + 1, ' ');
  367           std::string R;
  380           std::string R;
  426                std::set<std::string>> UniqueLIs;
tools/llvm-pdbutil/BytesOutputStyle.cpp
  221     std::string Label = formatv("Block {0}", I).str();
tools/llvm-pdbutil/DumpOutputStyle.cpp
  310 static inline std::string formatModuleDetailKind(DebugSubsectionKind K) {
  314 static inline std::string formatModuleDetailKind(SymbolKind K) {
  340     std::string KindName = formatModuleDetailKind(Kind(K.first));
  532 static std::vector<std::string> getSectionNames(PDBFile &File) {
  540   std::vector<std::string> Names;
  547                                ArrayRef<std::string> SectionNames,
  549   std::string NameInsert;
  567                                ArrayRef<std::string> SectionNames,
  602           std::vector<std::string> Sections = getSectionNames(getPdb());
  899     std::string Label = formatv("namespace '{0}'", Stat.Key);
  923       std::string LineStr;
 1040           std::vector<std::string> TIs;
 1043           std::string Result =
 1074 std::string formatFrameType(object::frame_type FT) {
 1845 static std::string formatSegMapDescriptorFlag(uint32_t IndentLevel,
 1847   std::vector<std::string> Opts;
 1938     Visitor(LinePrinter &P, ArrayRef<std::string> Names) : P(P), Names(Names) {
 1954     ArrayRef<std::string> Names;
 1957   std::vector<std::string> Names = getSectionNames(getPdb());
tools/llvm-pdbutil/ExplainOutputStyle.cpp
  187 static std::string toBinaryString(uint8_t Byte) {
tools/llvm-pdbutil/FormatUtil.cpp
   21 std::string llvm::pdb::truncateStringBack(StringRef S, uint32_t MaxLen) {
   31 std::string llvm::pdb::truncateStringMiddle(StringRef S, uint32_t MaxLen) {
   42 std::string llvm::pdb::truncateStringFront(StringRef S, uint32_t MaxLen) {
   51 std::string llvm::pdb::truncateQuotedNameFront(StringRef Label, StringRef Name,
   58   std::string TN = truncateStringFront(Name, MaxLen - RequiredExtraChars);
   62 std::string llvm::pdb::truncateQuotedNameBack(StringRef Label, StringRef Name,
   69   std::string TN = truncateStringBack(Name, MaxLen - RequiredExtraChars);
   73 std::string llvm::pdb::typesetItemList(ArrayRef<std::string> Opts,
   73 std::string llvm::pdb::typesetItemList(ArrayRef<std::string> Opts,
   76   std::string Result;
   78     ArrayRef<std::string> ThisGroup;
   91 std::string llvm::pdb::typesetStringList(uint32_t IndentLevel,
   93   std::string Result = "[";
  101 std::string llvm::pdb::formatChunkKind(DebugSubsectionKind Kind,
  148 std::string llvm::pdb::formatSymbolKind(SymbolKind K) {
  171 std::string llvm::pdb::formatSegmentOffset(uint16_t Segment, uint32_t Offset) {
  187 std::string llvm::pdb::formatSectionCharacteristics(uint32_t IndentLevel,
  193   std::vector<std::string> Opts;
tools/llvm-pdbutil/FormatUtil.h
   25 std::string truncateStringBack(StringRef S, uint32_t MaxLen);
   26 std::string truncateStringMiddle(StringRef S, uint32_t MaxLen);
   27 std::string truncateStringFront(StringRef S, uint32_t MaxLen);
   28 std::string truncateQuotedNameFront(StringRef Label, StringRef Name,
   30 std::string truncateQuotedNameBack(StringRef Label, StringRef Name,
   44 template <typename T> std::string formatUnknownEnum(T Value) {
   50 std::string formatSegmentOffset(uint16_t Segment, uint32_t Offset);
   56 std::string formatSectionCharacteristics(
   61 std::string typesetItemList(ArrayRef<std::string> Opts, uint32_t IndentLevel,
   61 std::string typesetItemList(ArrayRef<std::string> Opts, uint32_t IndentLevel,
   64 std::string typesetStringList(uint32_t IndentLevel,
   67 std::string formatChunkKind(codeview::DebugSubsectionKind Kind,
   69 std::string formatSymbolKind(codeview::SymbolKind K);
tools/llvm-pdbutil/InputFile.cpp
  112 static std::string formatChecksumKind(FileChecksumKind Kind) {
tools/llvm-pdbutil/MinimalSymbolDumper.cpp
   28 static std::string formatLocalSymFlags(uint32_t IndentLevel,
   30   std::vector<std::string> Opts;
   48 static std::string formatExportFlags(uint32_t IndentLevel, ExportFlags Flags) {
   49   std::vector<std::string> Opts;
   63 static std::string formatCompileSym2Flags(uint32_t IndentLevel,
   65   std::vector<std::string> Opts;
   82 static std::string formatCompileSym3Flags(uint32_t IndentLevel,
   84   std::vector<std::string> Opts;
  105 static std::string formatFrameProcedureOptions(uint32_t IndentLevel,
  107   std::vector<std::string> Opts;
  138 static std::string formatPublicSymFlags(uint32_t IndentLevel,
  140   std::vector<std::string> Opts;
  151 static std::string formatProcSymFlags(uint32_t IndentLevel,
  153   std::vector<std::string> Opts;
  168 static std::string formatThunkOrdinal(ThunkOrdinal Ordinal) {
  181 static std::string formatTrampolineType(TrampolineType Tramp) {
  189 static std::string formatSourceLanguage(SourceLanguage Lang) {
  214 static std::string formatMachineType(CPUType Cpu) {
  280 static std::string formatCookieKind(FrameCookieKind Kind) {
  290 static std::string formatRegisterId(RegisterId Id, CPUType Cpu) {
  317 static std::string formatRegisterId(uint16_t Reg16, CPUType Cpu) {
  321 static std::string formatRegisterId(ulittle16_t &Reg16, CPUType Cpu) {
  325 static std::string formatRange(LocalVariableAddrRange Range) {
  332 static std::string formatGaps(uint32_t IndentLevel,
  334   std::vector<std::string> GapStrs;
  366 std::string MinimalSymbolDumper::typeOrIdIndex(codeview::TypeIndex TI,
  379 std::string MinimalSymbolDumper::idIndex(codeview::TypeIndex TI) const {
  383 std::string MinimalSymbolDumper::typeIndex(TypeIndex TI) const {
  800   std::string FlagStr =
tools/llvm-pdbutil/MinimalSymbolDumper.h
   49   std::string typeOrIdIndex(codeview::TypeIndex TI, bool IsType) const;
   51   std::string typeIndex(codeview::TypeIndex TI) const;
   52   std::string idIndex(codeview::TypeIndex TI) const;
tools/llvm-pdbutil/MinimalTypeDumper.cpp
   31 static std::string formatClassOptions(uint32_t IndentLevel,
   34   std::vector<std::string> Opts;
   49       std::string Formatted =
   77 static std::string pointerOptions(PointerOptions Options) {
   78   std::vector<std::string> Opts;
   90 static std::string modifierOptions(ModifierOptions Options) {
   91   std::vector<std::string> Opts;
  100 static std::string formatCallingConvention(CallingConvention Convention) {
  130 static std::string formatPointerMode(PointerMode Mode) {
  141 static std::string memberAccess(MemberAccess Access) {
  151 static std::string methodKind(MethodKind Kind) {
  164 static std::string pointerKind(PointerKind Kind) {
  183 static std::string memberAttributes(const MemberAttributes &Attrs) {
  184   std::vector<std::string> Opts;
  185   std::string Access = memberAccess(Attrs.getAccess());
  186   std::string Kind = methodKind(Attrs.getMethodKind());
  200 static std::string formatPointerAttrs(const PointerRecord &Record) {
  208 static std::string formatFunctionOptions(FunctionOptions Options) {
  209   std::vector<std::string> Opts;
  229     std::string H;
  385     std::string Sep =
  500   std::string Type = (R.Mode == LabelType::Far) ? "far" : "near";
tools/llvm-pdbutil/PrettyClassLayoutGraphicalDumper.cpp
  114   std::string Label = "base";
tools/llvm-pdbutil/PrettyCompilandDumper.cpp
   49   std::string FullName = Symbol.getName();
  208   std::string Name = Symbol.getName();
  226   std::string Name = Symbol.getName();
tools/llvm-pdbutil/PrettyExternalSymbolDumper.cpp
   30   std::string LinkageName = Symbol.getName();
tools/llvm-pdbutil/StreamUtil.cpp
   24 std::string StreamInfo::getLongName() const {
   77   DenseMap<uint16_t, std::string> NamedStreams;
tools/llvm-pdbutil/StreamUtil.h
   44   std::string getLongName() const;
   54   std::string Name;
tools/llvm-pdbutil/llvm-pdbutil.cpp
  157 cl::list<std::string> InputFilenames(cl::Positional,
  199 cl::list<std::string> InputFilenames(cl::Positional,
  211 cl::list<std::string> WithName(
  313 cl::list<std::string> ExcludeTypes(
  316 cl::list<std::string> ExcludeSymbols(
  319 cl::list<std::string> ExcludeCompilands(
  323 cl::list<std::string> IncludeTypes(
  327 cl::list<std::string> IncludeSymbols(
  331 cl::list<std::string> IncludeCompilands(
  376 cl::opt<std::string> DumpBlockRangeOpt(
  381 cl::opt<std::string>
  386 cl::list<std::string>
  438 cl::list<std::string> InputFilenames(cl::Positional,
  531 cl::list<std::string> DumpGlobalNames(
  615 cl::list<std::string> InputFilenames(cl::Positional,
  621 cl::opt<std::string>
  625 cl::opt<std::string> InputFilename(cl::Positional,
  686 cl::list<std::string> InputFilename(cl::Positional,
  692 cl::list<std::string> InputFilenames(cl::Positional,
  695 cl::opt<std::string>
  701 cl::list<std::string> InputFilename(cl::Positional,
  724 cl::list<std::string> InputFilename(cl::Positional,
  727 cl::opt<std::string> OutputFile("out",
  730 cl::opt<std::string>
  931 static std::string stringOr(std::string Str, std::string IfEmpty) {
  931 static std::string stringOr(std::string Str, std::string IfEmpty) {
  931 static std::string stringOr(std::string Str, std::string IfEmpty) {
  944     std::string File = stringOr(IS->getFileName(), "<null>");
  946     std::string Obj = stringOr(IS->getObjectFileName(), "<null>");
  947     std::string VFName = stringOr(IS->getVirtualFileName(), "<null>");
 1073   std::string FileName(GlobalScope->getSymbolsFileName());
 1363   std::string OutFileName = opts::exportstream::OutputFile;
tools/llvm-pdbutil/llvm-pdbutil.h
   77 extern llvm::cl::list<std::string> WithName;
   93 extern llvm::cl::list<std::string> ExcludeTypes;
   94 extern llvm::cl::list<std::string> ExcludeSymbols;
   95 extern llvm::cl::list<std::string> ExcludeCompilands;
   96 extern llvm::cl::list<std::string> IncludeTypes;
   97 extern llvm::cl::list<std::string> IncludeSymbols;
   98 extern llvm::cl::list<std::string> IncludeCompilands;
  116 extern llvm::cl::list<std::string> DumpStreamData;
  173 extern llvm::cl::list<std::string> DumpGlobalNames;
  197 extern llvm::cl::list<std::string> InputFilename;
  207 extern llvm::cl::list<std::string> InputFilename;
  213 extern llvm::cl::opt<std::string> OutputFile;
  214 extern llvm::cl::opt<std::string> Stream;
tools/llvm-profdata/llvm-profdata.cpp
   46 static void warn(Twine Message, std::string Whence = "",
   47                  std::string Hint = "") {
   56 static void exitWithError(Twine Message, std::string Whence = "",
   57                           std::string Hint = "") {
  178   std::string Filename;
  187   std::vector<std::pair<Error, std::string>> Errors;
  199 static void overlapInput(const std::string &BaseFilename,
  200                          const std::string &TestFilename, WriterContext *WC,
  231   std::string Filename = Input.Filename;
  599   cl::list<std::string> InputFilenames(cl::Positional,
  601   cl::list<std::string> WeightedInputFilenames("weighted-input",
  603   cl::opt<std::string> InputFilenamesFile(
  612   cl::opt<std::string> RemappingFile("remapping-file", cl::value_desc("file"),
  616   cl::opt<std::string> OutputFilename("output", cl::value_desc("output"),
  648   cl::opt<std::string> ProfileSymbolListFile(
  696 static void overlapInstrProfile(const std::string &BaseFilename,
  697                                 const std::string &TestFilename,
  723   cl::opt<std::string> BaseFilename(cl::Positional, cl::Required,
  725   cl::opt<std::string> TestFilename(cl::Positional, cl::Required,
  727   cl::opt<std::string> Output("output", cl::value_desc("output"), cl::init("-"),
  737   cl::opt<std::string> FuncNameFilter(
  812 static int showInstrProfile(const std::string &Filename, bool ShowCounts,
  818                             const std::string &ShowFunction, bool TextFormat,
  841   std::priority_queue<std::pair<std::string, uint64_t>,
  842                       std::vector<std::pair<std::string, uint64_t>>,
  969     std::vector<std::pair<std::string, uint64_t>> SortedHottestFuncs;
 1015 static int showSampleProfile(const std::string &Filename, bool ShowCounts,
 1017                              const std::string &ShowFunction,
 1051   cl::opt<std::string> Filename(cl::Positional, cl::Required,
 1077   cl::opt<std::string> ShowFunction("function",
 1080   cl::opt<std::string> OutputFilename("output", cl::value_desc("output"),
 1154       std::string Invocation(ProgName.str() + " " + argv[1]);
tools/llvm-rc/ResourceFileWriter.h
   37   std::vector<std::string> Include;   // Additional folders to search for files.
   38   std::vector<std::string> NoInclude; // Folders to exclude from file search.
tools/llvm-rc/ResourceScriptCppFilter.cpp
   26   std::string run();
   42 std::string Filter::run() {
  109 std::string filterCppOutput(StringRef Input) { return Filter(Input).run(); }
tools/llvm-rc/ResourceScriptCppFilter.h
   30 std::string filterCppOutput(StringRef Input);
tools/llvm-rc/ResourceScriptParser.cpp
  541   std::string ClassUpper = ClassResult->upper();
tools/llvm-rc/ResourceScriptParser.h
   47     const std::string &getMessage() const { return CurMessage; }
   52     std::string CurMessage;
tools/llvm-rc/llvm-rc.cpp
  102   std::vector<std::string> InArgsInfo = InputArgs.getAllArgValues(OPT_INPUT);
  120   std::string FilteredContents = filterCppOutput(Contents);
tools/llvm-readobj/ARMWinEHPrinter.cpp
   95 static std::string formatSymbol(StringRef Name, uint64_t Address,
   97   std::string Buffer;
  905       std::string Buf;
  944       std::string Buf;
  953       std::string Buf;
  969       std::string Buf;
  978       std::string Buf;
 1027       std::string Buf;
 1036       std::string Buf;
tools/llvm-readobj/COFFDumper.cpp
  113   void printDataDirectory(uint32_t Index, const std::string &FieldName);
  603                                     const std::string &FieldName) {
 1138         std::string PC = formatv("+{0:X}", uint32_t(Line.Offset));
 1731 static std::string getBaseRelocTypeName(uint8_t Type) {
 1835       std::string EntryNameString;
tools/llvm-readobj/ELFDumper.cpp
  240   std::string SOName = "<Not found>";
  300   std::string getFullSymbolName(const Elf_Sym *Symbol, StringRef StrTable,
  305   Expected<std::string> getStaticSymbolName(uint32_t Index) const;
  306   std::string getDynamicString(uint64_t Value) const;
  440   std::unordered_set<std::string> Warnings;
  488     std::string Str;
  496   std::string printEnum(T Value, ArrayRef<EnumEntry<TEnum>> EnumValues) {
  504   std::string printFlags(T Value, ArrayRef<EnumEntry<TEnum>> EnumValues,
  507     std::string Str;
  547   std::string getSymbolSectionNdx(const ELFO *Obj, const Elf_Sym *Symbol,
  752 static std::string maybeDemangle(StringRef Name) {
  757 Expected<std::string>
  809 std::string ELFDumper<ELFT>::getFullSymbolName(const Elf_Sym *Symbol,
  812   std::string SymbolName = maybeDemangle(
 1176 static std::string getGNUFlags(uint64_t Flags) {
 1177   std::string Str;
 1250 static std::string getElfPtType(unsigned Arch, unsigned Type) {
 2143 std::string ELFDumper<ELFT>::getDynamicString(uint64_t Value) const {
 2179   std::vector<std::string> Libs;
 2727 static std::string getSectionHeadersNumString(const ELFFile<ELFT> *Obj,
 2740 static std::string getSectionHeaderTableIndexString(const ELFFile<ELFT> *Obj,
 2757   std::string Str;
 2788   std::string ElfFlags;
 2822   std::string Signature;
 2919   std::string TargetName;
 2957   std::string Addend;
 3068 static std::string getSectionTypeOffsetString(unsigned Type) {
 3078 static std::string getSectionTypeString(unsigned Arch, unsigned Type) {
 3271 std::string GNUStyle<ELFT>::getSymbolSectionNdx(const ELFO *Obj,
 3465 static inline std::string printPhdrFlags(unsigned Flag) {
 3466   std::string Str;
 3593     std::string Sections;
 3617   std::string Sections;
 3632   std::string Name;
 3643   std::string Name;
 3686     std::string TypeString = std::string("(") +
 3818         std::string VersionName = Dumper->getSymbolVersionByIndex(
 3834 static std::string versionFlagToString(unsigned Flags) {
 3838   std::string Ret;
 4168 static std::string getGNUNoteTypeName(const uint32_t NT) {
 4184   std::string string;
 4190 static std::string getFreeBSDNoteTypeName(const uint32_t NT) {
 4212   std::string string;
 4218 static std::string getAMDNoteTypeName(const uint32_t NT) {
 4232   std::string string;
 4238 static std::string getAMDGPUNoteTypeName(const uint32_t NT) {
 4242   std::string string;
 4249 static std::string getGNUProperty(uint32_t Type, uint32_t DataSize,
 4251   std::string str;
 4375 static SmallVector<std::string, 4> getGNUPropertyList(ArrayRef<uint8_t> Arr) {
 4378   SmallVector<std::string, 4> Properties;
 4386     std::string str;
 4405   std::string OSName;
 4406   std::string ABI;
 4426   std::string str;
 4432 static std::string getGNUBuildId(ArrayRef<uint8_t> Desc) {
 4433   std::string str;
 4475   std::string Type;
 4476   std::string Value;
 4496   std::string Type;
 4497   std::string Value;
 4516     std::string HSAMetadataString;
 4707 static std::string getSymbolName(const ELFSymbolRef &Sym) {
 4737   std::string FuncName = "?";
 5034       std::string SymName = this->dumper()->getFullSymbolName(
 5086       std::string SymName = this->dumper()->getFullSymbolName(
 5311   std::string TargetName;
 5437   std::string FullSymbolName =
 5568   std::string SymbolName =
 5631     std::string FullSymbolName =
 5788     Expected<std::string> NameOrErr = this->dumper()->getStaticSymbolName(Sym);
 6027       std::string SymName = this->dumper()->getFullSymbolName(
 6077       std::string SymName =
tools/llvm-readobj/Error.cpp
   25   std::string message(int ev) const override;
   33 std::string _readobj_error_category::message(int EV) const {
tools/llvm-readobj/MachODumper.cpp
  297     std::string CmdName;
  298     std::string SegName;
  319 static std::string getMask(uint32_t prot)
  323   std::string Prot;
tools/llvm-readobj/ObjDumper.cpp
   42                             ArrayRef<std::string> Sections) {
   44   std::map<std::string, bool> SecNames;
   68   for (const std::pair<std::string, bool> &S : SecNames)
   84                                       ArrayRef<std::string> Sections) {
  119                                    ArrayRef<std::string> Sections) {
tools/llvm-readobj/ObjDumper.h
  101                              ArrayRef<std::string> Sections);
  103                           ArrayRef<std::string> Sections);
tools/llvm-readobj/Win64EHDumper.cpp
  114 static std::string formatSymbol(const Dumper::Context &Ctx,
  117   std::string Buffer;
tools/llvm-readobj/WindowsResourceDumper.cpp
   23 std::string stripUTF16(const ArrayRef<UTF16> &UTF16Str) {
   24   std::string Result;
tools/llvm-readobj/llvm-readobj.cpp
   48   cl::list<std::string> InputFilenames(cl::Positional,
  181   cl::list<std::string> StringDump("string-dump", cl::desc("<number|name>"),
  187   cl::list<std::string> HexDump("hex-dump", cl::desc("<number|name>"),
  440   std::string FileStr =
  711   for (const std::string &I : opts::InputFilenames)
tools/llvm-reduce/TestRunner.cpp
   13 TestRunner::TestRunner(StringRef TestName, const std::vector<std::string> &TestArgs)
   28   std::string ErrMsg;
tools/llvm-reduce/TestRunner.h
   27   TestRunner(StringRef TestName, const std::vector<std::string> &TestArgs);
   40   const std::vector<std::string> &TestArgs;
tools/llvm-reduce/deltas/Delta.cpp
   49   std::string CurrLine;
tools/llvm-reduce/deltas/ReduceArguments.cpp
   96     std::string FName = F->getName();
tools/llvm-reduce/llvm-reduce.cpp
   34 static cl::opt<std::string> InputFilename(cl::Positional, cl::Required,
   37 static cl::opt<std::string>
   41 static cl::list<std::string>
   45 static cl::opt<std::string>
tools/llvm-rtdyld/llvm-rtdyld.cpp
   46 static cl::list<std::string>
   72 static cl::opt<std::string>
   77 static cl::list<std::string>
   82 static cl::list<std::string> InputArgv("args", cl::Positional,
   86 static cl::opt<std::string>
   89 static cl::opt<std::string>
   95 static cl::list<std::string>
  123 static cl::list<std::string>
  130 static cl::list<std::string>
  193     std::string Name;
  213   void *getPointerToNamedFunction(const std::string &Name,
  218   bool finalizeMemory(std::string *ErrMsg) override { return false; }
  220   void addDummySymbol(const std::string &Name, uint64_t Addr) {
  224   JITSymbol findSymbol(const std::string &Name) override {
  277   std::map<std::string, uint64_t> DummyExterns;
  348   for (const std::string &Dylib : Dylibs) {
  351     std::string ErrMsg;
  384       std::string Buf;
  519         std::string Buf;
  602     std::string SectionIDStr = Mapping.substr(0, EqualsIdx);
  609     std::string FileName = SectionIDStr.substr(0, ComaIdx);
  610     std::string SectionName = SectionIDStr.substr(ComaIdx + 1);
  615     std::string NewAddrStr = Mapping.substr(EqualsIdx + 1);
  714     std::string Symbol = Mapping.substr(0, EqualsIdx);
  715     std::string AddrStr = Mapping.substr(EqualsIdx + 1);
  736   std::string ErrorStr;
  793     std::string ContainerName =
  911       std::string Buf;
tools/llvm-size/llvm-size.cpp
   72 static cl::list<std::string>
  100 static cl::list<std::string>
  108 static std::string ToolName;
  136   std::string Buf;
  154   std::string Buf;
  212   std::string fmtbuf;
  362   std::string fmtbuf;
  848   std::string fmtbuf;
tools/llvm-special-case-list-fuzzer/special-case-list-fuzzer.cpp
   21   std::string Error;
tools/llvm-split/llvm-split.cpp
   27 static cl::opt<std::string>
   31 static cl::opt<std::string>
tools/llvm-stress/llvm-stress.cpp
   63 static cl::opt<std::string>
tools/llvm-strings/llvm-strings.cpp
   27 static cl::list<std::string> InputFileNames(cl::Positional,
tools/llvm-symbolizer/llvm-symbolizer.cpp
   89 static cl::opt<std::string> ClDefaultArch("default-arch", cl::init(""),
   94 static cl::opt<std::string>
  105 static cl::opt<std::string>
  109 static cl::list<std::string>
  145 static cl::list<std::string> ClInputAddresses(cl::Positional,
  149 static cl::opt<std::string>
  180                          std::string &ModuleName, uint64_t &ModuleOffset) {
  222   std::string ModuleName;
tools/llvm-undname/llvm-undname.cpp
   46 cl::opt<std::string> RawFile("raw-file", cl::Optional,
   48 cl::list<std::string> Symbols(cl::Positional, cl::desc("<input symbols>"),
   51 static bool msDemangle(const std::string &S) {
   96       std::string LineStr;
tools/llvm-xray/func-id-helper.cpp
   20 std::string FuncIdConversionHelper::SymbolOrNumber(int32_t FuncId) const {
   53 std::string FuncIdConversionHelper::FileLineAndColumn(int32_t FuncId) const {
tools/llvm-xray/func-id-helper.h
   28   std::string BinaryInstrMap;
   31   mutable llvm::DenseMap<int32_t, std::string> CachedNames;
   34   FuncIdConversionHelper(std::string BinaryInstrMap,
   41   std::string SymbolOrNumber(int32_t FuncId) const;
   44   std::string FileLineAndColumn(int32_t FuncId) const;
tools/llvm-xray/xray-account.cpp
   30 static cl::opt<std::string> AccountInput(cl::Positional,
   47 static cl::opt<std::string>
  113 static cl::opt<std::string>
  232   std::string DebugInfo;
  233   std::string Function;
tools/llvm-xray/xray-color-helper.cpp
  209 std::string
  219 std::string ColorHelper::getColorString(double Point) const {
tools/llvm-xray/xray-color-helper.h
   74   std::string getColorString(double Point) const;
   81   std::string getDefaultColorString() const { return "black"; }
   84   static std::string getColorString(std::tuple<uint8_t, uint8_t, uint8_t> t);
tools/llvm-xray/xray-converter.cpp
   33 static cl::opt<std::string> ConvertInput(cl::Positional,
   48 static cl::opt<std::string>
   64 static cl::opt<std::string>
tools/llvm-xray/xray-extract.cpp
   33 static cl::opt<std::string> ExtractInput(cl::Positional,
   36 static cl::opt<std::string>
tools/llvm-xray/xray-fdr-dump.cpp
   29 static cl::opt<std::string> DumpInput(cl::Positional,
tools/llvm-xray/xray-graph-diff.cpp
   32 static cl::opt<std::string> GraphDiffInput1(cl::Positional,
   35 static cl::opt<std::string> GraphDiffInput2(cl::Positional,
   61 static cl::opt<std::string>
   70 static cl::opt<std::string>
   79 static cl::opt<std::string>
  218 static cl::opt<std::string>
  263 static std::string getColor(const GraphDiffRenderer::GraphT::EdgeValueType &E,
  284 static std::string getColor(const GraphDiffRenderer::GraphT::VertexValueType &V,
  316 static std::string getLabel(const GraphDiffRenderer::GraphT::EdgeValueType &E,
  334 static std::string getLabel(const GraphDiffRenderer::GraphT::VertexValueType &V,
  442   std::array<std::string, 2> Inputs{{GraphDiffInput1, GraphDiffInput2}};
tools/llvm-xray/xray-graph.cpp
   25 static cl::opt<std::string> GraphInput(cl::Positional,
   36 static cl::opt<std::string>
   42 static cl::opt<std::string>
  333 std::string
  335   std::string St;
tools/llvm-xray/xray-graph.h
   51     std::string getString(StatType T) const;
   70     std::string SymbolName;
  149     std::string InstrMap;
tools/llvm-xray/xray-stacks.cpp
   37 static cl::list<std::string> StackInputs(cl::Positional,
   50 static cl::opt<std::string> StacksInstrMap(
  675 std::string CreateErrorMessage(StackTrie::AccountRecordStatus Error,
tools/llvm-yaml-numeric-parser-fuzzer/yaml-numeric-parser-fuzzer.cpp
   41   std::string Input(reinterpret_cast<const char *>(Data), Size);
tools/lto/lto.cpp
   67 static std::string sLastErrorString;
  157     std::string attrs;
tools/obj2yaml/Error.cpp
   21   std::string message(int ev) const override;
   29 std::string _obj2yaml_error_category::message(int ev) const {
tools/obj2yaml/Error.h
   35   Obj2YamlError(std::string ErrMsg) : ErrMsg(std::move(ErrMsg)) {}
   36   Obj2YamlError(obj2yaml_error C, std::string ErrMsg)
   39   const std::string &getErrorMessage() const { return ErrMsg; }
   43   std::string ErrMsg;
tools/obj2yaml/coff2yaml.cpp
  203        std::string Buf;
tools/obj2yaml/elf2yaml.cpp
   37   std::vector<std::string> SectionNames;
   40   std::vector<std::string> SymbolNames;
  105   std::string &Ret = SectionNames[SecIndex];
tools/obj2yaml/obj2yaml.cpp
   58   std::string ErrMsg;
   66 cl::opt<std::string> InputFilename(cl::Positional, cl::desc("<input file>"),
tools/opt/BreakpointPrinter.cpp
   30   void getContextName(const DIScope *Context, std::string &N) {
   48         std::string Name;
tools/opt/Debugify.cpp
   80       std::string Name = "ty" + utostr(Size);
  136         std::string Name = utostr(NextVar++);
tools/opt/NewPMDriver.cpp
   46 static cl::list<std::string>
   53 static cl::opt<std::string>
   61 static cl::opt<std::string> PeepholeEPPipeline(
   66 static cl::opt<std::string> LateLoopOptimizationsEPPipeline(
   72 static cl::opt<std::string> LoopOptimizerEndEPPipeline(
   77 static cl::opt<std::string> ScalarOptimizerLateEPPipeline(
   82 static cl::opt<std::string> CGSCCOptimizerLateEPPipeline(
   87 static cl::opt<std::string> VectorizerStartEPPipeline(
   92 static cl::opt<std::string> PipelineStartEPPipeline(
   97 static cl::opt<std::string> OptimizerLastEPPipeline(
  104 extern cl::opt<std::string> ProfileFile;
  106 extern cl::opt<std::string> CSProfileGenFile;
  108 static cl::opt<std::string>
  119                           const cl::opt<std::string> &PipelineOpt) {
tools/opt/PassPrinters.cpp
   35   std::string PassName;
   40     std::string PassToPrintName = PassToPrint->getPassName();
   68   std::string PassName;
   73     std::string PassToPrintName = PassToPrint->getPassName();
  105   std::string PassName;
  110     std::string PassToPrintName = PassToPrint->getPassName();
  137   std::string PassName;
  142     std::string PassToPrintName = PassToPrint->getPassName();
  170   std::string PassName;
  175     std::string PassToPrintName = PassToPrint->getPassName();
  205   std::string PassName;
  210     std::string PassToPrintName = PassToPrint->getPassName();
tools/opt/opt.cpp
   74 static cl::opt<std::string> PassPipeline(
   81 static cl::opt<std::string>
   85 static cl::opt<std::string>
  110 static cl::opt<std::string> ThinLinkBitcodeFile(
  172 static cl::opt<std::string>
  215 static cl::opt<std::string>
  224 static cl::opt<std::string> ClDataLayout("data-layout",
  265 static cl::opt<std::string>
  270 static cl::opt<std::string>
  276 static cl::opt<std::string> RemarksFormat(
  291 cl::opt<std::string> ProfileFile("profile-file",
  305 cl::opt<std::string> CSProfileGenFile(
  466   std::string Error;
  633   std::string CPUStr, FeaturesStr;
tools/polly/include/polly/CodeGen/RuntimeDebugBuilder.h
  138   static void createPrintF(PollyIRBuilder &Builder, std::string Format,
tools/polly/include/polly/ScopDetection.h
  552   std::string regionIsInvalidBecause(const Region *R) const;
tools/polly/include/polly/ScopDetectionDiagnostic.h
  126   virtual std::string getRemarkName() const = 0;
  136   virtual std::string getMessage() const = 0;
  146   virtual std::string getEndUserMessage() const { return "Unspecified error."; }
  212   std::string getRemarkName() const override;
  214   std::string getMessage() const override;
  236   std::string getRemarkName() const override;
  238   std::string getMessage() const override;
  239   std::string getEndUserMessage() const override;
  262   std::string getRemarkName() const override;
  264   std::string getMessage() const override;
  265   std::string getEndUserMessage() const override;
  311   std::string getRemarkName() const override;
  313   std::string getMessage() const override;
  336   std::string getRemarkName() const override;
  338   std::string getMessage() const override;
  359   std::string getRemarkName() const override;
  361   std::string getMessage() const override;
  393   std::string getRemarkName() const override;
  395   std::string getMessage() const override;
  413   std::string getRemarkName() const override;
  415   std::string getMessage() const override;
  433   std::string getRemarkName() const override;
  435   std::string getMessage() const override;
  457   std::string getRemarkName() const override;
  459   std::string getMessage() const override;
  460   std::string getEndUserMessage() const override;
  488   std::string getRemarkName() const override;
  490   std::string getMessage() const override;
  491   std::string getEndUserMessage() const override;
  513   std::string getRemarkName() const override;
  515   std::string getMessage() const override;
  516   std::string getEndUserMessage() const override;
  544   std::string getRemarkName() const override;
  546   std::string getMessage() const override;
  548   std::string getEndUserMessage() const override;
  572   std::string getRemarkName() const override;
  574   std::string getMessage() const override;
  576   std::string getEndUserMessage() const override;
  600   std::string getRemarkName() const override;
  602   std::string getMessage() const override;
  604   std::string getEndUserMessage() const override;
  628   std::string getRemarkName() const override;
  630   std::string getMessage() const override;
  632   std::string getEndUserMessage() const override;
  652   std::string getRemarkName() const override;
  654   std::string getMessage() const override;
  656   std::string getEndUserMessage() const override;
  671   std::string formatInvalidAlias(std::string Prefix = "",
  671   std::string formatInvalidAlias(std::string Prefix = "",
  672                                  std::string Suffix = "") const;
  691   std::string getRemarkName() const override;
  693   std::string getMessage() const override;
  695   std::string getEndUserMessage() const override;
  712   std::string getRemarkName() const override;
  713   std::string getMessage() const override;
  733   std::string getRemarkName() const override;
  735   std::string getMessage() const override;
  755   std::string getRemarkName() const override;
  757   std::string getMessage() const override;
  777   std::string getRemarkName() const override;
  779   std::string getMessage() const override;
  799   std::string getRemarkName() const override;
  801   std::string getMessage() const override;
  802   std::string getEndUserMessage() const override;
  822   std::string getRemarkName() const override;
  824   std::string getMessage() const override;
  825   std::string getEndUserMessage() const override;
  846   std::string getRemarkName() const override;
  848   std::string getMessage() const override;
  850   std::string getEndUserMessage() const override;
tools/polly/include/polly/ScopInfo.h
  319   std::string getName() const;
  827   std::string getOriginalAccessRelationStr() const;
  830   std::string getNewAccessRelationStr() const;
  833   std::string getAccessRelationStr() const;
  868   const std::string getReductionOperatorStr() const;
  871   static const std::string getReductionOperatorStr(ReductionType RT);
 1273   std::string BaseName;
 1304   std::string getDomainStr() const;
 1316   std::string getScheduleStr() const;
 1737   Optional<std::string> name;
 1743   static std::string CurrentFunc;
 1943   static int getNextID(std::string ParentFunc);
 2262   std::pair<std::string, std::string> getEntryExitStr() const;
 2262   std::pair<std::string, std::string> getEntryExitStr() const;
 2265   std::string getNameStr() const;
 2400   std::string getContextStr() const;
 2403   std::string getAssumedContextStr() const;
 2406   std::string getInvalidContextStr() const;
 2497                                      const std::string &BaseName,
 2683   ScopArrayInfo *getArrayInfoByName(const std::string BaseName);
tools/polly/include/polly/Support/GICHelper.h
  153 std::string stringFromIslObj(__isl_keep isl_map *map);
  154 std::string stringFromIslObj(__isl_keep isl_union_map *umap);
  155 std::string stringFromIslObj(__isl_keep isl_set *set);
  156 std::string stringFromIslObj(__isl_keep isl_union_set *uset);
  157 std::string stringFromIslObj(__isl_keep isl_schedule *schedule);
  158 std::string stringFromIslObj(__isl_keep isl_multi_aff *maff);
  159 std::string stringFromIslObj(__isl_keep isl_pw_multi_aff *pma);
  160 std::string stringFromIslObj(__isl_keep isl_multi_pw_aff *mpa);
  161 std::string stringFromIslObj(__isl_keep isl_union_pw_multi_aff *upma);
  162 std::string stringFromIslObj(__isl_keep isl_aff *aff);
  163 std::string stringFromIslObj(__isl_keep isl_pw_aff *pwaff);
  164 std::string stringFromIslObj(__isl_keep isl_space *space);
  235 std::string getIslCompatibleName(const std::string &Prefix,
  235 std::string getIslCompatibleName(const std::string &Prefix,
  237                                  const std::string &Suffix,
  254 std::string getIslCompatibleName(const std::string &Prefix,
  254 std::string getIslCompatibleName(const std::string &Prefix,
  255                                  const std::string &Middle, long Number,
  256                                  const std::string &Suffix,
  259 std::string getIslCompatibleName(const std::string &Prefix,
  259 std::string getIslCompatibleName(const std::string &Prefix,
  260                                  const std::string &Middle,
  261                                  const std::string &Suffix);
tools/polly/include/polly/Support/ScopLocation.h
   31                       unsigned &LineEnd, std::string &FileName);
tools/polly/lib/Analysis/ScopBuilder.cpp
  120 static cl::opt<std::string> UserContextStr(
 1937 static std::string makeStmtName(BasicBlock *BB, long BBIdx, int Count,
 1939   std::string Suffix;
 1957 static std::string makeStmtName(Region *R, long RIdx) {
 1973       std::string Name = makeStmtName(BB, BBIdx, Count, Count == 0);
 1980   std::string Name = makeStmtName(BB, BBIdx, Count, Count == 0);
 2162     std::string Name = makeStmtName(BB, BBIdx, Count, IsMain);
 2173   std::string EpilogueName = makeStmtName(BB, BBIdx, Count, Count == 0, true);
 2186     std::string Name = makeStmtName(&SR, RIdx);
 2822     std::string SpaceStr = Space.to_str();
 2831     std::string NameContext =
 2833     std::string NameUserContext = UserContext.get_dim_name(isl::dim::param, i);
 2836       std::string SpaceStr = Space.to_str();
 3759   std::string Msg = "SCoP begins here.";
tools/polly/lib/Analysis/ScopDetection.cpp
  106 static cl::list<std::string> OnlyFunctions(
  114 static cl::list<std::string> IgnoredFunctions(
  130 static cl::opt<std::string> OnlyRegion(
  275   std::string FileName;
  279   DiagnosticScopFound(Function &F, std::string FileName, unsigned EntryLine,
  313                                     const cl::list<std::string> &RegexList) {
  317     std::string Err;
  418 std::string ScopDetection::regionIsInvalidBecause(const Region *R) const {
 1692     std::string FileName;
tools/polly/lib/Analysis/ScopDetectionDiagnostic.cpp
   87 template <typename T> std::string operator+(Twine LHS, const T &RHS) {
   88   std::string Buf;
  200 std::string ReportInvalidTerminator::getRemarkName() const {
  206 std::string ReportInvalidTerminator::getMessage() const {
  221 std::string ReportUnreachableInExit::getRemarkName() const {
  227 std::string ReportUnreachableInExit::getMessage() const {
  228   std::string BBName = BB->getName();
  234 std::string ReportUnreachableInExit::getEndUserMessage() const {
  245 std::string ReportIrreducibleRegion::getRemarkName() const {
  253 std::string ReportIrreducibleRegion::getMessage() const {
  259 std::string ReportIrreducibleRegion::getEndUserMessage() const {
  281 std::string ReportUndefCond::getRemarkName() const { return "UndefCond"; }
  285 std::string ReportUndefCond::getMessage() const {
  296 std::string ReportInvalidCond::getRemarkName() const { return "InvalidCond"; }
  300 std::string ReportInvalidCond::getMessage() const {
  312 std::string ReportUndefOperand::getRemarkName() const { return "UndefOperand"; }
  316 std::string ReportUndefOperand::getMessage() const {
  327 std::string ReportNonAffBranch::getRemarkName() const { return "NonAffBranch"; }
  331 std::string ReportNonAffBranch::getMessage() const {
  343 std::string ReportNoBasePtr::getRemarkName() const { return "NoBasePtr"; }
  347 std::string ReportNoBasePtr::getMessage() const { return "No base pointer"; }
  356 std::string ReportUndefBasePtr::getRemarkName() const { return "UndefBasePtr"; }
  362 std::string ReportUndefBasePtr::getMessage() const {
  373 std::string ReportVariantBasePtr::getRemarkName() const {
  381 std::string ReportVariantBasePtr::getMessage() const {
  385 std::string ReportVariantBasePtr::getEndUserMessage() const {
  396 std::string ReportDifferentArrayElementSize::getRemarkName() const {
  404 std::string ReportDifferentArrayElementSize::getMessage() const {
  412 std::string ReportDifferentArrayElementSize::getEndUserMessage() const {
  414   std::string Name = BaseName.empty() ? "UNKNOWN" : BaseName;
  423 std::string ReportNonAffineAccess::getRemarkName() const {
  431 std::string ReportNonAffineAccess::getMessage() const {
  439 std::string ReportNonAffineAccess::getEndUserMessage() const {
  441   std::string Name = BaseName.empty() ? "UNKNOWN" : BaseName;
  452 std::string ReportLoopBound::getRemarkName() const { return "LoopBound"; }
  456 std::string ReportLoopBound::getMessage() const {
  467 std::string ReportLoopBound::getEndUserMessage() const {
  474 std::string ReportLoopHasNoExit::getRemarkName() const {
  480 std::string ReportLoopHasNoExit::getMessage() const {
  490 std::string ReportLoopHasNoExit::getEndUserMessage() const {
  497 std::string ReportLoopHasMultipleExits::getRemarkName() const {
  505 std::string ReportLoopHasMultipleExits::getMessage() const {
  515 std::string ReportLoopHasMultipleExits::getEndUserMessage() const {
  522 std::string ReportLoopOnlySomeLatches::getRemarkName() const {
  530 std::string ReportLoopOnlySomeLatches::getMessage() const {
  541 std::string ReportLoopOnlySomeLatches::getEndUserMessage() const {
  552 std::string ReportFuncCall::getRemarkName() const { return "FuncCall"; }
  556 std::string ReportFuncCall::getMessage() const {
  564 std::string ReportFuncCall::getEndUserMessage() const {
  579 std::string ReportNonSimpleMemoryAccess::getRemarkName() const {
  587 std::string ReportNonSimpleMemoryAccess::getMessage() const {
  595 std::string ReportNonSimpleMemoryAccess::getEndUserMessage() const {
  613 std::string ReportAlias::formatInvalidAlias(std::string Prefix,
  613 std::string ReportAlias::formatInvalidAlias(std::string Prefix,
  614                                             std::string Suffix) const {
  615   std::string Message;
  644 std::string ReportAlias::getRemarkName() const { return "Alias"; }
  648 std::string ReportAlias::getMessage() const {
  652 std::string ReportAlias::getEndUserMessage() const {
  666 std::string ReportOther::getRemarkName() const { return "UnknownRejectReason"; }
  668 std::string ReportOther::getMessage() const { return "Unknown reject reason"; }
  682 std::string ReportIntToPtr::getRemarkName() const { return "IntToPtr"; }
  688 std::string ReportIntToPtr::getMessage() const {
  706 std::string ReportAlloca::getRemarkName() const { return "Alloca"; }
  710 std::string ReportAlloca::getMessage() const {
  728 std::string ReportUnknownInst::getRemarkName() const { return "UnknownInst"; }
  734 std::string ReportUnknownInst::getMessage() const {
  752 std::string ReportEntry::getRemarkName() const { return "Entry"; }
  756 std::string ReportEntry::getMessage() const {
  760 std::string ReportEntry::getEndUserMessage() const {
  778 std::string ReportUnprofitable::getRemarkName() const { return "Unprofitable"; }
  782 std::string ReportUnprofitable::getMessage() const {
  786 std::string ReportUnprofitable::getEndUserMessage() const {
tools/polly/lib/Analysis/ScopGraphPrinter.cpp
   26 static cl::opt<std::string>
   66   std::string getNodeLabel(RegionNode *Node, RegionNode *Graph) {
   87   static std::string getGraphName(ScopDetectionWrapperPass *SD) {
   91   std::string getEdgeAttributes(RegionNode *srcNode,
  119   std::string getNodeLabel(RegionNode *Node, ScopDetectionWrapperPass *P) {
  125   static std::string escapeString(std::string String) {
  125   static std::string escapeString(std::string String) {
  126     std::string Escaped;
  144     std::string FileName;
  148     std::string Location;
  154     std::string ErrorMessage = SD->regionIsInvalidBecause(R);
tools/polly/lib/Analysis/ScopInfo.cpp
  228   std::string BasePtrName =
  310   std::string param_name = getName();
  354 std::string ScopArrayInfo::getName() const { return Id.get_name(); }
  550 const std::string
  614 std::string MemoryAccess::getOriginalAccessRelationStr() const {
  626 std::string MemoryAccess::getNewAccessRelationStr() const {
  630 std::string MemoryAccess::getAccessRelationStr() const {
  897   static const std::string TypeStrings[] = {"", "_Read", "_Write", "_MayWrite"};
  898   const std::string Access = TypeStrings[AccType] + utostr(Stmt->size());
  900   std::string IdName = Stmt->getBaseName() + Access;
  915   static const std::string TypeStrings[] = {"", "_Read", "_Write", "_MayWrite"};
  916   const std::string Access = TypeStrings[AccType] + utostr(Stmt->size());
  918   std::string IdName = Stmt->getBaseName() + Access;
  930 const std::string MemoryAccess::getReductionOperatorStr() const {
 1223 std::string ScopStmt::getDomainStr() const { return Domain.to_str(); }
 1225 std::string ScopStmt::getScheduleStr() const {
 1463 StringMap<std::string> KnownNames = {
 1474 static std::string getCallParamName(CallInst *Call) {
 1475   std::string Result;
 1477   std::string Name = Call->getCalledFunction()->getName();
 1495   std::string ParameterName = "p_" + std::to_string(getNumParams() - 1);
 1688 std::string Scop::CurrentFunc;
 1690 int Scop::getNextID(std::string ParentFunc) {
 1842                                          const std::string &BaseName,
 1870 std::string Scop::getContextStr() const { return getContext().to_str(); }
 1872 std::string Scop::getAssumedContextStr() const {
 1877 std::string Scop::getInvalidContextStr() const {
 1881 std::string Scop::getNameStr() const {
 1882   std::string ExitName, EntryName;
 1887 std::pair<std::string, std::string> Scop::getEntryExitStr() const {
 1887 std::pair<std::string, std::string> Scop::getEntryExitStr() const {
 1888   std::string ExitName, EntryName;
 1999 static std::string toString(AssumptionKind Kind) {
 2094   std::string Msg = toString(Kind) + Suffix + Set.to_str();
 2476 ScopArrayInfo *Scop::getArrayInfoByName(const std::string BaseName) {
tools/polly/lib/CodeGen/BlockGenerators.cpp
  334   std::string Subject = MA.getId().get_name();
  506   std::string NameExt;
  653 static std::string getInstName(Value *Val) {
  654   std::string Result;
  769     std::string Subject = MA->getId().get_name();
  959     std::string Name = PHI->getName();
 1717     std::string Subject = MA->getId().get_name();
tools/polly/lib/CodeGen/IRBuilder.cpp
   75   std::string AliasScopeStr = "polly.alias.scope.";
tools/polly/lib/CodeGen/IslAst.cpp
  133                               const std::string &str,
  143 static const std::string getBrokenReductionsStr(__isl_keep isl_ast_node *Node) {
  145   std::string str;
  152   std::map<MemoryAccess::ReductionType, std::string> Clauses;
  175   const std::string BrokenReductionsStr = getBrokenReductionsStr(Node);
  176   const std::string KnownParallelStr = "#pragma known-parallel";
  177   const std::string DepDisPragmaStr = "#pragma minimal dependence distance: ";
  178   const std::string SimdPragmaStr = "#pragma simd";
  179   const std::string OmpPragmaStr = "#pragma omp parallel for";
tools/polly/lib/CodeGen/IslNodeBuilder.cpp
 1135                                              std::string ArrayName) {
tools/polly/lib/CodeGen/LoopGenerators.cpp
  207   std::string FunctionName = SubFn->getName();
tools/polly/lib/CodeGen/LoopGeneratorsGOMP.cpp
   24   const std::string Name = "GOMP_parallel_loop_runtime_start";
  174   const std::string Name = "GOMP_loop_runtime_next";
  194   const std::string Name = "GOMP_parallel_end";
  210   const std::string Name = "GOMP_loop_end_nowait";
tools/polly/lib/CodeGen/LoopGeneratorsKMP.cpp
   24   const std::string Name = "__kmpc_fork_call";
  273   const std::string Name = "__kmpc_global_thread_num";
  292   const std::string Name = "__kmpc_push_num_threads";
  317   const std::string Name =
  357   const std::string Name = "__kmpc_for_static_fini";
  378   const std::string Name =
  418   const std::string Name =
  447   const std::string LocName = ".loc.dummy";
  451     const std::string StructName = "struct.ident_t";
tools/polly/lib/CodeGen/PerfMonitor.cpp
   84 static std::string GetScopUniqueVarname(const Scop &S) {
   86   std::string EntryString, ExitString;
   95   const std::string varname = GetScopUniqueVarname(S);
  185   std::string EntryName, ExitName;
tools/polly/lib/CodeGen/RuntimeDebugBuilder.cpp
  117 static std::tuple<std::string, std::vector<Value *>>
  119   std::string FormatString;
  163   std::string FormatString;
  175   std::string str;
  259                                        std::string Format,
tools/polly/lib/Exchange/JSONExporter.cpp
   41 static cl::opt<std::string>
   47 static cl::opt<std::string>
   69   std::vector<std::string> NewAccessStrings;
   82 static std::string getFileName(Scop &S, StringRef Suffix = "") {
   83   std::string FunctionName = S.getFunction().getName();
   84   std::string FileName = FunctionName + "___" + S.getNameStr() + ".jscop";
   99   std::string Buffer;
  131   std::string FileName;
  134   std::string Location;
  175   std::string FileName = ImportDir + "/" + getFileName(S);
  183   std::string FunctionName = S.getFunction().getName();
  347                std::vector<std::string> *NewAccessStrings = nullptr) {
  547   std::string Buffer;
  598 static Type *parseTextType(const std::string &TypeTextRepresentation,
  600   std::map<std::string, Type *> MapStrToType = {
  695                        std::vector<std::string> *NewAccessStrings = nullptr) {
  696   std::string FileName = ImportDir + "/" + getFileName(S, ImportPostfix);
  698   std::string FunctionName = S.getFunction().getName();
  769   for (std::vector<std::string>::const_iterator I = NewAccessStrings.begin(),
tools/polly/lib/External/isl/include/isl/isl-noexceptions.h
  239   inline explicit aff(ctx ctx, const std::string &str);
  249   inline std::string to_str() const;
  268   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
  276   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
  432   inline std::string to_str() const;
  459   inline std::string to_C_str() const;
  530   inline std::string to_str() const;
  549   inline std::string to_C_str() const;
  612   inline explicit basic_map(ctx ctx, const std::string &str);
  622   inline std::string to_str() const;
  650   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
  668   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
  672   inline std::string get_tuple_name(isl::dim type) const;
  721   inline basic_map set_tuple_name(isl::dim type, const std::string &s) const;
  790   inline explicit basic_set(ctx ctx, const std::string &str);
  801   inline std::string to_str() const;
  829   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
  833   inline std::string get_tuple_name() const;
  873   inline basic_set set_tuple_name(const std::string &s) const;
  959   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
 1074   inline std::string to_str() const;
 1077   static inline id alloc(ctx ctx, const std::string &name, void * user);
 1079   inline std::string get_name() const;
 1193   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 1198   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
 1231   inline explicit map(ctx ctx, const std::string &str);
 1242   inline std::string to_str() const;
 1280   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 1303   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
 1308   inline std::string get_tuple_name(isl::dim type) const;
 1399   inline map set_tuple_name(isl::dim type, const std::string &s) const;
 1544   inline explicit multi_aff(ctx ctx, const std::string &str);
 1554   inline std::string to_str() const;
 1565   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 1577   inline std::string get_tuple_name(isl::dim type) const;
 1614   inline multi_aff set_tuple_name(isl::dim type, const std::string &s) const;
 1639   inline explicit multi_pw_aff(ctx ctx, const std::string &str);
 1649   inline std::string to_str() const;
 1662   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 1673   inline std::string get_tuple_name(isl::dim type) const;
 1710   inline multi_pw_aff set_tuple_name(isl::dim type, const std::string &s) const;
 1735   inline explicit multi_union_pw_aff(ctx ctx, const std::string &str);
 1745   inline std::string to_str() const;
 1760   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 1772   inline std::string get_tuple_name(isl::dim type) const;
 1803   inline multi_union_pw_aff set_tuple_name(isl::dim type, const std::string &s) const;
 1836   inline std::string to_str() const;
 1847   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 1856   inline std::string get_tuple_name(isl::dim type) const;
 1873   static inline multi_val read_from_str(ctx ctx, const std::string &str);
 1882   inline multi_val set_tuple_name(isl::dim type, const std::string &s) const;
 1915   inline std::string to_str() const;
 1944   inline explicit pw_aff(ctx ctx, const std::string &str);
 1954   inline std::string to_str() const;
 1973   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 1979   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
 2106   inline explicit pw_multi_aff(ctx ctx, const std::string &str);
 2116   inline std::string to_str() const;
 2128   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 2137   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
 2142   inline std::string get_tuple_name(isl::dim type) const;
 2239   inline explicit pw_qpolynomial(ctx ctx, const std::string &str);
 2249   inline std::string to_str() const;
 2261   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 2456   inline explicit schedule(ctx ctx, const std::string &str);
 2466   inline std::string to_str() const;
 2502   inline explicit schedule_constraints(ctx ctx, const std::string &str);
 2512   inline std::string to_str() const;
 2557   inline std::string to_str() const;
 2638   inline explicit set(ctx ctx, const std::string &str);
 2651   inline std::string to_str() const;
 2682   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 2698   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
 2702   inline std::string get_tuple_name() const;
 2771   inline set set_tuple_name(const std::string &s) const;
 2859   inline std::string to_str() const;
 2881   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 2887   inline std::string get_dim_name(isl::dim type, unsigned int pos) const;
 2889   inline std::string get_tuple_name(isl::dim type) const;
 2925   inline space set_tuple_name(isl::dim type, const std::string &s) const;
 2991   inline std::string to_str() const;
 3026   inline std::string to_str() const;
 3055   inline explicit union_map(ctx ctx, const std::string &str);
 3065   inline std::string to_str() const;
 3091   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 3230   inline explicit union_pw_aff(ctx ctx, const std::string &str);
 3240   inline std::string to_str() const;
 3253   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 3344   inline explicit union_pw_multi_aff(ctx ctx, const std::string &str);
 3356   inline std::string to_str() const;
 3368   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 3453   inline explicit union_pw_qpolynomial(ctx ctx, const std::string &str);
 3463   inline std::string to_str() const;
 3474   inline int find_dim_by_name(isl::dim type, const std::string &name) const;
 3516   inline explicit union_set(ctx ctx, const std::string &str);
 3526   inline std::string to_str() const;
 3648   inline explicit val(ctx ctx, const std::string &str);
 3659   inline std::string to_str() const;
 3847 aff::aff(ctx ctx, const std::string &str)
 3888 std::string aff::to_str() const {
 3892   std::string S(Tmp);
 3999 int aff::find_dim_by_name(isl::dim type, const std::string &name) const
 4047 std::string aff::get_dim_name(isl::dim type, unsigned int pos) const
 4050   std::string tmp(res);
 4675 std::string ast_expr::to_str() const {
 4679   std::string S(Tmp);
 4834 std::string ast_expr::to_C_str() const
 4837   std::string tmp(res);
 5060 std::string ast_node::to_str() const {
 5064   std::string S(Tmp);
 5171 std::string ast_node::to_C_str() const
 5174   std::string tmp(res);
 5367 basic_map::basic_map(ctx ctx, const std::string &str)
 5408 std::string basic_map::to_str() const {
 5412   std::string S(Tmp);
 5573 int basic_map::find_dim_by_name(isl::dim type, const std::string &name) const
 5689 std::string basic_map::get_dim_name(isl::dim type, unsigned int pos) const
 5692   std::string tmp(res);
 5714 std::string basic_map::get_tuple_name(isl::dim type) const
 5717   std::string tmp(res);
 6009 basic_map basic_map::set_tuple_name(isl::dim type, const std::string &s) const
 6239 basic_set::basic_set(ctx ctx, const std::string &str)
 6285 std::string basic_set::to_str() const {
 6289   std::string S(Tmp);
 6466 std::string basic_set::get_dim_name(isl::dim type, unsigned int pos) const
 6469   std::string tmp(res);
 6491 std::string basic_set::get_tuple_name() const
 6494   std::string tmp(res);
 6732 basic_set basic_set::set_tuple_name(const std::string &s) const
 7040 std::string constraint::get_dim_name(isl::dim type, unsigned int pos) const
 7043   std::string tmp(res);
 7423 std::string id::to_str() const {
 7427   std::string S(Tmp);
 7438 id id::alloc(ctx ctx, const std::string &name, void * user)
 7450 std::string id::get_name() const
 7453   std::string tmp(res);
 7826 int local_space::find_dim_by_name(isl::dim type, const std::string &name) const
 7856 std::string local_space::get_dim_name(isl::dim type, unsigned int pos) const
 7859   std::string tmp(res);
 7971 map::map(ctx ctx, const std::string &str)
 8017 std::string map::to_str() const {
 8021   std::string S(Tmp);
 8242 int map::find_dim_by_name(isl::dim type, const std::string &name) const
 8388 std::string map::get_dim_name(isl::dim type, unsigned int pos) const
 8391   std::string tmp(res);
 8419 std::string map::get_tuple_name(isl::dim type) const
 8422   std::string tmp(res);
 8966 map map::set_tuple_name(isl::dim type, const std::string &s) const
 9543 multi_aff::multi_aff(ctx ctx, const std::string &str)
 9584 std::string multi_aff::to_str() const {
 9588   std::string S(Tmp);
 9647 int multi_aff::find_dim_by_name(isl::dim type, const std::string &name) const
 9719 std::string multi_aff::get_tuple_name(isl::dim type) const
 9722   std::string tmp(res);
 9942 multi_aff multi_aff::set_tuple_name(isl::dim type, const std::string &s) const
10005 multi_pw_aff::multi_pw_aff(ctx ctx, const std::string &str)
10046 std::string multi_pw_aff::to_str() const {
10050   std::string S(Tmp);
10121 int multi_pw_aff::find_dim_by_name(isl::dim type, const std::string &name) const
10187 std::string multi_pw_aff::get_tuple_name(isl::dim type) const
10190   std::string tmp(res);
10410 multi_pw_aff multi_pw_aff::set_tuple_name(isl::dim type, const std::string &s) const
10473 multi_union_pw_aff::multi_union_pw_aff(ctx ctx, const std::string &str)
10514 std::string multi_union_pw_aff::to_str() const {
10518   std::string S(Tmp);
10601 int multi_union_pw_aff::find_dim_by_name(isl::dim type, const std::string &name) const
10673 std::string multi_union_pw_aff::get_tuple_name(isl::dim type) const
10676   std::string tmp(res);
10860 multi_union_pw_aff multi_union_pw_aff::set_tuple_name(isl::dim type, const std::string &s) const
10956 std::string multi_val::to_str() const {
10960   std::string S(Tmp);
11019 int multi_val::find_dim_by_name(isl::dim type, const std::string &name) const
11073 std::string multi_val::get_tuple_name(isl::dim type) const
11076   std::string tmp(res);
11176 multi_val multi_val::read_from_str(ctx ctx, const std::string &str)
11230 multi_val multi_val::set_tuple_name(isl::dim type, const std::string &s) const
11325 std::string point::to_str() const {
11329   std::string S(Tmp);
11409 pw_aff::pw_aff(ctx ctx, const std::string &str)
11450 std::string pw_aff::to_str() const {
11454   std::string S(Tmp);
11561 int pw_aff::find_dim_by_name(isl::dim type, const std::string &name) const
11605 std::string pw_aff::get_dim_name(isl::dim type, unsigned int pos) const
11608   std::string tmp(res);
12182 pw_multi_aff::pw_multi_aff(ctx ctx, const std::string &str)
12223 std::string pw_multi_aff::to_str() const {
12227   std::string S(Tmp);
12292 int pw_multi_aff::find_dim_by_name(isl::dim type, const std::string &name) const
12354 std::string pw_multi_aff::get_dim_name(isl::dim type, unsigned int pos) const
12357   std::string tmp(res);
12385 std::string pw_multi_aff::get_tuple_name(isl::dim type) const
12388   std::string tmp(res);
12784 pw_qpolynomial::pw_qpolynomial(ctx ctx, const std::string &str)
12825 std::string pw_qpolynomial::to_str() const {
12829   std::string S(Tmp);
12894 int pw_qpolynomial::find_dim_by_name(isl::dim type, const std::string &name) const
13689 schedule::schedule(ctx ctx, const std::string &str)
13730 std::string schedule::to_str() const {
13734   std::string S(Tmp);
13859 schedule_constraints::schedule_constraints(ctx ctx, const std::string &str)
13900 std::string schedule_constraints::to_str() const {
13904   std::string S(Tmp);
14065 std::string schedule_node::to_str() const {
14069   std::string S(Tmp);
14472 set::set(ctx ctx, const std::string &str)
14528 std::string set::to_str() const {
14532   std::string S(Tmp);
14711 int set::find_dim_by_name(isl::dim type, const std::string &name) const
14823 std::string set::get_dim_name(isl::dim type, unsigned int pos) const
14826   std::string tmp(res);
14848 std::string set::get_tuple_name() const
14851   std::string tmp(res);
15263 set set::set_tuple_name(const std::string &s) const
15587 std::string space::to_str() const {
15591   std::string S(Tmp);
15716 int space::find_dim_by_name(isl::dim type, const std::string &name) const
15752 std::string space::get_dim_name(isl::dim type, unsigned int pos) const
15755   std::string tmp(res);
15765 std::string space::get_tuple_name(isl::dim type) const
15768   std::string tmp(res);
15982 space space::set_tuple_name(isl::dim type, const std::string &s) const
16169 std::string union_access_info::to_str() const {
16173   std::string S(Tmp);
16276 std::string union_flow::to_str() const {
16280   std::string S(Tmp);
16362 union_map::union_map(ctx ctx, const std::string &str)
16403 std::string union_map::to_str() const {
16407   std::string S(Tmp);
16556 int union_map::find_dim_by_name(isl::dim type, const std::string &name) const
17212 union_pw_aff::union_pw_aff(ctx ctx, const std::string &str)
17253 std::string union_pw_aff::to_str() const {
17257   std::string S(Tmp);
17328 int union_pw_aff::find_dim_by_name(isl::dim type, const std::string &name) const
17694 union_pw_multi_aff::union_pw_multi_aff(ctx ctx, const std::string &str)
17745 std::string union_pw_multi_aff::to_str() const {
17749   std::string S(Tmp);
17814 int union_pw_multi_aff::find_dim_by_name(isl::dim type, const std::string &name) const
18148 union_pw_qpolynomial::union_pw_qpolynomial(ctx ctx, const std::string &str)
18189 std::string union_pw_qpolynomial::to_str() const {
18193   std::string S(Tmp);
18254 int union_pw_qpolynomial::find_dim_by_name(isl::dim type, const std::string &name) const
18427 union_set::union_set(ctx ctx, const std::string &str)
18468 std::string union_set::to_str() const {
18472   std::string S(Tmp);
19029 val::val(ctx ctx, const std::string &str)
19075 std::string val::to_str() const {
19079   std::string S(Tmp);
tools/polly/lib/Support/DumpModulePass.cpp
   33   std::string Filename;
   54     std::string Dumpfile;
tools/polly/lib/Support/GICHelper.cpp
   86 static inline std::string stringFromIslObjInternal(__isl_keep ISLTy *isl_obj,
   95   std::string string;
  105 std::string polly::stringFromIslObj(__isl_keep isl_map *map) {
  109 std::string polly::stringFromIslObj(__isl_keep isl_set *set) {
  113 std::string polly::stringFromIslObj(__isl_keep isl_union_map *umap) {
  118 std::string polly::stringFromIslObj(__isl_keep isl_union_set *uset) {
  123 std::string polly::stringFromIslObj(__isl_keep isl_schedule *schedule) {
  128 std::string polly::stringFromIslObj(__isl_keep isl_multi_aff *maff) {
  133 std::string polly::stringFromIslObj(__isl_keep isl_pw_multi_aff *pma) {
  138 std::string polly::stringFromIslObj(__isl_keep isl_multi_pw_aff *mpa) {
  143 std::string polly::stringFromIslObj(__isl_keep isl_union_pw_multi_aff *upma) {
  148 std::string polly::stringFromIslObj(__isl_keep isl_aff *aff) {
  152 std::string polly::stringFromIslObj(__isl_keep isl_pw_aff *pwaff) {
  157 std::string polly::stringFromIslObj(__isl_keep isl_space *space) {
  162 static void replace(std::string &str, const std::string &find,
  162 static void replace(std::string &str, const std::string &find,
  163                     const std::string &replace) {
  165   while ((pos = str.find(find, pos)) != std::string::npos) {
  171 static void makeIslCompatible(std::string &str) {
  179 std::string polly::getIslCompatibleName(const std::string &Prefix,
  179 std::string polly::getIslCompatibleName(const std::string &Prefix,
  180                                         const std::string &Middle,
  181                                         const std::string &Suffix) {
  182   std::string S = Prefix + Middle + Suffix;
  187 std::string polly::getIslCompatibleName(const std::string &Prefix,
  187 std::string polly::getIslCompatibleName(const std::string &Prefix,
  188                                         const std::string &Name, long Number,
  189                                         const std::string &Suffix,
  191   std::string S = Prefix;
  204 std::string polly::getIslCompatibleName(const std::string &Prefix,
  204 std::string polly::getIslCompatibleName(const std::string &Prefix,
  206                                         const std::string &Suffix,
  208   std::string ValStr;
tools/polly/lib/Support/ISLTools.cpp
  649   std::string AName;
  653   std::string BName;
  734     std::string Str;
tools/polly/lib/Support/RegisterPasses.cpp
  206 static cl::list<std::string> DumpBeforeFile(
  217 static cl::list<std::string> DumpAfterFile(
tools/polly/lib/Support/ScopHelper.cpp
   34 static cl::list<std::string> DebugFunctions(
tools/polly/lib/Support/ScopLocation.cpp
   22                       std::string &FileName) {
tools/polly/lib/Transform/MaximalStaticExpansion.cpp
  369   std::string CurrentOutIdString =
tools/polly/lib/Transform/RewriteByReferenceParameters.cpp
   66     std::string InstName = Alloca->getName();
tools/polly/lib/Transform/ScheduleOptimizer.cpp
   84 static cl::opt<std::string>
   90 static cl::opt<std::string>
  106 static cl::opt<std::string> FusionStrategy(
  110 static cl::opt<std::string>
  115 static cl::opt<std::string> OuterCoincidence(
  440   std::string IdentifierString(Identifier);
tools/polly/lib/Transform/Simplify.cpp
  235           std::string Name =
  402           std::string Name =
tools/sancov/sancov.cpp
   89 static cl::list<std::string>
  101 static cl::opt<std::string> ClStripPathPrefix(
  105 static cl::opt<std::string>
  141   read(const std::string &FileName);
  148   explicit CoveragePoint(const std::string &Id) : Id(Id) {}
  150   std::string Id;
  158   static std::unique_ptr<SymbolizedCoverage> read(const std::string &InputFile);
  160   std::set<std::string> CoveredIds;
  161   std::string BinaryHash;
  214                         const std::string &Message) {
  230 RawCoverage::read(const std::string &FileName) {
  302   std::map<std::string, std::vector<const CoveragePoint *>> PointsByFile;
  310     std::string FileName = P.first;
  311     std::map<std::string, std::vector<const CoveragePoint *>> PointsByFn;
  321         std::string FunctionName = P.first;
  322         std::set<std::string> WrittenIds;
  347       for (const std::string &P : C.CoveredIds) {
  356 static std::string parseScalarString(yaml::Node *N) {
  364 SymbolizedCoverage::read(const std::string &InputFile) {
  367   std::map<std::string, CoveragePoint> Points;
  419             failIf(ColonPos == std::string::npos, "expected ':': " + InputFile);
  453 std::string stripPathPrefix(std::string Path) {
  453 std::string stripPathPrefix(std::string Path) {
  457   if (Pos == std::string::npos)
  470 static std::string normalizeFilename(const std::string &FileName) {
  470 static std::string normalizeFilename(const std::string &FileName) {
  503     std::string Error;
  520 getCoveragePoints(const std::string &ObjectFile,
  527   std::set<std::string> CoveredFiles;
  709   std::string Error;
  792 visitObjectFiles(const std::string &FileName,
  809 findSanitizerCovFunctions(const std::string &FileName) {
  821 static std::set<uint64_t> findCoveragePointAddrs(const std::string &FileName) {
  829 static void printCovPoints(const std::string &ObjFile, raw_ostream &OS) {
  837 static ErrorOr<bool> isCoverageFile(const std::string &FileName) {
  859 static bool isSymbolizedCoverageFile(const std::string &FileName) {
  865 symbolize(const RawCoverage &Data, const std::string ObjectFile) {
  905   std::string FileName;
  906   std::string FunctionName;
 1004 static void readAndPrintRawCoverage(const std::vector<std::string> &FileNames,
 1024     std::string Prefix;
 1049 readSymbolizeAndMergeCmdArguments(std::vector<std::string> FileNames) {
 1054     std::map<std::string, std::string> ObjFiles;
 1054     std::map<std::string, std::string> ObjFiles;
 1055     std::string FirstObjFile;
 1056     std::set<std::string> CovFiles;
 1084     std::map<std::string, std::vector<std::string>> CoverageByObjFile;
 1084     std::map<std::string, std::vector<std::string>> CoverageByObjFile;
 1118       for (const std::string &CoverageFile : Pair.second) {
 1159     for (const std::string &ObjFile : ClInputFiles) {
tools/sanstats/sanstats.cpp
   25 static cl::opt<std::string> ClInputFile(cl::Positional, cl::Required,
   56   std::string Filename(FilenameBegin, Begin - FilenameBegin);
tools/verify-uselistorder/verify-uselistorder.cpp
   56 static cl::opt<std::string> InputFilename(cl::Positional,
   72   std::string Filename;
   74   bool init(const std::string &Ext);
  107 bool TempFile::init(const std::string &Ext) {
tools/yaml2obj/yaml2obj.cpp
   31 static cl::opt<std::string>
   38 static cl::opt<std::string> OutputFilename("o", cl::desc("Output filename"),
unittests/ADT/APFloatTest.cpp
   29 static std::string convertToString(double d, unsigned Prec, unsigned Pad,
  910     std::string roundtrip = convertToString(convertToDoubleFromString(second), 0, 3);
unittests/ADT/FoldingSet.cpp
   27   std::string str1= "a test string";
   31   std::string str2 = ">" + str1;
unittests/ADT/HashingTest.cpp
  105   std::string s = "Hello World!";
unittests/ADT/STLExtrasTest.cpp
  331   std::string swap_val;
unittests/ADT/SmallSetTest.cpp
  100   SmallSet<std::string, 2> s1;
  106   std::vector<std::string> V(s1.begin(), s1.end());
  129   SmallSet<std::string, 2> s1;
unittests/ADT/StringExtrasTest.cpp
   27   std::vector<std::string> Items;
   43   std::string Bar = "bar";
   67   std::string OddStr = "05BD0D3ECD";
   75   std::string EvenStr = "A5BD0D3ECD";
  102   std::string str;
  109   std::string str;
  116   std::string str;
unittests/ADT/StringMapTest.cpp
   28   static const std::string testKeyStr;
   76 const std::string StringMapTest::testKeyStr(testKey);
unittests/ADT/StringRefTest.cpp
   38     !std::is_assignable<StringRef&, std::string>::value,
   41     !std::is_assignable<StringRef&, std::string &&>::value,
   44     std::is_assignable<StringRef&, std::string &>::value,
  530   std::string Storage;
  539   std::string S = "hello world";
  907   std::vector<std::string> v2;
unittests/ADT/TripleTest.cpp
  573 static std::string Join(StringRef A, StringRef B, StringRef C) {
  574   std::string Str = A;
  582 static std::string Join(StringRef A, StringRef B, StringRef C, StringRef D) {
  583   std::string Str = A;
  652     std::string E = Join(C[0], C[1], C[2]);
  657     std::string F = Join(C[0], C[1], C[2], C[3]);
  667     std::string E = Join(C[0], C[1], C[2]);
  672     std::string F = Join(C[0], C[1], C[2], C[3]);
  683     std::string E = Join(C[0], C[1], C[2]);
  688     std::string F = Join(C[0], C[1], C[2], C[3]);
  697     std::string F = Join(C[0], C[1], C[2], C[3]);
unittests/ADT/TwineTest.cpp
   19 std::string repr(const Twine &Value) {
   20   std::string res;
unittests/Analysis/CFGTest.cpp
   36     std::string errMsg;
unittests/Analysis/LazyCallGraphTest.cpp
   29   std::string ErrMsg;
  264   std::vector<std::string> Nodes;
  468   std::vector<std::string> Nodes;
unittests/Analysis/ScalarEvolutionTest.cpp
  746   std::string DataLayout = M.getDataLayoutStr();
  821   std::string DataLayout = M.getDataLayoutStr();
  919   std::string DataLayout = M.getDataLayoutStr();
 1147   std::string DataLayout = M.getDataLayoutStr();
unittests/Analysis/TargetLibraryInfoTest.cpp
   35     std::string errMsg;
unittests/Analysis/ValueTrackingTest.cpp
   30     std::string errMsg;
  943   std::string Buff;
unittests/Analysis/VectorUtilsTest.cpp
   33     std::string errMsg;
unittests/BinaryFormat/MsgPackDocumentTest.cpp
   61   std::string Buffer;
   71   std::string Buffer;
   81   std::string Buffer;
   95   std::string Buffer;
  124   std::string Buffer;
  144   std::string Buffer;
unittests/BinaryFormat/MsgPackReaderTest.cpp
   17   std::string Buffer;
  374   std::string Result(1, 'a');
  386   std::string Result(31, 'a');
  407   std::string Result(1, 'a');
  418   std::string Result(UINT8_MAX, 'a');
  439   std::string Result(1, 'a');
  450   std::string Result(UINT16_MAX, 'a');
  471   std::string Result(1, 'a');
  482   std::string Result(static_cast<uint32_t>(UINT16_MAX) + 1, 'a');
  503   std::string Result(1, 'a');
  514   std::string Result(UINT8_MAX, 'a');
  535   std::string Result(1, 'a');
  546   std::string Result(UINT16_MAX, 'a');
  567   std::string Result(1, 'a');
  578   std::string Result(static_cast<uint32_t>(UINT16_MAX) + 1, 'a');
  773   std::string Result(1, 'a');
  785   std::string Result(2, 'a');
  797   std::string Result(4, 'a');
  809   std::string Result(8, 'a');
  821   std::string Result(16, 'a');
  845   std::string Result(UINT8_MAX, 'a');
  857   std::string Result(static_cast<uint16_t>(UINT8_MAX) + 1, 'a');
  869   std::string Result(UINT16_MAX, 'a');
  881   std::string Result(static_cast<uint32_t>(UINT16_MAX) + 1, 'a');
unittests/BinaryFormat/MsgPackWriterTest.cpp
   17   std::string Buffer;
   41     std::string Output = OStream.str();
  129     std::string Output = OStream.str();
  222   std::string s;
  228   std::string s = "foo";
  236   std::string s(31, 'a');
  243   std::string s(32, 'a');
  249   std::string s(33, 'a');
  255   std::string s(UINT8_MAX, 'a');
  261   std::string s(static_cast<uint64_t>(UINT8_MAX) + 1, 'a');
  267   std::string s(511, 'a');
  273   std::string s(UINT16_MAX, 'a');
  279   std::string s(static_cast<uint64_t>(UINT16_MAX) + 1, 'a');
  285   std::string s(131071, 'a');
  291   std::string s;
  297   std::string s(5, 'a');
  303   std::string s(UINT8_MAX, 'a');
  309   std::string s(static_cast<uint64_t>(UINT8_MAX) + 1, 'a');
  315   std::string s(511, 'a');
  321   std::string s(UINT16_MAX, 'a');
  327   std::string s(static_cast<uint64_t>(UINT16_MAX) + 1, 'a');
  333   std::string s(131071, 'a');
  435   std::string s(1, 'a');
  441   std::string s(2, 'a');
  447   std::string s(4, 'a');
  453   std::string s(8, 'a');
  459   std::string s(16, 'a');
  465   std::string s;
  471   std::string s(0x2a, 'a');
  477   std::string s(UINT8_MAX, 'a');
  483   std::string s(static_cast<uint16_t>(UINT8_MAX) + 1, 'a');
  489   std::string s(273, 'a');
  495   std::string s(UINT16_MAX, 'a');
  501   std::string s(static_cast<uint32_t>(UINT16_MAX) + 1, 'a');
  508   std::string s(32, 'a');
  515   std::string s;
unittests/Bitcode/BitReaderTest.cpp
   32   std::string ErrMsg;
unittests/Bitcode/DataLayoutUpgradeTest.cpp
   17   std::string DL1 =
   20   std::string DL2 = UpgradeDataLayoutString(
   22   std::string DL3 = UpgradeDataLayoutString("e-m:o-i64:64-i128:128-n32:64-S128",
   33   std::string DL1 = UpgradeDataLayoutString(
   38   std::string DL2 = UpgradeDataLayoutString("e-p:32:32", "i686-apple-darwin9");
   39   std::string DL3 = UpgradeDataLayoutString("e-m:e-i64:64-n32:64",
   41   std::string DL4 =
   52   std::string DL1 = UpgradeDataLayoutString("", "x86_64-unknown-linux-gnu");
   53   std::string DL2 = UpgradeDataLayoutString(
unittests/CodeGen/AArch64SelectionDAGTest.cpp
   35     std::string Error;
unittests/CodeGen/GlobalISel/GISelMITest.cpp
   14   std::string Repr;
   23   std::string Repr;
unittests/CodeGen/GlobalISel/GISelMITest.h
   59   std::string Error;
unittests/CodeGen/MachineInstrTest.cpp
  333   std::string str;
unittests/CodeGen/MachineOperandTest.cpp
   58   std::string str;
   79   std::string str;
  101   std::string str;
  118   std::string str;
  136   std::string str;
  167   std::string str;
  196   std::string str;
  212   std::string str;
  257   std::string str;
  286   std::string str;
  310   std::string str;
  332   std::string str;
  348   std::string str;
  365   std::string str;
  394   std::string str;
unittests/CodeGen/TargetOptionsTest.cpp
   33   std::string Error;
unittests/DebugInfo/CodeView/RandomAccessVisitorTest.cpp
  101       std::string Name;
unittests/DebugInfo/DWARF/DWARFDebugInfoTest.cpp
 1798       std::string S;
unittests/DebugInfo/DWARF/DwarfGenerator.cpp
  394   std::string ErrorStr;
  395   std::string TripleName;
unittests/DebugInfo/DWARF/DwarfUtils.cpp
   52   std::string Err;
unittests/DebugInfo/GSYM/GSYMTest.cpp
   30 void checkError(ArrayRef<std::string> ExpectedMsgs, Error Err) {
   44 void checkError(std::string ExpectedMsg, Error Err) {
  161                                         std::string Bytes,
  163                                         std::string ExpectedErrorMsg) {
  206                                       std::string ExpectedErrorMsg) {
  249   std::string Bytes(OutStrm.str());
  325   std::string Bytes(OutStrm.str());
  336                                       std::string Bytes,
  338                                       std::string ExpectedErrorMsg) {
  350                                       std::string ExpectedErrorMsg) {
  463   std::string EmptyErr("attempted to encode invalid InlineInfo object");
  478   std::string ChildNotContainedErr("child range not contained in parent");
  711   std::string Bytes(OutStrm.str());
  747   std::string Bytes(OutStrm.str());
  767   std::string Bytes(OutStrm.str());
  806   std::string Bytes(OutStrm.str());
  873                                      std::string Bytes,
  875                                      std::string ExpectedErrorMsg) {
  952                                   std::string ExpectedErrorMsg) {
  961 static void TestHeaderDecodeError(std::string Bytes,
  962                                   std::string ExpectedErrorMsg) {
 1037   std::string Bytes(OutStrm.str());
 1054                                        std::string ExpectedErrorMsg) {
 1082   std::string finalizeIssues;
 1258                                     std::string ErrMessage) {
unittests/DebugInfo/PDB/PDBApiTest.cpp
  234   std::string getUndecoratedNameEx(PDB_UndnameFlags Flags) const override {
unittests/DebugInfo/PDB/StringTableBuilderTest.cpp
   83     std::string aaaaa = std::string(220, 'a') + std::to_string(i);
   87   std::string S = "foo.natvis";
unittests/ExecutionEngine/ExecutionEngineTest.cpp
   45   std::string Error;
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.cpp
   53   std::string ErrorMsg;
  164     std::string ErrMsg;
unittests/ExecutionEngine/MCJIT/MCJITCAPITest.cpp
   53   std::string errMsgString;
unittests/ExecutionEngine/MCJIT/MCJITMemoryManagerTest.cpp
   45   std::string Error;
   78   std::string Error;
  113   std::string Error;
unittests/ExecutionEngine/MCJIT/MCJITObjectCacheTest.cpp
   28     const std::string ModuleID = M->getModuleIdentifier();
   55     const std::string ModuleID = M->getModuleIdentifier();
unittests/ExecutionEngine/MCJIT/MCJITTest.cpp
  209 typedef void * (*FunctionHandlerPtr)(const std::string &str);
  227   static std::string UnresolvedExternal;
  269   std::vector<std::string> UnresolvedExternals;
unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h
   57     std::string Error;
   73     SmallVectorImpl<std::string>::const_iterator I = SupportedSubArchs.begin();
   95   std::string HostTriple;
   98   SmallVector<std::string, 2> SupportedSubArchs; // We need to own the memory
unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
   36   std::string BuilderTriple;
   38   TrivialModuleBuilder(const std::string &Triple)
  308     std::string Error;
  324   SmallVector<std::string, 1> MAttrs;
unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
 1011           std::string ErrMsg;
unittests/ExecutionEngine/Orc/LegacyRTDyldObjectLinkingLayerTest.cpp
   41   bool finalizeMemory(std::string *ErrMsg = nullptr) override {
unittests/ExecutionEngine/Orc/ObjectTransformLayerTest.cpp
   78   llvm::JITSymbol findSymbol(const std::string &Name,
   86   void expectFindSymbol(const std::string &Name, bool ExportedSymbolsOnly) {
   98   llvm::JITSymbol findSymbolIn(VModuleKey K, const std::string &Name,
  107   void expectFindSymbolIn(VModuleKey K, const std::string &Name,
  154   std::string LastCalled;
  157   std::string MockName;
  220   std::string Name = "foo";
  282     bool finalizeMemory(std::string *) override { return false; }
unittests/ExecutionEngine/Orc/OrcTestCommon.h
  202   using FindSymbolSignature = JITSymbol(const std::string &Name,
  205                                           const std::string &Name,
  228   JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) {
  234   JITSymbol findSymbolIn(ModuleHandleT H, const std::string &Name,
unittests/ExecutionEngine/Orc/RPCUtilsTest.cpp
  129   class VoidString : public Function<VoidString, void(std::string)> {
  137                                           bool, std::string, std::vector<int>,
unittests/ExecutionEngine/Orc/SymbolStringPoolTest.cpp
   21   std::string S("hel");
unittests/FuzzMutate/OperationsTest.cpp
   63   std::string ErrMsg;
unittests/FuzzMutate/RandomIRBuilderTest.cpp
   37   std::string ErrMsg;
unittests/FuzzMutate/StrategiesTest.cpp
   58   std::string ErrMsg;
unittests/IR/AsmWriterTest.cpp
   31   std::string S;
   43   std::string S;
   58   std::string S;
unittests/IR/ConstantsTest.cpp
  411 static std::string getNameOfType(Type *T) {
  412   std::string S;
unittests/IR/ManglerTest.cpp
   18 static std::string mangleStr(StringRef IRName, Mangler &Mang,
   20   std::string Mangled;
   27 static std::string mangleFunc(StringRef IRName,
   37   std::string Mangled;
unittests/IR/MetadataTest.cpp
  154   std::string Str;
  164   std::string Str;
  271   std::string Expected;
  285   std::string Actual;
  333   std::string Expected;
 2636   std::string Str;
unittests/IR/PassBuilderCallbacksTest.cpp
  272 template <typename IRUnitT> std::string getName(const IRUnitT &IR) {
  276 template <> std::string getName(const StringRef &name) { return name; }
  278 template <> std::string getName(const llvm::Any &WrappedIR) {
unittests/IR/VerifierTest.cpp
   57   std::string Error;
   88   std::string Error;
  128   std::string Error;
  142   std::string Error;
unittests/Linker/LinkModulesTest.cpp
  224   std::string Err;
unittests/MC/DwarfLineTables.cpp
   35     std::string Error;
unittests/MC/MCInstPrinter.cpp
   33     std::string TripleName = "x86_64-pc-linux";
   34     std::string ErrorStr;
   51   template <typename T> std::string formatHex(T i) {
   52     std::string Buffer;
unittests/MC/StringTableBuilderTest.cpp
   28   std::string Expected;
   59   std::string Expected;
   87   std::string Expected;
unittests/MI/LiveIntervalTest.cpp
   40   std::string Error;
unittests/Object/SymbolicFileTest.cpp
   16   std::string s;
unittests/ObjectYAML/YAML2ObjTest.cpp
   41   std::vector<std::string> Errors;
unittests/Option/OptionParsingTest.cpp
   85   std::vector<std::string> Es = AL.getAllArgValues(OPT_E);
   89   std::vector<std::string> Gs = AL.getAllArgValues(OPT_G);
   94   std::string Help;
  275   std::string Nearest;
  326   std::string Nearest;
unittests/Passes/PluginsTest.cpp
   29 static std::string LibPath(const std::string Name = "TestPlugin") {
   29 static std::string LibPath(const std::string Name = "TestPlugin") {
   34   std::string Path = sys::fs::getMainExecutable(Argv0, Ptr);
unittests/ProfileData/CoverageMappingTest.cpp
   28   std::string FoundMsg;
  111   std::string Name;
  115   InputFunctionCoverageData(std::string Name, uint64_t Hash)
  191   std::string writeCoverageRegions(InputFunctionCoverageData &Data) {
  195     std::string Coverage;
  201   void readCoverageRegions(const std::string &Coverage,
  215       std::string Regions = writeCoverageRegions(InputFunctions[I]);
  801   std::vector<std::string> Names;
  815   std::vector<std::string> Names;
unittests/ProfileData/InstrProfTest.cpp
   26   std::string FoundMsg;
  917     std::string PGOName = getPGOFuncName(*F);
  928   std::vector<std::string> FuncNames1;
  929   std::vector<std::string> FuncNames2;
  931     std::string str;
  948     std::string FuncNameStrings1;
  955     std::string FuncNameStrings2;
  963       std::string FuncNameStrings = FuncNameStrings1;
  980         std::string N[4];
unittests/ProfileData/SampleProfTest.cpp
  204     std::string MconstructGUID;
  207     std::string StringviewGUID;
unittests/Remarks/BitstreamRemarksParsingTest.cpp
   48   std::string BSBuf;
  256   std::string BSBuf;
unittests/Remarks/BitstreamRemarksSerializerTest.cpp
   26   std::string OutputBuf;
   39   std::string InputBuf;
   58     std::string MetaBuf;
unittests/Remarks/YAMLRemarksParsingTest.cpp
   59   std::string ErrorStr;
   73   std::string ErrorStr;
  658   std::string ErrorStr;
unittests/Remarks/YAMLRemarksSerializerTest.cpp
   29   std::string Buf;
unittests/Support/ARMAttributeParser.cpp
   29   std::string buffer;
unittests/Support/Chrono.cpp
   47   std::string S;
unittests/Support/CommandLineTest.cpp
  133 cl::opt<std::string> EnvironmentTestOption("env-test-opt");
  151   StackOption<std::string> EnvironmentTestOptionLocal("env-test-opt-local");
  349     StackOption<std::string> Actual("actual");
  351     StackOption<std::string> Input(cl::Positional);
  364   StackOption<std::string> Option("option", cl::Required);
  479   std::string Errs;
  500   std::string Errs;
  557   std::string Errs;
  682   StackOption<std::string> Bar("bar", cl::sub(*cl::AllSubCommands),
  684   StackOption<std::string, cl::alias> Bar_Alias(
  698   StackOption<std::string> SC2_Foo("foo", cl::sub(SC2));
  742   std::string args(32 * 4096, 'a');
  750   StackOption<std::string, cl::list<std::string>> InputFilenames(
  750   StackOption<std::string, cl::list<std::string>> InputFilenames(
  864   std::string SelfFileRef = std::string("@") + SelfFilePath.c_str();
  868   std::string NestedFileRef = std::string("@") + NestedFilePath.c_str();
  872   std::string FlagFileRef = std::string("@") + FlagFilePath.c_str();
  941   std::string ResponseFileRef = std::string("@") + ResponseFilePath.c_str();
  963   StackOption<std::string> Opt1("opt1", cl::init("true"));
 1053   StackOption<std::string, cl::list<std::string>> PosEatArgs(
 1053   StackOption<std::string, cl::list<std::string>> PosEatArgs(
 1056   StackOption<std::string, cl::list<std::string>> PosEatArgs2(
 1056   StackOption<std::string, cl::list<std::string>> PosEatArgs2(
 1067   std::string Errs;
 1139   template <typename... Ts> std::string runTest(Ts... OptionAttributes) {
 1172   std::string Output =
 1184   std::string Output = runTest(
 1198   std::string Output = runTest(
 1212   std::string Output = runTest(
 1225   std::string Output = runTest(
 1319   StackOption<std::string, cl::list<std::string>> IncludeDirs(
 1319   StackOption<std::string, cl::list<std::string>> IncludeDirs(
 1353   StackOption<std::string, cl::list<std::string>> MacroDefs(
 1353   StackOption<std::string, cl::list<std::string>> MacroDefs(
 1397   StackOption<std::string> OptV("v", cl::Grouping,
 1399   StackOption<std::string> OptO("o", cl::Grouping, cl::ValueOptional,
 1460   StackOption<std::string> OptP("p", cl::Prefix, cl::Grouping,
 1462   StackOption<std::string> OptA("a", cl::AlwaysPrefix, cl::Grouping,
 1590   StackOption<std::string> OptAB("ab", cl::desc("Another long option"));
 1592   std::string Errs;
unittests/Support/ConvertUTFTest.cpp
   21   std::string Result;
   24   std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0");
   32   std::string Result;
   35   std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0");
   53   std::string Result;
   59   std::string Result;
   85   std::string Result;
   88   std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0");
  109   std::string Result;
  112   std::string Expected("\xe0\xb2\xa0_\xe0\xb2\xa0");
unittests/Support/DebugTest.cpp
   18   std::string s1, s2;
unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
   21 std::string LibPath(const std::string Name = "PipSqueak") {
   21 std::string LibPath(const std::string Name = "PipSqueak") {
   27   std::string Path = fs::getMainExecutable(Argv0, Ptr);
   35 typedef void (*SetStrings)(std::string &GStr, std::string &LStr);
   35 typedef void (*SetStrings)(std::string &GStr, std::string &LStr);
   36 typedef void (*TestOrder)(std::vector<std::string> &V);
   58 std::string StdString(const char *Ptr) { return Ptr ? Ptr : ""; }
   62     std::string Err;
  112   std::string A("PipSqueak"), B, C("SecondLib");
  113   std::vector<std::string> Order;
  115     std::string Err;
unittests/Support/DynamicLibrary/PipSqueak.cpp
   12   std::string *Str;
   13   std::vector<std::string> *Vec;
   27   std::string &Str;
   28   Local(std::string &S) : Str(S) {
   37 extern "C" PIPSQUEAK_EXPORT void SetStrings(std::string &GStr,
   38                                             std::string &LStr) {
   43 extern "C" PIPSQUEAK_EXPORT void TestOrder(std::vector<std::string> &V) {
unittests/Support/ErrorOrTest.cpp
   74   ErrorOr<std::string> x("string literal");
unittests/Support/ErrorTest.cpp
  436   std::string Msg;
  451   std::string Msg;
  748     std::string Buf;
  756     std::string Buf;
  940   std::string message(int Condition) const override {
unittests/Support/FileCheckTest.cpp
   34 static std::string toString(const std::unordered_set<std::string> &Set) {
   34 static std::string toString(const std::unordered_set<std::string> &Set) {
   36   std::string Str;
   46 expectUndefErrors(std::unordered_set<std::string> ExpectedUndefVarNames,
  222     std::vector<std::string> GlobalDefines;
  403   std::vector<std::string> GlobalDefines;
  410   Expected<std::string> SubstValue = StringSubstitution.getResult();
  455   std::vector<std::string> GlobalDefines;
unittests/Support/FileCollectorTest.cpp
   29   using FileCollector::FileCollector;
  104   std::string root_fs = root.Path.str();
  131   std::string root_fs = root.Path.str();
  159   std::string root_fs = root.Path.str();
  197   std::string root_fs = root.Path.str();
  217   std::string RemovedFileName = (Twine(subdir3.Path) + "/removed").str();
  244   std::string root_fs = reproducer_root.Path.str();
  259     std::string vpath = (file_root + "/aaa").str();
  260     std::string rpath = (reproducer_root.Path + file_root.Path + "/aaa").str();
  267     std::string vpath = (file_root + "/bar/ddd").str();
  268     std::string rpath =
  276     std::string vpath = (file_root + "/eee").str();
  277     std::string rpath = (reproducer_root.Path + file_root.Path + "/eee").str();
  290   std::string root_fs = root.Path.str();
unittests/Support/FileUtilitiesTest.cpp
   41   const std::string TempUniqTestFileModel = FinalTestfilePath.str().str() + "-%%%%%%%%";
   42   const std::string TestfileContent = "fooFOOfoo";
   48   std::string FinalFileContent;
unittests/Support/FormatVariadicTest.cpp
  380   std::string FooString("FooString");
  499       std::tuple<char, int, const char *, StringRef, std::string, double, float,
  519   std::string S;
  621   std::string S = fmt2;
  625   std::string S = formatv("{0} {1}", 1, 2);
unittests/Support/Host.cpp
  144   const std::string ExynosProcCpuInfo = R"(
  174   const std::string ThunderX2T99ProcCpuInfo = R"(
  226   const std::string ThunderXT88ProcCpuInfo = R"(
unittests/Support/JSONTest.cpp
   20 std::string s(const Value &E) { return llvm::formatv("{0}", E).str(); }
   21 std::string sp(const Value &E) { return llvm::formatv("{0:2}", E).str(); }
   60   std::string Y = "Hello";
   74   std::string test = {
   83   std::string teststring = R"("\u0000\u0008\u000c\r\n\tS\"\\)"
  330   CustomStruct(std::string S, llvm::Optional<int> I, bool B)
  332   std::string S;
  353   std::map<std::string, std::vector<CustomStruct>> R;
  355   std::map<std::string, std::vector<CustomStruct>> Expected;
  389     std::string S;
unittests/Support/MemoryBufferTest.cpp
   70   std::string data;
unittests/Support/NativeFormatTests.cpp
   20 template <typename T> std::string format_number(T N, IntegerStyle Style) {
   21   std::string S;
   28 std::string format_number(uint64_t N, HexPrintStyle Style,
   30   std::string S;
   37 std::string format_number(double D, FloatStyle Style,
   39   std::string S;
unittests/Support/Path.cpp
  308   std::string expected;
  332   std::string OriginalStorage;
  347   std::string PwDir = pw->pw_dir;
  840   typedef std::vector<std::string> v_t;
  929   typedef std::vector<std::string> v_t;
 1186 static std::string remove_dots(StringRef path, bool remove_dot_dot,
 1522     std::string Buf(ToRead, '?');
 1546     std::string Buf(ToRead, '?');
unittests/Support/ProgramTest.cpp
   56 static cl::opt<std::string>
   58 static cl::opt<std::string>
   63   std::vector<std::string> EnvStorage;
  163   std::string my_exe =
  176   std::string error;
  200   std::string Executable =
  208   std::string Error;
  255   std::string Executable =
  263   std::string Error;
  272   std::string Executable = "i_dont_exist";
  276     std::string Error;
  287     std::string Error;
unittests/Support/RegexTest.cpp
   46   std::string String="axxb";
   53   std::string NulPattern="X[0-9]+X([a-f])?:([0-9]+)";
   86   std::string Error;
  135   std::string Error;
  153   std::string Error;
  158   std::string Error;
  168   std::string Error;
  177   std::string Error;
unittests/Support/SourceMgrTest.cpp
   22   std::string Output;
unittests/Support/SpecialCaseListTest.cpp
   21                                                        std::string &Error) {
   27     std::string Error;
   34   std::string makeSpecialCaseListFile(StringRef Contents) {
   71   std::string Error;
   87   std::string Error;
  152   std::string Error;
  163   std::vector<std::string> Files(1, "unexisting");
  174   std::vector<std::string> Files;
unittests/Support/SymbolRemappingReaderTest.cpp
   21   std::string readWithErrors(StringRef Text, StringRef BufferName) {
unittests/Support/TarWriterTest.cpp
   84   std::string x154(154, 'x');
   85   std::string x155(155, 'x');
   86   std::string y99(99, 'y');
   87   std::string y100(100, 'y');
  105   std::string yz = "yyyyyyyyyyyyyyyyyyyy/zzzzzzzzzzzzzzzzzzzz";
unittests/Support/TargetParserTest.cpp
  555         ARM::getFPUName(FK).find("neon") == std::string::npos)
  568         (ARM::getFPUName(FK).find("d16") == std::string::npos &&
  569          ARM::getFPUName(FK).find("vfpv3xd") == std::string::npos))
  668     std::string arm_1 = "armeb" + (std::string)(Arch[i]);
  669     std::string arm_2 = "arm" + (std::string)(Arch[i]) + "eb";
  670     std::string arm_3 = "arm" + (std::string)(Arch[i]);
  671     std::string thumb_1 = "thumbeb" + (std::string)(Arch[i]);
  672     std::string thumb_2 = "thumb" + (std::string)(Arch[i]) + "eb";
  673     std::string thumb_3 = "thumb" + (std::string)(Arch[i]);
unittests/Support/TaskQueueTest.cpp
  101   std::future<std::string> F1 = TQ.async([&] { return std::string("Hello"); });
unittests/Support/TrigramIndexTest.cpp
   23       std::vector<std::string> Rules) {
unittests/Support/VirtualFileSystemTest.cpp
   44   std::string WorkingDirectory;
   45   std::map<std::string, vfs::Status> FilesAndDirs;
   46   typedef std::map<std::string, vfs::Status>::const_iterator const_iterator;
   69   llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override {
   93     std::map<std::string, vfs::Status> &FilesAndDirs;
   94     std::map<std::string, vfs::Status>::iterator I;
   95     std::string Path;
  104     DirIterImpl(std::map<std::string, vfs::Status> &FilesAndDirs,
  179 std::string getPosixPath(std::string S) {
  179 std::string getPosixPath(std::string S) {
  422         std::string UnresolvedPath = Path.str();
  577   std::map<std::string, std::error_code> StatResults;
  613   std::vector<std::string> Contents;
  622   for (const std::string &Name : Contents) {
  653     std::vector<std::string> Contents;
  678     std::vector<std::string> Contents;
  697     for (const std::string &Name : Contents) {
  729   std::vector<std::string> VisitedBrokenSymlinks;
  730   std::vector<std::string> VisitedNonBrokenSymlinks;
  754   SmallVector<std::string, 4> InputToCheck;
 1324   std::vector<std::string> Nodes;
 1356     std::string VersionPlusContent("{\n  'version':0,\n");
 2041   llvm::ErrorOr<std::string> WorkingDir = FS->getCurrentWorkingDirectory();
unittests/Support/YAMLIOTest.cpp
  207   std::string intermediate;
  257   std::string str1;
  258   std::string str2;
  259   std::string str3;
  280   std::string Serialized;
  312   std::string Serialized;
  329   std::string stdstr;
  426   std::string intermediate;
  549   std::string intermediate;
  641   std::string intermediate;
  679   std::string stdstr1;
  680   std::string stdstr2;
  681   std::string stdstr3;
  682   std::string stdstr4;
  683   std::string stdstr5;
  684   std::string stdstr6;
  685   std::string stdstr7;
  686   std::string stdstr8;
  687   std::string stdstr9;
  688   std::string stdstr10;
  689   std::string stdstr11;
  690   std::string stdstr12;
  691   std::string stdstr13;
  729   std::string intermediate;
  947   std::string intermediate;
 1037   std::string intermediate;
 1071   std::string str;
 1125   std::string intermediate;
 1160   std::string intermediate;
 1187   std::string intermediate;
 1295   std::string intermediate;
 1341   std::string intermediate;
 1448   std::string intermediate;
 1571   std::string intermediate;
 1650   std::string intermediate;
 1743   std::string intermediate;
 1855   std::string intermediate;
 2318   std::string intermediate;
 2409   std::string out;
 2522   std::string out;
 2558   std::map<std::string, int> x;
 2560   std::string out;
 2584   std::map<std::string, int> y;
 2594   std::map<std::string, FooBar> x;
 2600   std::string out;
 2617   std::map<std::string, FooBar> y;
 2627   std::map<std::string, FooBar> fbm;
 2642   std::string str;
 2651   std::string str;
 2659   std::string out;
 2934   std::string intermediate;
 2947   std::string intermediate;
 2979   std::string intermediate;
unittests/Support/YAMLParserTest.cpp
  189   std::string StringInArray = (llvm::Twine("[\"") + String + "\"]").str();
  203   std::string StringInArray = (llvm::Twine("[\"") + String + "\"]").str();
unittests/Support/raw_ostream_test.cpp
   19 template<typename T> std::string printToString(const T &Value) {
   20   std::string res;
   28 template<typename T> std::string printToString(const T &Value,
   42 template<typename T> std::string printToStringUnbuffered(const T &Value) {
   43   std::string res;
  121   std::string Str;
  131   std::string Str;
  189 static std::string formatted_bytes_str(ArrayRef<uint8_t> Bytes,
  193   std::string S;
  200 static std::string format_bytes_with_ascii_str(ArrayRef<uint8_t> Bytes,
  204   std::string S;
unittests/Support/raw_sha1_ostream_test.cpp
   17 static std::string toHex(StringRef Input) {
   21   std::string Output;
   42   std::string Hash = toHex({(const char *)Vec.data(), 20});
unittests/TableGen/CodeExpanderTest.cpp
   27   std::string EmittedDiags;
   70   std::string Result;
   81   std::string Result;
   95   std::string Result;
  106   std::string Result;
  122   std::string Result;
  133   std::string Result;
  144   std::string Result;
  155   std::string Result;
  172   std::string Result;
  190   std::string Result;
unittests/Target/AArch64/InstSizes.cpp
   15   std::string CPU("generic");
   16   std::string FS("");
   22   std::string Error;
unittests/Target/ARM/MachineInstrTest.cpp
  472   std::string Error;
unittests/Target/WebAssembly/WebAssemblyExceptionInfoTest.cpp
   26   std::string CPU("");
   27   std::string FS("");
   33   std::string Error;
unittests/Target/X86/MachineSizeOptsTest.cpp
   31   std::string Error;
unittests/TextAPI/ELFYAMLTest.cpp
  196   std::string Result;
  222   std::string Result;
unittests/TextAPI/TextStubV1Tests.cpp
   21   std::string Name;
unittests/TextAPI/TextStubV2Tests.cpp
   21   std::string Name;
unittests/TextAPI/TextStubV3Tests.cpp
   21   std::string Name;
   26 using UUIDs = std::vector<std::pair<Target, std::string>>;
unittests/TextAPI/TextStubV4Tests.cpp
   20   std::string Name;
   25 using UUIDs = std::vector<std::pair<Target, std::string>>;
unittests/Transforms/Utils/ASanStackFrameLayoutTest.cpp
   15 static std::string
unittests/XRay/FDRProducerConsumerTest.cpp
   90   std::string Data;
  113   std::string Data;
  150   std::string Data2;
  191   std::string Data2;
unittests/XRay/FDRRecordPrinterTest.cpp
  101   std::string Data;
  128   std::string Data;
  138   std::string Data;
  148   std::string Data;
  158   std::string Data;
unittests/XRay/FDRRecordsTest.cpp
  148   std::string Output;
unittests/XRay/FDRTraceWriterTest.cpp
   35   std::string Data;
   81   std::string Data;
  124   std::string Data;
unittests/tools/llvm-cfi-verify/GraphBuilder.cpp
   59 std::string HexStringifyContainer(const std::vector<uint64_t> &C) {
unittests/tools/llvm-exegesis/AArch64/TargetTest.cpp
   39     std::string error;
   69   const std::string Expected = "CPU_CYCLES";
unittests/tools/llvm-exegesis/Common/AssemblerUtils.h
   31   MachineFunctionGeneratorBaseTest(const std::string &TT,
   32                                    const std::string &CpuName)
   64     std::string Error;
   86   const std::string TT;
   87   const std::string CpuName;
unittests/tools/llvm-exegesis/Mips/TargetTest.cpp
   81   const std::string Expected = "CYCLES";
unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
   29     const std::string TT = "powerpc64le-unknown-linux";
   30     std::string error;
   41       const std::string Name = SM.getProcResource(I)->Name;
unittests/tools/llvm-exegesis/PowerPC/TargetTest.cpp
   38     std::string error;
   61   const std::string Expected = "CYCLES";
unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp
   35 static std::string Dump(const MCInst &McInst) {
   36   std::string Buffer;
   43   const std::string Lhs = Dump(get<0>(arg));
   44   const std::string Rhs = Dump(get<1>(arg));
unittests/tools/llvm-exegesis/X86/SchedClassResolutionTest.cpp
   33       const std::string Name = SM.getProcResource(I)->Name;
usr/include/c++/7.4.0/bits/basic_string.h
 6371   stoi(const string& __str, size_t* __idx = 0, int __base = 10)
 6376   stol(const string& __str, size_t* __idx = 0, int __base = 10)
 6381   stoul(const string& __str, size_t* __idx = 0, int __base = 10)
 6386   stoll(const string& __str, size_t* __idx = 0, int __base = 10)
 6391   stoull(const string& __str, size_t* __idx = 0, int __base = 10)
 6397   stof(const string& __str, size_t* __idx = 0)
 6401   stod(const string& __str, size_t* __idx = 0)
 6405   stold(const string& __str, size_t* __idx = 0)
 6413   inline string
 6415   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(int),
 6418   inline string
 6420   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
 6424   inline string
 6426   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, 4 * sizeof(long),
 6429   inline string
 6431   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
 6435   inline string
 6437   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
 6441   inline string
 6443   { return __gnu_cxx::__to_xstring<string>(&std::vsnprintf,
 6447   inline string
 6452     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
 6456   inline string
 6461     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
 6465   inline string
 6470     return __gnu_cxx::__to_xstring<string>(&std::vsnprintf, __n,
 6599     : public __hash_base<size_t, string>
 6602       operator()(const string& __s) const noexcept
usr/include/c++/7.4.0/bits/codecvt.h
  599       codecvt_byname(const string& __s, size_t __refs = 0)
  619       codecvt_byname(const string& __s, size_t __refs = 0)
  637       codecvt_byname(const string& __s, size_t __refs = 0)
usr/include/c++/7.4.0/bits/ios_base.h
  259       failure(const string& __str);
  263       failure(const string&, const error_code&);
usr/include/c++/7.4.0/bits/locale_classes.h
  163     locale(const std::string& __s) : locale(__s.c_str()) { }
  177     locale(const locale& __base, const std::string& __s, category __cat)
  244     string
  839       collate_byname(const string& __s, size_t __refs = 0)
usr/include/c++/7.4.0/bits/locale_facets.h
 1484       ctype_byname(const string& __s, size_t __refs = 0)
 1503       ctype_byname(const string& __s, size_t __refs = 0);
 1521       ctype_byname(const string& __s, size_t __refs = 0);
 1775       string
 1843       virtual string
 1921       numpunct_byname(const string& __s, size_t __refs = 0)
 2146 		       string&) const;
usr/include/c++/7.4.0/bits/locale_facets.tcc
   87 	  const string& __g = __np.grouping();
  141 		    const string& __grouping_tmp) throw ();
  150 		     ios_base::iostate& __err, string& __xtrc) const
  209       string __found_grouping;
  466 	string __found_grouping;
  694       string __xtrc;
  709       string __xtrc;
  741       string __xtrc;
usr/include/c++/7.4.0/bits/locale_facets_nonio.h
  771       time_get_byname(const string& __s, size_t __refs = 0)
  905       time_put_byname(const string& __s, size_t __refs = 0)
 1135       string
 1281       virtual string
 1436       moneypunct_byname(const string& __s, size_t __refs = 0)
 1599 		   ios_base::iostate& __err, string& __digits) const;     
 1970     string
 1971     messages<char>::do_get(catalog, int, int, const string&) const;
 1992       messages_byname(const string& __s, size_t __refs = 0)
usr/include/c++/7.4.0/bits/locale_facets_nonio.tcc
   84 	  const string& __g = __mp.grouping();
  138 		 ios_base::iostate& __err, string& __units) const
  160 	string __grouping_tmp;
  173 	string __res;
  313 		const bool __only_zeros = __first == string::npos;
  373       string __str;
  386       typedef typename string::size_type                  size_type;
  391       string __str;
usr/include/c++/7.4.0/bits/random.h
 1578     random_device(const std::string& __token = "default")
 1624     void _M_init(const std::string& __token);
 1625     void _M_init_pretr1(const std::string& __token);
usr/include/c++/7.4.0/bits/regex.h
  962   typedef sub_match<string::const_iterator>  ssub_match;
 1948   typedef match_results<string::const_iterator>  smatch;
 2587   typedef regex_iterator<string::const_iterator>  sregex_iterator;
 2828   typedef regex_token_iterator<string::const_iterator>  sregex_token_iterator;
usr/include/c++/7.4.0/bits/regex.tcc
  268       string __s;
  312       string __s;
usr/include/c++/7.4.0/fstream
  307       open(const std::string& __s, ios_base::openmode __mode)
  511       basic_ifstream(const std::string& __s,
  615       open(const std::string& __s, ios_base::openmode __mode = ios_base::in)
  715       basic_ofstream(const std::string& __s,
  820       open(const std::string& __s,
  917       basic_fstream(const std::string& __s,
 1022       open(const std::string& __s,
usr/include/c++/7.4.0/stdexcept
   56     __cow_string(const std::string&);
  120     logic_error(const string& __arg) _GLIBCXX_TXN_SAFE;
  150     explicit domain_error(const string& __arg) _GLIBCXX_TXN_SAFE;
  161     explicit invalid_argument(const string& __arg) _GLIBCXX_TXN_SAFE;
  173     explicit length_error(const string& __arg) _GLIBCXX_TXN_SAFE;
  185     explicit out_of_range(const string& __arg) _GLIBCXX_TXN_SAFE;
  204     runtime_error(const string& __arg) _GLIBCXX_TXN_SAFE;
  233     explicit range_error(const string& __arg) _GLIBCXX_TXN_SAFE;
  244     explicit overflow_error(const string& __arg) _GLIBCXX_TXN_SAFE;
  255     explicit underflow_error(const string& __arg) _GLIBCXX_TXN_SAFE;
usr/include/c++/7.4.0/system_error
   99     virtual string
  187     string
  263     string
  350     system_error(error_code __ec, const string& __what)
  363     system_error(int __v, const error_category& __ecat, const string& __what)
usr/include/c++/7.4.0/type_traits
 2427       static __result_of_success<decltype(
utils/FileCheck/FileCheck.cpp
   31 static cl::opt<std::string>
   34 static cl::opt<std::string>
   38 static cl::list<std::string> CheckPrefixes(
   55 static cl::list<std::string> ImplicitCheckNot(
   62 static cl::list<std::string>
  130 typedef cl::list<std::string>::const_iterator prefix_iterator;
  151   std::string Note;
  154               const std::string &Note = "")
  245   std::string Label;
  262 std::string GetCheckTypeAbbreviation(Check::FileCheckType Ty) {
  493       const std::string &Note = AnnotationItr->Marker.Note;
  538     if (EqIdx == std::string::npos) {
  576   std::string REError;
utils/TableGen/AsmMatcherEmitter.cpp
  128 static cl::opt<std::string>
  180   std::string Name;
  183   std::string ClassName;
  188   std::string ValueName;
  192   std::string PredicateMethod;
  196   std::string RenderMethod;
  200   std::string ParserMethod;
  206   std::string DiagnosticType;
  209   std::string DiagnosticString;
  216   std::string DefaultMethod;
  497   std::string AsmString;
  532   std::string ConversionFnKind;
  743   std::map<std::string, ClassInfo*> TokenClasses;
  822   if (start == std::string::npos)
  824   Ops.first = Ops.first.slice(start + 1, std::string::npos);
  829   if (start == std::string::npos)
  831   Ops.second = Ops.second.slice(start + 1, std::string::npos);
  894     std::string LoweredTok = Tok.lower();
  975     if (Variant.BreakCharacters.find(Char) != std::string::npos) {
  984     if (Variant.TokenizingCharacters.find(Char) != std::string::npos) {
  995     if (Variant.SeparatorCharacters.find(Char) != std::string::npos) {
 1058   if (AsmString.find('\n') != std::string::npos)
 1078   std::set<std::string> OperandNames;
 1101 static std::string getEnumNameForToken(StringRef Str) {
 1102   std::string Res;
 1873     const std::string &OpName = OpInfo->Name;
 1921 getConverterOperandID(const std::string &Name,
 1944   std::string TargetOperandClass = Target.getName().str() + "Operand";
 1949   std::string ConvertFnBody;
 2005   std::string OperandFnBody;
 2035   std::map<std::tuple<uint8_t, uint8_t, uint8_t>, std::string>
 2043       std::string Signature = ("ConvertCustom_" + AsmMatchConverter).str();
 2071     std::string Signature = "Convert";
 2091         std::string Class;
 2099         std::string Name = "CVT_" + (Op.Class->isRegisterClass() ? "Reg" :
 2180         std::string Ty = "imm_" + itostr(Val);
 2184         std::string Name = "CVT_" + Ty;
 2207         std::string Reg, Name;
 2695 static std::string GetAliasRequiredFeatures(Record *R,
 2698   std::string Result;
 2725   std::map<std::string, std::vector<Record*> > AliasesFromMnemonic;
 2746     std::string MatchCode;
 2751       std::string FeatureMask = GetAliasRequiredFeatures(R, Info);
 2882     std::string LenMnemonic = char(II.Mnemonic.size()) + II.Mnemonic.str();
 3003   std::string AsmParserName =
 3117 static std::string
 3119   std::string Name = "AMFBS";
 3326     std::string LenMnemonic = char(MI->Mnemonic.size()) + MI->Mnemonic.str();
 3440       std::string LenMnemonic = char(MI->Mnemonic.size()) + MI->Mnemonic.str();
utils/TableGen/AsmWriterEmitter.cpp
   72   void FindUniqueOperandCommands(std::vector<std::string> &UOC,
   80 static void PrintCases(std::vector<std::pair<std::string,
  138       std::vector<std::pair<std::string, AsmWriterOperand>> OpsToPrint;
  159 FindUniqueOperandCommands(std::vector<std::string> &UniqueOperandCommands,
  166   std::vector<std::string> InstrsForCase;
  175     std::string Command = "    "+Inst.Operands[0].getCode(PassSubtarget)+"\n";
  224       std::string Command = "    " +
  234     std::string Instrs = InstrsForCase[i];
  246 static void UnescapeString(std::string &Str) {
  286   SequenceToOffsetTable<std::string> StringTable;
  299       std::string Str = AWI.Operands[0].Str;
  315       std::string Str = AWI.Operands[0].Str;
  335   std::vector<std::vector<std::string>> TableDrivenOperandPrinters;
  338     std::vector<std::string> UniqueOperandCommands;
  430     std::vector<std::string> &Commands = TableDrivenOperandPrinters[i];
  501   SequenceToOffsetTable<std::string> StringTable;
  502   SmallVector<std::string, 4> AsmNames(Registers.size());
  505     std::string &AsmName = AsmNames[i++];
  619   std::vector<std::string> Conds;
  622   std::string Result;
  623   std::string AsmString;
  626   IAPrinter(std::string R, std::string AS)
  626   IAPrinter(std::string R, std::string AS)
  629   void addCond(const std::string &C) { Conds.push_back(C); }
  675     for (std::vector<std::string>::iterator
  780   std::map<std::string, AliasWithPriority> AliasMap;
  793   std::map<std::string, std::vector<IAPrinter>> IAPrinterMap;
  795   std::vector<std::string> PrintMethods;
  805       std::string FlatInstAsmString =
  810       std::string FlatAliasAsmString =
  835       std::string Cond;
  861         std::string Op = "MI->getOperand(" + utostr(MIOpNum) + ")";
  983   std::string Header;
  991   std::string Cases;
utils/TableGen/AsmWriterInst.cpp
   28 std::string AsmWriterOperand::getCode(bool PassSubtarget) const {
   38   std::string Result = Str + "(MI";
   59   std::string AsmString = CGI.FlattenAsmStringVariants(CGI.AsmString, Variant);
   60   std::string::size_type LastEmitted = 0;
   62     std::string::size_type DollarPos =
   64     if (DollarPos == std::string::npos) DollarPos = AsmString.size();
   93                    != std::string::npos) {
  110       std::string::size_type VarEnd = DollarPos+1;
  129       std::string Modifier;
  150           std::string::size_type ModifierStart = VarEnd;
utils/TableGen/AsmWriterInst.h
   45     std::string Str;
   49     std::string MiModifier;
   54     AsmWriterOperand(const std::string &LitStr,
   58     AsmWriterOperand(const std::string &Printer,
   60                      const std::string &Modifier,
   75     std::string getCode(bool PassSubtarget) const;
   93     void AddLiteralString(const std::string &Str) {
utils/TableGen/CTagsEmitter.cpp
   30   const std::string *Id;
   33   Tag(const std::string &Name, const SMLoc Location)
utils/TableGen/CallingConvEmitter.cpp
   94   std::string IndentStr = std::string(Indent, ' ');
utils/TableGen/CodeEmitterGen.cpp
   47   int getVariableBit(const std::string &VarName, BitsInit *BI, int bit);
   48   std::string getInstructionCase(Record *R, CodeGenTarget &Target);
   49   std::string getInstructionCaseForEncoding(Record *R, Record *EncodingDef,
   52                                const std::string &VarName,
   55                                std::string &Case, CodeGenTarget &Target);
   66 int CodeEmitterGen::getVariableBit(const std::string &VarName,
   81 AddCodeToMergeInOperand(Record *R, BitsInit *BI, const std::string &VarName,
   84                         std::string &Case, CodeGenTarget &Target) {
  136   std::string &EncoderMethodName = CGI.Operands[SO.first].EncoderMethodName;
  217     std::string maskStr;
  224       std::string extractStr;
  266 std::string CodeEmitterGen::getInstructionCase(Record *R,
  268   std::string Case;
  288 std::string CodeEmitterGen::getInstructionCaseForEncoding(Record *R, Record *EncodingDef,
  290   std::string Case;
  333 static std::string
  335   std::string Name = "CEFBS";
  461   std::map<std::string, std::vector<std::string>> CaseMap;
  461   std::map<std::string, std::vector<std::string>> CaseMap;
  470     std::string InstName =
  472     std::string Case = getInstructionCase(R, Target);
  500   std::map<std::string, std::vector<std::string>>::iterator IE, EE;
  500   std::map<std::string, std::vector<std::string>>::iterator IE, EE;
  502     const std::string &Case = IE->first;
  503     std::vector<std::string> &InstList = IE->second;
utils/TableGen/CodeGenDAGPatterns.cpp
  862 std::string TreePredicateFn::getPredCode() const {
  863   std::string Code = "";
 1083   std::string PredicateCode = PatFragRec->getRecord()->getValueAsString("PredicateCode");
 1097 std::string TreePredicateFn::getImmCode() const {
 1214 std::string TreePredicateFn::getGISelPredicateCode() const {
 1241 std::string TreePredicateFn::getFnName() const {
 1249 std::string TreePredicateFn::getCodeToRunOnSDNode() const {
 1251   std::string ImmCode = getImmCode();
 1295     std::string Result = ("    " + getImmType() + " Imm = ").str();
 1314   std::string Result;
 1397 std::string PatternToMatch::getPredicateCheck() const {
 1405   std::string Check;
 1493     std::string S;
 1924     std::map<std::string, TreePatternNodePtr> &ArgMap) {
 2048   std::map<std::string, TreePatternNodePtr> ArgMap;
 2613 bool TreePatternNode::canPatternMatch(std::string &Reason,
 3049 Record *CodeGenDAGPatterns::getSDNodeNamed(const std::string &Name) const {
 3117     std::vector<std::string> &Args = P->getArgList();
 3238                       std::map<std::string, TreePatternNodePtr> &InstInputs) {
 3293     std::map<std::string, TreePatternNodePtr> &InstInputs,
 3294     MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>>
 3294     MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>>
 3611   std::map<std::string, TreePatternNodePtr> InstInputs;
 3615   MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>>
 3615   MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>>
 3657       const std::string &OpName =
 3667     const std::string &OpName = CGI.Operands[i].Name;
 3699     const std::string &OpName = Op.Name;
 3842                       std::map<std::string, NameRecord> &Names,
 3877   std::string Reason;
 3895   std::map<std::string, NameRecord> SrcNames, DstNames;
 4009     SmallVector<std::string, 4> Msgs;
 4030     for (const std::string &Msg : Msgs)
 4214     std::map<std::string, TreePatternNodePtr> InstInputs;
 4215     MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>>
 4215     MapVector<std::string, TreePatternNodePtr, std::map<std::string, unsigned>>
 4394     std::string ErrString;
utils/TableGen/CodeGenDAGPatterns.h
  429   std::string Identifier;
  438   const std::string &getIdentifier() const { return Identifier; }
  440   std::string getFullName() const;
  512   std::string getImmediatePredicateCode() const {
  513     std::string Result = getImmCode();
  526   std::string getFnName() const;
  532   std::string getCodeToRunOnSDNode() const;
  601   std::string getGISelPredicateCode() const;
  606   std::string getPredCode() const;
  607   std::string getImmCode() const;
  651   std::string Name;
  682   const std::string &getName() const { return Name; }
  816   SubstituteFormalArguments(std::map<std::string, TreePatternNodePtr> &ArgMap);
  852   bool canPatternMatch(std::string &Reason, const CodeGenDAGPatterns &CDP);
  880   std::vector<std::string> Args;
  937   const std::string &getArgName(unsigned i) const {
  941   std::vector<std::string> &getArgList() { return Args; }
 1073   std::string getCondString() const {
 1076     std::string C = IsHwMode
 1099   std::string Features;   ///< Feature string for HW mode.
 1136   std::string getPredicateCheck() const;
 1150   std::map<Record*, std::pair<Record*, std::string>, LessRecordByID>
 1182   Record *getSDNodeNamed(const std::string &Name) const;
 1191   typedef std::pair<Record*, std::string> NodeXForm;
 1317       std::map<std::string, TreePatternNodePtr> &InstInputs,
 1318       MapVector<std::string, TreePatternNodePtr,
 1319                 std::map<std::string, unsigned>> &InstResults,
utils/TableGen/CodeGenHwModes.h
   30     std::string Features;
utils/TableGen/CodeGenInstruction.cpp
   56   std::set<std::string> OperandNames;
   76     std::string PrintMethod = "printOperand";
   77     std::string EncoderMethod;
   78     std::string OperandType = "OPERAND_UNKNOWN";
   79     std::string OperandNamespace = "MCOI";
  174 CGIOperandList::ParseOperandName(const std::string &Op, bool AllowWholeOp) {
  179   std::string OpName = Op.substr(1);
  180   std::string SubOpName;
  183   std::string::size_type DotIdx = OpName.find_first_of('.');
  184   if (DotIdx != std::string::npos) {
  228 static void ParseConstraint(const std::string &CStr, CGIOperandList &Ops,
  231   std::string::size_type wpos = CStr.find_first_of(" \t");
  232   std::string::size_type start = CStr.find_first_not_of(" \t");
  233   std::string Tok = CStr.substr(start, wpos - start);
  235     std::string Name = CStr.substr(wpos+1);
  237     if (wpos == std::string::npos)
  255   std::string::size_type pos = CStr.find_first_of('=');
  256   if (pos == std::string::npos)
  264   if (wpos == std::string::npos || wpos > pos)
  268   std::string LHSOpName = StringRef(CStr).substr(start, wpos - start);
  272   if (wpos == std::string::npos)
  276   std::string RHSOpName = StringRef(CStr).substr(wpos);
  321 static void ParseConstraints(const std::string &CStr, CGIOperandList &Ops,
  325   const std::string delims(",");
  326   std::string::size_type bidx, eidx;
  329   while (bidx != std::string::npos) {
  331     if (eidx == std::string::npos)
  339 void CGIOperandList::ProcessDisableEncoding(std::string DisableEncoding) {
  342     std::string OpName = P.first;
  462 std::string CodeGenInstruction::
  464   std::string Res = "";
utils/TableGen/CodeGenInstruction.h
   81       std::string Name;
   85       std::string PrinterMethodName;
   89       std::string EncoderMethodName;
   93       std::string OperandType;
  117       OperandInfo(Record *R, const std::string &N, const std::string &PMN,
  117       OperandInfo(Record *R, const std::string &N, const std::string &PMN,
  118                   const std::string &EMN, const std::string &OT, unsigned MION,
  118                   const std::string &EMN, const std::string &OT, unsigned MION,
  183     std::pair<unsigned,unsigned> ParseOperandName(const std::string &Op,
  212     void ProcessDisableEncoding(std::string Value);
  223     std::string AsmString;
  281     std::string DeprecatedReason;
  304     static std::string FlattenAsmStringVariants(StringRef AsmString,
  322     std::string AsmString;
  334       std::string Name;
  345       ResultOperand(std::string N, Record *r)
utils/TableGen/CodeGenIntrinsics.h
   28   std::string Name;           // The name of the LLVM function "llvm.bswap.i32"
   29   std::string EnumName;       // The name of the enum "bswap_i32"
   30   std::string GCCBuiltinName; // Name of the corresponding GCC builtin, or "".
   31   std::string MSBuiltinName;  // Name of the corresponding MS builtin, or "".
   32   std::string TargetPrefix;   // Target prefix, e.g. "ppc" for t-s intrinsics.
  173     std::string Name;
utils/TableGen/CodeGenMapTable.cpp
   82 typedef std::map<std::string, std::vector<Record*> > InstrRelMapTy;
   92   std::string Name;
   93   std::string FilterClass;
  147   std::string getName() const {
  151   std::string getFilterClass() {
  203     const std::string FilterClass = InstrMapDesc.getFilterClass();
  277     std::string CurInstrVal = ColFieldName->getValue()->getAsUnquotedString();
  278     std::string KeyColValue = KeyCol->getElement(j)->getAsUnquotedString();
  338       std::string CurInstrVal = CurInstrInit->getAsUnquotedString();
  347         std::string KeyValueStr;
  387     std::string OutStr("");
  457         std::string ColName = ColFields->getElement(j)->getAsUnquotedString();
  492       std::string ColName = CF->getAsUnquotedString();
  512   std::map<std::string, std::vector<Init*> > ColFieldValueMap;
  534         std::string ColName = ColFields->getElement(j)->getAsUnquotedString();
utils/TableGen/CodeGenRegisters.cpp
   68 std::string CodeGenSubRegIndex::getQualifiedName() const {
   69   std::string N = getNamespace();
  647       std::string Name;
  931 std::string CodeGenRegisterClass::getQualifiedName() const {
 1278   std::string Name = A->getName() + "_then_" + B->getName();
 1299   std::string Name = Parts.front()->getName();
utils/TableGen/CodeGenRegisters.h
   65     std::string Name;
   66     std::string Namespace;
   90     const std::string &getName() const { return Name; }
   91     const std::string &getNamespace() const { return Namespace; }
   92     std::string getQualifiedName() const;
  302     std::string Name;
  346     const std::string &getName() const { return Name; }
  347     std::string getQualifiedName() const;
  508     std::string Name;
utils/TableGen/CodeGenSchedule.cpp
   58   static std::string removeParens(llvm::StringRef S) {
   59     std::string Result;
  101       if (removeParens(Original).find_first_of("|?") != std::string::npos)
  109         std::string pat = PatStr;
  351           std::string Message =
  549   std::string Name = ModelKey->getName();
  712 std::string CodeGenSchedModels::genRWName(ArrayRef<unsigned> Seq, bool IsRead) {
  713   std::string Name("(");
  973 std::string
  978   std::string Name;
  993 std::string CodeGenSchedModels::createSchedClassName(const RecVec &InstDefs) {
  995   std::string Name;
utils/TableGen/CodeGenSchedule.h
   46   std::string Name;
   74                  const std::string &Name)
  127   std::string Name;
  143   CodeGenSchedClass(unsigned Index, std::string Name, Record *ItinClassDef)
  182   std::string Name;
  216   std::string ModelName;
  252   CodeGenProcModel(unsigned Idx, std::string Name, Record *MDef,
  583   std::string genRWName(ArrayRef<unsigned> Seq, bool IsRead);
  594   std::string createSchedClassName(Record *ItinClassDef,
  597   std::string createSchedClassName(const RecVec &InstDefs);
utils/TableGen/CodeGenTarget.cpp
  206 std::string llvm::getQualifiedName(const Record *R) {
  207   std::string Namespace;
  604   std::string DefName = R->getName();
utils/TableGen/CodeGenTarget.h
   43 std::string getQualifiedName(const Record *R);
  202   std::string SelectFunc;
  211   const std::string &getSelectFunc() const { return SelectFunc; }
utils/TableGen/DAGISelMatcher.h
  229   std::string WhatFor;
  235   RecordMatcher(const std::string &whatfor, unsigned resultNo)
  238   const std::string &getWhatFor() const { return WhatFor; }
  258   std::string WhatFor;
  264   RecordChildMatcher(unsigned childno, const std::string &whatfor,
  270   const std::string &getWhatFor() const { return WhatFor; }
  400   std::string Predicate;
  689   std::string Name;
  696                          const std::string &name, unsigned firstresult)
  703   const std::string getName() const { return Name; }
  834   std::string Val;
  837   EmitStringIntegerMatcher(const std::string &val, MVT::SimpleValueType vt)
  840   const std::string &getValue() const { return Val; }
  986   std::string OpcodeName;
  996   EmitNodeMatcherCommon(const std::string &opcodeName,
 1007   const std::string &getOpcodeName() const { return OpcodeName; }
 1045   EmitNodeMatcher(const std::string &opcodeName,
 1068   MorphNodeToMatcher(const std::string &opcodeName,
utils/TableGen/DAGISelMatcherEmitter.cpp
   59   std::vector<std::string> PatternPredicates;
   68   std::vector<std::string> VecIncludeStrings;
   69   MapVector<std::string, unsigned, StringMap<unsigned> > VecPatterns;
   71   unsigned getPatternIdxFromTable(std::string &&P, std::string &&include_loc) {
   71   unsigned getPatternIdxFromTable(std::string &&P, std::string &&include_loc) {
  160 static std::string GetPatFromTreePatternNode(const TreePatternNode *N) {
  161   std::string str;
  202 static std::string getIncludePath(const Record *R) {
  203   std::string str;
  621     const std::string &Val = cast<EmitStringIntegerMatcher>(N)->getValue();
  706         std::string src =
  708         std::string dst =
  711         std::string include_src = getIncludePath(PatRecord);
  783       std::string src =
  785       std::string dst =
  788       std::string include_src = getIncludePath(PatRecord);
  956       const std::string &Code = Entry.second;
  963       std::string ClassName = CGP.getSDNodeInfo(SDNode).getSDClassName();
utils/TableGen/DAGISelMatcherGen.cpp
  122     bool recordUniqueNode(ArrayRef<std::string> Names);
  267       std::string S;
  314     std::string PatternName = N->getOperator()->getName();
  464 bool MatcherGen::recordUniqueNode(ArrayRef<std::string> Names) {
  466   for (const std::string &Name : Names) {
  476     std::string WhatFor;
  477     for (const std::string &Name : Names) {
  493   for (const std::string &Name : Names)
  516   SmallVector<std::string, 4> Names;
  541         std::string Name =
  710       std::string Value = getQualifiedName(Def) + "RegClassID";
  718       std::string Value = getQualifiedName(Def);
utils/TableGen/DFAEmitter.cpp
  174   std::string S = nullptr;
  177   Action(Record *R, unsigned I, std::string S) : R(R), I(I), S(S) {}
  201   SmallVector<std::string, 4> Types;
  206   SmallVector<std::string, 4> getTypes() { return Types; }
  242   std::string TypeName;
utils/TableGen/DFAPacketizerEmitter.cpp
  111   std::string TargetName;
  126                            std::map<std::string, unsigned> &FUNameToBitsMap,
  135                            std::map<std::string, unsigned> &FUNameToBitsMap,
  142   int collectOneInsnClass(const std::string &ProcName,
  144                            std::map<std::string, unsigned> &FUNameToBitsMap,
  152   int collectAllInsnClasses(const std::string &ProcName,
  154                            std::map<std::string, unsigned> &FUNameToBitsMap,
  162                           std::string DFAName);
  203                             std::map<std::string, unsigned> &FUNameToBitsMap,
  245                             std::map<std::string, unsigned> &FUNameToBitsMap,
  269       const std::string &ComboFuncName = ComboFunc->getName();
  275         std::string FuncName = FuncList[k]->getName();
  294 int DFAPacketizerEmitter::collectOneInsnClass(const std::string &ProcName,
  296                         std::map<std::string, unsigned> &FUNameToBitsMap,
  326       std::string UnitName = UnitList[j]->getName();
  360 int DFAPacketizerEmitter::collectAllInsnClasses(const std::string &ProcName,
  362                             std::map<std::string, unsigned> &FUNameToBitsMap,
  406   std::unordered_map<std::string, std::vector<Record*>> ItinsByNamespace;
  417     std::string DFAName) {
  421   std::map<std::string, unsigned> FUNameToBitsMap;
  443     const std::string &ProcName = Proc->getName();
  532   std::string TargetAndDFAName = TargetName + DFAName;
  536   std::string SubTargetClassName = TargetName + "GenSubtargetInfo";
utils/TableGen/DisassemblerEmitter.cpp
   99                                 const std::string &PredicateNamespace,
  100                                 const std::string &GPrefix,
  101                                 const std::string &GPostfix,
  102                                 const std::string &ROK,
  103                                 const std::string &RFail, const std::string &L);
  103                                 const std::string &RFail, const std::string &L);
  139     std::string PredicateNamespace = Target.getName();
utils/TableGen/ExegesisEmitter.cpp
   59   std::string Target;
utils/TableGen/FastISelEmitter.cpp
   35   std::string Name;
   37   std::string SubRegNo;
   38   std::vector<std::string> PhysRegs;
   39   std::string PredicateCheck;
   42                   std::string SubRegNo, std::vector<std::string> PhysRegs,
   42                   std::string SubRegNo, std::vector<std::string> PhysRegs,
   43                   std::string PredicateCheck)
  309                       const std::vector<std::string> &PR) const {
  351   void PrintManglingSuffix(raw_ostream &OS, const std::vector<std::string> &PR,
  381   typedef std::map<std::string, TypeRetPredMap> OpcodeTypeRetPredMap;
  388   typedef std::multimap<std::string, bool> PredCheckMap;
  391   typedef std::map<std::string, TypeRetPredCheckMap> OpcodeTypeRetPredCheckMap;
  412                            const std::string &RetVTName);
  416 static std::string getOpcodeName(Record *Op, CodeGenDAGPatterns &CGP) {
  420 static std::string getLegalCName(std::string OpName) {
  420 static std::string getLegalCName(std::string OpName) {
  421   std::string::size_type pos = OpName.find("::");
  422   if (pos != std::string::npos)
  429 static std::string PhyRegForNode(TreePatternNode *Op,
  431   std::string PhysReg;
  490     std::string SubRegNo;
  521     std::string OpcodeName = getOpcodeName(InstPatOp, CGP);
  540     std::vector<std::string> PhysRegInputs;
  550         std::string PhysReg = PhyRegForNode(InstPatNode->getChild(i), Target);
  572     std::string ManglingSuffix;
  582     std::string PredicateCheck = Pattern.getPredicateCheck();
  635                                       const std::string &RetVTName) {
  644     std::string PredicateCheck = Memo.PredicateCheck;
  705       const std::string &Opcode = I->first;
  791         std::string TypeName = getName(VT);
  857       const std::string &Opcode = I->first;
utils/TableGen/FixedLenDecoderEmitter.cpp
   66   std::string Decoder;
   70   OperandInfo(std::string D, bool HCD)
  131   FixedLenDecoderEmitter(RecordKeeper &R, std::string PredicateNamespace,
  132                          std::string GPrefix = "if (",
  133                          std::string GPostfix = " == MCDisassembler::Fail)",
  134                          std::string ROK = "MCDisassembler::Success",
  135                          std::string RFail = "MCDisassembler::Fail",
  136                          std::string L = "")
  160   std::string PredicateNamespace;
  161   std::string GuardPrefix, GuardPostfix;
  162   std::string ReturnOK, ReturnFail;
  163   std::string Locals;
 1108   const std::string &Decoder = OpInfo.Decoder;
 1187                                      const std::string &PredicateNamespace) {
 1767 static std::string findOperandDecoderMethod(TypedInit *TI) {
 1768   std::string Decoder;
 1837   std::map<std::string, std::string> TiedNames;
 1837   std::map<std::string, std::string> TiedNames;
 1848   std::map<std::string, std::vector<OperandInfo>> NumberedInsnOperands;
 1849   std::set<std::string> NumberedInsnOperandsNoTie;
 1927       const std::string &Name = CGI.Operands[SO.first].Name;
 1933       std::string Decoder;
 2025     std::string Decoder = findOperandDecoderMethod(TI);
 2438   std::map<std::pair<std::string, unsigned>, std::vector<EncodingIDAndOpcode>>
 2463       std::string DecoderNamespace =
 2521                          const std::string &PredicateNamespace,
 2522                          const std::string &GPrefix,
 2523                          const std::string &GPostfix, const std::string &ROK,
 2523                          const std::string &GPostfix, const std::string &ROK,
 2524                          const std::string &RFail, const std::string &L) {
 2524                          const std::string &RFail, const std::string &L) {
utils/TableGen/GICombinerEmitter.cpp
   34 static cl::list<std::string>
  221   std::vector<std::pair<std::string, std::string>> Cases;
  221   std::vector<std::pair<std::string, std::string>> Cases;
  225     std::string Code;
utils/TableGen/GlobalISel/CodeExpansions.h
   20   using const_iterator = StringMap<std::string>::const_iterator;
   23   StringMap<std::string> Expansions;
   32   std::string lookup(StringRef Variable) const {
utils/TableGen/GlobalISelEmitter.cpp
   71 static cl::opt<std::string> UseCoverageFile(
   85 std::string getEnumNameForPredicate(const TreePredicateFn &Predicate) {
   93 std::string getMatchOpcodeForPredicate(const TreePredicateFn &Predicate) {
  107   std::string getCxxEnumValue() const {
  108     std::string Str;
  199 static std::string explainPredicates(const TreePatternNode *N) {
  200   std::string Explanation = "";
  278 std::string explainOperator(Record *Operator) {
  304   std::string Explanation = "";
  305   std::string Separator = "";
  384 std::string
  386   std::string Name = "GIFBS";
  430   std::string EmitStr;
  985   std::string getNoPredicateComment() const;
 1144 std::string
 1152   std::string MatchingName;
 1421   std::string PredName;
 1425                              std::string P)
 1483   std::string SymbolicName;
 1492                  const std::string &SymbolicName,
 1517   std::string getOperandExpr(unsigned InsnVarID) const {
 1531       std::string Comment;
 1637 std::string
 2043   std::string SymbolicName;
 2072   OperandMatcher &addOperand(unsigned OpIdx, const std::string &SymbolicName,
 2448   const std::string SymbolicName;
 2480   const std::string SymbolicName;
 2703   const std::string SymbolicName;
 2746   std::string S;
 4825     std::string EnumeratorSeparator =
utils/TableGen/InfoByHwMode.cpp
   26 std::string llvm::getModeName(unsigned Mode) {
utils/TableGen/InfoByHwMode.h
   33 std::string getModeName(unsigned Mode);
utils/TableGen/InstrDocsEmitter.cpp
   42 std::string escapeForRST(StringRef Str) {
   43   std::string Result;
   64   std::string Title = Target.getName();
   87         std::string AsmString =
utils/TableGen/InstrInfoEmitter.cpp
   54   typedef std::map<std::vector<std::string>, unsigned> OperandInfoMapTy;
   60                    std::vector<std::string>> OpNameMapTy;
   61   typedef std::map<std::string, unsigned>::iterator StrUintMapIter;
   85             std::map<std::string, unsigned> &Operands,
   92   std::vector<std::string> GetOperandInfo(const CodeGenInstruction &Inst);
  109 std::vector<std::string>
  111   std::vector<std::string> Result;
  138       std::string Res;
  203     std::vector<std::string> OperandInfo = GetOperandInfo(*Inst);
  209     for (const std::string &Info : OperandInfo)
  225         std::map<std::string, unsigned> &Operands,
  261   std::string OpNameNS = "OpName";
  264   std::map<std::string, unsigned> Operands;
  309       for (const std::string &Name : Entry.second)
  522   const std::string &TargetName = Target.getName();
  555   SequenceToOffsetTable<std::string> InstrNames;
  598   std::string ClassName = TargetName + "GenInstrInfo";
  737   std::vector<std::string> OperandInfo = GetOperandInfo(Inst);
utils/TableGen/IntrinsicEmitter.cpp
   30   std::string TargetPrefix;
  853   typedef std::map<std::string, std::map<std::string, std::string>> BIMTy;
  853   typedef std::map<std::string, std::map<std::string, std::string>> BIMTy;
  853   typedef std::map<std::string, std::map<std::string, std::string>> BIMTy;
  857     const std::string &BuiltinName =
  861       std::map<std::string, std::string> &BIM =
  861       std::map<std::string, std::string> &BIM =
utils/TableGen/OptParserEmitter.cpp
   90 static const std::string getOptionName(const Record &R) {
  313     for (const std::string &Pref : R.getValueAsListOfStrings("Prefixes")) {
  315       std::string S = (Pref + R.getValueAsString("Name")).str();
utils/TableGen/PredicateExpander.cpp
  218   std::string Buffer;
  246   std::string Buffer;
utils/TableGen/RISCVCompressInstEmitter.cpp
  505 static std::string mergeCondAndCode(raw_string_ostream &CondStream,
  507   std::string S;
  529   std::string Namespace = Target.getName();
  550   std::string F;
  551   std::string FH;
  585   std::string CaseString("");
  587   std::string PrevOp("");
  588   std::string CurOp("");
  593     std::string CondString;
  594     std::string CodeString;
utils/TableGen/RegisterBankEmitter.cpp
   49   std::string getEnumeratorName() const { return (TheDef.getName() + "ID").str(); }
   52   std::string getCoverageArrayName() const {
  184     std::string TmpKind =
  203         std::string TmpKind2 = (Twine(TmpKind) + " " + RC->getName() +
  230         std::string QualifiedRegClassID =
  243     std::string QualifiedBankID =
utils/TableGen/RegisterInfoEmitter.cpp
   92                            const std::string &ClassName);
   94                                 const std::string &ClassName);
   96                                       const std::string &ClassName);
  173     std::string Namespace = SubRegIndices.front().getNamespace();
  195                     const std::string &ClassName) {
  537       std::string Tmp;
  568       std::string Tmp;
  694                                               const std::string &ClName) {
  764                                                     const std::string &ClName) {
  894   SequenceToOffsetTable<std::string> RegStrings;
  966   const std::string &TargetName = Target.getName();
 1034   SequenceToOffsetTable<std::string> RegClassStrings;
 1041     const std::string &Name = RC.getName();
 1137   const std::string &TargetName = Target.getName();
 1138   std::string ClassName = TargetName + "GenRegisterInfo";
 1185       const std::string &Name = RC.getName();
 1433   const std::string &TargetName = Target.getName();
 1448   std::string ClassName = Target.getName().str() + "GenRegisterInfo";
utils/TableGen/SearchableTableEmitter.cpp
   46   std::string Name;
   48   std::string PreprocessorGuard;
   54   std::string Name;
   64   std::string Name;
   70   std::string Name;
   71   std::string PreprocessorGuard;
   72   std::string CppTypeName;
   93   std::set<std::string> PreprocessorGuards;
  109   std::string primaryRepresentation(const GenericField &Field, Init *I) {
  147   std::string searchableFieldType(const GenericField &Field, TypeContext Ctx) {
  257       std::string LHSs = primaryRepresentation(Field, LHSI);
  258       std::string RHSs = primaryRepresentation(Field, RHSI);
  343         std::string Repr =
  387     std::string FirstRepr =
  389     std::string LastRepr = primaryRepresentation(
  752       std::string FieldName = Field.getName();
  756       if (FieldName.find(':') != std::string::npos ||
  768       std::string Name =
utils/TableGen/SubtargetEmitter.cpp
   51     std::vector<std::string> WriterNames;
   74   std::string Target;
   81   void FormItineraryStageString(const std::string &Names,
   82                                 Record *ItinData, std::string &ItinString,
   84   void FormItineraryOperandCycleString(Record *ItinData, std::string &ItinString,
   86   void FormItineraryBypassString(const std::string &Names,
   88                                  std::string &ItinString, unsigned NOperandCycles);
  118   void EmitSchedModelHelpers(const std::string &ClassName, raw_ostream &OS);
  125   void EmitHwModeCheck(const std::string &ClassName, raw_ostream &OS);
  278     const std::string &ProcModelName =
  294 void SubtargetEmitter::FormItineraryStageString(const std::string &Name,
  296                                                 std::string &ItinString,
  339                          std::string &ItinString, unsigned &NOperandCycles) {
  355 void SubtargetEmitter::FormItineraryBypassString(const std::string &Name,
  357                                                  std::string &ItinString,
  419   std::string StageTable = "\nextern const llvm::InstrStage " + Target +
  424   std::string OperandCycleTable = "extern const unsigned " + Target +
  429   std::string BypassTable = "extern const unsigned " + Target +
  437   std::map<std::string, unsigned> ItinStageMap, ItinOperandMap;
  460       std::string ItinStageString;
  466       std::string ItinOperandCycleString;
  468       std::string ItinBypassString;
  496         std::string ItinOperandString = ItinOperandCycleString+ItinBypassString;
  501           std::string OperandIdxComment = itostr(OperandCycleCount);
 1066     std::vector<std::string> WriterNames;
 1215             std::string::npos) {
 1430   std::string Buffer;
 1448   std::string Buffer;
 1632 void SubtargetEmitter::EmitSchedModelHelpers(const std::string &ClassName,
 1663 void SubtargetEmitter::EmitHwModeCheck(const std::string &ClassName,
 1771   std::string ClassPrefix = Target + "MCInstrAnalysis";
 1859   std::string ClassName = Target + "GenSubtargetInfo";
utils/TableGen/SubtargetFeatureInfo.cpp
   74   std::vector<std::string> Names;
  122     std::string CondStorage =
utils/TableGen/SubtargetFeatureInfo.h
   38   std::string getEnumName() const {
   44   std::string getEnumBitName() const {
utils/TableGen/TableGen.cpp
  133 cl::opt<std::string> Class("class", cl::desc("Print Enum list for this class"),
utils/TableGen/WebAssemblyDisassemblerEmitter.cpp
   94   std::vector<std::string> OperandTable, CurOperandList;
utils/TableGen/X86DisassemblerShared.h
   21   std::string name;
utils/TableGen/X86DisassemblerTables.cpp
 1009   std::string s1;
 1010   std::string s2;
utils/TableGen/X86RecognizableInstr.cpp
   57 static uint8_t byteFromRec(const Record* rec, const std::string &name) {
  368                                         (const std::string&,
  825 OperandType RecognizableInstr::typeFromString(const std::string &s,
  962 RecognizableInstr::immediateEncodingFromString(const std::string &s,
  999 RecognizableInstr::rmRegisterEncodingFromString(const std::string &s,
 1037 RecognizableInstr::roRegisterEncodingFromString(const std::string &s,
 1083 RecognizableInstr::vvvvRegisterEncodingFromString(const std::string &s,
 1114 RecognizableInstr::writemaskRegisterEncodingFromString(const std::string &s,
 1128 RecognizableInstr::memoryEncodingFromString(const std::string &s,
 1167 RecognizableInstr::relocationEncodingFromString(const std::string &s,
 1216 RecognizableInstr::opcodeModifierEncodingFromString(const std::string &s,
utils/TableGen/X86RecognizableInstr.h
  208   std::string Name;
  241   static OperandType typeFromString(const std::string& s,
  252   static OperandEncoding immediateEncodingFromString(const std::string &s,
  257   static OperandEncoding rmRegisterEncodingFromString(const std::string &s,
  262   static OperandEncoding roRegisterEncodingFromString(const std::string &s,
  264   static OperandEncoding memoryEncodingFromString(const std::string &s,
  266   static OperandEncoding relocationEncodingFromString(const std::string &s,
  268   static OperandEncoding opcodeModifierEncodingFromString(const std::string &s,
  270   static OperandEncoding vvvvRegisterEncodingFromString(const std::string &s,
  272   static OperandEncoding writemaskRegisterEncodingFromString(const std::string &s,
  302                        (const std::string&,
utils/benchmark/include/benchmark/benchmark.h
  385 typedef std::map<std::string, Counter> UserCounters;
  407   std::string name_;
  410   Statistics(std::string name, StatisticsFunc* compute)
  571   void BENCHMARK_ALWAYS_INLINE SetLabel(const std::string& str) {
  790   Benchmark* ArgName(const std::string& name);
  794   Benchmark* ArgNames(const std::vector<std::string>& names);
  863   Benchmark* ComputeStatistics(std::string name, StatisticsFunc* statistics);
  910   std::string name_;
  912   std::vector<std::string> arg_names_;   // Args for all benchmark runs
 1239     std::string type;
 1289     std::string benchmark_name;
 1290     std::string report_label;  // Empty if not set by benchmark.
 1292     std::string error_message;
 1439   std::set< std::string > user_counter_names_;
utils/benchmark/src/benchmark.cc
  444     std::string const& name, ConsoleReporter::OutputOptions output_opts) {
  495   std::string spec = FLAGS_benchmark_filter;
  511   std::string const& fname = FLAGS_benchmark_out;
utils/benchmark/src/benchmark_api_internal.h
   17   std::string name;
   36 bool FindBenchmarksInternal(const std::string& re,
utils/benchmark/src/benchmark_register.cc
   80   bool FindBenchmarks(std::string re,
  110     std::string spec, std::vector<Benchmark::Instance>* benchmarks,
  115   std::string error_msg;
  227 bool FindBenchmarksInternal(const std::string& re,
  312 Benchmark* Benchmark::ArgName(const std::string& name) {
  318 Benchmark* Benchmark::ArgNames(const std::vector<std::string>& names) {
  401 Benchmark* Benchmark::ComputeStatistics(std::string name,
utils/benchmark/src/colorprint.cc
   85 std::string FormatString(const char* msg, va_list args) {
  113 std::string FormatString(const char* msg, ...) {
utils/benchmark/src/colorprint.h
   20 std::string FormatString(const char* msg, va_list args);
   21 std::string FormatString(const char* msg, ...);
utils/benchmark/src/commandlineflags.cc
   27 bool ParseInt32(const std::string& src_text, const char* str, int32_t* value) {
   61 bool ParseDouble(const std::string& src_text, const char* str, double* value) {
   81 static std::string FlagToEnvVar(const char* flag) {
   82   const std::string flag_str(flag);
   84   std::string env_var;
   96   const std::string env_var = FlagToEnvVar(flag);
  106   const std::string env_var = FlagToEnvVar(flag);
  126   const std::string env_var = FlagToEnvVar(flag);
  142   const std::string flag_str = std::string("--") + std::string(flag);
  197 bool ParseStringFlag(const char* str, const char* flag, std::string* value) {
  212 bool IsTruthyFlagValue(const std::string& value) {
utils/benchmark/src/commandlineflags.h
   29 bool ParseInt32(const std::string& src_text, const char* str, int32_t* value);
   68 bool ParseStringFlag(const char* str, const char* flag, std::string* value);
   76 bool IsTruthyFlagValue(const std::string& value);
utils/benchmark/src/complexity.cc
   47 std::string GetBigOString(BigO complexity) {
  182   std::string benchmark_name =
utils/benchmark/src/complexity.h
   51 std::string GetBigOString(BigO complexity);
utils/benchmark/src/console_reporter.cc
   56   std::string str = FormatString("%-*s %13s %13s %10s", static_cast<int>(name_field_width_),
   68   std::string line = std::string(str.length(), '-');
  118   std::string rate;
  124   std::string items;
  134     std::string big_o = GetBigOString(result.complexity);
utils/benchmark/src/csv_reporter.cc
   34 std::vector<std::string> elements = {
   91   std::string name = run.benchmark_name;
   97     std::string msg = run.error_message;
  131     std::string label = run.report_label;
utils/benchmark/src/json_reporter.cc
   34 std::string FormatKV(std::string const& key, std::string const& value) {
   34 std::string FormatKV(std::string const& key, std::string const& value) {
   34 std::string FormatKV(std::string const& key, std::string const& value) {
   38 std::string FormatKV(std::string const& key, const char* value) {
   38 std::string FormatKV(std::string const& key, const char* value) {
   42 std::string FormatKV(std::string const& key, bool value) {
   42 std::string FormatKV(std::string const& key, bool value) {
   46 std::string FormatKV(std::string const& key, int64_t value) {
   46 std::string FormatKV(std::string const& key, int64_t value) {
   52 std::string FormatKV(std::string const& key, double value) {
   52 std::string FormatKV(std::string const& key, double value) {
   71   std::string inner_indent(2, ' ');
   75   std::string indent(4, ' ');
   77   std::string walltime_value = LocalDateTimeString();
   96   std::string cache_indent(8, ' ');
  131   std::string indent(4, ' ');
  155   std::string indent(6, ' ');
utils/benchmark/src/re.h
   66   bool Init(const std::string& spec, std::string* error);
   66   bool Init(const std::string& spec, std::string* error);
   69   bool Match(const std::string& str);
   85 inline bool Regex::Init(const std::string& spec, std::string* error) {
   85 inline bool Regex::Init(const std::string& spec, std::string* error) {
  105 inline bool Regex::Match(const std::string& str) {
utils/benchmark/src/statistics.cc
  111   std::map< std::string, CounterStat > counter_stats;
  143   std::string report_label = reports[0].report_label;
utils/benchmark/src/string_util.cc
   31                            double one_k, std::string* mantissa,
   86 std::string ExponentToPrefix(int64_t exponent, bool iec) {
  100 std::string ToBinaryStringFullySpecified(double value, double threshold,
  102   std::string mantissa;
  111 void AppendHumanReadable(int n, std::string* str) {
  118 std::string HumanReadableNumber(double n, double one_k) {
  125 std::string StrFormatImp(const char* msg, va_list args) {
  155 std::string StrFormat(const char* format, ...) {
  158   std::string tmp = StrFormatImp(format, args);
  163 void ReplaceAll(std::string* str, const std::string& from,
  163 void ReplaceAll(std::string* str, const std::string& from,
  164                 const std::string& to) {
  166   while ((start = str->find(from, start)) != std::string::npos) {
utils/benchmark/src/string_util.h
   11 void AppendHumanReadable(int n, std::string* str);
   13 std::string HumanReadableNumber(double n, double one_k = 1024.0);
   15 std::string StrFormat(const char* format, ...);
   29 inline std::string StrCat(Args&&... args) {
   35 void ReplaceAll(std::string* str, const std::string& from,
   35 void ReplaceAll(std::string* str, const std::string& from,
   36                 const std::string& to);
utils/benchmark/src/sysinfo.cc
  199 bool ReadFromFile(std::string const& fname, ArgT* arg) {
  214   std::string res;
  216     std::string governor_file =
  224 int CountSetBitsInCPUMap(std::string Val) {
  233   while ((Pos = Val.find(',')) != std::string::npos) {
  246   std::string dir = "/sys/devices/system/cpu/cpu0/cache/";
  250     std::string FPath = StrCat(dir, "index", Idx++, "/");
  253     std::string suffix;
  271     std::string map_str;
  399   const std::string Key = "processor";
  400   std::string ln;
  404     std::string value;
  405     if (SplitIdx != std::string::npos) value = ln.substr(SplitIdx + 1);
  471   std::string ln;
  475     std::string value;
  476     if (SplitIdx != std::string::npos) value = ln.substr(SplitIdx + 1);
utils/benchmark/src/thread_manager.h
   48     std::string report_label_;
   49     std::string error_message_;
utils/benchmark/src/timers.cc
  183 std::string DateTimeString(bool local) {
  215 std::string LocalDateTimeString() { return DateTimeString(true); }
utils/benchmark/src/timers.h
   44 std::string LocalDateTimeString();
utils/not/not.cpp
   46   std::string ErrMsg;
utils/unittest/googlemock/src/gmock-spec-builders.cc
  531   ::std::string first_used_test_case;
  532   ::std::string first_used_test;
utils/unittest/googlemock/src/gmock.cc
   65   const std::string flag_str = std::string("--gmock_") + flag;
  135     const std::string arg_string = StreamableToString(argv[i]);
utils/unittest/googletest/include/gtest/gtest-message.h
  197   std::string GetString() const;
  244 std::string StreamableToString(const T& streamable) {
utils/unittest/googletest/include/gtest/gtest-printers.h
  276   static ::std::string Format(const ToPrint& value) {
  285   static ::std::string Format(const ToPrint* value) {
  350 std::string FormatForComparisonFailureMessage(
  565 GTEST_API_ void PrintStringTo(const ::std::string&s, ::std::ostream* os);
  566 inline void PrintTo(const ::std::string& s, ::std::ostream* os) {
  981 ::std::string PrintToString(const T& value) {
utils/unittest/googletest/include/gtest/gtest-test-part.h
  107   static std::string ExtractSummary(const char* message);
  111   std::string file_name_;
  115   std::string summary_;  // The test failure summary.
  116   std::string message_;  // The test failure message.
utils/unittest/googletest/include/gtest/gtest.h
  165                                     const std::string& message);
  322       message_.reset(new ::std::string);
  335   internal::scoped_ptr< ::std::string> message_;
  422   static void RecordProperty(const std::string& key, const std::string& value);
  422   static void RecordProperty(const std::string& key, const std::string& value);
  423   static void RecordProperty(const std::string& key, int value);
  491   TestProperty(const std::string& a_key, const std::string& a_value) :
  491   TestProperty(const std::string& a_key, const std::string& a_value) :
  506   void SetValue(const std::string& new_value) {
  512   std::string key_;
  514   std::string value_;
  592   void RecordProperty(const std::string& xml_element,
  598   static bool ValidateTestProperty(const std::string& xml_element,
  728   TestInfo(const std::string& test_case_name,
  729            const std::string& name,
  751   const std::string test_case_name_;     // Test case name
  752   const std::string name_;               // Test name
  755   const internal::scoped_ptr<const ::std::string> type_param_;
  758   const internal::scoped_ptr<const ::std::string> value_param_;
  931   std::string name_;
  934   const internal::scoped_ptr<const ::std::string> type_param_;
 1271                          const std::string& message,
 1272                          const std::string& os_stack_trace)
 1280   void RecordProperty(const std::string& key, const std::string& value);
 1280   void RecordProperty(const std::string& key, const std::string& value);
 1301       const std::string& message);
 1607     const ::std::string& needle, const ::std::string& haystack);
 1607     const ::std::string& needle, const ::std::string& haystack);
 1610     const ::std::string& needle, const ::std::string& haystack);
 1610     const ::std::string& needle, const ::std::string& haystack);
 1696     std::string const message;
utils/unittest/googletest/include/gtest/internal/custom/gtest-printers.h
   61   *OS << ::testing::PrintToString(std::string(S.data(), S.size()));
utils/unittest/googletest/include/gtest/internal/gtest-death-test-internal.h
  130   static void set_last_death_test_message(const std::string& message);
  134   static std::string last_death_test_message_;
  234   InternalRunDeathTestFlag(const std::string& a_file,
  246   const std::string& file() const { return file_; }
  252   std::string file_;
utils/unittest/googletest/include/gtest/internal/gtest-filepath.h
   64   explicit FilePath(const std::string& pathname) : pathname_(pathname) {
   77   const std::string& string() const { return pathname_; }
  200   std::string pathname_;
utils/unittest/googletest/include/gtest/internal/gtest-internal.h
   94 ::std::string PrintToString(const T& value);
  137 GTEST_API_ std::string AppendUserMessage(
  138     const std::string& gtest_msg, const Message& user_msg);
  186     const std::vector<std::string>& left,
  187     const std::vector<std::string>& right);
  190 GTEST_API_ std::string CreateUnifiedDiff(const std::vector<std::string>& left,
  190 GTEST_API_ std::string CreateUnifiedDiff(const std::vector<std::string>& left,
  191                                          const std::vector<std::string>& right,
  200 GTEST_API_ std::string DiffStrings(const std::string& left,
  200 GTEST_API_ std::string DiffStrings(const std::string& left,
  201                                    const std::string& right,
  221                                      const std::string& expected_value,
  222                                      const std::string& actual_value,
  226 GTEST_API_ std::string GetBoolAssertionFailureMessage(
  569   bool TestExists(const std::string& test_name) const {
  573   const CodeLocation& GetCodeLocation(const std::string& test_name) const {
  586   typedef ::std::map<std::string, CodeLocation> RegisteredTestsMap;
  605 inline std::string GetPrefixUntilComma(const char* str) {
  612 void SplitString(const ::std::string& str, char delimiter,
  613                  ::std::vector< ::std::string>* dest);
  678     std::string test_name = StripTrailingSpaces(
  726 GTEST_API_ std::string GetCurrentOsStackTraceExceptTop(
utils/unittest/googletest/include/gtest/internal/gtest-param-util.h
   71   std::string operator()(const TestParamInfo<ParamType>& info) const {
  377 std::string DefaultParamName(const TestParamInfo<ParamType>& info) {
  395   typedef std::string Type(const TestParamInfo<ParamType>&);
  565         std::set<std::string> test_param_names;
  571           std::string param_name = name_func(
  621       InstantiationInfo(const std::string &name_in,
  632       std::string name;
  640   static bool IsValidParamName(const std::string& name) {
  646     for (std::string::size_type index = 0; index < name.size(); ++index) {
utils/unittest/googletest/include/gtest/internal/gtest-port.h
 1106 typedef ::std::string string;
 1172   RE(const ::std::string& regex) { Init(regex.c_str()); }  // NOLINT
 1193   static bool FullMatch(const ::std::string& str, const RE& re) {
 1196   static bool PartialMatch(const ::std::string& str, const RE& re) {
 1239 GTEST_API_ ::std::string FormatFileLocation(const char* file, int line);
 1244 GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(const char* file,
 1424 GTEST_API_ std::string GetCapturedStdout();
 1426 GTEST_API_ std::string GetCapturedStderr();
 1431 GTEST_API_ std::string TempDir();
 1437 GTEST_API_ std::string ReadEntireFile(FILE* file);
 2293 inline std::string StripTrailingSpaces(std::string str) {
 2293 inline std::string StripTrailingSpaces(std::string str) {
 2294   std::string::iterator it = str.end();
 2558 std::string StringFromGTestEnv(const char* flag, const char* default_val);
utils/unittest/googletest/include/gtest/internal/gtest-string.h
  108   static std::string ShowWideCString(const wchar_t* wide_c_str);
  145       const std::string& str, const std::string& suffix);
  145       const std::string& str, const std::string& suffix);
  148   static std::string FormatIntWidth2(int value);  // "%02d" for width == 2
  151   static std::string FormatHexInt(int value);
  154   static std::string FormatByte(unsigned char value);
  162 GTEST_API_ std::string StringStreamToString(::std::stringstream* stream);
utils/unittest/googletest/include/gtest/internal/gtest-type-util.h
   64 std::string GetTypeName() {
utils/unittest/googletest/src/gtest-death-test.cc
  193 static std::string ExitSummary(int exit_code) {
  228 static std::string DeathTestThreadWarning(size_t thread_count) {
  262 void DeathTestAbort(const std::string& message) {
  315 std::string GetLastErrnoDescription() {
  366 void DeathTest::set_last_death_test_message(const std::string& message) {
  370 std::string DeathTest::last_death_test_message_;
  504 static ::std::string FormatDeathTestOutput(const ::std::string& output) {
  504 static ::std::string FormatDeathTestOutput(const ::std::string& output) {
  505   ::std::string ret;
  509     if (line_end == ::std::string::npos) {
  545   const std::string error_message = GetCapturedStderr();
 1136   const std::string filter_flag =
 1139   const std::string internal_flag =
 1301   ::std::vector< ::std::string> fields;
utils/unittest/googletest/src/gtest-filepath.cc
  125   const std::string dot_extension = std::string(".") + extension;
  168   std::string dir;
  187   std::string file;
utils/unittest/googletest/src/gtest-internal-inl.h
  119 GTEST_API_ std::string FormatTimeInMillisAsSeconds(TimeInMillis ms);
  125 GTEST_API_ std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms);
  211   std::string color_;
  212   std::string death_test_style_;
  214   std::string filter_;
  215   std::string internal_run_death_test_;
  217   std::string output_;
  223   std::string stream_result_to_;
  233 GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);
  248 GTEST_API_ std::string WideStringToUtf8(const wchar_t* str, int num_chars);
  352   explicit TestPropertyKeyIs(const std::string& key) : key_(key) {}
  360   std::string key_;
  378   static std::string GetOutputFormat();
  383   static std::string GetAbsolutePathToOutputFile();
  396   static bool FilterMatchesTest(const std::string &test_case_name,
  397                                 const std::string &test_name);
  410   static bool MatchesFilter(const std::string& name, const char* filter);
  460   std::string message;
  621   std::string CurrentOsStackTraceExceptTop(int skip_count) GTEST_NO_INLINE_;
  960 GTEST_API_ std::string GetLastErrnoDescription();
  967 bool ParseNaturalNumber(const ::std::string& str, Integer* number) {
 1017                              const std::string& xml_element,
utils/unittest/googletest/src/gtest-port.cc
   97   std::string dummy;
  880 GTEST_API_ ::std::string FormatFileLocation(const char* file, int line) {
  881   const std::string file_name(file == NULL ? kUnknownFile : file);
  898 GTEST_API_ ::std::string FormatCompilerIndependentFileLocation(
  900   const std::string file_name(file == NULL ? kUnknownFile : file);
  988   std::string GetCapturedString() {
  998     const std::string content = ReadEntireFile(file);
 1007   ::std::string filename_;
 1027 std::string GetCapturedStream(CapturedStream** captured_stream) {
 1028   const std::string content = (*captured_stream)->GetCapturedString();
 1047 std::string GetCapturedStdout() {
 1052 std::string GetCapturedStderr() {
 1058 std::string TempDir() {
 1081 std::string ReadEntireFile(FILE* file) {
 1097   const std::string content(buffer, bytes_read);
 1134 static std::string FlagToEnvVar(const char* flag) {
 1135   const std::string full_flag =
 1195   const std::string env_var = FlagToEnvVar(flag);
 1208   const std::string env_var = FlagToEnvVar(flag);
 1229 std::string StringFromGTestEnv(const char* flag, const char* default_value) {
 1233   const std::string env_var = FlagToEnvVar(flag);
utils/unittest/googletest/src/gtest-printers.cc
  354 void PrintStringTo(const ::std::string& s, ostream* os) {
utils/unittest/googletest/src/gtest-test-part.cc
   51 std::string TestPartResult::ExtractSummary(const char* message) {
utils/unittest/googletest/src/gtest-typed-test.cc
   48 static std::vector<std::string> SplitIntoTestNames(const char* src) {
   49   std::vector<std::string> name_vec;
   65   std::vector<std::string> name_vec = SplitIntoTestNames(registered_tests);
   69   std::set<std::string> tests;
   70   for (std::vector<std::string>::const_iterator name_it = name_vec.begin();
   72     const std::string& name = *name_it;
  104   const std::string& errors_str = errors.GetString();
utils/unittest/googletest/src/gtest.cc
  414 std::string UnitTestOptions::GetOutputFormat() {
  426 std::string UnitTestOptions::GetAbsolutePathToOutputFile() {
  480     const std::string& name, const char* filter) {
  502 bool UnitTestOptions::FilterMatchesTest(const std::string &test_case_name,
  503                                         const std::string &test_name) {
  504   const std::string& full_name = test_case_name + "." + test_name.c_str();
  510   std::string positive;
  511   std::string negative;
  637   const std::string expected(type == TestPartResult::kFatalFailure ?
  796 std::string UnitTestImpl::CurrentOsStackTraceExceptTop(int skip_count) {
  922 void SplitString(const ::std::string& str, char delimiter,
  923                  ::std::vector< ::std::string>* dest) {
  924   ::std::vector< ::std::string> parsed;
  925   ::std::string::size_type pos = 0;
  927     const ::std::string::size_type colon = str.find(delimiter, pos);
  928     if (colon == ::std::string::npos) {
  981 std::string Message::GetString() const {
  990                new ::std::string(*other.message_) :
 1090   size_t GetId(const std::string& str) {
 1098   typedef std::map<std::string, size_t> IdMap;
 1105     const std::vector<std::string>& left,
 1106     const std::vector<std::string>& right) {
 1203 std::string CreateUnifiedDiff(const std::vector<std::string>& left,
 1203 std::string CreateUnifiedDiff(const std::vector<std::string>& left,
 1204                               const std::vector<std::string>& right,
 1272 std::vector<std::string> SplitEscapedString(const std::string& str) {
 1272 std::vector<std::string> SplitEscapedString(const std::string& str) {
 1273   std::vector<std::string> lines;
 1314                           const std::string& lhs_value,
 1315                           const std::string& rhs_value,
 1332     const std::vector<std::string> lhs_lines =
 1334     const std::vector<std::string> rhs_lines =
 1346 std::string GetBoolAssertionFailureMessage(
 1632     const ::std::string& needle, const ::std::string& haystack) {
 1632     const ::std::string& needle, const ::std::string& haystack) {
 1638     const ::std::string& needle, const ::std::string& haystack) {
 1638     const ::std::string& needle, const ::std::string& haystack) {
 1759 std::string CodePointToUtf8(UInt32 code_point) {
 1823 std::string WideStringToUtf8(const wchar_t* str, int num_chars) {
 1848 std::string String::ShowWideCString(const wchar_t * wide_c_str) {
 1950     const std::string& str, const std::string& suffix) {
 1950     const std::string& str, const std::string& suffix) {
 1959 std::string String::FormatIntWidth2(int value) {
 1966 std::string String::FormatHexInt(int value) {
 1973 std::string String::FormatByte(unsigned char value) {
 1982 std::string StringStreamToString(::std::stringstream* ss) {
 1983   const ::std::string& str = ss->str();
 1987   std::string result;
 2001 std::string AppendUserMessage(const std::string& gtest_msg,
 2001 std::string AppendUserMessage(const std::string& gtest_msg,
 2004   const std::string user_msg_string = user_msg.GetString();
 2057 void TestResult::RecordProperty(const std::string& xml_element,
 2108 std::vector<std::string> ArrayAsVector(const char* const (&array)[kSize]) {
 2109   return std::vector<std::string>(array, array + kSize);
 2112 static std::vector<std::string> GetReservedAttributesForElement(
 2113     const std::string& xml_element) {
 2127 static std::string FormatWordList(const std::vector<std::string>& words) {
 2127 static std::string FormatWordList(const std::vector<std::string>& words) {
 2141 bool ValidateTestPropertyName(const std::string& property_name,
 2142                               const std::vector<std::string>& reserved_names) {
 2155 bool TestResult::ValidateTestProperty(const std::string& xml_element,
 2237 void Test::RecordProperty(const std::string& key, const std::string& value) {
 2237 void Test::RecordProperty(const std::string& key, const std::string& value) {
 2242 void Test::RecordProperty(const std::string& key, int value) {
 2251                                     const std::string& message) {
 2501 TestInfo::TestInfo(const std::string& a_test_case_name,
 2502                    const std::string& a_name,
 2510       type_param_(a_type_param ? new std::string(a_type_param) : NULL),
 2511       value_param_(a_value_param ? new std::string(a_value_param) : NULL),
 2607   std::string name_;
 2724       type_param_(a_type_param ? new std::string(a_type_param) : NULL),
 2809 static std::string FormatCountableNoun(int count,
 2817 static std::string FormatTestCount(int test_count) {
 2822 static std::string FormatTestCaseCount(int test_case_count) {
 2850 static std::string PrintTestPartResultToString(
 2861   const std::string& result =
 3099   const std::string counts =
 3152   const std::string counts =
 3371   static std::string EscapeXml(const std::string& str, bool is_attribute);
 3371   static std::string EscapeXml(const std::string& str, bool is_attribute);
 3374   static std::string RemoveInvalidXmlCharacters(const std::string& str);
 3374   static std::string RemoveInvalidXmlCharacters(const std::string& str);
 3377   static std::string EscapeXmlAttribute(const std::string& str) {
 3377   static std::string EscapeXmlAttribute(const std::string& str) {
 3382   static std::string EscapeXmlText(const char* str) {
 3389                                  const std::string& element_name,
 3390                                  const std::string& name,
 3391                                  const std::string& value);
 3413   static std::string TestPropertiesAsXmlAttributes(const TestResult& result);
 3416   const std::string output_file_;
 3476 std::string XmlUnitTestResultPrinter::EscapeXml(
 3477     const std::string& str, bool is_attribute) {
 3522 std::string XmlUnitTestResultPrinter::RemoveInvalidXmlCharacters(
 3523     const std::string& str) {
 3524   std::string output;
 3526   for (std::string::const_iterator it = str.begin(); it != str.end(); ++it)
 3550 std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) {
 3574 std::string FormatEpochTimeInMillisAsIso8601(TimeInMillis ms) {
 3609     const std::string& element_name,
 3610     const std::string& name,
 3611     const std::string& value) {
 3612   const std::vector<std::string>& allowed_names =
 3629   const std::string kTestcase = "testcase";
 3677   const std::string kTestsuite = "testsuite";
 3703   const std::string kTestsuites = "testsuites";
 3741 std::string XmlUnitTestResultPrinter::TestPropertiesAsXmlAttributes(
 4112     const std::string& message,
 4113     const std::string& os_stack_trace) GTEST_LOCK_EXCLUDED_(mutex_) {
 4175 void UnitTest::RecordProperty(const std::string& key,
 4176                               const std::string& value) {
 4373   std::string xml_element;
 4401   const std::string& output_format = UnitTestOptions::GetOutputFormat();
 4416   const std::string& target = GTEST_FLAG(stream_result_to);
 4419     if (pos != std::string::npos) {
 4478   explicit TestCaseNameIs(const std::string& name)
 4487   std::string name_;
 4803     const std::string &test_case_name = test_case->name();
 4808       const std::string test_name(test_info->name());
 4973 std::string GetCurrentOsStackTraceExceptTop(UnitTest* /*unit_test*/,
 5022   const std::string flag_str = std::string("--") + GTEST_FLAG_PREFIX_ + flag;
 5087 bool ParseStringFlag(const char* str, const char* flag, std::string* value) {
 5253 void LoadFlagsFromFile(const std::string& path) {
 5262   std::string contents(ReadEntireFile(flagfile));
 5264   std::vector<std::string> lines;
 5281     const std::string arg_string = StreamableToString(argv[i]);
utils/yaml-bench/YAMLBench.cpp
   40 static cl::opt<std::string>
   71 static std::string prettyTag(yaml::Node *N) {
   72   std::string Tag = N->getVerbatimTag();
   74     std::string Ret = "!!";
   78   std::string Ret = "!<";
  176 static std::string createJSONText(size_t MemoryMB, unsigned ValueSize) {
  177   std::string JSONText;