[LLVMbugs] [Bug 3751] New: SourceLocation of -> or .

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Mar 7 07:41:35 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=3751

           Summary: SourceLocation of -> or .
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bolzoni at cs.unipr.it
                CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it


The only public code of clang::MemberExpr concerning SourceLocations or
SourceRanges is (constructor a part):
---->
virtual SourceLocation getExprLoc() const { return MemberLoc; }
SourceLocation getMemberLoc() const { return MemberLoc; }
virtual SourceRange getSourceRange() const {
  return SourceRange(getBase()->getLocStart(), MemberLoc);
}
----<
It seems there is no way to get the source location of . or -> , I think it is
a simple oversight. Would it be possible to add this feature?


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list