[llvm-bugs] [Bug 28806] New: Clang AST generates invalid line number with CXXMethodDecl and CallExpr
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 1 15:38:51 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28806
Bug ID: 28806
Summary: Clang AST generates invalid line number with
CXXMethodDecl and CallExpr
Product: clang
Version: 3.7
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: karl.dejean at gnostech.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
I use CLANG in a project that scans projects and creates an AST. I look for
patterns in the AST an flag them for the user. The flagging uses a bookmark at
a line number. This line number is extracted from the CLANG AST. I have
noticed that on "CallExpr" and "CXXMethodDecl", CLANG will indicate a line
number in another reference file. The line numbers sometimes stay within that
reference file, providing invalid line numbers for the file I want to flag.
The line numbers in the AST eventually return to the original file I am
scanning, but not before picking up invalid line numbers. I have include a
Visual Studio project that produces this problem, a sample AST output, and a
document explaining where this AST deviates and where in returns. The document
also explains that with the "CXXMethodDecl" in an include file, the problem is
much worse.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160801/0f2f8b0f/attachment-0001.html>
More information about the llvm-bugs
mailing list