aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Sema/static-array.c
AgeCommit message (Collapse)AuthorFilesLines
2014-08-27Fix representation of __attribute__((nonnull)) to support correctly modelingRichard Smith1-2/+2
the no-arguments case. Don't expand this to an __attribute__((nonnull(A, B, C))) attribute, since that does the wrong thing for function templates and varargs functions. In passing, fix a grammar error in the diagnostic, a crash if __attribute__((nonnull(N))) is applied to a varargs function, a bug where the same null argument could be diagnosed multiple times if there were multiple nonnull attributes referring to it, and a bug where nonnull attributes would not be accumulated correctly across redeclarations. llvm-svn: 216520
2012-08-15Allow 'static' and type qualifiers in K&R parameter type lists.Matt Beaumont-Gay1-0/+4
llvm-svn: 161980
2012-08-15Check for improper use of 'static' and type qualifiers in arrayHans Wennborg1-10/+32
declarators. They are only allowed for function parameters, and then only on the outermost array type derivation. llvm-svn: 161934
2011-10-16Add sema checks for calls to functions taking static array parametersPeter Collingbourne1-0/+31
llvm-svn: 142157