Covers both begin_export/end_export blocks and single-line export
pragmas.
Like with 'IWYU pragma: keep' marks the forward decl as automatically
desired to avoid removing manually exported but unused decls.
Add a simple testcase and update documentation.
this was a proposed issue in #1095 where one could
make a block of keeps as opposed to marking every
keep with a pragma: keep instruction.
added test to verify and updated documentation
where appropriate.
Sometimes IWYU's auto-detection of associated headers is insufficient.
Add an IWYU pragma to explicitly set associated header.
This is based on an original patch by Ivan Koster.
I added a test and some documentation.
We don't build with MSVC out-of-tree regularly, so a number of
compatibility issues with LLVM had snuck in:
- Suppressed warnings in header LLVM files
- Extended object format support (/bigobj)
- Use of noexcept requires sane C++ exception semantics (/EHSc)
- Clang's MSVCToolChain.cpp now uses functions from version.dll, so add it
to linker deps
While dabbling with this, we also found it was necessary to CMake with
-DCMAKE_BUILD_TYPE=Release to match LLVM's release-built libraries.
Mention this in the user docs.
Add an optional command-line argument to run_iwyu_tests.py, to specify
which IWYU binary to test with. Usage example:
$ ./run_iwyu_tests.py -- ./include-what-you-use
The '--' delimiter is used to separate args going to Python's unittest
from the new arg used by the test runner.
Update docs to mention new run_iwyu_tests.py features.
- Don't refer to self as a "wiki page"
- Minor formatting fix, code-quote type name
- Use `std::ostream` instead of `ostream` when talking about the standard
type.
- Refer to IWYUPragmas.txt instead of source file at code.google.com
- Rewrite section on submitting patches
- Fix formatting in "Debugging"
- Small formatting a content edits in "A quick tour of the codebase"
- iwyu -> IWYU
- Describe the Git workflow instead of old SVN one
- Remove instructions on source tarballs, people can probably figure that
out for themselves if they want to use them
- Remove outdated blurb on MSVC/Windows compatibility problems
- Add a note to "Building out-of-tree" on checking out the right branch
- Clarify section on built-in headers in "How to install"
- Update paragraph describing how IWYU only analyzes source files to also
mention --check_also
- Start at level 2 headings for individual files, to make it easier to
merge them into README
- Use code style in a few more places
- Remove manual line wrapping, GitHub doesn't render it nicely