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: unassignedclangb...@nondot.org Reporter: zheng...@google.com CC: llvm-bugs@lists.llvm.org, rtr...@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs