summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/StringMatcher.cpp
diff options
context:
space:
mode:
authorMark Zeren <mzeren@vmware.com>2018-02-05 14:35:54 +0000
committerMark Zeren <mzeren@vmware.com>2018-02-05 14:35:54 +0000
commit0dc13cdcae09b3691b60ed6255cd24be32cc96c1 (patch)
tree71cab2c1a08ea0c4785177cf184d9fca34f614e9 /llvm/lib/TableGen/StringMatcher.cpp
parent0a1ff464e1b1bc021acc5cf461cc21d72c1df1a9 (diff)
downloadbcm5719-llvm-0dc13cdcae09b3691b60ed6255cd24be32cc96c1.tar.gz
bcm5719-llvm-0dc13cdcae09b3691b60ed6255cd24be32cc96c1.zip
[clang-format] Fixup #include guard indents after parseFile()
Summary: When a preprocessor indent closes after the last line of normal code we do not correctly fixup include guard indents. For example: #ifndef HEADER_H #define HEADER_H #if 1 int i; # define A 0 #endif #endif incorrectly reformats to: #ifndef HEADER_H #define HEADER_H #if 1 int i; # define A 0 # endif #endif To resolve this issue we must fixup levels after parseFile(). Delaying the fixup introduces a new state, so consolidate include guard search state into an enum. Reviewers: krasimir, klimek Reviewed By: krasimir Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D42035 llvm-svn: 324238
Diffstat (limited to 'llvm/lib/TableGen/StringMatcher.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud