Commit Graph

3 Commits

Author SHA1 Message Date
Bolshakov 862812049a Avoid 'autocast' reporting for function definition
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.
2022-10-08 16:17:50 +02:00
Alexey Storozhev 810c5b2de7 Migrate test launch arguments to IWYU_ARGS 2021-01-31 11:07:48 +01:00
Kim Gräsman c54ab54c26 Move all tests to tests/cxx.
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
2014-02-15 20:02:37 +00:00
Renamed from tests/implicit_ctor.cc (Browse further)