Bug 70928

Summary: [Parser] Indexer complains about __cdecl
Product: [Tools] CDT Reporter: Victor Lenet <victor.lenet>
Component: cdt-parserAssignee: John Camelon <john.camelon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Victor Lenet CLA 2004-07-27 14:10:53 EDT
Problem marker:
C/C++ Indexer Problem: Attempt to use symbol failed : __cdecl in 
file: /usr/include/stdio.h on line: 196.

caused by following code snippet in _ansi.h (included by stdio.h):
#define	_EXFUN(name, proto)		__cdecl name proto
#define	_EXPARM(name, proto)		(* __cdecl name) proto
Comment 1 Victor Lenet CLA 2004-07-29 14:04:59 EDT
Parser fails for:

typedef int size_t;
size_t __cdecl foo();

and

struct A {inta;};
A __cdecl foo();

but not for:

int __cdecl foo();

or

typedef int size_t;
size_t* __cdecl foo();

or

A* __cdecl foo();
Comment 2 John Camelon CLA 2004-08-03 11:52:01 EDT
REF: http://gcc.gnu.org/ml/gcc/1999-12n/msg00523.html
Comment 3 John Camelon CLA 2004-08-10 15:53:20 EDT
Fix applied to HEAD & 2_0.