Skip to content

Commit 8adcbd9

Browse files
emit inline for vars too
1 parent 941c577 commit 8adcbd9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cppwriter/src/cppwriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ static void EmitAttribute(std::uint32_t attr, std::ostream& stm)
3838
stm << "volatile ";
3939
if (attr & cppast::CppIdentifierAttrib::MUTABLE)
4040
stm << "mutable ";
41+
if (attr & cppast::CppIdentifierAttrib::INLINE)
42+
stm << "inline ";
4143
}
4244

4345
static void EmitTypeModifier(const cppast::CppTypeModifier& modifier, std::ostream& stm)

0 commit comments

Comments
 (0)