summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/skipped-ranges.c
Commit message (Collapse)AuthorAgeFilesLines
* [Lexer] Report more precise skipped regions (PR34166)Vedant Kumar2017-09-111-3/+3
| | | | | | | | | | | | | | | | | | | | This patch teaches the preprocessor to report more precise source ranges for code that is skipped due to conditional directives. The new behavior includes the '#' from the opening directive and the full text of the line containing the closing directive in the skipped area. This matches up clang's behavior (we don't IRGen the code between the closing "endif" and the end of a line). This also affects the code coverage implementation. See llvm.org/PR34166 (this also happens to be rdar://problem/23224058). The old behavior (report the end of the skipped range as the end location of the 'endif' token) is preserved for indexing clients. Differential Revision: https://reviews.llvm.org/D36642 llvm-svn: 312947
* [libclang] Record ranges skipped by the preprocessor and expose them with ↵Argyrios Kyrtzidis2013-12-051-0/+25
libclang. Patch by Erik Verbruggen! llvm-svn: 196487
OpenPOWER on IntegriCloud