summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/comment-cplus-decls.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Pretty Printer: Print constexpr and ref qualifiers. Don't print return types ↵Benjamin Kramer2014-02-251-1/+1
| | | | | | on destructors. llvm-svn: 202181
* Do not add newline in empty blocks.Manuel Klimek2013-01-101-1/+1
| | | | | | | void f() {} now gets formatted in one line. llvm-svn: 172067
* Comment to XML conversion: no, we don't want to print instantiations for theDmitri Gribenko2013-01-071-1/+1
| | | | | | <Declaration> tag llvm-svn: 171763
* Fix parsing of variable declarations directly after a class / struct.Manuel Klimek2013-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fixes couple of friend declaration -ast-print bugFariborz Jahanian2012-12-211-1/+26
| | | | | | | | | found by running -ast-print on all-std-headers.cpp which caused it to go into infinite loop. Now -ast-print prints all declarations found in all-std-headers.cpp. llvm-svn: 170928
* Testing C++ declarations embedded inFariborz Jahanian2012-12-051-0/+146
<declaration> tag of Comment XML and added support for friend declaration printing. This is wip. // rdar://12378714 llvm-svn: 169346
OpenPOWER on IntegriCloud