This is an archive of the discontinued LLVM Phabricator instance.

preprocessor supports `-dI` flag [Fixed]
ClosedPublic

Authored by elsteveogrande on Oct 28 2016, 10:54 AM.

Details

Summary

(Note: fixes https://reviews.llvm.org/D25153 which almost worked, but had 1 failure under windows because of my broken test).

Already exists in gcc (look for -dCHARS in https://gcc.gnu.org/onlinedocs/gcc-6.2.0/gcc/Preprocessor-Options.html#Preprocessor-Options ).

This change aims to add this option, pass it through to the preprocessor via the options class, and when inclusions occur we output some information (+ test cases). In my own testing and experimenting with it I do see similar results to gcc's.

(Test results and more discussion on original diff: D25153 )

Diff Detail

Repository
rL LLVM

Event Timeline

elsteveogrande retitled this revision from to preprocessor supports `-dI` flag [Fixed].
elsteveogrande updated this object.
elsteveogrande added a reviewer: bruno.
elsteveogrande added a subscriber: rsmith.

This is a duplicate of the other failing diff D25153 but with the mentioned correction.

(Is there a way to trigger a windows test build before commit? Sorry, I don't have access to a windows + MSVC box at this time...)

test/Preprocessor/dump_include.c
2 ↗(On Diff #76218)

(Fix for the broken windows test is here)

elsteveogrande set the repository for this revision to rL LLVM.
elsteveogrande removed a subscriber: rsmith.

Ping. Also note, looks good on windows; local run of check-clang went ok.

Ping, this is done (and fixed, tests worked ok)

This revision was automatically updated to reflect the committed changes.