]> granicus.if.org Git - clang/commit
Be a little more clever about inline member functions that are marked inline in the...
authorAnders Carlsson <andersca@mac.com>
Fri, 4 Dec 2009 22:35:50 +0000 (22:35 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 4 Dec 2009 22:35:50 +0000 (22:35 +0000)
commit48eda2c5d6d2a5c95775a1a3a8a22428bb6869c6
treeef374db0e826725721d861821245a029c8aa8222
parent99369081447e9b7b2c2f724d39e9ec8409291d08
Be a little more clever about inline member functions that are marked inline in the inline class declaration but not in the actual definition:

class A {
  inline void f();
}

void A::f() { }

This is not the most ideal solution, since it doesn't work 100% with regular functions (as my FIXME comment states).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90607 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
test/CodeGenCXX/inline-functions.cpp [new file with mode: 0644]