Fix 'unknown documentation command' warning ranges
authorErik Verbruggen <erikjv@me.com>
Tue, 25 Oct 2016 10:06:11 +0000 (10:06 +0000)
committerErik Verbruggen <erikjv@me.com>
Tue, 25 Oct 2016 10:06:11 +0000 (10:06 +0000)
commit490823746a13bca58798e11543701c1cd30ffdf6
treeac4524c265bdb43dab0552543dbace95c2efb57a
parent7df3043db36ddeb3e4c4f7412e9d9c6c4a797f79
Fix 'unknown documentation command' warning ranges

Warnings generated by -Wdocumentation-unknown-command did only have a
start location, not a full source range. This resulted in only the
"carret" being show in messages, and IDEs highlighting only the single
initial character.

llvm-svn: 285056
clang/lib/AST/CommentLexer.cpp
clang/test/Sema/warn-documentation-unknown-command.cpp