[libclang] Don't pad the main buffer for the preamble.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 9 Mar 2014 04:24:57 +0000 (04:24 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 9 Mar 2014 04:24:57 +0000 (04:24 +0000)
commitb255ee91a7aae47cf7d6199b447efd6da75f1c76
treeed59dcbe52533111a20b7246467b300ee58fee0f
parent67101a52defbfb6542eabd35c1a99d8b522866a3
[libclang] Don't pad the main buffer for the preamble.

Padding does not seem to be useful currently, and it leads to bogus location if an error
points to the end of the file.

rdar://15836513

llvm-svn: 203370
clang/include/clang/Frontend/ASTUnit.h
clang/lib/Frontend/ASTUnit.cpp
clang/test/Index/preamble-reparse-warn-end-of-file.c [new file with mode: 0644]
clang/test/Index/preamble-reparse-warn-macro.c [new file with mode: 0644]