diff options
author | Alexander Kornienko <alexfh@google.com> | 2013-04-03 12:38:53 +0000 |
---|---|---|
committer | Alexander Kornienko <alexfh@google.com> | 2013-04-03 12:38:53 +0000 |
commit | b1be9d6e7437ccf921ae6bfb273dc10cb92cb48c (patch) | |
tree | 4d05f5fdff65cdde925fb0f1e353d7a5dd388277 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 5816ca117b87d20047ebb108a1aebbf654524921 (diff) | |
download | bcm5719-llvm-b1be9d6e7437ccf921ae6bfb273dc10cb92cb48c.tar.gz bcm5719-llvm-b1be9d6e7437ccf921ae6bfb273dc10cb92cb48c.zip |
Even better way to handle comments adjacent to preprocessor directives.
Summary:
It turns out that we don't need to store CommentsBeforeNextToken in the
line state, but rather flush them before we start parsing preprocessor
directives. This fixes wrong comment indentation in code blocks in macro calls
(the test is included).
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D617
llvm-svn: 178638
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions