summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/parse-all-comments.c
Commit message (Collapse)AuthorAgeFilesLines
* [test/Index] Update libclang tests to use libclang for creating PCH files.Argyrios Kyrtzidis2015-08-051-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 Dennett2015-07-151-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 commentsDmitri Gribenko2013-04-261-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 JahanianDmitri Gribenko2013-04-101-1/+9
| | | | llvm-svn: 179204
* Add testcases for -fparse-all-commentsDmitri Gribenko2013-04-101-0/+48
llvm-svn: 179181
OpenPOWER on IntegriCloud