summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Add a couple more paths to the LLVM-Code-Syntax testDouglas Gregor2009-12-171-0/+6
| | | | llvm-svn: 91627
* Tweak formatting and comments.Ted Kremenek2009-12-171-6/+4
| | | | llvm-svn: 91615
* Convert GRExprEngine::VisitCallExpr() to use a worklist instead of recursion ↵Ted Kremenek2009-12-172-49/+64
| | | | | | to evaluate the arguments of a CallExpr. This simplifies the logic and makes it easier to read. (it also avoids any issues with blowing out the stack if the CallExpr had a ridiculous number of arguments) llvm-svn: 91613
* Reduce nesting by using early exits. No functionality change.Ted Kremenek2009-12-171-35/+46
| | | | llvm-svn: 91610
* implement PR3962: diagnose more faulty cases of usage of the restrict ↵Nuno Lopes2009-12-173-1/+12
| | | | | | qualifier. this also removes a FIXME llvm-svn: 91601
* revert part of my last patch, and mark only the c++ global new operator as ↵Nuno Lopes2009-12-173-14/+4
| | | | | | noalias. the rest will be infered by llvm optz llvm-svn: 91600
* document -fno-assume-sane-operator-new, per Chris request.Nuno Lopes2009-12-171-0/+6
| | | | | | please review for English grammar mistakes llvm-svn: 91599
* Include <time.h> in order to use 'time_t'.Chandler Carruth2009-12-171-0/+1
| | | | llvm-svn: 91597
* Test for errors during fread() inside c-index-test and handle themChandler Carruth2009-12-171-1/+9
| | | | | | appropriately. This also silences some pedantic GCC warnings. llvm-svn: 91596
* Sort switch statement. No functionality change.Ted Kremenek2009-12-171-15/+15
| | | | llvm-svn: 91591
* Rename GetAddrOfRTTI to GetAddrOfRTTIDescriptor. Remove the overload that ↵Anders Carlsson2009-12-175-81/+69
| | | | | | takes a CXXRecordDecl since we were just creating a QualType from it anyway. llvm-svn: 91590
* Ensure we run cleanups for CXXTemporaries on the exceptional edge. WIP.Mike Stump2009-12-172-1/+48
| | | | llvm-svn: 91588
* reimplement r90860, fixing a couple of problems:Chris Lattner2009-12-172-10/+24
| | | | | | | | | 1. Don't make a copy of LangOptions every time a lexer is created. 2. Don't make CharInfo global mutable state. 3. Fix the implementation to properly treat ^Z as EOF instead of as horizontal whitespace, which matches the semantic implemented by VC++. llvm-svn: 91586
* Simplify RTTIBuilder::finish.Anders Carlsson2009-12-171-11/+9
| | | | llvm-svn: 91585
* Move the Info vector into the RTTIBuilder struct. No functionality change.Anders Carlsson2009-12-171-18/+19
| | | | llvm-svn: 91583
* Attempt to fix rtti-layout.cpp on Linux.Anders Carlsson2009-12-171-1/+1
| | | | llvm-svn: 91581
* Add a (currently failing) RTTI layout test.Anders Carlsson2009-12-171-0/+47
| | | | llvm-svn: 91580
* Add failing test case for C++ static analysis.Ted Kremenek2009-12-171-0/+9
| | | | llvm-svn: 91578
* Fix check in GRExprEngine for the 'main' function to handle NULL ↵Ted Kremenek2009-12-171-16/+17
| | | | | | IdentifierInfo*'s. llvm-svn: 91577
* Diagnose duplicate declaration of a property. FixesFariborz Jahanian2009-12-173-1/+19
| | | | | | PR5809 llvm-svn: 91575
* Fix for PR5801: codegen memcpy, memmove, memset directly to LLVM intrinsics.Eli Friedman2009-12-171-0/+3
| | | | llvm-svn: 91573
* Completely remove ObjCObjectRegion (tests pass this time).Ted Kremenek2009-12-165-53/+9
| | | | llvm-svn: 91572
* Allow pointer convesion of an objective-c pointer toFariborz Jahanian2009-12-162-2/+54
| | | | | | 'void *' to mimic gcc's behavior. (fixes radar 7477351). llvm-svn: 91570
* Fix test.Eli Friedman2009-12-161-10/+1
| | | | llvm-svn: 91566
* Make sure C-specific enum warning doesn't trigger in C++.Eli Friedman2009-12-162-12/+12
| | | | llvm-svn: 91563
* Fix -fdollars-in-identifiers Clang translation.Daniel Dunbar2009-12-163-7/+8
| | | | llvm-svn: 91562
* Correctly calcluate abstract-ness in the case where an implicitly declaredEli Friedman2009-12-162-3/+20
| | | | | | method overrides a pure virtual method. llvm-svn: 91558
* Temporarily revert 91553.Ted Kremenek2009-12-161-5/+9
| | | | llvm-svn: 91557
* Remove use of ObjCObjectRegion from BasicStoreManager.Ted Kremenek2009-12-161-9/+5
| | | | llvm-svn: 91553
* Fix test case to unbreak testingDouglas Gregor2009-12-161-2/+2
| | | | llvm-svn: 91551
* When value-initializing a class with no user-defined constructors butDouglas Gregor2009-12-1611-37/+112
| | | | | | | with a non-trivial default constructor, zero-initialize the storage and then call the default constructor. Fixes PR5800. llvm-svn: 91548
* Compute the right extension for preprocessed Objective-C++ files.Ted Kremenek2009-12-161-1/+1
| | | | llvm-svn: 91547
* Diagnose property of reference type as unsupportedFariborz Jahanian2009-12-163-6/+9
| | | | | | instead of crashing for now. llvm-svn: 91546
* Baby steps towards fixing PR5589. If a class needs a vtable pointer, add one.Anders Carlsson2009-12-164-6/+31
| | | | llvm-svn: 91545
* implement PR5654: add -fassume-sane-operator-new, which is enabled by ↵Nuno Lopes2009-12-1611-7/+56
| | | | | | | | default, and adds the malloc attribute to the global function new() and to the overloaded new operators. feel free to chage the name to this lengthy argument llvm-svn: 91543
* In Sema::CheckInitializerTypes, replace a use of CheckReferenceInit with an ↵Douglas Gregor2009-12-164-8/+14
| | | | | | InitializationSequence llvm-svn: 91542
* Update C++ status page to reflect realityDouglas Gregor2009-12-161-58/+58
| | | | llvm-svn: 91541
* fix PR5689: add support for 'o' and 'V' asm input operandsNuno Lopes2009-12-161-0/+2
| | | | llvm-svn: 91540
* fix buildNuno Lopes2009-12-161-1/+1
| | | | llvm-svn: 91539
* Shift things around so that it's easier to recover from a missingJohn McCall2009-12-166-264/+197
| | | | | | | | | function in a C++ call using an arbitrary call-expression type. Actually exploit this to fix the recovery implemented earlier. The diagnostic is still iffy, though. llvm-svn: 91538
* Fix pretty stack traces.Daniel Dunbar2009-12-161-2/+0
| | | | llvm-svn: 91537
* Add a new kind of region: CXXObjectRegion. Currently it has only one Zhongxing Xu2009-12-167-25/+102
| | | | | | | | attribute: the object type. Add initial support for visiting CXXThisExpr. Fix a bunch of 80-col violations. llvm-svn: 91535
* Introduce a centralized routine in Sema for diagnosing failed lookups (whenJohn McCall2009-12-1615-25/+148
| | | | | | | | | used as expressions). In dependent contexts, try to recover by doing a lookup in previously-dependent base classes. We get better diagnostics out, but unfortunately the recovery fails: we need to turn it into a method call expression, not a bare call expression. Thus this is still a WIP. llvm-svn: 91525
* Use GetAddrOfRTTI everywhere and remove GenerateRTTI and GenerateRTTIRef. ↵Anders Carlsson2009-12-165-39/+9
| | | | | | With this change, we can now compile and link TableGen. llvm-svn: 91520
* Handle ImplicitValueInitExpr in AggExprEmitter.Anders Carlsson2009-12-162-2/+14
| | | | llvm-svn: 91519
* remove dead code.Zhongxing Xu2009-12-161-3/+0
| | | | llvm-svn: 91517
* Eliminate Sema::CheckValueInitialization; its callers now useDouglas Gregor2009-12-163-110/+181
| | | | | | | | | | | | | | InitializationSequence to perform the actual initialization. Also, introduced the notion of a tree of initialized entities, so that we can know where an initialization began when dealing with nested initializations (as occur when performing list initialization). This will, eventually, be useful for producing better diagnostics when list initialization fails, because we can show the path from the top-level object being initialized down to the actual subobject where initialization failed. llvm-svn: 91516
* Add abort() as a builtin. This has two effects: one, we warn for incorrect Eli Friedman2009-12-165-0/+6
| | | | | | | | declarations of abort(), and two, we mark it noreturn. Missing the latter shows up in one of the "embarassing" tests (from the thread on llvmdev "detailed comparison of generated code size for LLVM and other compilers"). llvm-svn: 91515
* More FullExpr work.Anders Carlsson2009-12-161-45/+53
| | | | llvm-svn: 91514
* More work on the FullExpr class.Anders Carlsson2009-12-163-23/+69
| | | | llvm-svn: 91513
OpenPOWER on IntegriCloud