Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Update CMakeLists.txt | Cedric Venet | 2008-11-04 | 1 | -0/+1 | |
| | | | | llvm-svn: 58716 | |||||
* | Remove stray character. | Daniel Dunbar | 2008-11-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 58713 | |||||
* | Update Xcode project. | Ted Kremenek | 2008-11-04 | 1 | -2/+6 | |
| | | | | llvm-svn: 58711 | |||||
* | Make it an error if an Objective-C declaration is not in the global scope. | Anders Carlsson | 2008-11-04 | 4 | -6/+75 | |
| | | | | llvm-svn: 58705 | |||||
* | LinkageSpecDecl is c++ specific, move it to DeclCXX | Chris Lattner | 2008-11-04 | 5 | -45/+49 | |
| | | | | llvm-svn: 58704 | |||||
* | Some cleanup of the cast checkers. Don't canonicalize types when not needed. ↵ | Sebastian Redl | 2008-11-04 | 5 | -56/+37 | |
| | | | | | | Use distinct diagnostics for distinct errors. llvm-svn: 58700 | |||||
* | Fine-grained C++ status page | Douglas Gregor | 2008-11-04 | 1 | -47/+874 | |
| | | | | llvm-svn: 58699 | |||||
* | Add a new expression class, ObjCSuperExpr, to handle the Objective-C ↵ | Douglas Gregor | 2008-11-04 | 14 | -22/+76 | |
| | | | | | | 'super'. Remove ObjCThis from PredefinedExpr llvm-svn: 58698 | |||||
* | Create a new expression class, CXXThisExpr, to handle the C++ 'this' primary ↵ | Douglas Gregor | 2008-11-04 | 9 | -24/+74 | |
| | | | | | | expression. Remove CXXThis from PredefinedExpr llvm-svn: 58695 | |||||
* | Now that we have copy initialization support, use it for checking the ↵ | Douglas Gregor | 2008-11-04 | 2 | -11/+15 | |
| | | | | | | default arguments llvm-svn: 58692 | |||||
* | Diagnose use of 'this' in a C++ default argument. Thanks to Eli for ↵ | Douglas Gregor | 2008-11-04 | 3 | -7/+20 | |
| | | | | | | correcting my bogus assertion about it already being handled llvm-svn: 58691 | |||||
* | Trivial style fix. | Sebastian Redl | 2008-11-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 58689 | |||||
* | #define NULL as 0 when compiling as C++. This fixes the carbon.cpp and ↵ | Anders Carlsson | 2008-11-04 | 1 | -0/+5 | |
| | | | | | | cocoa.mm test failures. llvm-svn: 58685 | |||||
* | Implement lowering of va_arg in clang directly. (This is 32-bit X86 only for ↵ | Anders Carlsson | 2008-11-04 | 4 | -4/+55 | |
| | | | | | | now). llvm-svn: 58681 | |||||
* | Fix bug in va_copy | Anders Carlsson | 2008-11-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 58680 | |||||
* | Updated checker build. | Ted Kremenek | 2008-11-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 58672 | |||||
* | Handle prefix '_' that may appear in front of the name of 'Release' functions | Ted Kremenek | 2008-11-04 | 1 | -6/+3 | |
| | | | | llvm-svn: 58666 | |||||
* | Fix use of uninitialized variable. | Ted Kremenek | 2008-11-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 58663 | |||||
* | Updated checker build. | Ted Kremenek | 2008-11-04 | 1 | -1/+1 | |
| | | | | llvm-svn: 58658 | |||||
* | Allow user toggling between plist and html output with scan-build/ccc-analyzer. | Ted Kremenek | 2008-11-04 | 2 | -12/+40 | |
| | | | | llvm-svn: 58657 | |||||
* | Update VC++ project file. | Steve Naroff | 2008-11-04 | 1 | -0/+4 | |
| | | | | llvm-svn: 58656 | |||||
* | Fix <rdar://problem/6339636> clang ObjC rewriter: Assertion failed: FileID-1 ↵ | Steve Naroff | 2008-11-03 | 4 | -37/+42 | |
| | | | | | | < FileIDs.size() && "Invalid FileID!", file c:\cygwin\home\Administrator\llvm\tools\clang\include\clang/Basic/SourceManager.h, line 513 llvm-svn: 58654 | |||||
* | Hook up the Plist diagnostic client to the driver. | Ted Kremenek | 2008-11-03 | 6 | -18/+59 | |
| | | | | | | Fix Plist output. llvm-svn: 58652 | |||||
* | Check that this cannot be used in a default argument. Happily, it was ↵ | Douglas Gregor | 2008-11-03 | 2 | -2/+11 | |
| | | | | | | already implemented llvm-svn: 58649 | |||||
* | Add path diagnostics client for emitting path reports using Plists. | Ted Kremenek | 2008-11-03 | 2 | -5/+236 | |
| | | | | llvm-svn: 58647 | |||||
* | Rename 'HTMLDiagnostics.h' to 'PathDiagnosticClients.h' | Ted Kremenek | 2008-11-03 | 5 | -4/+4 | |
| | | | | llvm-svn: 58646 | |||||
* | Implicit support for direct initialization of objects of class type, e.g., | Douglas Gregor | 2008-11-03 | 6 | -10/+147 | |
| | | | | | | X x(5, 7); llvm-svn: 58641 | |||||
* | Clarify performance experiments description based on feedback from | Daniel Dunbar | 2008-11-03 | 1 | -1/+7 | |
| | | | | | | Eric C, thanks! llvm-svn: 58634 | |||||
* | Standard conversion sequences now have a CopyConstructor field, to | Douglas Gregor | 2008-11-03 | 7 | -46/+106 | |
| | | | | | | | | | | | | | | | cope with the case where a user-defined conversion is actually a copy construction, and therefore can be compared against other standard conversion sequences. While I called this a hack before, now I'm convinced that it's the right way to go. Compare overloads based on derived-to-base conversions that invoke copy constructors. Suppress user-defined conversions when attempting to call a user-defined conversion. llvm-svn: 58629 | |||||
* | Add implicitly-declared default and copy constructors to C++ classes, | Douglas Gregor | 2008-11-03 | 7 | -15/+194 | |
| | | | | | | | | | | | when appropriate. Conversions for class types now make use of copy constructors. I've replaced the egregious hack allowing class-to-class conversions with a slightly less egregious hack calling these conversions standard conversions (for overloading reasons). llvm-svn: 58622 | |||||
* | Eliminate header dependency ASTContext -> TargetInfo | Douglas Gregor | 2008-11-03 | 2 | -5/+8 | |
| | | | | llvm-svn: 58613 | |||||
* | Implement C++ DR 106 and C++ DR 540, both of which deal with | Douglas Gregor | 2008-11-03 | 4 | -9/+69 | |
| | | | | | | | | | | | reference-collapsing. Implement diagnostic for formation of a reference to cv void. Drop cv-qualifiers added to a reference type when the reference type comes from a typedef. llvm-svn: 58612 | |||||
* | Connect ASTContext to TargetInfo when determining the size_t, ptrdiff_t, and ↵ | Douglas Gregor | 2008-11-03 | 2 | -10/+25 | |
| | | | | | | wchar_t types. Fixes recent breakage on Linux. llvm-svn: 58609 | |||||
* | Fix <rdar://problem/6336774> clang block rewriter: Assertion failed: ↵ | Steve Naroff | 2008-11-03 | 2 | -0/+6 | |
| | | | | | | Offset+NumBytes <= size() && "Invalid region to erase!", file c:\cygwin\home\Administrator\llvm\to ols\clang\include\clang/Rewrite/RewriteRope.h, line 219. llvm-svn: 58607 | |||||
* | Fix PR3001: if we have an error parsing an initializer, make sure to remove | Chris Lattner | 2008-11-03 | 3 | -2/+28 | |
| | | | | | | | the designator corresponding to it, otherwise Sema and later parsing will get confused. llvm-svn: 58603 | |||||
* | privatize some methods. | Chris Lattner | 2008-11-03 | 1 | -0/+3 | |
| | | | | llvm-svn: 58602 | |||||
* | Simplify the functions HtmlEsape and ShellEscape. We now properly print out ↵ | Ted Kremenek | 2008-11-03 | 1 | -8/+5 | |
| | | | | | | | | the following command line in the HTML output: scan-build gcc -x c /dev/null -c -Dfoo='"string abc"' Fixes <rdar://problem/6338651> llvm-svn: 58600 | |||||
* | Add some notes for SCA. | Zhongxing Xu | 2008-11-03 | 1 | -0/+31 | |
| | | | | llvm-svn: 58597 | |||||
* | Fix 80-col violations. | Zhongxing Xu | 2008-11-03 | 1 | -2/+2 | |
| | | | | llvm-svn: 58596 | |||||
* | - Remove AnonTypedRegion, which is not to be used. | Zhongxing Xu | 2008-11-03 | 2 | -53/+29 | |
| | | | | | | - Prepare AnonPointeeRegioin for later use. llvm-svn: 58595 | |||||
* | Source ranges for named cast diagnostics. | Sebastian Redl | 2008-11-02 | 2 | -49/+63 | |
| | | | | llvm-svn: 58570 | |||||
* | Add header files to CMake build solution. It use globing so it doesn't need ↵ | Cedric Venet | 2008-11-02 | 1 | -2/+16 | |
| | | | | | | to be manually maintained, but it won't automatically detect a new header. I think this is a good compromise for the header files, since there presence in the solution is just an help for the user. Moreover, a new header is often introduced with a new cpp source file which need a makefile change, which will regenerate the solution and detect the new header. llvm-svn: 58566 | |||||
* | Add function side-effect test cast. | Zhongxing Xu | 2008-11-02 | 1 | -0/+7 | |
| | | | | llvm-svn: 58565 | |||||
* | 1. When a pointer to struct is used as an argument, GRSimpleVals::EvalCall() | Zhongxing Xu | 2008-11-02 | 1 | -18/+23 | |
| | | | | | | | | | | | sets the whole struct to Unknown. Then we cannot assume the V passed to BindStruct() is always a CompoundVal. When it is an UnknownVal, we call BindStructToVal(UnknownVal). 2. Change the signature of InitializeStructToUndefined() to BindStructToVal() to reuse the code. llvm-svn: 58564 | |||||
* | Add defined in if(). | Zhongxing Xu | 2008-11-02 | 1 | -1/+1 | |
| | | | | llvm-svn: 58562 | |||||
* | More fallout from r58501: primary fix is some more corrections to make | Eli Friedman | 2008-11-02 | 2 | -9/+20 | |
| | | | | | | | | | | | | | | | | | the types for size_t and ptrdiff_t more accurate. I think all of these are correct, but please compare the defines for __PTRDIFF_TYPE__ and __SIZE_TYPE__ to gcc to double-check; this particularly applies to those on BSD variants, since I'm not sure what they do here; I assume here that they're the same as on Linux. Fixes wchar_t to be "int", not "unsigned int" (which I think is correct on everything but Windows). Fixes ptrdiff_t to be "int" rather than "short" on PIC16; "short" is an somewhat strange choice because it normally gets promoted, and it's not consistent with the choice for size_t. llvm-svn: 58556 | |||||
* | Add 'alloca' test case for return-of-stack-address checker. | Ted Kremenek | 2008-11-02 | 1 | -0/+7 | |
| | | | | llvm-svn: 58554 | |||||
* | Enhance return-of-stack-address checker to recognize regions created by ↵ | Ted Kremenek | 2008-11-02 | 1 | -0/+9 | |
| | | | | | | alloca(). llvm-svn: 58553 | |||||
* | Add transfer function logic for alloca(). | Ted Kremenek | 2008-11-02 | 1 | -0/+10 | |
| | | | | llvm-svn: 58552 | |||||
* | Added AllocaRegion, which represents regions created by calls to alloca(). | Ted Kremenek | 2008-11-02 | 2 | -2/+67 | |
| | | | | llvm-svn: 58551 |