- Feb 17, 2009
-
-
Chris Lattner authored
instance in Sema be a pimpl. llvm-svn: 64718
-
Douglas Gregor authored
CXXRecordDecl that is used to represent class template specializations. These are canonical declarations that can refer to either an actual class template specialization in the code, e.g., template<> class vector<bool> { }; or to a template instantiation. However, neither of these features is actually implemented yet, so really we're just using (and uniqing) the declarations to make sure that, e.g., A<int> is a different type from A<float>. Note that we carefully distinguish between what the user wrote in the source code (e.g., "A<FLOAT>") and the semantic entity it represents (e.g., "A<float, int>"); the former is in the sugared Type, the latter is an actual Decl. llvm-svn: 64716
-
Chris Lattner authored
llvm-svn: 64712
-
Chris Lattner authored
llvm-svn: 64711
-
Daniel Dunbar authored
llvm-svn: 64700
-
- Feb 16, 2009
-
-
Daniel Dunbar authored
- Define pow[lf]?, sqrt[lf]? as builtins. - Add -fmath-errno option which binds to LangOptions.MathErrno - Add new builtin flag Builtin::Context::isConstWithoutErrno for functions which can be marked as const if errno isn't respected for math functions. Sema automatically marks these functions as const when they are defined, if MathErrno=0. - IRgen uses const attribute on sqrt and pow library functions to decide if it can use the llvm intrinsic. llvm-svn: 64689
-
Douglas Gregor authored
extensions). This caught a couple bugs in our test suite :) llvm-svn: 64686
-
Chris Lattner authored
We now pass all the deprecation tests in the objc.dg suite. llvm-svn: 64679
-
Douglas Gregor authored
llvm-svn: 64676
-
Chris Lattner authored
llvm-svn: 64673
-
Chris Lattner authored
llvm-svn: 64671
-
Chris Lattner authored
llvm-svn: 64670
-
Chris Lattner authored
dubious, but at least mark it as an invalid decl. llvm-svn: 64668
-
Chris Lattner authored
llvm-svn: 64667
-
Douglas Gregor authored
prototype, synthesize ParmVarDecls for prototype-less FunctionDecl. llvm-svn: 64666
-
Fariborz Jahanian authored
llvm-svn: 64660
-
Chris Lattner authored
whose declaration was declared as deprecated. llvm-svn: 64658
-
Fariborz Jahanian authored
the same. llvm-svn: 64657
-
Douglas Gregor authored
interface for ivars before assuming that this is an unresolved function name. Fixes <rdar://problem/6590445>. llvm-svn: 64653
-
Chris Lattner authored
llvm-svn: 64652
-
Chris Lattner authored
llvm-svn: 64651
-
Chris Lattner authored
property is deprecated, not the getter/setter if the attribute is on the property. llvm-svn: 64644
-
Chris Lattner authored
llvm-svn: 64643
-
Douglas Gregor authored
merge the prototype into the redeclaration (and make a note in the declaration). Fixes PR3588. llvm-svn: 64641
-
Douglas Gregor authored
- If a declaration is an invalid redeclaration of an existing name, complain about the invalid redeclaration then avoid adding it to the AST (we can still parse the definition or initializer, if any). - If the declaration is invalid but there is no prior declaration with that name, introduce the invalid declaration into the AST (for later error recovery). - If the declaration is an invalid redeclaration of a builtin that starts with __builtin_, we produce an error and drop the redeclaration. If it is an invalid redeclaration of a library builtin (e.g., malloc, printf), warn (don't error!) and drop the redeclaration. If a user attempts to define a builtin, produce an error and (if it's a library builtin like malloc) suggest -ffreestanding. This addresses <rdar://problem/6097585> and PR2892. However, PR3588 is still going to cause some problems when builtins are redeclared without a prototype. llvm-svn: 64639
-
Chris Lattner authored
llvm-svn: 64637
-
Chris Lattner authored
llvm-svn: 64634
-
Ben Laurie authored
llvm-svn: 64628
-
- 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
This implements gcc/testsuite/objc.dg/method-attribute-1.m llvm-svn: 64581
-
Chris Lattner authored
llvm-svn: 64572
-
- Feb 14, 2009
-
-
Douglas Gregor authored
Warn that complex numbers are an extension in a freestanding C99 implementation. llvm-svn: 64568
-
Cedric Venet authored
Correct two files with inconsistent lines endings. llvm-svn: 64564
-
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
-
Chris Lattner authored
llvm-svn: 64548
-
Chris Lattner authored
We don't have "zero cost" exceptions for ObjC yet, so there is no codegen support required. llvm-svn: 64546
-