Added doxygen comment

This commit is contained in:
Daniel Marjamäki 2018-03-12 12:49:27 +01:00
parent 3ef3a6088d
commit c0e14d0a5d
1 changed files with 18 additions and 0 deletions

View File

@ -422,6 +422,24 @@ public:
void isEnumType(bool value) { void isEnumType(bool value) {
setFlag(fIsEnumType, value); setFlag(fIsEnumType, value);
} }
/**
* @brief Is current token a template argument?
*
* Original code:
*
* template<class C> struct S {
* C x;
* };
* S<int> s;
*
* Resulting code:
*
* struct S<int> {
* int x ; // <- "int" is a template argument
* }
* S<int> s;
*/
bool isTemplateArg() const { bool isTemplateArg() const {
return getFlag(fIsTemplateArg); return getFlag(fIsTemplateArg);
} }