A function may just transmit passed-by-reference parameter somewhere.
Requirement to explicitly write forward declaration in the same file
(.cpp-file) to avoid '#include' suggestion is impractical when that type
is already fwd-declared in the corresponding header.
'Autocast' may still make sense for header-defined functions, due to
unlimited number of possible callers, so analysis of those fuctions
is kept.
Both function declaration site handling and call site handling
are changed.
This commit is risky, so I'm expecting I'll have to revert it.
Details:
- svn mv tests/* tests/cxx/
- dos2unix tests/cxx/* (because svn mv on Windows changes line endings :-()
- Update all references to tests/ in test files to tests/cxx/, both #includes and IWYU assertions
- Update references in run_iwyu_tests.py from tests/ to tests/cxx/
- Fix reference to test/ in comment_pragmas-d3.h, should have been tests/ and now tests/cxx