D:/doxygen-1.3.8.src/doxygen-1.3.8/src/defargs.cpp File Reference
#include <stdio.h>
#include "qtbc.h"
#include <assert.h>
#include <ctype.h>
#include <qregexp.h>
#include "defargs.h"
#include "entry.h"
#include "util.h"
Go to the source code of this file.
Detailed Description
This scanner is used to convert a string into a list of function or template arguments. Each parsed argument results in a Argument struct, that is put into an ArgumentList in declaration order. Comment blocks for arguments can also be included in the string. The argument string does not contain new-lines (except inside any comment blocks). An Argument consists of the string fields: type,name,default value, and documentation The Argument list as a whole can be pure, constant or volatile.
Examples of input strings are:
"(int a,int b) const"
"(const char *s="hello world",int=5) = 0"
"<class T,class N>"
"(char c,const char)"
Note: It is not always possible to distinguish between the name and type of an argument. In case of doubt the name is added to the type, and the matchArgumentList in util.cpp is be used to further determine the correct separation.
Definition in file defargs.cpp.
Generated on Sat Aug 21 19:11:53 2004 for Doxygen by
1.3.8