summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Break out code for reuse. WIP.Mike Stump2009-12-092-22/+41
| | | | llvm-svn: 90991
* Fixes a bogus error when declaring an extern "C" array.Fariborz Jahanian2009-12-092-5/+13
| | | | | | (fixes radar 7457109). llvm-svn: 90986
* Add throw support. WIP.Mike Stump2009-12-091-1/+1
| | | | llvm-svn: 90982
* Codegen. support for ObjCIsaExpr AST which until nowFariborz Jahanian2009-12-092-3/+22
| | | | | | was not needed (fixes radar 7453430). llvm-svn: 90981
* Add DeclContext::dump.Anders Carlsson2009-12-091-0/+11
| | | | llvm-svn: 90974
* Refactor OSAtomic evaluation logic into OSAtomicChecker.Zhongxing Xu2009-12-094-151/+191
| | | | llvm-svn: 90968
* Use a temporary destination set such that we can clear fake auto transitions.Zhongxing Xu2009-12-091-3/+24
| | | | | | | | Otherwise, even when real evaluation occurs, the previous fake auto transitions would still be in the destination set, causing fake state bifurcation. llvm-svn: 90967
* First pass at implementing C++ enum semantics: calculate (and store) anJohn McCall2009-12-096-26/+64
| | | | | | | | | | | | "integer promotion" type associated with an enum decl, and use this type to determine which type to promote to. This type obeys C++ [conv.prom]p2 and is therefore generally signed unless the range of the enumerators forces it to be unsigned. Kills off a lot of false positives from -Wsign-compare in C++, addressing rdar://7455616 llvm-svn: 90965
* OSAtomic simulation: use the original region as the location to load from,Zhongxing Xu2009-12-092-4/+7
| | | | | | | | instead of the ElementRegion obtained from casts. Test cast: the leak cannot occur bacause the true branch cannot be taken. llvm-svn: 90964
* Look through using declarations when searching for allocation overloads.Anders Carlsson2009-12-091-1/+2
| | | | llvm-svn: 90961
* remove dead code.Zhongxing Xu2009-12-091-41/+0
| | | | llvm-svn: 90953
* Insert instead of assign to the dest node set, since we use the dest node setZhongxing Xu2009-12-091-1/+1
| | | | | | repeatedly. llvm-svn: 90952
* Fix for PR5730: make sure to consistently callEli Friedman2009-12-091-11/+5
| | | | | | PerformObjectArgumentInitialization from BuildCXXMemberCallExpr. llvm-svn: 90950
* Whitespace fix.Eli Friedman2009-12-091-2/+1
| | | | llvm-svn: 90949
* In CXXRecordDecl::forallBases, add the base to the "queue", so we walk more ↵Anders Carlsson2009-12-091-2/+4
| | | | | | than one heirarchy of classes. John, please review. llvm-svn: 90948
* Fix crash in DisplayFunction(). ObjCInterfaceDecls can also get passed to ↵Ted Kremenek2009-12-091-8/+5
| | | | | | this function, but we don't want to display them. llvm-svn: 90944
* Don't warn about function templates or function template specializations.Anders Carlsson2009-12-091-5/+13
| | | | llvm-svn: 90943
* Add cleanups for exceptional edges. WIP.Mike Stump2009-12-095-37/+177
| | | | llvm-svn: 90940
* Rename Sema::IsOverload to Sema::CheckOverload. Teach it to ignore unresolvedJohn McCall2009-12-093-39/+65
| | | | | | | | using value decls; we optimistically assume they won't turn into conflicts. Teach it to tell the caller *why* the function doesn't overload with the returned decl; this will be useful for using hiding. llvm-svn: 90939
* Move the missing prototypes checking out into a new function. Don't warn ↵Anders Carlsson2009-12-091-17/+38
| | | | | | about inline functions. Add a test. llvm-svn: 90938
* Fix for PR5709: use the computed type of the declaration instead of theEli Friedman2009-12-091-6/+1
| | | | | | | type of the builtin when generating the function declaration for a builtin library call. llvm-svn: 90936
* Pass the current SourceLocation to getAssignOperatorMethod, fixing a crash ↵Anders Carlsson2009-12-092-10/+13
| | | | | | when the assign operator method needs to be instantiated. Doug, please review the updated default-assignment-operator.cpp change. llvm-svn: 90935
* Fix a horrid bug in GRExprEngine::CheckerVisit() that was identifiedTed Kremenek2009-12-091-41/+58
| | | | | | | | | by the test case in PR 5627. Essentially we shouldn't clear the ExplodedNodeSet where we deposit newly constructed nodes if that set is the 'Dst' set passed in. It is not okay to clear that set because it may already contain nodes. llvm-svn: 90931
* Neil points out that this could be simplified, do it.Chris Lattner2009-12-091-15/+9
| | | | llvm-svn: 90927
* Add support for the cleanup attribute for C++; we don't have to copyMike Stump2009-12-091-4/+0
| | | | | | all of g++'s bugs. llvm-svn: 90924
* Implemented an implicit conversion from "noreturn" function types (andDouglas Gregor2009-12-094-23/+70
| | | | | | | | | | | | | | pointers thereof) to their corresponding non-noreturn function types. This conversion is considered an exact match for overload-resolution purposes. Note that we are a little more strict that GCC is, because we encode noreturn in the type system, but that's a Good Thing (TM) because it does not allow us to pretend that potentially-returning function pointers are non-returning function pointers. Fxies PR5620. llvm-svn: 90913
* Added a missing case to a switch statement.Fariborz Jahanian2009-12-081-0/+2
| | | | llvm-svn: 90902
* Increase inlining threshold at -O3, to match llvm-gcc.Daniel Dunbar2009-12-081-2/+8
| | | | llvm-svn: 90897
* More detailed analysis of typecast to an objective-c pointerFariborz Jahanian2009-12-082-8/+15
| | | | | | in objective-c++ mode without being too lenient. llvm-svn: 90895
* Handle unresolved using decls in bare lookups. These are not being adequatelyJohn McCall2009-12-081-3/+3
| | | | | | tested. Fixes PR5727. llvm-svn: 90893
* Add fixme.Mike Stump2009-12-081-0/+1
| | | | llvm-svn: 90884
* Remove some old code. WIP.Mike Stump2009-12-081-5/+0
| | | | llvm-svn: 90882
* Don't expand tabs when computing the offset from the code-completion columnDouglas Gregor2009-12-081-8/+2
| | | | llvm-svn: 90881
* Pick up MB_LEN_MAX as defined by the system <limits.h>, when it's provided thereDouglas Gregor2009-12-081-1/+0
| | | | llvm-svn: 90879
* Update CGExprConstant for change to emit padding values as undef.Daniel Dunbar2009-12-081-1/+5
| | | | | | - This fixes 2003-05-21-BitfieldHandling. llvm-svn: 90876
* Patch to allow matching 0 with an objective-c pointer typeFariborz Jahanian2009-12-081-2/+2
| | | | | | in objective-c++ mode. Fixes radar 7443165 llvm-svn: 90874
* Unbreak clang-cc handling of -msoft-float / -mfloat-abi=, which I borked.Daniel Dunbar2009-12-081-3/+6
| | | | llvm-svn: 90873
* Patch to allow cstyle cast of objective-c pointers in objective-c++Fariborz Jahanian2009-12-081-0/+4
| | | | | | mode as they are pervasive. llvm-svn: 90867
* Refactor objective-c pointer assignment compatibility logic. NoFariborz Jahanian2009-12-082-17/+27
| | | | | | intended functionality change. llvm-svn: 90865
* Implement template instantiation for exception specifications. Also,Douglas Gregor2009-12-083-0/+72
| | | | | | | | | | | | | | print exception specifications on function types and declarations. Fixes <rdar://problem/7450999>. There is some poor source-location information here, because we don't track locations of the types in exception specifications. Filed PR5719. Failures during template instantiation of the signature of a function or function template have wrong point-of-instantiation location information. I'll tackle that with a separate commit. llvm-svn: 90863
* Integrate the following from the 'objective-rewrite' branch:Steve Naroff2009-12-081-4/+9
| | | | | | http://llvm.org/viewvc/llvm-project?view=rev&revision=80043 llvm-svn: 90860
* When performing unqualified name lookup in C++, don't look directlyDouglas Gregor2009-12-081-1/+6
| | | | | | | into transparent contexts; instead, we'll look into their nearest enclosing non-transparent contexts further up the stack. Fixes PR5479. llvm-svn: 90859
* Use StringRef in CGDebugInfo::EmitFunctionStart.Benjamin Kramer2009-12-084-9/+6
| | | | llvm-svn: 90856
* Use a Twine to concatenate the name instead of going through std::string.Benjamin Kramer2009-12-081-3/+1
| | | | llvm-svn: 90854
* Twinify InitHeaderSearch::AddPath and use it in C++ include path generation.Benjamin Kramer2009-12-081-21/+23
| | | | llvm-svn: 90853
* Use StringRefs in InitHeaderSearch::AddDelimitedPaths.Benjamin Kramer2009-12-081-15/+15
| | | | llvm-svn: 90852
* Use Path.makeAbsolute() and make a constant std::string a const char*.Benjamin Kramer2009-12-081-7/+3
| | | | llvm-svn: 90851
* The refactor of implicit member access expressions means we don't need thisJohn McCall2009-12-082-188/+92
| | | | | | | | | horrible isAddressOfOperand hack in TreeTransform, since that syntactic information is managed by the initial parser callbacks now. That's enough insomniac commits for one night. llvm-svn: 90849
* DeclRefExpr stores a ValueDecl internally.John McCall2009-12-087-46/+37
| | | | | | Template instantiation can re-use DeclRefExprs. llvm-svn: 90848
* Refactor builtin function evaluation into a checker.Zhongxing Xu2009-12-084-8/+79
| | | | llvm-svn: 90847
OpenPOWER on IntegriCloud