summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/predefined-function.c
Commit message (Collapse)AuthorAgeFilesLines
* Make all the 'redefinition' diagnostics more consistent, and make the Chris Lattner2008-11-231-4/+4
| | | | | | "previously defined here" diagnostics all notes. llvm-svn: 59920
* remove expected-error from #if 0 section of code.Chris Lattner2008-11-211-2/+2
| | | | llvm-svn: 59772
* Fix PR2042. One remaining issue: we don't currently diagnoseChris Lattner2008-02-171-1/+3
| | | | | | | | | int foobar(int); int foobar() {} which requires ifdef'ing out a testcase in predefined-function.c. llvm-svn: 47236
* Sema::MergeFunctionDecl()...make sure diagnostic is accurate (wrt function ↵Steve Naroff2008-01-161-7/+7
| | | | | | declarations/definitions). Patch by Carl Lewis! llvm-svn: 46070
* Fix Sema::ActOnDeclarator() to call MergeFunctionDecl for function decls ↵Steve Naroff2008-01-091-0/+5
| | | | | | that aren't in scope. Since C functions are in a flat namespace, we need to give them special treatment (when compared with variables and typedefs). llvm-svn: 45789
* Fix ASTContext::typesAreCompatible to allow for int/enum compatibility (C99 ↵Steve Naroff2008-01-091-1/+5
| | | | | | | | 6.7.2.2p4). Fix Sema::MergeFunctionDecl to allow for function type compatibility (by using the predicate on ASTContext). Function types don't have to be identical to be compatible... llvm-svn: 45784
* Improve function decl merging, patch by Oliver Hunt!Chris Lattner2007-11-201-0/+29
llvm-svn: 44253
OpenPOWER on IntegriCloud