diff options
| author | Manuel Klimek <klimek@google.com> | 2013-01-07 18:10:23 +0000 |
|---|---|---|
| committer | Manuel Klimek <klimek@google.com> | 2013-01-07 18:10:23 +0000 |
| commit | 28cacc740d8065423b9a60e6feae998a3ecac9d9 (patch) | |
| tree | 8229435782851079b3cb178a37611df31a4f2a92 /clang/test/Index/annotate-nested-name-specifier.cpp | |
| parent | 5bc364eb0587de079a54dc570d20ada46b195b81 (diff) | |
| download | llvm-28cacc740d8065423b9a60e6feae998a3ecac9d9.zip llvm-28cacc740d8065423b9a60e6feae998a3ecac9d9.tar.gz llvm-28cacc740d8065423b9a60e6feae998a3ecac9d9.tar.bz2 | |
Fix parsing of variable declarations directly after a class / struct.
Previous indent:
class A {
}
a;
void f() {
};
With this patch:
class A {
} a;
void f() {
}
;
The patch introduces a production for classes and structs, and parses
the rest of the line to the semicolon after the class scope.
This allowed us to remove a long-standing wart in the parser that would
just much the semicolon after any block.
Due to this suboptimal formating some tests were broken.
Some unrelated formatting tests broke; those hit a bug in the ast
printing, and need to be fixed separately.
llvm-svn: 171761
Diffstat (limited to 'clang/test/Index/annotate-nested-name-specifier.cpp')
0 files changed, 0 insertions, 0 deletions
