[llvm-bugs] [Bug 24788] New: locations in the same macro invocation are specified by different FileID
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Sep 11 14:16:55 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24788
Bug ID: 24788
Summary: locations in the same macro invocation are specified
by different FileID
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: zhengkai at google.com
CC: llvm-bugs at lists.llvm.org, rtrieu at google.com
Classification: Unclassified
In the source manager client, different source locations are specified by their
FileID to check if they are in the same level of the macro expansion.
But in this case:
#define APPLY(f,x,y) x f y
APPLY(+,1,2);
the three source location:
foo.cpp:2:1 <Spelling = foo.cpp:7>
foo.cpp:2:1 <Spelling = foo.cpp:9>
foo.cpp:2:1 <Spelling = foo.cpp:11>
Which are pointed to the three arguments of the macro invocation APPLY have
different FileID.
--
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/20150911/019b05cb/attachment.html>
More information about the llvm-bugs
mailing list