diff options
| author | Manuel Klimek <klimek@google.com> | 2013-04-12 14:13:36 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2013-04-12 14:13:36 +0000 |
| commit | 1a18c40468fa9ac700e18fd5dc5b6d0c86be7dc6 (patch) | |
| tree | e08e86595e21a3bbe10262cb74580b9141b2d27a /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h | |
| parent | 9fb82357dc14374adba1eaa56ee331d3364cc78c (diff) | |
Revamps structural error detection / handling.
Previously we'd only detect structural errors on the very first level.
This leads to incorrectly balanced braces not being discovered, and thus
incorrect indentation.
This change fixes the problem by:
- changing the parser to use an error state that can be detected
anywhere inside the productions, for example if we get an eof on
SOME_MACRO({ some block <eof>
- previously we'd never break lines when we discovered a structural
error; now we break even in the case of a structural error if there
are two unwrapped lines within the same line; thus,
void f() { while (true) { g(); y(); } }
will still be re-formatted, even if there's missing braces somewhere
in the file
- still exclude macro definitions from generating structural error;
macro definitions are inbalanced snippets
llvm-svn: 179379
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h')
0 files changed, 0 insertions, 0 deletions
