Added doxygen comment
This commit is contained in:
parent
3ef3a6088d
commit
c0e14d0a5d
18
lib/token.h
18
lib/token.h
|
@ -422,6 +422,24 @@ public:
|
|||
void isEnumType(bool 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 {
|
||||
return getFlag(fIsTemplateArg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue