Bug 69791 - [Parser] Indexer complains about va_list
Summary: [Parser] Indexer complains about va_list
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 2.1   Edit
Assignee: John Camelon CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2004-07-11 05:47 EDT by Sebastian Bauer CLA
Modified: 2008-06-18 18:46 EDT (History)
1 user (show)

See Also:


Attachments
A possible fix for the problem. (3.72 KB, patch)
2004-07-13 06:32 EDT, Sebastian Bauer CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Bauer CLA 2004-07-11 05:47:58 EDT
The indexer complains when using va_list. This is probably because it is from 
type __gnuc_va_list on GCC and the indexer doesn't know about this type.

Maybe CDT should be extended to support different builtin types (via extension 
points).
Comment 1 Sebastian Bauer CLA 2004-07-13 06:32:19 EDT
Created attachment 13193 [details]
A possible fix for the problem.

It redefines __builtin_va_list to void * within the GCCExtension. Don't know if
it is a good idea but it works here.
Comment 2 John Camelon CLA 2004-08-13 09:58:02 EDT
Ideally, there should be predefined-types loading in the IASTFactory's 
extension.  
Comment 3 John Camelon CLA 2004-09-11 19:24:47 EDT
Fix applied to HEAD & AST2.  
Comment 4 John Camelon CLA 2004-09-11 19:25:16 EDT
fixed