summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/comment-cplus-decls.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [DeclPrinter] Honor TerseOutput for constructorsAlex Lorenz2017-11-161-1/+1
| | | | | | | | Patch by Nikolai Kosjar! Differential Revision: https://reviews.llvm.org/D39957 llvm-svn: 318365
* [ASTPrinter] Print nested name specifiers for out-of-line functionsAlex Lorenz2017-04-111-4/+4
| | | | | | rdar://31501863 llvm-svn: 299962
* [Test] Make Lit tests C++11 compatible - nounwind noexceptCharles Li2017-02-131-1/+7
| | | | | | | | C++11 destructors are nothrow by default. Differential Revision: https://reviews.llvm.org/D29859 llvm-svn: 294972
* Make output of -ast-print a valid C++ code.Serge Pavlov2016-11-101-1/+1
| | | | | | | | | | | | | | | | | | Output generated by option -ast-print looks like C/C++ code, and it really is for plain C. For C++ the produced output was not valid C++ code, but the differences were small. With this change the output is fixed and can be compiled. Tests are changed so that output produced by -ast-print is compiled again with the same flags and both outputs are compared. Option -ast-print is extensively used in clang tests but it itself was tested poorly, existing tests only checked that compiler did not crash. There are unit tests in file DeclPrinterTest.cpp, but they test only terse output mode. Differential Revision: https://reviews.llvm.org/D26452 llvm-svn: 286439
* 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