MCPcopy Create free account
hub / github.com/TheHPXProject/hpx / cpp_main

Function cpp_main

tools/inspect/inspect.cpp:824–1090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822// cpp_main() --------------------------------------------------------------//
823
824int cpp_main(int argc_param, char* argv_param[])
825{
826 using namespace hpx::program_options;
827 options_description desc_commandline(
828 "Usage: inspect [dir [dir ...]] [options]");
829
830 bool license_ck = false;
831 bool spdx_license_ck = false;
832 bool copyright_ck = false;
833 bool crlf_ck = false;
834 bool end_ck = false;
835 bool link_ck = false;
836 bool path_name_ck = false;
837 bool tab_ck = false;
838 bool ascii_ck = false;
839 bool apple_ck = false;
840 bool windows_ck = false;
841 bool assert_ck = false;
842 bool deprecated_ck = false;
843 bool minmax_ck = false;
844 bool unnamed_ck = false;
845 bool whitespace_ck = false;
846 bool length_ck = false;
847 bool include_ck = false;
848 bool pragma_once_ck = false;
849 bool deprecated_include_ck = false;
850 bool deprecated_names_ck = false;
851
852 // clang-format off
853 desc_commandline.add_options()
854 ("help,h", "print some command line help")
855 ("output,o", value<std::string>(),
856 "the filename to write the output to (default: stdout)")
857 ("text,t", "write a text file (default: html)")
858 ("brief,b", "write a short report only (default: comprehensive)")
859 ("limit,l", value<std::size_t>(),
860 "set limit to the length check tool (default: 90)")
861
862 ("license", value<bool>(&license_ck)->implicit_value(true)->zero_tokens(),
863 "check for Boost license violations (default: off)")
864 ("spdx_license", value<bool>(&spdx_license_ck)->implicit_value(true)->zero_tokens(),
865 "check for SPDX license violations (default: off)")
866 ("copyright", value<bool>(&copyright_ck)->implicit_value(true)->zero_tokens(),
867 "check for copyright violations (default: off)")
868 ("crlf", value<bool>(&crlf_ck)->implicit_value(true)->zero_tokens(),
869 "check for crlf (line endings) violations (default: off)")
870 ("end", value<bool>(&end_ck)->implicit_value(true)->zero_tokens(),
871 "check for missing newline at end of file violations (default: off)")
872 ("link", value<bool>(&link_ck)->implicit_value(true)->zero_tokens(),
873 "check for unlinked files violations (default: off)")
874 ("path_name", value<bool>(&path_name_ck)->implicit_value(true)->zero_tokens(),
875 "check for path name violations (default: off)")
876 ("tab", value<bool>(&tab_ck)->implicit_value(true)->zero_tokens(),
877 "check for tab violations (default: off)")
878 ("ascii", value<bool>(&ascii_ck)->implicit_value(true)->zero_tokens(),
879 "check for non-ascii character usage violations (default: off)")
880 ("apple_macro", value<bool>(&apple_ck)->implicit_value(true)->zero_tokens(),
881 "check for apple macro violations (default: off)")

Callers 1

mainFunction · 0.85

Calls 15

storeFunction · 0.85
canonicalFunction · 0.85
initial_pathFunction · 0.85
inspector_elementClass · 0.85
print_outputFunction · 0.85
add_optionsMethod · 0.80
zero_tokensMethod · 0.80
implicit_valueMethod · 0.80
composingMethod · 0.80
styleMethod · 0.80
notifyFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected