- Feb 16, 2009
-
-
Chris Lattner authored
llvm-svn: 64634
-
Argyrios Kyrtzidis authored
DeclContext had its "casting machinery" inside the class definition so that if a new declaration context Decl appeared, the necessary changes would be in one place. Since, now, only DeclNodes.def needs to be modified, move things out-of-line and simplify the DeclContext class. llvm-svn: 64630
-
Argyrios Kyrtzidis authored
-In DeclNodes.def, only mark as DeclContexts the top classes that directly derive from DeclContext. If the Decl has subclasses, it should be marked with DECL_CONTEXT_BASE. -Use DeclNodes.def to automate the DeclContext::classof and DeclContext::CastTo definitions. llvm-svn: 64629
-
Ben Laurie authored
llvm-svn: 64628
-
Ted Kremenek authored
llvm-svn: 64627
-
- Feb 15, 2009
-
-
Nate Begeman authored
llvm-svn: 64614
-
Chris Lattner authored
llvm-svn: 64613
-
Chris Lattner authored
DiagnoseUseOfDeprecatedDecl method. This ensures that they are treated consistently. This gets us 'unavailable' support on a few new types of decls, and makes sure we consistently silence deprecated when the caller is also deprecated. llvm-svn: 64612
-
Chris Lattner authored
llvm-svn: 64609
-
Chris Lattner authored
llvm-svn: 64608
-
Chris Lattner authored
instantiation, which highlights the arguments of a function like macro as well as its identifier. llvm-svn: 64607
-
Chris Lattner authored
llvm-svn: 64606
-
Chris Lattner authored
llvm-svn: 64605
-
Chris Lattner authored
*end* of a macro instantiation, not the start of it. This is really all about bug-for-bug compatibility with GCC, but not doing this breaks the FreeBSD kernel. llvm-svn: 64604
-
Chris Lattner authored
Now instead of just tracking the expansion history, also track the full range of the macro that got replaced. For object-like macros, this doesn't change anything. For _Pragma and function-like macros, this means we track the locations of the ')'. This is required for PR3579 because apparently GCC uses the line of the ')' of a function-like macro as the location to expand __LINE__ to. llvm-svn: 64601
-
Ted Kremenek authored
llvm-svn: 64596
-
Daniel Dunbar authored
llvm-svn: 64595
-
Chris Lattner authored
This implements gcc/testsuite/objc.dg/method-attribute-1.m llvm-svn: 64581
-
Daniel Dunbar authored
creating valid LLVM structures (although they work fined). llvm-svn: 64580
-
Chris Lattner authored
llvm-svn: 64572
-
- Feb 14, 2009
-
-
Mike Stump authored
Thanks Anders. llvm-svn: 64571
-
Mike Stump authored
starting to work for blocks. llvm-svn: 64570
-
Fariborz Jahanian authored
Now we are pretty close to be in sync with objc's classic abi when it comes to passing dejagnu objc executable tests. llvm-svn: 64569
-
Douglas Gregor authored
Warn that complex numbers are an extension in a freestanding C99 implementation. llvm-svn: 64568
-
Douglas Gregor authored
Add -ffreestanding to suppress the implicit declaration of library builtins like printf and malloc. Fixes PR3586 llvm-svn: 64566
-
Cedric Venet authored
Correct two files with inconsistent lines endings. llvm-svn: 64564
-
Fariborz Jahanian authored
which consequently caused a Seg fault. during meta-data generation. It also addresses an issue related to late binding of newly synthesize ivars (when we support it). llvm-svn: 64563
-
Anders Carlsson authored
llvm-svn: 64562
-
Douglas Gregor authored
about, whether they are builtins or not. Use this to add the appropriate "format" attribute to NSLog, NSLogv, asprintf, and vasprintf, and to translate builtin attributes (from Builtins.def) into actual attributes on the function declaration. Use the "printf" format attribute on function declarations to determine whether we should do format string checking, rather than looking at an ad hoc list of builtins and "known" function names. Be a bit more careful about when we consider a function a "builtin" in C++. llvm-svn: 64561
-
Anders Carlsson authored
llvm-svn: 64560
-
Mike Stump authored
llvm-svn: 64559
-
Ted Kremenek authored
ConstraintManager: - constify getSymVal() BasicConstraintManager: - Pull out logic that would be common to ConstraintManagers of a similar nature and put them in a parent class called 'SimpleConstraintManager'. RangeConstraintManager: - Added a new prototype ConstraintManager to track ranges of variables! This ConstraintManager keeps tracks of ranges of concrete integers that a symbolic integer may have. AnalysisConsumer: - Add driver option to use RangeConstraintManager with GRExprEngine-based analyses. llvm-svn: 64558
-
Anton Korobeynikov authored
llvm-svn: 64557
-
Cedric Venet authored
llvm-svn: 64556
-
Argyrios Kyrtzidis authored
llvm-svn: 64553
-
Chris Lattner authored
llvm-svn: 64548
-
Chris Lattner authored
llvm-svn: 64547
-
Chris Lattner authored
We don't have "zero cost" exceptions for ObjC yet, so there is no codegen support required. llvm-svn: 64546
-
Chris Lattner authored
1) implement parser and sema support for reading and verifying attribute(warnunusedresult). 2) rename hasLocalSideEffect to isUnusedResultAWarning, inverting the sense of its result. 3) extend isUnusedResultAWarning to directly return the loc and range info that should be reported to the user. Make it substantially more precise in some cases than what was previously reported. 4) teach isUnusedResultAWarning about CallExpr to decls that are pure/const/warnunusedresult, fixing a fixme. 5) change warn_attribute_wrong_decl_type to not pass in english strings, instead, pass in integers and use %select. llvm-svn: 64543
-
Chris Lattner authored
llvm-svn: 64542
-