Home
last modified time | relevance | path

Searched refs:FormatString (Results 1 – 25 of 31) sorted by relevance

12

/llvm-project/polly/lib/CodeGen/
H A DRuntimeDebugBuilder.cpp64 std::string FormatString; in prepareValuesForPrinting() local
92 FormatString += "%f"; in prepareValuesForPrinting()
94 FormatString += "%ld"; in prepareValuesForPrinting()
96 FormatString += "%s"; in prepareValuesForPrinting()
101 return std::make_tuple(FormatString, ValuesToPrint); in prepareValuesForPrinting()
107 std::string FormatString; in createCPUPrinterT() local
110 std::tie(FormatString, ValuesToPrint) = in createCPUPrinterT()
113 createPrintF(Builder, FormatString, ValuesToPrint); in createCPUPrinterT()
134 Value *FormatString = Builder.CreateGlobalString(Format); in createPrintF() local
137 Arguments.push_back(FormatString); in createPrintF()
[all...]
/llvm-project/third-party/benchmark/src/
H A Dcolorprint.cc85 std::string FormatString(const char* msg, va_list args) { in FormatString() function
113 std::string FormatString(const char* msg, ...) { in FormatString() function
116 auto tmp = FormatString(msg, args); in FormatString()
146 out << FormatString(fmt, args); in ColorPrintf()
153 if (color_code) out << FormatString("\033[0;3%sm", color_code); in ColorPrintf()
154 out << FormatString(fmt, args) << "\033[m"; in ColorPrintf()
H A Dconsole_reporter.cc63 FormatString("%-*s %13s %15s %12s", static_cast<int>(name_field_width_), in PrintHeader()
68 str += FormatString(" %10s", c.first.c_str()); in PrintHeader()
104 out << FormatString(fmt, args); in IgnoreColorPrint()
114 return FormatString("%10.3f", time); in FormatTime()
117 return FormatString("%10.2f", time); in FormatTime()
120 return FormatString("%10.1f", time); in FormatTime()
125 return FormatString("%1.4e", time); in FormatTime()
127 return FormatString("%10.0f", time); in FormatTime()
H A Dcolorprint.h20 std::string FormatString(const char* msg, va_list args);
21 std::string FormatString(const char* msg, ...);
/llvm-project/libcxx/test/std/utilities/format/format.syn/
H A Druntime_format_string.pass.cpp56 using FormatString = decltype(format_string); in main() typedef
57 LIBCPP_ASSERT((std::same_as<FormatString, std::__runtime_format_string<char>>)); in main()
58 test_properties<FormatString, char>(); in main()
/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DDiagnostics.cpp141 static void formatErrorString(StringRef FormatString, in formatErrorString() argument
144 while (!FormatString.empty()) { in formatErrorString()
145 std::pair<StringRef, StringRef> Pieces = FormatString.split("$"); in formatErrorString()
150 FormatString = Pieces.second.drop_front(); in formatErrorString()
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_flag_parser.h37 inline bool FormatString(char *buffer, uptr size, const char *str_to_use) { in FormatString() function
79 return FormatString(buffer, size, *t_ ? "true" : "false"); in Format()
112 return FormatString(buffer, size, *t_); in Format()
H A Dsanitizer_flags.cpp106 return FormatString(buffer, size, original_path_); in Format()
/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFTypeUnit.cpp33 << ", format = " << dwarf::FormatString(getFormat()) in dump()
H A DDWARFCompileUnit.cpp24 << ", format = " << dwarf::FormatString(getFormat()) in dump()
H A DDWARFDebugPubTable.cpp97 OS << ", format = " << dwarf::FormatString(S.Format); in dump()
H A DDWARFListTable.cpp85 << ", format = " << dwarf::FormatString(Format) in dump()
H A DDWARFDebugArangeSet.cpp169 << "format = " << dwarf::FormatString(HeaderData.Format) << ", " in dump()
H A DDWARFDebugAddr.cpp143 << ", format = " << dwarf::FormatString(Format) in dump()
H A DDWARFDebugMacro.cpp35 << ", format = " << FormatString(getDwarfFormat()); in dumpMacroHeader()
H A DDWARFDebugFrame.cpp988 << " Format: " << FormatString(IsDWARF64) << "\n"; in dump()
1035 OS << " Format: " << FormatString(IsDWARF64) << "\n"; in dumpDataAux()
/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCheckSecuritySyntaxOnly.cpp784 auto FormatString = in checkDeprecatedOrUnsafeBufferHandling() local
786 if (FormatString && !FormatString->getString().contains("%s") && in checkDeprecatedOrUnsafeBufferHandling()
787 !FormatString->getString().contains("%[")) in checkDeprecatedOrUnsafeBufferHandling()
/llvm-project/llvm/lib/BinaryFormat/
H A DDwarf.cpp868 StringRef llvm::dwarf::FormatString(DwarfFormat Format) { in FormatString() function in llvm::dwarf
878 StringRef llvm::dwarf::FormatString(bool IsDWARF64) { in FormatString() function in llvm::dwarf
879 return FormatString(IsDWARF64 ? DWARF64 : DWARF32); in FormatString()
/llvm-project/clang/lib/AST/
H A DCMakeLists.txt66 FormatString.cpp
/llvm-project/clang/include/clang/Basic/
H A DDiagnosticIDs.h
H A DDiagnostic.h895 /// \param FormatString A fixed diagnostic format string that will be hashed
900 unsigned getCustomDiagID(Level L, const char (&FormatString)[N]) {
902 StringRef(FormatString, N - 1));
/llvm-project/llvm/utils/gn/secondary/clang/lib/AST/
H A DBUILD.gn122 "FormatString.cpp",
/llvm-project/clang/lib/Basic/
H A DDiagnosticIDs.cpp382 /// \param FormatString A fixed diagnostic format string that will be hashed and in getOrCreateDiagID()
415 getCustomDiagID(Level L,StringRef FormatString) getCustomDiagID() argument
/llvm-project/llvm/include/llvm/BinaryFormat/
H A DDwarf.h1003 StringRef FormatString(DwarfFormat Format);
1004 StringRef FormatString(bool IsDWARF64);
/llvm-project/clang/lib/Sema/
H A DSemaObjC.cpp2292 const StringLiteral *FormatString; in DiagnoseCStringFormatDirectiveInCFAPI()
2295 FormatString = OSL->getString(); in DiagnoseCStringFormatDirectiveInCFAPI()
2297 FormatString = dyn_cast<StringLiteral>(FormatExpr->IgnoreParenImpCasts()); in DiagnoseCStringFormatDirectiveInCFAPI()
2298 if (!FormatString) in DiagnoseCStringFormatDirectiveInCFAPI()
2300 if (SemaRef.FormatStringHasSArg(FormatString)) { in DiagnoseCStringFormatDirectiveInCFAPI()
2291 const StringLiteral *FormatString; DiagnoseCStringFormatDirectiveInCFAPI() local

12