- Jul 24, 2009
-
-
- Jul 23, 2009
-
-
Ted Kremenek authored
This implements <rdar://problem/6336718> and checks for CERT secure coding advisory FLP30-C. llvm-svn: 76900
-
Anders Carlsson authored
llvm-svn: 76898
-
Daniel Dunbar authored
regardless of the architecture). - This is a good default for development & testing; for example without this any tests using 'clang' in the test suite will fail on PowerPC, since the driver will avoid using clang. - We don't want to actually ship something built this way, but that should be handled via some sort of configuration file. llvm-svn: 76886
-
Anders Carlsson authored
We don't need to keep track of the packed alignment, just whether the struct is packed or not. Fixes PR4610. llvm-svn: 76884
-
Daniel Dunbar authored
being masked by previous bug. llvm-svn: 76858
-
Anders Carlsson authored
Use arrays as union padding. Also, since the resulting struct will always contain a single element and either a single i8 element or an array of i8s, there's no reason to use a packed struct. llvm-svn: 76854
-
Steve Naroff authored
- Move Sema::ObjCQualifiedIdTypesAreCompatible(), Sema::QualifiedIdConformsQualifiedId(), and a couple helper functions to ASTContext. - Change ASTContext::canAssignObjCInterfaces() to use ASTContext:: ObjCQualifiedIdTypesAreCompatible(). - Tweak several test cases to accommodate the new/improved type checking. llvm-svn: 76830
-
Fariborz Jahanian authored
CXXBaseOrMemberInitializer AST node. Needed by its clients to do the initialization. llvm-svn: 76826
-
Mike Stump authored
value. This is on by default, and controlled by -Wreturn-type (-Wmost -Wall). I believe there should be very few false positives, though the most interesting case would be: int() { bar(); } when bar does: bar() { while (1) ; } Here, we assume functions return, unless they are marked with the noreturn attribute. I can envision a fixit note for functions that never return normally that don't have a noreturn attribute to add a noreturn attribute. If anyone spots other false positives, let me know! llvm-svn: 76821
-
Douglas Gregor authored
templates, e.g., template<typename T> struct Outer { struct Inner; }; template<typename T> struct Outer<T>::Inner { // ... }; Implementing this feature required some extensions to ActOnTag, which now takes a set of template parameter lists, and is the precursor to removing the ActOnClassTemplate function from the parser Action interface. The reason for this approach is simple: the parser cannot tell the difference between a class template definition and the definition of a member of a class template; both have template parameter lists, and semantic analysis determines what that template parameter list means. There is still some cleanup to do with ActOnTag and ActOnClassTemplate. This commit provides the basic functionality we need, however. llvm-svn: 76820
-
Mike Stump authored
llvm-svn: 76814
-
Mike Stump authored
llvm-svn: 76813
-
Eli Friedman authored
llvm-svn: 76807
-
- Jul 22, 2009
-
-
Ted Kremenek authored
'Checker' interface. An updated test case illustrates that after calling a function with the 'nonnull' attribute we now register the fact that the passed pointer must be non-null. This retention of information was not possible with the previously used GRSimpleAPICheck interface. llvm-svn: 76797
-
Eli Friedman authored
definitions. I'm not very familiar with this code, so please review. llvm-svn: 76796
-
Douglas Gregor authored
real. It turns out that we need to actually move all of the qualifiers up to the array type itself, then recanonicalize the deduced template argument type. llvm-svn: 76788
-
Douglas Gregor authored
llvm-svn: 76777
-
Douglas Gregor authored
llvm-svn: 76774
-
Douglas Gregor authored
const T can be matched with, e.g., volatile int [5] llvm-svn: 76773
-
Mike Stump authored
llvm-svn: 76772
-
Douglas Gregor authored
[class.union]p1", from John McCall! llvm-svn: 76766
-
Douglas Gregor authored
data members of class templates. We don't instantiate the definitions yet, however. llvm-svn: 76756
-
Steve Naroff authored
Fix a couple recent ABI regressions noticed during code review (fallout from the ObjC type system rewrite). It's unfortunate that the mangling includes the low-level structs. Nevertheless, we need this for binary compatibility with GCC. llvm-svn: 76755
-
-
Douglas Gregor authored
out of line. llvm-svn: 76740
-
Eli Friedman authored
llvm-svn: 76726
-
Ted Kremenek authored
'cast type' of a region to invalidate its binding. This only occurs when using RegionStoreManager, as it records the cast type. I'm currently considering removing the notion of a cast type (see comments in code). llvm-svn: 76719
-
Mon P Wang authored
__attribute__((address_space(1))) struct {int arr[ 3 ]; } *p1; ... = p1->arr[2]; // load from address space 1 llvm-svn: 76717
-
Mike Stump authored
llvm-svn: 76709
-
Douglas Gregor authored
cannot match that nested-name-specifier to a class template or class template partial specialization. llvm-svn: 76704
-
Douglas Gregor authored
member functions of class templates, e.g., template<typename T> struct X { void f(T); }; template<typename T> X<T>::f(T) { /* ... */ } llvm-svn: 76692
-
Mike Stump authored
llvm-svn: 76691
-
Mike Stump authored
llvm-svn: 76690
-
Mike Stump authored
llvm-svn: 76687
-
Mike Stump authored
llvm-svn: 76685
-
Mike Stump authored
llvm-svn: 76681
-
Mike Stump authored
llvm-svn: 76670
-
- Jul 21, 2009
-
-
Ted Kremenek authored
llvm-svn: 76656
-
Ted Kremenek authored
Add test case for PR 4596, which is already fixed due to Steve Naroff's overhaul of the Objective-C type system, but isn't in a checker build yet. llvm-svn: 76648
-