Closed
Bug 422681
Opened 17 years ago
Closed 17 years ago
gcc-dehydra: expose template paramater types
Categories
(Developer Infrastructure :: Source Code Analysis, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: benjamin, Unassigned)
Details
If I have a templated type nsCOMPtr<nsIFoo> in dehydra-gcc, I want to be able to get to the nsIFoo type object. I originally thought of type.parameters, but I think that conflicts with function parameters, right?
type.instantiation = [{kind: 'class', name: 'nsIFoo', ...}]
For numeric/enum instantiations:
template<int Count>
class AutoFoo { };
for AutoFoo<40>;
type.instantiation = [{value: "40"}]
(Need this to assert things like "for any nsCOMPtr<T>, T must be a GC object")
Updated•17 years ago
|
Status: NEW → ASSIGNED
Comment 1•17 years ago
|
||
Added template:{name:"template's base name", arguments:[constants and/or types go here]} to template instantiations
Which in this case would be template:{name:"AutoFoo", arguments:["40"]}
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•