23
23
#include < llvm/Support/Signals.h>
24
24
#include < stdlib.h>
25
25
26
- int main (int argc, char ** argv);
26
+ int main (int argc, char const ** argv);
27
27
28
28
namespace clang {
29
29
namespace mrdocs {
30
30
31
- void DoTestAction ()
31
+ void DoTestAction (char const ** argv )
32
32
{
33
33
using namespace clang ::mrdocs;
34
34
35
- TestRunner runner (testArgs.generator );
36
- for (auto const & inputPath : testArgs.inputPaths )
37
- runner.checkPath (inputPath);
35
+ TestRunner runner (testArgs.generate );
36
+ for (auto const & inputPath : testArgs.inputs )
37
+ runner.checkPath (inputPath, argv );
38
38
auto const & results = runner.results ;
39
39
40
40
std::stringstream os;
@@ -63,7 +63,7 @@ void DoTestAction()
63
63
report::print (os.str ());
64
64
}
65
65
66
- int test_main (int argc, char const * const * argv)
66
+ int test_main (int argc, char const ** argv)
67
67
{
68
68
// VFALCO this heap checking is too strong for
69
69
// a clang tool's model of what is actually a leak.
@@ -80,10 +80,10 @@ int test_main(int argc, char const* const* argv)
80
80
81
81
// Apply reportLevel
82
82
report::setMinimumLevel (report::getLevel (
83
- testArgs.reportLevel .getValue ()));
83
+ testArgs.report .getValue ()));
84
84
85
- if (! testArgs.inputPaths .empty ())
86
- DoTestAction ();
85
+ if (!testArgs.inputs .empty ())
86
+ DoTestAction (argv );
87
87
88
88
if (testArgs.unitOption .getValue ())
89
89
test_suite::unit_test_main (argc, argv);
@@ -106,7 +106,7 @@ static void reportUnhandledException(
106
106
} // mrdocs
107
107
} // clang
108
108
109
- int main (int argc, char ** argv)
109
+ int main (int argc, char const ** argv)
110
110
{
111
111
try
112
112
{
0 commit comments