summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Update CMakeLists.txtCedric Venet2008-11-041-0/+1
| | | | llvm-svn: 58716
* Remove stray character.Daniel Dunbar2008-11-041-1/+1
| | | | llvm-svn: 58713
* Update Xcode project.Ted Kremenek2008-11-041-2/+6
| | | | llvm-svn: 58711
* Make it an error if an Objective-C declaration is not in the global scope.Anders Carlsson2008-11-044-6/+75
| | | | llvm-svn: 58705
* LinkageSpecDecl is c++ specific, move it to DeclCXXChris Lattner2008-11-045-45/+49
| | | | llvm-svn: 58704
* Some cleanup of the cast checkers. Don't canonicalize types when not needed. ↵Sebastian Redl2008-11-045-56/+37
| | | | | | Use distinct diagnostics for distinct errors. llvm-svn: 58700
* Fine-grained C++ status pageDouglas Gregor2008-11-041-47/+874
| | | | llvm-svn: 58699
* Add a new expression class, ObjCSuperExpr, to handle the Objective-C ↵Douglas Gregor2008-11-0414-22/+76
| | | | | | 'super'. Remove ObjCThis from PredefinedExpr llvm-svn: 58698
* Create a new expression class, CXXThisExpr, to handle the C++ 'this' primary ↵Douglas Gregor2008-11-049-24/+74
| | | | | | expression. Remove CXXThis from PredefinedExpr llvm-svn: 58695
* Now that we have copy initialization support, use it for checking the ↵Douglas Gregor2008-11-042-11/+15
| | | | | | default arguments llvm-svn: 58692
* Diagnose use of 'this' in a C++ default argument. Thanks to Eli for ↵Douglas Gregor2008-11-043-7/+20
| | | | | | correcting my bogus assertion about it already being handled llvm-svn: 58691
* Trivial style fix.Sebastian Redl2008-11-041-1/+1
| | | | llvm-svn: 58689
* #define NULL as 0 when compiling as C++. This fixes the carbon.cpp and ↵Anders Carlsson2008-11-041-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 Carlsson2008-11-044-4/+55
| | | | | | now). llvm-svn: 58681
* Fix bug in va_copyAnders Carlsson2008-11-041-1/+1
| | | | llvm-svn: 58680
* Updated checker build.Ted Kremenek2008-11-041-1/+1
| | | | llvm-svn: 58672
* Handle prefix '_' that may appear in front of the name of 'Release' functionsTed Kremenek2008-11-041-6/+3
| | | | llvm-svn: 58666
* Fix use of uninitialized variable.Ted Kremenek2008-11-041-1/+1
| | | | llvm-svn: 58663
* Updated checker build.Ted Kremenek2008-11-041-1/+1
| | | | llvm-svn: 58658
* Allow user toggling between plist and html output with scan-build/ccc-analyzer.Ted Kremenek2008-11-042-12/+40
| | | | llvm-svn: 58657
* Update VC++ project file.Steve Naroff2008-11-041-0/+4
| | | | llvm-svn: 58656
* Fix <rdar://problem/6339636> clang ObjC rewriter: Assertion failed: FileID-1 ↵Steve Naroff2008-11-034-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 Kremenek2008-11-036-18/+59
| | | | | | Fix Plist output. llvm-svn: 58652
* Check that this cannot be used in a default argument. Happily, it was ↵Douglas Gregor2008-11-032-2/+11
| | | | | | already implemented llvm-svn: 58649
* Add path diagnostics client for emitting path reports using Plists.Ted Kremenek2008-11-032-5/+236
| | | | llvm-svn: 58647
* Rename 'HTMLDiagnostics.h' to 'PathDiagnosticClients.h'Ted Kremenek2008-11-035-4/+4
| | | | llvm-svn: 58646
* Implicit support for direct initialization of objects of class type, e.g.,Douglas Gregor2008-11-036-10/+147
| | | | | | X x(5, 7); llvm-svn: 58641
* Clarify performance experiments description based on feedback fromDaniel Dunbar2008-11-031-1/+7
| | | | | | Eric C, thanks! llvm-svn: 58634
* Standard conversion sequences now have a CopyConstructor field, toDouglas Gregor2008-11-037-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 Gregor2008-11-037-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 -> TargetInfoDouglas Gregor2008-11-032-5/+8
| | | | llvm-svn: 58613
* Implement C++ DR 106 and C++ DR 540, both of which deal withDouglas Gregor2008-11-034-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 Gregor2008-11-032-10/+25
| | | | | | wchar_t types. Fixes recent breakage on Linux. llvm-svn: 58609
* Fix <rdar://problem/6336774> clang block rewriter: Assertion failed: ↵Steve Naroff2008-11-032-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 removeChris Lattner2008-11-033-2/+28
| | | | | | | the designator corresponding to it, otherwise Sema and later parsing will get confused. llvm-svn: 58603
* privatize some methods.Chris Lattner2008-11-031-0/+3
| | | | llvm-svn: 58602
* Simplify the functions HtmlEsape and ShellEscape. We now properly print out ↵Ted Kremenek2008-11-031-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 Xu2008-11-031-0/+31
| | | | llvm-svn: 58597
* Fix 80-col violations.Zhongxing Xu2008-11-031-2/+2
| | | | llvm-svn: 58596
* - Remove AnonTypedRegion, which is not to be used.Zhongxing Xu2008-11-032-53/+29
| | | | | | - Prepare AnonPointeeRegioin for later use. llvm-svn: 58595
* Source ranges for named cast diagnostics.Sebastian Redl2008-11-022-49/+63
| | | | llvm-svn: 58570
* Add header files to CMake build solution. It use globing so it doesn't need ↵Cedric Venet2008-11-021-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 Xu2008-11-021-0/+7
| | | | llvm-svn: 58565
* 1. When a pointer to struct is used as an argument, GRSimpleVals::EvalCall()Zhongxing Xu2008-11-021-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 Xu2008-11-021-1/+1
| | | | llvm-svn: 58562
* More fallout from r58501: primary fix is some more corrections to make Eli Friedman2008-11-022-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 Kremenek2008-11-021-0/+7
| | | | llvm-svn: 58554
* Enhance return-of-stack-address checker to recognize regions created by ↵Ted Kremenek2008-11-021-0/+9
| | | | | | alloca(). llvm-svn: 58553
* Add transfer function logic for alloca().Ted Kremenek2008-11-021-0/+10
| | | | llvm-svn: 58552
* Added AllocaRegion, which represents regions created by calls to alloca().Ted Kremenek2008-11-022-2/+67
| | | | llvm-svn: 58551
OpenPOWER on IntegriCloud