[cfe-dev] inline directive apparently ignored
Vinay Sajip
vinay_sajip at yahoo.co.uk
Sat Sep 24 05:50:00 PDT 2011
Given the source
static __inline__ int F1(float x, double y);
static __attribute__((__always_inline__)) int F2(float x, double y);
The AST produced via libclang is
F1 FunctionDecl FunctionProto
x ParmDecl Float
y ParmDecl Double
F2 FunctionDecl FunctionProto
UnexposedAttr 9 <-- the value of the AlwaysInline attribute
x ParmDecl Float
y ParmDecl Double
Is there anything special one has to do to get clang to return the __inline__
attribute?
Thanks,
Vinay Sajip
More information about the cfe-dev
mailing list