diff options
author | Manuel Klimek <klimek@google.com> | 2015-05-06 11:56:29 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2015-05-06 11:56:29 +0000 |
commit | 20e0af6b62c7b042da3cc5991fd4d8b0ec567c93 (patch) | |
tree | 698109019be44e1627ae99e0a2b9938b9760125e /clang/lib/Format/UnwrappedLineParser.h | |
parent | 3f8eae92a471c8765381b045d877ae0f0de3ef15 (diff) | |
download | bcm5719-llvm-20e0af6b62c7b042da3cc5991fd4d8b0ec567c93.tar.gz bcm5719-llvm-20e0af6b62c7b042da3cc5991fd4d8b0ec567c93.zip |
Remove all computation of structural errors in clang-format's line parser.
We were already ignoring those already.
llvm-svn: 236591
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.h')
-rw-r--r-- | clang/lib/Format/UnwrappedLineParser.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/clang/lib/Format/UnwrappedLineParser.h b/clang/lib/Format/UnwrappedLineParser.h index 76c62cdc1d8..06c80e1387d 100644 --- a/clang/lib/Format/UnwrappedLineParser.h +++ b/clang/lib/Format/UnwrappedLineParser.h @@ -65,8 +65,7 @@ public: ArrayRef<FormatToken *> Tokens, UnwrappedLineConsumer &Callback); - /// Returns true in case of a structural error. - bool parse(); + void parse(); private: void reset(); @@ -158,10 +157,6 @@ private: // whether we are in a compound statement or not. std::vector<bool> DeclarationScopeStack; - // Will be true if we encounter an error that leads to possibily incorrect - // indentation levels. - bool StructuralError; - const FormatStyle &Style; const AdditionalKeywords &Keywords; |