Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [test/Index] Update libclang tests to use libclang for creating PCH files. | Argyrios Kyrtzidis | 2015-08-05 | 1 | -1/+1 |
| | | | | | | | This is consistent and tests the primary configuration we want to test, libclang creating and consuming PCH files. llvm-svn: 244066 | ||||
* | Allow any comment to be a trailing comment when -fparse-all-comments is on. | James Dennett | 2015-07-15 | 1 | -0/+53 |
| | | | | | | | | | | | | | | | | | | | | | | | | This helps with freeform documentation styles, where otherwise code like enum class E { E1, // D1 E2 // D2 }; would result in D1 being associated with E2. To properly associate E1 with D1 and E2 with D2, this patch allows all raw comments C such that C.isParseAllComments() to participate in trailing comment checks inside getRawCommentForDeclNoCache. This takes care of linking the intended documentation with the intended decls. There remains an issue with code like: foo(); // DN int x; To prevent DN from being associated with x, this patch adds a new test on preceding-line comments C (where C.isParseAllComments() and also C's kind is RCK_OrdinaryBCPL or RCK_OrdinaryC) that checks whether C is the first non-whitespace thing on C's starting line. Patch from Luke Zarko <zarko@google.com>, D11069 reviewed by rsmith. llvm-svn: 242317 | ||||
* | Comment parsing: -fparse-all-comments: recognize empty line comments | Dmitri Gribenko | 2013-04-26 | 1 | -0/+6 |
| | | | | | | | | | In -fparse-all-comments mode empty '//' comments were recognized as RCK_Invalid, and were not merged with next and previous lines. Patch by Amin Shali. llvm-svn: 180625 | ||||
* | -fparse-all-comments: remove redundant check, as suggested by Fariborz Jahanian | Dmitri Gribenko | 2013-04-10 | 1 | -1/+9 |
| | | | | llvm-svn: 179204 | ||||
* | Add testcases for -fparse-all-comments | Dmitri Gribenko | 2013-04-10 | 1 | -0/+48 |
llvm-svn: 179181 |