summaryrefslogtreecommitdiffstats
path: root/clang/Sema
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-26 04:02:13 +0000
committerChris Lattner <sabre@nondot.org>2007-08-26 04:02:13 +0000
commitb677a9398ad0ba6edcc51bb4bd18cf72e94b8243 (patch)
tree3d5152a7dae53cd7abaae805fbf12dde452e4be6 /clang/Sema
parent1c72d77d0182798065579b223d60d1684b16b104 (diff)
downloadbcm5719-llvm-b677a9398ad0ba6edcc51bb4bd18cf72e94b8243.tar.gz
bcm5719-llvm-b677a9398ad0ba6edcc51bb4bd18cf72e94b8243.zip
Make parse-ast-print print the storage class and inline
specifier of functions. llvm-svn: 41416
Diffstat (limited to 'clang/Sema')
-rw-r--r--clang/Sema/SemaDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Sema/SemaDecl.cpp b/clang/Sema/SemaDecl.cpp
index 46e5a108ca5..faf016b9448 100644
--- a/clang/Sema/SemaDecl.cpp
+++ b/clang/Sema/SemaDecl.cpp
@@ -156,7 +156,7 @@ Decl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid, Scope *S) {
QualType R = Context.BuiltinInfo.GetBuiltinType(BID, Context);
FunctionDecl *New = new FunctionDecl(SourceLocation(), II, R,
- FunctionDecl::Extern, 0);
+ FunctionDecl::Extern, false, 0);
// Find translation-unit scope to insert this function into.
while (S->getParent())
@@ -334,6 +334,7 @@ Sema::ParseDeclarator(Scope *S, Declarator &D, ExprTy *init,
}
FunctionDecl *NewFD = new FunctionDecl(D.getIdentifierLoc(), II, R, SC,
+ D.getDeclSpec().isInlineSpecified(),
LastDeclarator);
// Merge the decl with the existing one if appropriate.
OpenPOWER on IntegriCloud