summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/reduced-diags-macros.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Improve the printing of ranges when macros are involved.Richard Trieu2015-09-241-1/+16
| | | | | | | | | | | | Trace the ranges through the macro backtrace better. This allows better range highlighting through all levels of the macro bracktrace. Also some improvements to backtrace printer for omitting different backtraces. Patch by Zhengkai Wu. Differential Revision: http://reviews.llvm.org/D12379 llvm-svn: 248454
* Stop printing macro backtraces that don't help diagnostics.Richard Trieu2015-08-121-0/+29
When displaying the macro backtrace, ignore some of the backtraces that do not provide extra information to the diagnostic. Typically, if the problem is entirely contained within a macro argument, the macro expansion is often not needed. Also take into account SourceRange's attached to the diagnostic when selecting which backtraces to ignore. Two previous test cases have also been updated. Patch by Zhengkai Wu, with minor formatting fixes. Differential Revision: http://reviews.llvm.org/D11778 llvm-svn: 244788
OpenPOWER on IntegriCloud