MCPcopy Create free account
hub / github.com/apache/impala / CommandlineFlagsIntoString

Function CommandlineFlagsIntoString

be/src/kudu/util/flags.cc:650–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

648}
649
650string CommandlineFlagsIntoString(EscapeMode mode, Selection selection) {
651 string ret_value;
652 vector<CommandLineFlagInfo> flags;
653 switch (selection) {
654 case Selection::ALL:
655 GetAllFlags(&flags);
656 break;
657 case Selection::NONDEFAULT:
658 flags = GetNonDefaultFlagsHelper();
659 break;
660 }
661
662 for (const auto& f : flags) {
663 ret_value += "--";
664 if (mode == EscapeMode::HTML) {
665 ret_value += EscapeForHtmlToString(f.name);
666 } else if (mode == EscapeMode::NONE) {
667 ret_value += f.name;
668 }
669 ret_value += "=";
670 ret_value += CheckFlagAndRedact(f, mode);
671 ret_value += "\n";
672 }
673 return ret_value;
674}
675
676} // namespace kudu

Callers 2

TEST_FFunction · 0.85
LogCommandLineFlagsMethod · 0.85

Calls 3

GetNonDefaultFlagsHelperFunction · 0.85
EscapeForHtmlToStringFunction · 0.85
CheckFlagAndRedactFunction · 0.85

Tested by 1

TEST_FFunction · 0.68