On 20 April 2011 10:10, Boris Kolpackov wrote: > >> What about std::size_t? > > This one is actually covered. In GCC AST std::size_t node is the same > as ::size_t (i.e., GCC does not create new *_TYPE node for using- > declarations).
My point is that libstdc++ does not use a using declaration for std::size_t, in c++config.h there is: namespace std { typedef __SIZE_TYPE__ size_t; This means std::size_t is a synonym for the same underlying type as size_t, but in a separate tree. >> That could be defined as a synonym for __SIZE_TYPE__ or decltype(sizeof(1)) >> so is not in a sequence of typedef declarations that includes size_t. > > If it were defined as one of these, I could then check for both ::size_t > and ::std::size_t. OK. Sorry I don't know the answer to your question.