summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/attr-malloc.m
Commit message (Collapse)AuthorAgeFilesLines
* Sema: Add support for __declspec(restrict)David Majnemer2015-02-041-5/+5
| | | | | | | | | | __declspec(restrict) and __attribute(malloc) are both handled identically by clang: they are allowed to the noalias LLVM attribute. Seeing as how noalias models the C99 notion of 'restrict', rename the internal clang attribute to Restrict from Malloc. llvm-svn: 228120
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-1/+1
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Change tests to use clang -cc1...Fariborz Jahanian2009-12-141-1/+1
| | | | llvm-svn: 91297
* Change handling of attribute 'malloc' to only accept the attribute on functionTed Kremenek2009-08-151-4/+5
| | | | | | | | | | declarations (and not function pointers). This is consistent with GCC. Accepting this attribute on function pointers means that the attribute should be treated as a type qualifier, which apparently is not what GCC does. We obviously can change this later should we desire to enhance the 'malloc' attribute in this way. llvm-svn: 79060
* Add more attribute 'malloc' test cases involving function pointers.Ted Kremenek2009-08-141-0/+3
| | | | llvm-svn: 79055
* This test case does not need to include 'stdlib.h'.Ted Kremenek2009-08-141-2/+0
| | | | llvm-svn: 79042
* Improve Sema's handling of attribute 'malloc' to reject the attribute whenTed Kremenek2009-08-141-0/+14
attaching to Objective-C methods (which mirrors GCC's behavior) and to allow the return type of the function to be an Objective-C pointer or Block pointer (which GCC also accepts). Along the way, add 'const' to some of the pointer arguments of various utility functions... llvm-svn: 79040
OpenPOWER on IntegriCloud