diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-02-04 19:18:35 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-02-04 19:18:35 +0000 |
commit | 79c93845f6229465f1b0c710cacc60c21f7b9bf6 (patch) | |
tree | 470568678553df1df15f49d6e83f5410640f79e9 /llvm/lib/LineEditor/LineEditor.cpp | |
parent | eacd96d972ff18966fd16443ee1e055de69cb0ce (diff) | |
download | llvm-79c93845f6229465f1b0c710cacc60c21f7b9bf6.zip llvm-79c93845f6229465f1b0c710cacc60c21f7b9bf6.tar.gz llvm-79c93845f6229465f1b0c710cacc60c21f7b9bf6.tar.bz2 |
Fix whitespace handling in empty macro expansions
When a macro expansion does not result in any tokens, and the macro name
is preceded by whitespace, the whitespace should be passed to the first
token that follows the macro expansion. Similarly when a macro expansion
ends with a placemarker token, and that placemarker token is preceded by
whitespace. This worked already for top-level macro expansions, but is
now extended to also work for nested macro expansions.
Patch by Harald van Dijk!
llvm-svn: 200787
Diffstat (limited to 'llvm/lib/LineEditor/LineEditor.cpp')
0 files changed, 0 insertions, 0 deletions