|
|
|
|
|
|
|
|
Note: including file: C:\foo\bar\filepath/thing.hpp |
|
|
Note: including file: C:\foo\bar\filepath/thing.hpp |
|
|
Note: including file: C:\foo\bar\filepath/baz.h |
|
|
Note: including file: C:\foo\bar\filepath/baz.h |
|
|
Note: including file: C:\foo\bar\filepath/quux.h |
|
|
Note: including file: C:\foo\bar\filepath/quux.h |
|
|
Note: including file: C:\foo\bar\filepath/cats/quux.h |
|
|
|
|
|
|
|
|
Note: including file: C:\foo\bar\filepath/cats/quux.h |
|
|
Other line |
|
|
Other line |
|
|
|
|
|
indented line |
|
|
Something else |
|
|
Something else |
|
|
)"; |
|
|
)"; |
|
|
|
|
|
|
|
|
auto res = dds::parse_msvc_output_for_deps(mscv_output, "Note: including file:"); |
|
|
auto res = dds::parse_msvc_output_for_deps(mscv_output, "Note: including file:"); |
|
|
auto& deps = res.deps_info; |
|
|
auto& deps = res.deps_info; |
|
|
auto new_output = res.cleaned_output; |
|
|
auto new_output = res.cleaned_output; |
|
|
CHECK(new_output == "\nOther line\nSomething else\n"); |
|
|
|
|
|
|
|
|
CHECK(new_output == "\nOther line\n indented line\nSomething else\n"); |
|
|
CHECK(deps.inputs |
|
|
CHECK(deps.inputs |
|
|
== std::vector<dds::fs::path>({ |
|
|
== std::vector<dds::fs::path>({ |
|
|
"C:\\foo\\bar\\filepath/thing.hpp", |
|
|
"C:\\foo\\bar\\filepath/thing.hpp", |