<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 12.3.2011 г. 10:49, Ilya Mirsky wrote:
<blockquote
cite="mid:AANLkTimy_6vo26+ZHT=NbdBW2zt4aBuM305PJeOtpMVy@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">Hi all,<br>
<br>
I need to check if a given Decl, and more specifically a
FunctionDecl, is declared static.<br>
Currently I'm manually looking for the static token using
SourceManager::getCharcterData.<br>
Is there more elegant way?<br>
</div>
</blockquote>
Only members can be static, right?<br>
I believe what you are looking for is
clang::CXXMethodDecl::isStatic(), defined in clang/AST/DeclCXX.h
(There was a thread recently: "Online Doxygen docs are incomplete")<br>
<br>
Vassil<br>
</body>
</html>