summaryrefslogtreecommitdiffstats
path: root/lib/Format/UnwrappedLineParser.h
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2015-05-06 11:56:29 +0000
committerManuel Klimek <klimek@google.com>2015-05-06 11:56:29 +0000
commit13e7452f302ea1d047d33963397c9206420813b7 (patch)
treeb9a73e43ea0508695adef0b7caaa895b2212b55c /lib/Format/UnwrappedLineParser.h
parentf57cfa4de26e5e64cdf27cb375b12895fd17a698 (diff)
Remove all computation of structural errors in clang-format's line parser.
We were already ignoring those already. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/UnwrappedLineParser.h')
-rw-r--r--lib/Format/UnwrappedLineParser.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Format/UnwrappedLineParser.h b/lib/Format/UnwrappedLineParser.h
index 76c62cdc1d..06c80e1387 100644
--- a/lib/Format/UnwrappedLineParser.h
+++ b/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;