| /llvm-project/llvm/unittests/Support/ |
| H A D | SourceMgrTest.cpp | 22 std::string Output; member in __anona510ab420111::SourceMgrTest 42 raw_string_ostream OS(Output); in printMessage() 56 Output); in TEST_F() 66 Output); in TEST_F() 76 Output); in TEST_F() 86 Output); in TEST_F() 96 Output); in TEST_F() 106 Output); in TEST_F() 116 Output); in TEST_F() 126 Output); in TEST_F() [all...] |
| /llvm-project/clang/unittests/StaticAnalyzer/ |
| H A D | MemRegionDescriptiveNameTest.cpp | 53 bool runChecker(StringRef Code, std::string &Output) { 54 return runCheckerOnCode<addDescriptiveNameChecker>(Code.str(), Output, in runChecker() argument 67 std::string Output; in TEST() 68 ASSERT_TRUE(runChecker(Code, Output)); in TEST() local 69 EXPECT_EQ(Output, "DescriptiveNameChecker: array[1]\n"); in TEST() 81 std::string Output; in TEST() 82 ASSERT_TRUE(runChecker(Code, Output)); in TEST() local 83 EXPECT_EQ(Output, "DescriptiveNameChecker: array[index]\n"); in TEST() 95 std::string Output; in TEST() 96 ASSERT_TRUE(runChecker(Code, Output)); in TEST() local 110 std::string Output; TEST() local 124 std::string Output; TEST() local 140 std::string Output; TEST() local [all...] |
| H A D | CheckerRegistration.h | 24 llvm::raw_ostream &Output; variable 27 OnlyWarningsDiagConsumer(llvm::raw_ostream &Output) : Output(Output) {} in OnlyWarningsDiagConsumer() argument 31 Output << PD->getCheckerName() << ": "; in FlushDiagnosticsImpl() 32 Output << PD->getShortDescription() << '\n'; in FlushDiagnosticsImpl() 40 llvm::raw_ostream &Output; variable 43 PathDiagConsumer(llvm::raw_ostream &Output) : Output(Output) {} in PathDiagConsumer() argument 47 Output << PD->getCheckerName() << ": "; in FlushDiagnosticsImpl() 59 Output << Piece->getString() << " | "; in FlushDiagnosticsImpl() 61 Output << PD->getShortDescription() << '\n'; in FlushDiagnosticsImpl()
|
| /llvm-project/llvm/lib/Support/ |
| H A D | Compression.cpp | 47 SmallVectorImpl<uint8_t> &Output) { in compress() argument 50 zlib::compress(Input, Output, P.level); in compress() 53 zstd::compress(Input, Output, P.level, P.zstdEnableLdm); in compress() 59 uint8_t *Output, size_t UncompressedSize) { in decompress() argument 62 return zlib::decompress(Input, Output, UncompressedSize); in decompress() 64 return zstd::decompress(Input, Output, UncompressedSize); in decompress() 70 SmallVectorImpl<uint8_t> &Output, in decompress() argument 74 return zlib::decompress(Input, Output, UncompressedSize); in decompress() 76 return zstd::decompress(Input, Output, UncompressedSize); in decompress() 82 SmallVectorImpl<uint8_t> &Output, in decompress() argument 123 decompress(ArrayRef<uint8_t> Input,uint8_t * Output,size_t & UncompressedSize) decompress() argument 136 decompress(ArrayRef<uint8_t> Input,SmallVectorImpl<uint8_t> & Output,size_t UncompressedSize) decompress() argument 204 decompress(ArrayRef<uint8_t> Input,uint8_t * Output,size_t & UncompressedSize) decompress() argument 218 decompress(ArrayRef<uint8_t> Input,SmallVectorImpl<uint8_t> & Output,size_t UncompressedSize) decompress() argument 234 decompress(ArrayRef<uint8_t> Input,uint8_t * Output,size_t & UncompressedSize) decompress() argument 239 decompress(ArrayRef<uint8_t> Input,SmallVectorImpl<uint8_t> & Output,size_t UncompressedSize) decompress() argument [all...] |
| H A D | YAMLTraits.cpp | 480 // Output 483 Output::Output(raw_ostream &yout, void *context, int WrapColumn) 486 Output::~Output() = default; 488 bool Output::outputting() const { 492 void Output::beginMapping() { 498 bool Output::mapTag(StringRef Tag, bool Use) { 529 void Output::endMapping() { 540 std::vector<StringRef> Output in endMapping() 484 Output::Output(raw_ostream &yout, void *context, int WrapColumn) Output() function in Output [all...] |
| H A D | Base64.cpp | 38 std::vector<char> &Output) { in decodeBase64() argument 42 Output.clear(); in decodeBase64() 79 Output.push_back((Hex64Bytes[0] << 2) + ((Hex64Bytes[1] >> 4) & 0x03)); in decodeBase64() 80 Output.push_back((Hex64Bytes[1] << 4) + ((Hex64Bytes[2] >> 2) & 0x0f)); in decodeBase64() 81 Output.push_back((Hex64Bytes[2] << 6) + (Hex64Bytes[3] & 0x3f)); in decodeBase64() 87 Output.pop_back(); in decodeBase64() 89 Output.pop_back(); in decodeBase64()
|
| /llvm-project/libcxx/test/std/iterators/iterator.requirements/alg.req.mergeable/ |
| H A D | mergeable.compile.pass.cpp | 31 using Output = cpp17_output_iterator<int*>; typedef 32 static_assert( std::weakly_incrementable<Output>); 34 static_assert( std::indirectly_copyable<Input, Output>); 35 static_assert( std::indirectly_copyable<InputLong, Output>); 42 static_assert( std::mergeable<Input, Input, Output>); 43 static_assert( std::mergeable<Input, Input, Output, CompInt>); 44 static_assert( std::mergeable<Input, Input, Output, CompInt, ProjDefault>); 58 static_assert(!std::input_iterator<Output>); 59 static_assert(!std::mergeable<Output, Input, Output>); 60 static_assert(!std::mergeable<Input, Output, Output>); [all …]
|
| /llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/ |
| H A D | lcm.pass.cpp | 38 template <typename Input1, typename Input2, typename Output> 43 static_assert(std::is_same_v<Output, decltype(std::lcm(value1, value2))>, ""); in test0() 44 static_assert(std::is_same_v<Output, decltype(std::lcm(value2, value1))>, ""); in test0() 45 assert(static_cast<Output>(out) == std::lcm(value1, value2)); in test0() 60 using Output = std::common_type_t<S1, S2>; in do_test() typedef 61 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test() 62 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test() 63 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test() 64 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test() 65 accumulate &= test0<S2, S1, Output>(TC.x, TC.y, TC.expect); in do_test() [all …]
|
| /llvm-project/llvm/unittests/CodeGen/ |
| H A D | InstrRefLDVTest.cpp | 220 InstrRefBasedLDV::LiveInsT &Output, FuncValueTable &MOutLocs, in buildVLocValueMap() argument 223 LDV->buildVLocValueMap(DILoc, VarsWeCareAbout, AssignBlocks, Output, in buildVLocValueMap() 2293 EXPECT_TRUE(Result); // Output locs should have changed. in TEST_F() 2651 InstrRefBasedLDV::LiveInsT Output; in TEST_F() 2655 buildVLocValueMap(OutermostLoc, AllVars, AssignBlocks, Output, in TEST_F() 2657 EXPECT_EQ(Output.size(), 0ul); in TEST_F() 2662 buildVLocValueMap(OutermostLoc, AllVars, AssignBlocks, Output, in TEST_F() 2664 EXPECT_EQ(Output.size(), 0ul); in TEST_F() 2717 InstrRefBasedLDV::LiveInsT Output; in TEST_F() 2726 for (auto &Elem : Output) in TEST_F() 2650 InstrRefBasedLDV::LiveInsT Output; TEST_F() local 2715 InstrRefBasedLDV::LiveInsT Output; TEST_F() local 2935 InstrRefBasedLDV::LiveInsT Output; TEST_F() local 3211 InstrRefBasedLDV::LiveInsT Output; TEST_F() local [all...] |
| /llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/ |
| H A D | gcd.pass.cpp | 32 template <typename Input1, typename Input2, typename Output> 37 static_assert(std::is_same_v<Output, decltype(std::gcd(value1, value2))>, ""); 38 static_assert(std::is_same_v<Output, decltype(std::gcd(value2, value1))>, ""); 39 assert(static_cast<Output>(out) == std::gcd(value1, value2)); 126 using Output = std::common_type_t<S1, S2>; 127 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test() 128 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test() 129 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test() 130 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test() 131 accumulate &= test0<S2, S1, Output>(T in do_test() 136 using Output = std::common_type_t<S1, S2>; do_test() typedef 147 using Output = std::common_type_t<U1, U2>; do_test() typedef 152 using Output = std::common_type_t<S1, U2>; do_test() typedef 159 using Output = std::common_type_t<S2, U1>; do_test() typedef [all...] |
| /llvm-project/lldb/source/Utility/ |
| H A D | TildeExpressionResolver.cpp | 33 StringRef Expr, SmallVectorImpl<char> &Output) { in ResolveExact() argument 39 return !fs::real_path(Expr, Output, true); in ResolveExact() 43 StringSet<> &Output) { in ResolvePartial() argument 49 Output.clear(); in ResolvePartial() 69 Output.insert(Buffer); in ResolvePartial() 77 StringRef Expr, llvm::SmallVectorImpl<char> &Output) { in ResolveFullPath() argument 79 Output.assign(Expr.begin(), Expr.end()); in ResolveFullPath() 87 if (!ResolveExact(Left, Output)) { in ResolveFullPath() 88 Output.assign(Expr.begin(), Expr.end()); in ResolveFullPath() 92 Output.append(Expr.begin() + Left.size(), Expr.end()); in ResolveFullPath()
|
| /llvm-project/llvm/include/llvm/ADT/ |
| H A D | FloatingPointMode.h | 91 DenormalModeKind Output = DenormalModeKind::Invalid; member 101 Output(Out), Input(In) {} in DenormalMode() 133 return Output == Other.Output && Input == Other.Input; 141 return Input == Output; in isSimple() 145 return Output != DenormalModeKind::Invalid && in isValid() 157 return Output == DenormalModeKind::PreserveSign || in outputsAreZero() 158 Output == DenormalModeKind::PositiveZero; in outputsAreZero() 168 if (Callee.Output == DenormalMode::Dynamic) in mergeCalleeMode() 169 MergedMode.Output = Output; in mergeCalleeMode() 223 Mode.Output = parseDenormalFPAttributeComponent(OutputStr); in parseDenormalFPAttribute() [all …]
|
| /llvm-project/bolt/lib/Utils/ |
| H A D | Utils.cpp | 52 std::string Output = Name.str(); in getEscapedName() local 53 for (size_t I = 0; I < Output.size(); ++I) in getEscapedName() 54 if (Output[I] == ' ' || Output[I] == '\\') in getEscapedName() 55 Output.insert(I++, 1, '\\'); in getEscapedName() 57 return Output; in getEscapedName() 61 std::string Output = Name.str(); in getUnescapedName() local 62 for (size_t I = 0; I < Output.size(); ++I) in getUnescapedName() 63 if (Output[I] == '\\') in getUnescapedName() 64 Output in getUnescapedName() [all...] |
| /llvm-project/llvm/tools/llvm-readtapi/ |
| H A D | DiffEngine.cpp | 189 void diffAttribute(std::string Name, std::vector<DiffOutput> &Output, in diffAttribute() argument 191 Output.push_back(getSingleAttrDiff(Attr, Name)); in diffAttribute() 195 void diffAttribute(std::string Name, std::vector<DiffOutput> &Output, in diffAttribute() argument 197 Output.push_back(getSingleAttrDiff(Val, Name, Order)); in diffAttribute() 202 std::vector<DiffOutput> Output; in getSingleIF() local 203 diffAttribute("Install Name", Output, in getSingleIF() 206 diffAttribute("Current Version", Output, in getSingleIF() 209 diffAttribute("Compatibility Version", Output, in getSingleIF() 212 diffAttribute("Swift ABI Version", Output, in getSingleIF() 215 diffAttribute("Two Level Namespace", Output, in getSingleIF() [all …]
|
| /llvm-project/clang-tools-extra/docs/clang-tidy/checks/objc/ |
| H A D | nsdate-formatter.rst | 15 | Output string: `2014-01` (Wrong because it’s not the first week of 2014) 18 | Output string: `29-12-2014 (01-2015)` (This is correct) 23 | Output string: `5-12` (Wrong because it reads as *5th ___ of Dec* in English) 28 | Output string: `5-Mon` (Wrong because it reads as *5th Mon of ___* in English) 33 | Output string: `05-2014` (Wrong because it reads as *5th Week of ___* in English) 38 | Output string: `2015-04` (Wrong because it’s not the 4th quarter of 2015) 41 | Output string: `01-2015 (04-2014)` (This is correct) 46 | Output string: `2015-12` (Wrong because it’s not the 12th month of 2015) 49 | Output string: `01-2015 (12-2014)` (This is correct) 54 | Output string: `2015-363` (Wrong because it’s not the 363rd day of 2015) [all …]
|
| /llvm-project/llvm/lib/Option/ |
| H A D | Arg.cpp | 85 void Arg::renderAsInput(const ArgList &Args, ArgStringList &Output) const { in renderAsInput() 87 render(Args, Output); in renderAsInput() 91 Output.append(Values.begin(), Values.end()); in renderAsInput() 94 void Arg::render(const ArgList &Args, ArgStringList &Output) const { in render() 97 Output.append(Values.begin(), Values.end()); in render() 108 Output.push_back(Args.MakeArgString(OS.str())); in render() 113 Output.push_back(Args.GetOrMakeJoinedArgString( in render() 115 Output.append(Values.begin() + 1, Values.end()); in render() 119 Output.push_back(Args.MakeArgString(getSpelling())); in render() 120 Output.append(Values.begin(), Values.end()); in render()
|
| H A D | ArgList.cpp | 104 void ArgList::addOptInFlag(ArgStringList &Output, OptSpecifier Pos, in addOptInFlag() argument 108 A->render(*this, Output); in addOptInFlag() 111 void ArgList::AddAllArgsExcept(ArgStringList &Output, in AddAllArgsExcept() argument 126 Arg->render(*this, Output); in AddAllArgsExcept() 135 void ArgList::addAllArgs(ArgStringList &Output, in addAllArgs() argument 138 AddAllArgsExcept(Output, Ids, Exclude); in addAllArgs() 141 void ArgList::AddAllArgs(ArgStringList &Output, OptSpecifier Id0) const { in AddAllArgs() argument 144 Arg->render(*this, Output); in AddAllArgs() 148 void ArgList::AddAllArgValues(ArgStringList &Output, OptSpecifier Id0, in AddAllArgValues() argument 153 Output in AddAllArgValues() 157 AddAllArgsTranslated(ArgStringList & Output,OptSpecifier Id0,const char * Translation,bool Joined) const AddAllArgsTranslated() argument [all...] |
| /llvm-project/llvm/unittests/Target/AMDGPU/ |
| H A D | PALMetadata.cpp | 93 std::string Output; in TEST_F() local 94 MD.toString(Output); in TEST_F() 98 auto n = Output.find("\'0x2c4b (SPI_SHADER_PGM_RSRC2_VS)\': 0xffffff2a"); in TEST_F() 131 std::string Output; in TEST_F() local 132 MD.toString(Output); in TEST_F() 136 auto n = Output.find("\'0x2c4b (SPI_SHADER_PGM_RSRC2_VS)\': 0xffffff2a"); in TEST_F() 161 std::string Output; in TEST_F() local 162 MD.toString(Output); in TEST_F() 164 auto n = Output.find("\'0x2c4b (SPI_SHADER_PGM_RSRC2_VS)\': 0xffffff2a"); in TEST_F() 190 std::string Output; in TEST_F() local 217 std::string Output; TEST_F() local [all...] |
| /llvm-project/lldb/unittests/TestingSupport/ |
| H A D | MockTildeExpressionResolver.cpp | 39 SmallVectorImpl<char> &Output) { in ResolveExact() argument 40 Output.clear(); in ResolveExact() 48 Output.append(Dir.begin(), Dir.end()); in ResolveExact() 55 Output.append(User.getValue().begin(), User.getValue().end()); in ResolveExact() 62 StringSet<> &Output) { in ResolvePartial() argument 63 Output.clear(); in ResolvePartial() 76 Output.insert(QualifiedName); in ResolvePartial() 79 return !Output.empty(); in ResolvePartial()
|
| /llvm-project/llvm/lib/Demangle/ |
| H A D | RustDemangle.cpp | 92 OutputBuffer Output; member in __anonea6b71ba0111::Demangler 158 std::free(D.Output.getBuffer()); in rustDemangle() 162 D.Output += '\0'; in rustDemangle() 164 return D.Output.getBuffer(); in rustDemangle() 186 // otherwise. The demangled symbol is stored in Output field. It is 1005 Output += C; in print() 1012 Output += S; in print() 1019 Output << N; in printDecimalNumber() 1061 static void removeNullBytes(OutputBuffer &Output, size_t StartIdx) { in removeNullBytes() argument 1062 char *Buffer = Output in removeNullBytes() 1070 encodeUTF8(size_t CodePoint,char * Output) encodeUTF8() argument 1105 decodePunycode(std::string_view Input,OutputBuffer & Output) decodePunycode() argument [all...] |
| /llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | SPIRV.cpp | 23 const InputInfo &Output, in constructTranslateCommand() argument 31 if (Output.getType() == types::TY_PP_Asm) in constructTranslateCommand() 34 CmdArgs.append({"-o", Output.getFilename()}); in constructTranslateCommand() 46 Exec, CmdArgs, Input, Output)); in constructTranslateCommand() 51 const InputInfo &Output, in ConstructJob() 59 CmdArgs.append({"-o", Output.getFilename()}); 71 Exec, CmdArgs, Input, Output)); in getTool() 75 const InputInfo &Output, in getTool() 82 constructTranslateCommand(C, *this, JA, Output, Inputs[0], {}); in buildLinker() 86 const InputInfo &Output, in ConstructJob() argument 50 ConstructJob(Compilation & C,const JobAction & JA,const InputInfo & Output,const InputInfoList & Inputs,const ArgList & Args,const char * LinkingOutput) const ConstructJob() argument [all...] |
| H A D | XCore.cpp | 26 const InputInfo &Output, in ConstructJob() argument 34 CmdArgs.push_back(Output.getFilename()); in ConstructJob() 56 Exec, CmdArgs, Inputs, Output)); in ConstructJob() 60 const InputInfo &Output, in ConstructJob() argument 66 assert((Output.isFilename() || Output.isNothing()) && "Invalid output."); in ConstructJob() 67 if (Output.isFilename()) { in ConstructJob() 69 CmdArgs.push_back(Output.getFilename()); in ConstructJob() 84 Exec, CmdArgs, Inputs, Output)); in ConstructJob()
|
| /llvm-project/llvm/include/llvm/Support/ |
| H A D | Compression.h | 47 Error decompress(ArrayRef<uint8_t> Input, uint8_t *Output, 50 Error decompress(ArrayRef<uint8_t> Input, SmallVectorImpl<uint8_t> &Output, 68 Error decompress(ArrayRef<uint8_t> Input, uint8_t *Output, 71 Error decompress(ArrayRef<uint8_t> Input, SmallVectorImpl<uint8_t> &Output, 117 SmallVectorImpl<uint8_t> &Output); 121 uint8_t *Output, size_t UncompressedSize); 123 SmallVectorImpl<uint8_t> &Output, size_t UncompressedSize); 125 SmallVectorImpl<uint8_t> &Output, size_t UncompressedSize);
|
| /llvm-project/llvm/utils/lit/tests/Inputs/shtest-shell/ |
| H A D | rm-unicode-0.txt | 3 # RUN: mkdir -p Output/中文 4 # RUN: echo "" > Output/中文/你好.txt 5 # RUN: rm Output/中文/你好.txt 6 # RUN: echo "" > Output/中文/你好.txt 7 # RUN: rm -r Output/中文
|
| /llvm-project/flang/runtime/ |
| H A D | io-api-minimal.cpp | 26 return BeginExternalListIO<Direction::Output, ExternalListIoStatementState>( in IODEF() 38 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarIntegerOutput() 72 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarRealOutput() 92 if (io.CheckFormattedStmtType<Direction::Output>(whence)) { in FormattedScalarComplexOutput() 93 if (io.get_if<ListDirectedStatementState<Direction::Output>>() != nullptr) { in FormattedScalarComplexOutput() 124 io.get_if<ListDirectedStatementState<Direction::Output>>()}) { in IODEF() 126 } else if (io.CheckFormattedStmtType<Direction::Output>("OutputAscii")) { in IODEF() 137 io.get_if<ListDirectedStatementState<Direction::Output>>()}) { in IODEF() 139 } else if (io.CheckFormattedStmtType<Direction::Output>("OutputAscii")) { in IODEF()
|