summaryrefslogtreecommitdiffstats
path: root/clang/test/Index/comment-lots-of-unknown-commands.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix for PR21254 - Assertion in comment parserDario Domizioli2014-10-151-0/+295
The size of the ID field in CommandInfo was narrow, leading to potential wrap-around of command IDs, causing misinterpretation later on. The patch does the following: - It extends the ID bitfield from 8 to 20 bits. - It provides a DRY definition of the number of bits for the field to avoid using literal numbers in different files. - It introduces a new assertion that checks for the wrap-around. - It adds the testcase from PR21254. llvm-svn: 219802
OpenPOWER on IntegriCloud