Closed Bug 415626 Opened 17 years ago Closed 17 years ago

Incorrect constructor representation in GCC Dehydra

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: taras.mozilla, Assigned: taras.mozilla)

Details

1. The C++ code: 2. 3. // Initialize the entry with placement new 4. new (entry) RequestMapEntry(request); 5. 6. The gcc-dehydra process() call: 7. 8. nsLoadGroup.cpp:112:41: Processing: {name:"entry", type:{isPointer:true, type:{name:"PLDHashEntryHdr", typedef:{kind:"struct", name:"PLDHashEntryHdr"}}}, loc:"../../../../src/netwerk/base/src/nsLoadGroup.cpp:106:37"},{name:"operator new(size_t, void*)", isFunction:true, type:{type:#1={isPointer:true, type:#2={name:"void"}}, parameters:[{name:"size_t", typedef:{name:"unsigned int"}}, #1#]}, loc:"/builds/gcc-dehydra/installed/lib/gcc/x86_64-unknown-linux-gnu/4.3.0/../../../../include/c++/4.3.0/new:105:57", isFcall:true, arguments:[]},{name:"<anonymous>", type:#3={isPointer:true, type:{kind:"class", name:"RequestMapEntry"}}, loc:"../../../../src/netwerk/base/src/nsLoadGroup.cpp:112:40"},{value:"0u"},{name:"RequestMapEntry::RequestMapEntry(nsIRequest*)", isFunction:true, isConstructor:true, type:{type:#2#, parameters:[#3#, {isPointer:true, type:{kind:"class", name:"nsIRequest"}}]}, loc:"../../../../src/netwerk/base/src/nsLoadGroup.cpp:76:41", isFcall:true, arguments:[]}
Turned out function call arguments were mostly broken. print-functions.js now gives me this filtered output: nsLoadGroup.cpp:112:41: ({name:"RequestMapEntry::RequestMapEntry(nsIRequest*)", isFunction:true, isConstructor:true, isFcall:true, fieldOf:{name:"<anonymous>"}, arguments:[{name:"request"}]})
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
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.