Doxygen
Loading...
Searching...
No Matches
defargs.h File Reference
#include "types.h"
#include <memory>
Include dependency graph for defargs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::unique_ptr< ArgumentListstringToArgumentList (SrcLangExt lang, const QCString &argsString, QCString *extraTypeChars=nullptr)

Function Documentation

◆ stringToArgumentList()

std::unique_ptr< ArgumentList > stringToArgumentList ( SrcLangExt lang,
const QCString & argsString,
QCString * extraTypeChars )

Converts an argument string into an ArgumentList.

Parameters
[in]langlanguage of the current argument list
[in]argsStringthe list of Arguments.
[out]extraTypeCharspoint to string to which trailing characters for complex types are written to

Definition at line 826 of file defargs.l.

827{
828 std::unique_ptr<ArgumentList> al = std::make_unique<ArgumentList>();
829 if (argsString.isEmpty()) return al;
830
831 yyscan_t yyscanner;
832 defargsYY_state extra(argsString.data(),al,lang);
833 defargsYYlex_init_extra(&extra,&yyscanner);
834#ifdef FLEX_DEBUG
835 defargsYYset_debug(Debug::isFlagSet(Debug::Lex_defargs)?1:0,yyscanner);
836#endif
837 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
838 DebugLex debugLex(Debug::Lex_defargs, __FILE__, nullptr);
839
840 defargsYYrestart( nullptr, yyscanner );
841 BEGIN( Start );
842 defargsYYlex(yyscanner);
843 if (yyextra->argList->empty())
844 {
845 yyextra->argList->setNoParameters(TRUE);
846 }
847 if (extraTypeChars) *extraTypeChars=yyextra->extraTypeChars;
848 //printf("stringToArgumentList(%s) result=%s\n",argsString,qPrint(argListToString(*al)));
849 defargsYYlex_destroy(yyscanner);
850 return al;
851}
@ Lex_defargs
Definition debug.h:59
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:133
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:167
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:176
yyguts_t * yyscan_t
Definition code.l:24
#define TRUE
Definition qcstring.h:37

References QCString::data(), QCString::isEmpty(), Debug::isFlagSet(), Debug::Lex_defargs, and TRUE.

Referenced by addClassToContext(), ClassDefImpl::addMemberToTemplateInstance(), buildDefineList(), buildFunctionList(), anonymous_namespace{tagreader.cpp}::TagFileParser::buildMemberList(), combineDeclarationAndDefinition(), computeTemplateClassRelations(), findTemplateInstanceRelation(), generateDEFForMember(), SymbolResolver::Private::getResolvedSymbol(), SymbolResolver::Private::getResolvedSymbolRec(), SymbolResolver::Private::getResolvedTypeRec(), MemberDefImpl::init(), ClassDefImpl::insertTemplateInstance(), and matchCanonicalTypes().