summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Micro-optimization when checking for panic functions.Ted Kremenek2008-05-171-1/+4
| | | | llvm-svn: 51214
* Fix 80 col violation.Ted Kremenek2008-05-171-1/+3
| | | | llvm-svn: 51213
* Added panic function _XCAssertionFailureHandler.Ted Kremenek2008-05-171-0/+4
| | | | llvm-svn: 51212
* Backout of codegen-based fix to PR2334; this has been fixed differently Eli Friedman2008-05-161-4/+2
| | | | | | at the Sema layer. llvm-svn: 51203
* Sema-based fix for PR2334. The issue is that even if the two sides of Eli Friedman2008-05-161-2/+5
| | | | | | | | | | the condidtional have compatible types, they are not necessarily the same type. Therefore, we cast to the composite type. As a hack, for the moment we assume that the composite type is the type of the left-hand expression; this isn't correct, but it's good enough for most purposes. llvm-svn: 51202
* Fix some prototypes, and implement some builtins until we have our header ↵Nate Begeman2008-05-162-4/+7
| | | | | | files completed. llvm-svn: 51199
* Cache leaks by the allocation site, not the leak location.Ted Kremenek2008-05-161-28/+58
| | | | llvm-svn: 51198
* Partitioned BugTypeCachedLocation::isCached() into two methods: one that ↵Ted Kremenek2008-05-162-1/+7
| | | | | | | | accepts and ExplodedNode, and the other that accepts a ProgramPoint. The default behavior is to cache bug reports by the location they occur (the end node). Subclasses can override this behavior by providing a different ProgramPoint. llvm-svn: 51197
* Review nit.Eli Friedman2008-05-161-2/+2
| | | | llvm-svn: 51196
* Clean up ownership per review comment.Eli Friedman2008-05-161-24/+13
| | | | llvm-svn: 51195
* Fix review nit.Eli Friedman2008-05-161-1/+2
| | | | llvm-svn: 51194
* Patch for PR2334, and a similar ObjC bug.Eli Friedman2008-05-162-2/+9
| | | | llvm-svn: 51193
* Added CFGBlock::hasBinaryBranchTerminator().Ted Kremenek2008-05-162-0/+26
| | | | llvm-svn: 51190
* Minor cleanup to isBuiltinConstantExpr.Eli Friedman2008-05-161-7/+2
| | | | llvm-svn: 51188
* Fixed another regression introduced by r51113 caused by some refactoringTed Kremenek2008-05-151-3/+3
| | | | | | | | | | | | | | in Sema::CheckFunctionCall: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080512/005706.html The bug was that the logic from the helper methods used by CheckFunctionCall were being inverted (a subtle bug). This would cause the parser to discard any valid AST nodes involving several builtins (see patch). This removes the last regression failure I'm seeing in the test suite: Analysis-Apple/NoReturn. llvm-svn: 51168
* Removed bogus "return true" in Expr::isConstantExpr that returned true for allTed Kremenek2008-05-151-1/+0
| | | | | | | | | | expressions. This appears to be a regression introduced in r51113 that caused many test cases to fail (there is still a test case in the Analysis directory that is failing): http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080512/005706.html llvm-svn: 51164
* Fix rewriter bug <rdar://problem/5929344> clang ObjC rewriter: "extern int ↵Steve Naroff2008-05-152-4/+6
| | | | | | | | __CFConstantStringClassReference[];" should be extern "C". Have clang predefine OBJC_NEW_PROPERTIES (which is what gcc does). llvm-svn: 51163
* Revert...Steve Naroff2008-05-159-9/+9
| | | | | | | | | | | | | Author: akirtzidis Date: Wed May 14 05:00:15 2008 New Revision: 51101 URL: http://llvm.org/viewvc/llvm-project?rev=51101&view=rev Log: Upgrading VC++ projects to VC++ 2008. I really need to build with VC++ 2005. llvm-svn: 51158
* Make isFileVarDecl() return true when the VarDecl is in a C++ namespace.Argyrios Kyrtzidis2008-05-151-1/+2
| | | | llvm-svn: 51153
* Comments fix.Argyrios Kyrtzidis2008-05-152-2/+2
| | | | llvm-svn: 51151
* Handle a couple missing builtins that will go away eventually when the variousNate Begeman2008-05-151-1/+16
| | | | | | intrin.h files are finished llvm-svn: 51137
* Add some of GCC's object checking builtin's.Steve Naroff2008-05-141-0/+4
| | | | llvm-svn: 51133
* Use double-underscores in front of all non-keywords to protect against Eli Friedman2008-05-141-134/+134
| | | | | | #define pollution. llvm-svn: 51128
* Don't specify a -o option to clang when not using "-checker-cfref".Ted Kremenek2008-05-141-2/+6
| | | | llvm-svn: 51124
* Fix variable misspelling.Ted Kremenek2008-05-141-1/+1
| | | | llvm-svn: 51122
* Don't run clang on .s files.Ted Kremenek2008-05-141-0/+5
| | | | llvm-svn: 51121
* Make header use the new __builtin_shufflevector builtin.Eli Friedman2008-05-141-7/+8
| | | | llvm-svn: 51117
* Added "-a" option to scan-build to select the analysis (ASTConsumer) used by ↵Ted Kremenek2008-05-142-8/+39
| | | | | | clang. The default is -checker-cfref. llvm-svn: 51116
* Implementation of __builtin_shufflevector, a portable builtin capable of Eli Friedman2008-05-1411-11/+214
| | | | | | | | | expressing the full flexibility of the LLVM shufflevector instruction. The expected immediate usage is in *mmintrin.h, so that they don't depend on the mess of gcc-inherited (and not completely implemented) shuffle builtins. llvm-svn: 51113
* Zero-pad the month and day fields in the output HTML directory.Ted Kremenek2008-05-141-1/+1
| | | | llvm-svn: 51109
* Update the clangSema VC++ project.Argyrios Kyrtzidis2008-05-141-2/+7
| | | | llvm-svn: 51104
* Change CRLF line endings to LF.Argyrios Kyrtzidis2008-05-141-6/+6
| | | | llvm-svn: 51103
* Upgrading VC++ projects to VC++ 2008.Argyrios Kyrtzidis2008-05-149-9/+9
| | | | llvm-svn: 51101
* An array of VLAs is a VLA. Shouldn't make any significant difference at Eli Friedman2008-05-141-2/+4
| | | | | | | the moment, but it what you'd expect in the AST from reading the standard, and it should make VLA codegen a bit more strightforward. llvm-svn: 51086
* Add codegen support for block-level compound literals.Eli Friedman2008-05-134-4/+36
| | | | llvm-svn: 51081
* Add support for init lists for complex variables.Eli Friedman2008-05-131-0/+13
| | | | llvm-svn: 51080
* Output #LINE for computing line counts.Ted Kremenek2008-05-131-2/+3
| | | | llvm-svn: 51079
* Use "-i" option with make when ignoring errors.Ted Kremenek2008-05-131-0/+1
| | | | llvm-svn: 51070
* Remove AST dependency on VMCore by switching ExtVectorElementExpr off Constant.Nate Begeman2008-05-133-30/+36
| | | | llvm-svn: 51068
* Both operands to && have to be scalars, not just one.Eli Friedman2008-05-132-1/+4
| | | | llvm-svn: 51065
* Re-enable the analyzer.Ted Kremenek2008-05-131-2/+1
| | | | llvm-svn: 51055
* Detabify.Eli Friedman2008-05-131-7/+7
| | | | llvm-svn: 51042
* Place "-x" option before other analyzer options.Ted Kremenek2008-05-121-1/+1
| | | | llvm-svn: 51014
* Directly invoke gcc immediately instead of before we process the command ↵Ted Kremenek2008-05-121-12/+14
| | | | | | line arguments. llvm-svn: 51012
* Fix <rdar://problem/5924576> clang -fsyntax-only generates "redefinition" ↵Steve Naroff2008-05-122-1/+7
| | | | | | | | errors when parsing AppKit that gcc does not. Teach Sema::MergeVarDecl() about __private_extern__. llvm-svn: 51005
* Added internal command logging.Ted Kremenek2008-05-122-9/+25
| | | | llvm-svn: 51003
* Fix <rdar://problem/5928590> clang -fsyntax-only: "incompatible operand ↵Steve Naroff2008-05-123-2/+15
| | | | | | types ('int' and 'void')" on input that 'gcc -fsyntax-only' eats llvm-svn: 51002
* testcase for PR2263, fixed by Nate's r50903 patch.Chris Lattner2008-05-121-0/+6
| | | | llvm-svn: 50983
* Unbreak build.Ted Kremenek2008-05-121-1/+1
| | | | llvm-svn: 50980
* Support StringLiteralVal when comparing LVal types.Ted Kremenek2008-05-121-0/+2
| | | | llvm-svn: 50979
OpenPOWER on IntegriCloud