Clean up: since we have FunctionDecl::IsInline, make it store the right value
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Jan 2013 00:08:28 +0000 (00:08 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 25 Jan 2013 00:08:28 +0000 (00:08 +0000)
commitf3814ad4268d6b4c206fb6f7d4b3460de485add2
tree6ba6838a660432d097c50659c0482e34cb55452d
parente29dadb6403c8b0d3658f9bbbe2f5fbde5431fdb
Clean up: since we have FunctionDecl::IsInline, make it store the right value
for template instantiations, and use it to simplify the implementation of
FunctionDecl::isInlined().

This incidentally changes the result of isInlined on a declared-but-not-defined
non-inline member function from true to false. This is sort of a bug fix, but
currently isInlined is only called on function definitions, so it has no visible
effects.

llvm-svn: 173397
clang/include/clang/AST/Decl.h
clang/lib/AST/Decl.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp