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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs