[LLVMbugs] [Bug 12220] New: Introduce ComputedSourceRange and ComputedSourceLoc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Mar 9 11:35:56 PST 2012


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

             Bug #: 12220
           Summary: Introduce ComputedSourceRange and ComputedSourceLoc
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Particularly in relation to partial diagnostics, Sema has a tendency to eagerly
compute source ranges and source locations which are quite commonly never used.
This is not cheap.

We should introduce ComputedSourceRange and ComputedSourceLoc classes which can
store references to statements or actual source locations.

We should add partial diag methods to allow easily adding ComputedSourceRanges
and ComputedSourceLocs (e.g., add_range(const Stmt*), add_loc(const Expr*)).

We should audit Sema and try and eliminate the eager computation of locations
and ranges.

-- 
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