[cfe-dev] Line and Column from clang-tidy

Nikola Smiljanic popizdeh at gmail.com
Wed Oct 29 21:32:04 PDT 2014


clang::SourceManager has this information, have a look at getColumnNumber.

On Thu, Oct 30, 2014 at 9:53 AM, Daniel Dilts <diltsman at gmail.com> wrote:

> I have been calling runClangTidy directly, and I finally am (mostly)
> getting the results that I expect.
>
> ClangTidyMessage has the position as an offset into the file.  Is there a
> function in Clang/LLVM that will convert this to a line and column?
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141030/0b843112/attachment.html>


More information about the cfe-dev mailing list