Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] (C/C++ AST API) const/volatile/... qualifiers for IType or IVariable

Is there a concise way to obtain const/volatile/... type qualifiers for a given IType (or at least for a given IVariable)?
IType doesn't seem to provide qualifiers in general case.
In fact, I have a bit simpler question: for a given IVariable, tell if it's const.
It looks like I need to find a declaration (and its decl specifier), which looks very close to an overkill.
Is there a simpler way to do that using public API?

Back to the top