[PATCH] D25153: preprocessor supports `-dI` flag

Steve O'Brien via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 20 14:04:01 PDT 2016


elsteveogrande updated this revision to Diff 75351.
elsteveogrande added a comment.

Fixed an error.  A newline is sometimes not appended prior to this `#include`.

When returning from an included file which doesn't have a trailing newline, the #include is stuck at the end of some other line, i.e. the include's own `#` isn't the first character in the line.

Added a new line if needed like the other code just above it.  I copied+pasted the `moveTo` as well.


https://reviews.llvm.org/D25153

Files:
  include/clang/Driver/Options.td
  include/clang/Frontend/PreprocessorOutputOptions.h
  lib/Frontend/CompilerInvocation.cpp
  lib/Frontend/PrintPreprocessedOutput.cpp
  test/Preprocessor/dump_import.h
  test/Preprocessor/dump_import.m
  test/Preprocessor/dump_include.c
  test/Preprocessor/dump_include.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25153.75351.patch
Type: text/x-patch
Size: 6890 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161020/e80d7587/attachment.bin>


More information about the cfe-commits mailing list