diff options
author | Manuel Klimek <klimek@google.com> | 2013-10-11 21:25:45 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-10-11 21:25:45 +0000 |
commit | 71814b44658523f5fc747475ad8b40c9197565e2 (patch) | |
tree | fa39904587c053d3ec68c96d7d11de801ddfd182 /clang/lib/Format/ContinuationIndenter.h | |
parent | 4c42732cf869d167e48a15afe280cb847984e7a5 (diff) | |
download | bcm5719-llvm-71814b44658523f5fc747475ad8b40c9197565e2.tar.gz bcm5719-llvm-71814b44658523f5fc747475ad8b40c9197565e2.zip |
Support formatting of preprocessor branches.
We now correctly format:
void SomeFunction(int param1,
#ifdef X
NoTemplate param2,
#else
template <
#ifdef A
MyType<Some> >
#else
Type1, Type2>
#endif
param2,
#endif
param3) {
f();
}
llvm-svn: 192503
Diffstat (limited to 'clang/lib/Format/ContinuationIndenter.h')
-rw-r--r-- | clang/lib/Format/ContinuationIndenter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/ContinuationIndenter.h b/clang/lib/Format/ContinuationIndenter.h index c3642d24c48..60e0027ec74 100644 --- a/clang/lib/Format/ContinuationIndenter.h +++ b/clang/lib/Format/ContinuationIndenter.h @@ -250,7 +250,7 @@ struct LineState { unsigned Column; /// \brief The token that needs to be next formatted. - const FormatToken *NextToken; + FormatToken *NextToken; /// \brief \c true if this line contains a continued for-loop section. bool LineContainsContinuedForLoopSection; |