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);