Home
last modified time | relevance | path

Searched refs:Whence (Results 1 – 25 of 36) sorted by relevance

12

/external/llvm-project/llvm/tools/llvm-profgen/
DErrorHandling.h22 exitWithError(const Twine &Message, StringRef Whence = StringRef(),
25 if (!Whence.empty())
26 errs() << Whence.str() << ": ";
34 exitWithError(std::error_code EC, StringRef Whence = StringRef()) {
35 exitWithError(EC.message(), Whence);
38 LLVM_ATTRIBUTE_NORETURN inline void exitWithError(Error E, StringRef Whence) { in exitWithError() argument
39 exitWithError(errorToErrorCode(std::move(E)), Whence); in exitWithError()
/external/llvm-project/llvm/tools/llvm-cxxmap/
Dllvm-cxxmap.cpp45 static void warn(Twine Message, Twine Whence = "", in warn() argument
48 std::string WhenceStr = Whence.str(); in warn()
56 static void exitWithError(Twine Message, Twine Whence = "", in exitWithError() argument
59 std::string WhenceStr = Whence.str(); in exitWithError()
68 static void exitWithError(Error E, StringRef Whence = "") { in exitWithError() argument
69 exitWithError(toString(std::move(E)), Whence); in exitWithError()
72 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") { in exitWithErrorCode() argument
73 exitWithError(EC.message(), Whence); in exitWithErrorCode()
/external/libbrillo/brillo/streams/
Dstream_utils_test.cc103 using Whence = Stream::Whence; in TEST() typedef
109 FROM_HERE, 0, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
113 FROM_HERE, 0, Whence::FROM_CURRENT, current_pos, end_pos, &pos, nullptr)); in TEST()
117 FROM_HERE, 0, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
121 FROM_HERE, 10, Whence::FROM_BEGIN, current_pos, end_pos, &pos, nullptr)); in TEST()
125 FROM_HERE, 10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
130 FROM_HERE, 10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
134 FROM_HERE, -10, Whence::FROM_CURRENT, current_pos, end_pos, &pos, in TEST()
139 FROM_HERE, -10, Whence::FROM_END, current_pos, end_pos, &pos, nullptr)); in TEST()
144 FROM_HERE, -1, Whence::FROM_BEGIN, current_pos, end_pos, &pos, &error)); in TEST()
[all …]
Dstream_utils.cc157 Stream::Whence whence, in CalculateStreamPosition()
164 case Stream::Whence::FROM_BEGIN: in CalculateStreamPosition()
168 case Stream::Whence::FROM_CURRENT: in CalculateStreamPosition()
172 case Stream::Whence::FROM_END: in CalculateStreamPosition()
Dfile_stream_test.cc81 EXPECT_TRUE(stream->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
97 EXPECT_TRUE(stream->Seek(10, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TestCreateFile()
105 EXPECT_TRUE(stream->Seek(7, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
109 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, &pos, nullptr)); in TestCreateFile()
113 EXPECT_TRUE(stream->Seek(-2, Stream::Whence::FROM_CURRENT, nullptr, nullptr)); in TestCreateFile()
116 EXPECT_TRUE(stream->Seek(-1, Stream::Whence::FROM_END, &pos, nullptr)); in TestCreateFile()
329 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F()
333 EXPECT_TRUE(stream_->Seek(123456, Stream::Whence::FROM_BEGIN, &pos, nullptr)); in TEST_F()
338 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, &pos, in TEST_F()
341 EXPECT_TRUE(stream_->Seek(kMaxSize, Stream::Whence::FROM_BEGIN, nullptr, in TEST_F()
[all …]
Dstream.h87 enum class Whence { FROM_BEGIN, FROM_CURRENT, FROM_END }; enum
176 Whence whence,
Dfile_stream.cc399 Whence whence, in Seek()
407 case Whence::FROM_BEGIN: in Seek()
410 case Whence::FROM_CURRENT: in Seek()
413 case Whence::FROM_END: in Seek()
Dmemory_stream_test.cc133 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_BEGIN, &new_pos, &error)); in TEST_F()
137 EXPECT_TRUE(stream_->Seek(2, Stream::Whence::FROM_CURRENT, &new_pos, &error)); in TEST_F()
142 EXPECT_TRUE(stream_->Seek(-2, Stream::Whence::FROM_END, nullptr, nullptr)); in TEST_F()
146 EXPECT_TRUE(stream_->Seek(0, Stream::Whence::FROM_END, nullptr, nullptr)); in TEST_F()
Dtls_stream.h49 Whence whence,
Dstream_test.cc36 using Whence = Stream::Whence; typedef
56 MOCK_METHOD(bool, Seek, (int64_t, Whence, uint64_t*, ErrorPtr*), (override));
101 EXPECT_CALL(stream_mock, Seek(12345, Whence::FROM_BEGIN, _, _)) in TEST()
Dinput_stream_set.h75 Whence whence,
Dmock_stream.h30 MOCK_METHOD(bool, Seek, (int64_t, Whence, uint64_t*, ErrorPtr*), (override));
Dstream_utils.h55 Stream::Whence whence,
Dfile_stream.h112 Whence whence,
Dfake_stream.h93 Whence whence,
Dmemory_stream.h160 Whence whence,
Dinput_stream_set.cc105 Whence /* whence */, in Seek() argument
/external/llvm/tools/llvm-cov/
DCodeCoverage.cpp50 void error(const Twine &Message, StringRef Whence = "");
53 void deferError(const Twine &Message, StringRef Whence = "");
56 void deferWarning(const Twine &Message, StringRef Whence = "");
114 static std::string getErrorString(const Twine &Message, StringRef Whence, in getErrorString() argument
118 if (!Whence.empty()) in getErrorString()
119 Str += Whence; in getErrorString()
124 void CodeCoverageTool::error(const Twine &Message, StringRef Whence) { in error() argument
125 errs() << getErrorString(Message, Whence, false); in error()
128 void CodeCoverageTool::deferError(const Twine &Message, StringRef Whence) { in deferError() argument
130 DeferredMessages.emplace_back(getErrorString(Message, Whence, false)); in deferError()
[all …]
/external/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp39 static void exitWithError(const Twine &Message, StringRef Whence = "", in exitWithError() argument
42 if (!Whence.empty()) in exitWithError()
43 errs() << Whence << ": "; in exitWithError()
50 static void exitWithError(Error E, StringRef Whence = "") { in exitWithError() argument
59 exitWithError(IPE.message(), Whence, Hint); in exitWithError()
63 exitWithError(toString(std::move(E)), Whence); in exitWithError()
66 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") { in exitWithErrorCode() argument
67 exitWithError(EC.message(), Whence); in exitWithErrorCode()
/external/libchrome/base/files/
Dfile.h111 enum Whence { enum
202 int64_t Seek(Whence whence, int64_t offset);
/external/llvm-project/llvm/tools/llvm-cov/
DCodeCoverage.cpp70 void error(const Twine &Message, StringRef Whence = "");
73 void warning(const Twine &Message, StringRef Whence = "");
169 static std::string getErrorString(const Twine &Message, StringRef Whence, in getErrorString() argument
173 if (!Whence.empty()) in getErrorString()
174 Str += Whence.str() + ": "; in getErrorString()
179 void CodeCoverageTool::error(const Twine &Message, StringRef Whence) { in error() argument
182 << getErrorString(Message, Whence, false); in error()
185 void CodeCoverageTool::warning(const Twine &Message, StringRef Whence) { in warning() argument
188 << getErrorString(Message, Whence, true); in warning()
/external/libchrome/libchrome_tools/patch/
Dfile_posix.patch5 @@ -189,7 +189,9 @@ int64_t File::Seek(Whence whence, int64_t offset) {
/external/llvm-project/llvm/tools/llvm-profdata/
Dllvm-profdata.cpp47 static void warn(Twine Message, std::string Whence = "", in warn() argument
50 if (!Whence.empty()) in warn()
51 errs() << Whence << ": "; in warn()
57 static void exitWithError(Twine Message, std::string Whence = "", in exitWithError() argument
60 if (!Whence.empty()) in exitWithError()
61 errs() << Whence << ": "; in exitWithError()
68 static void exitWithError(Error E, StringRef Whence = "") { in exitWithError() argument
77 exitWithError(IPE.message(), std::string(Whence), std::string(Hint)); in exitWithError()
81 exitWithError(toString(std::move(E)), std::string(Whence)); in exitWithError()
84 static void exitWithErrorCode(std::error_code EC, StringRef Whence = "") { in exitWithErrorCode() argument
[all …]
/external/toolchain-utils/compiler_wrapper/
Drusage_flag.go27 Whence: seekSet,
/external/clang/lib/StaticAnalyzer/Checkers/
DStreamChecker.cpp264 SVal Whence = state->getSVal(CE->getArg(2), C.getLocationContext()); in Fseek() local
265 Optional<nonloc::ConcreteInt> CI = Whence.getAs<nonloc::ConcreteInt>(); in Fseek()

12