aboutsummaryrefslogtreecommitdiff
path: root/lib/AST
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-01-20 21:40:12 +0000
committerTed Kremenek <kremenek@apple.com>2012-01-20 21:40:12 +0000
commit18932a0f2a94a7813ec461d1118c39ecf8aa936f (patch)
tree2b86159a44858013b84db454384d4f9900444fc8 /lib/AST
parent3eaaa99c7ee85300e2c55dcc2103ebeae19f4d11 (diff)
Add ability to specifiy 'restrict' on parameters of builtins, and correct this oversight for scanf functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST')
-rw-r--r--lib/AST/ASTContext.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index 476d221fdf..27bbc72e88 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -6468,6 +6468,9 @@ static QualType DecodeTypeFromStr(const char *&Str, const ASTContext &Context,
case 'D':
Type = Context.getVolatileType(Type);
break;
+ case 'R':
+ Type = Type.withRestrict();
+ break;
}
}