- Aug 17, 2012
-
-
Fariborz Jahanian authored
'int' vs. 'long' issue with i386. llvm-svn: 162125
-
Fariborz Jahanian authored
on unsafe cast of a c-function call. This is a C-only option. llvm-svn: 162109
-
Benjamin Kramer authored
GCC documents these as unsigned, but defines them as signed. llvm-svn: 162106
-
Dmitri Gribenko authored
function arguments and arguments for variadic functions are of a particular type which is determined by some other argument to the same function call. Usecases include: * MPI library implementations, where these attributes enable checking that buffer type matches the passed MPI_Datatype; * for HDF5 library there is a similar usecase as MPI; * checking types of variadic functions' arguments for functions like fcntl() and ioctl(). llvm-svn: 162067
-
Eric Christopher authored
constraints we don't recognize. llvm-svn: 162064
-
- Aug 16, 2012
-
-
Dmitri Gribenko authored
declaration it was attached to. llvm-svn: 162033
-
- Aug 15, 2012
-
-
Matt Beaumont-Gay authored
llvm-svn: 161980
-
Fariborz Jahanian authored
as it does something unexpected (but gcc compatible). Suggest use of __attribute__((visibility("hidden"))) on declaration instead. // rdar://7703982 llvm-svn: 161972
-
Hans Wennborg authored
declarators. They are only allowed for function parameters, and then only on the outermost array type derivation. llvm-svn: 161934
-
- Aug 14, 2012
-
-
Dmitri Gribenko authored
The reason for the recent fallout for "attaching comments to any redeclaration" change are two false assumptions: (1) a RawComment is attached to a single decl (not true for 'typedef struct X *Y' where we want the comment to be attached to both X and Y); (2) the whole redeclaration chain has only a single comment (obviously false, the user can put a separate comment for each redeclaration). To fix (1) I revert the part of the recent change where a 'Decl*' member was introduced to RawComment. Now ASTContext has a separate DenseMap for mapping 'Decl*' to 'FullComment*'. To fix (2) I just removed the test with this assumption. We might not parse every comment in redecl chain if we already parsed at least one. llvm-svn: 161878
-
Benjamin Kramer authored
llvm-svn: 161863
-
- Aug 13, 2012
-
-
Fariborz Jahanian authored
per Richard's comment. llvm-svn: 161786
-
Fariborz Jahanian authored
function attribute. // rdar://10253857 llvm-svn: 161767
-
Douglas Gregor authored
'templated' declaration for a function or class template to refer to the function or class template itself, to which the documentation will be attached. Fixes PR13593. llvm-svn: 161762
-
- Aug 09, 2012
-
-
Eli Friedman authored
Handle deprecation diagnostics correctly for C struct fields and Objective-C properties/ivars. <rdar://problem/6642337>. llvm-svn: 161534
-
- Aug 08, 2012
-
-
Eli Friedman authored
Unify the codepaths for emitting deprecation warnings. The test changes are just to account for us emitting notes more consistently. llvm-svn: 161528
-
Anna Zaks authored
llvm-svn: 161527
-
Eli Friedman authored
are not definitions. This follows the behavior of both gcc and earlier versions of clang. Regression from r156531. <rdar://problem/12048621>. llvm-svn: 161523
-
Eli Friedman authored
Fixes a crash (<rdar://problem/11067144>), and generally seems to improve recovery in other cases. llvm-svn: 161474
-
- Aug 07, 2012
-
-
Dmitri Gribenko authored
The implementation also includes a Relax NG schema and tests for the schema itself. The schema is used in c-index-test to verify that XML documents we produce are valid. In order to do the validation, we add an optional libxml2 dependency for c-index-test. Credits for CMake part go to Doug Gregor. Credits for Autoconf part go to Eric Christopher. Thanks! llvm-svn: 161431
-
Hans Wennborg authored
llvm-svn: 161408
-
Hans Wennborg authored
This is useful for example for %n in printf, which expects a pointer to int with the same logic for checking as %d would have in scanf. llvm-svn: 161407
-
- Aug 06, 2012
-
-
Dmitri Gribenko authored
Doxygen manual claims that multiple \brief or \returns commands will be merged together, but actual behavior is different (second \brief command becomes a part of a discussion, second \returns becomes a "Returns: blah" paragraph on its own). Anyway, it seems to be a bad idea to use multiple \brief or \returns commands in a single command. llvm-svn: 161325
-
Dmitri Gribenko authored
ObjC methods. llvm-svn: 161324
-
- Aug 03, 2012
-
-
Dmitri Gribenko authored
the function returns void. llvm-svn: 161261
-
- Aug 02, 2012
-
-
Dmitri Gribenko authored
templates. llvm-svn: 161215
-
Dmitri Gribenko authored
llvm-svn: 161211
-
Hans Wennborg authored
Use "%clang_cc1" vs "not %clang_cc1" instead. Also use -fsyntax-only. llvm-svn: 161165
-
Dmitri Gribenko authored
comment being tested. llvm-svn: 161144
-
Dmitri Gribenko authored
llvm-svn: 161142
-
- Aug 01, 2012
-
-
Hans Wennborg authored
This fixes PR13502 and adds a test to keep track of which targets support TLS and which do not. llvm-svn: 161124
-
Dmitri Gribenko authored
The only caveat is renumbering CXCommentKind enum for aesthetic reasons -- this breaks libclang binary compatibility, but should not be a problem since API is so new. This also fixes PR13372 as a side-effect. llvm-svn: 161087
-
- Jul 31, 2012
-
-
Hans Wennborg authored
Warn about using pointers to const-qualified types as arguments to scanf. Ignore the volatile qualifier when checking if types match. llvm-svn: 161052
-
- Jul 30, 2012
-
-
Matt Beaumont-Gay authored
While '%n' can be used for evil in an attacker-controlled format string, there isn't any acute danger in using it in a literal format string with an argument of the appropriate type. llvm-svn: 160984
-
Dmitri Gribenko authored
command llvm-svn: 160975
-
Hans Wennborg authored
This makes Clang check that the corresponding argument for "%n" in a format string is a pointer to int. llvm-svn: 160966
-
- Jul 27, 2012
-
-
Hans Wennborg authored
Clang's -Wformat fix-its currently suggest using "%zu" for values of type size_t (in C99 or C++11 mode). However, for a type such as std::vector<T>::size_type, it does not notice that type is actually typedeffed to size_t, and instead suggests a format for the underlying type, such as "%lu" or "%u". This commit makes the format string fix mechanism walk the typedef chain so that it notices if the type is size_t, even if that isn't "at the top". llvm-svn: 160886
-
- Jul 25, 2012
-
-
- Jul 24, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 160700
-
Jordan Rose authored
This tests for the ability to include a "message" field in availability attributes, like so: extern void ATSFontGetName(const char *oName) __attribute__((availability(macosx,introduced=8.0,deprecated=9.0, message="use CTFontCopyFullName"))); This was actually supported in Clang 3.1, but we got a request for a __has_feature so that header files can use this more safely. It's unfortunate that the 3.1 release doesn't include this, however. <rdar://problem/11886458> llvm-svn: 160699
-