forked from OSchip/llvm-project
Add prototype info for __builtin_memcpy, reducing #diagnostics from 37 to 34 on
PR1750 llvm-svn: 43435
This commit is contained in:
parent
645ff3ff61
commit
cc779571b8
|
@ -130,6 +130,10 @@ static QualType DecodeTypeFromStr(const char *&Str, ASTContext &Context) {
|
|||
else
|
||||
Type = Context.CharTy;
|
||||
break;
|
||||
case 'z': // size_t.
|
||||
assert(!Long && !Signed && !Unsigned && "Bad modifiers for 'z'!");
|
||||
Type = Context.getSizeType();
|
||||
break;
|
||||
case 'F':
|
||||
Type = Context.getCFConstantStringType();
|
||||
break;
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
// i -> int
|
||||
// f -> float
|
||||
// d -> double
|
||||
// z -> size_t
|
||||
// F -> constant CFString
|
||||
// V -> __builtin_va_list
|
||||
// . -> "...". This may only occur at the end of the function list.
|
||||
|
@ -63,5 +64,6 @@ BUILTIN(__builtin___CFStringMakeConstantString, "FC*cC*", "nc")
|
|||
BUILTIN(__builtin_va_start, "vV&.", "n")
|
||||
BUILTIN(__builtin_va_end, "vV&", "n")
|
||||
BUILTIN(__builtin_va_copy, "vV&V", "n")
|
||||
BUILTIN(__builtin_memcpy, "v*v*vC*z", "n")
|
||||
|
||||
#undef BUILTIN
|
||||
|
|
Loading…
Reference in New Issue