MCPcopy Create free account
hub / github.com/catboost/catboost / Message

Method Message

contrib/libs/flatbuffers/src/idl_parser.cpp:371–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369} // namespace
370
371void Parser::Message(const std::string &msg) {
372 if (!error_.empty()) error_ += "\n"; // log all warnings and errors
373 error_ += file_being_parsed_.length() ? AbsolutePath(file_being_parsed_) : "";
374 // clang-format off
375
376 #ifdef _WIN32 // MSVC alike
377 error_ +=
378 "(" + NumToString(line_) + ", " + NumToString(CursorPosition()) + ")";
379 #else // gcc alike
380 if (file_being_parsed_.length()) error_ += ":";
381 error_ += NumToString(line_) + ": " + NumToString(CursorPosition());
382 #endif
383 // clang-format on
384 error_ += ": " + msg;
385}
386
387void Parser::Warning(const std::string &msg) {
388 if (!opts.no_warnings) {

Callers 2

TRequestMethod · 0.45
DataMethod · 0.45

Calls 4

AbsolutePathFunction · 0.85
NumToStringFunction · 0.85
emptyMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected