]> granicus.if.org Git - clang/commit
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)
commit0d99b1f50a9fc7f93df476e7c963ee3c1646affe
tree27d1c91ff6ca3eee042da93db842cb624b8dbe52
parent8134af3a6663e478314314c53dd125c6e498a135
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285056 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/CommentLexer.cpp
test/Sema/warn-documentation-unknown-command.cpp