Closed Bug 497972 Opened 15 years ago Closed 11 years ago

Fix locations in gcc

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: humph, Unassigned)

References

Details

Attachments

(1 file, 2 obsolete files)

Dehydra reports locations that are off (end vs. start of loc), making it hard to provide good source code links in dxr.  As an example, from nsRDFService.cpp.html:

1177 RDFServiceImpl::GetBlobLiteral(const PRUint8 *aBytes, PRInt32 aLength,
1178                                nsIRDFBlob **aResult)
  
The loc for GetBlobLiteral is 1178 vs. 1177.  This isn't the worst example I've seen.  I'll try to find a better one, as I work away.
Attached patch class loc fix (obsolete) — Splinter Review
hey please check if this helps. I'm not gonna fix the function loc bug on gcc 4.3 as it seems to be fixed in 4.5 (now that dehydra works with 4.5, you should switch anyway)
Attachment #413718 - Flags: review?(david.humphrey)
forgot to mention, this fixes class classname { locations pointing at '{'
Attached patch fixed version (obsolete) — Splinter Review
Good thing you didnt have time to try that. it had a bug that manifested in treehydra failing to build.
Attachment #413718 - Attachment is obsolete: true
Attachment #413718 - Flags: review?(david.humphrey)
Attachment #414151 - Attachment is obsolete: true
Dehydra and treehydra are no longer maintained by Mozilla.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: