summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Refactor FoldingSet profiling code for LocationContexts, and add a new ↵Ted Kremenek2009-12-042-20/+65
| | | | | | BlockInvocationContext to represent the invocation of a block. llvm-svn: 90506
* Fix for PR5679: make __builtin_prefetch a bit more flexible in what it acceptsEli Friedman2009-12-044-11/+23
| | | | | | | as a constant integer. Also, some minor cleanup and improvements to the diagnostics. llvm-svn: 90504
* constify MemRegion* returned by MemRegionManager::getXXXRegion() methods.Ted Kremenek2009-12-044-64/+62
| | | | llvm-svn: 90503
* When recovering from an invalid forward reference to an enum type in C++,John McCall2009-12-042-4/+8
| | | | | | create the enum type in the same scope as you would a record type. llvm-svn: 90500
* More template-logic for MemRegion construction out of MemRegion.h and into ↵Ted Kremenek2009-12-042-157/+161
| | | | | | MemRegion.cpp. llvm-svn: 90499
* These are done.Mike Stump2009-12-031-2/+0
| | | | llvm-svn: 90494
* Improve catch parameter bindings for scalar non-pointers. WIP.Mike Stump2009-12-031-4/+8
| | | | llvm-svn: 90492
* Lift the ObjCPropertyCallback out of local scope to unbreak VS2005 builds.John McCall2009-12-032-55/+60
| | | | | | | Make it an inner class of Parser to assuage access control. No functionality change. llvm-svn: 90491
* Add recursion guards to ice-checking and evaluation for declrefs, so weEli Friedman2009-12-035-22/+88
| | | | | | don't infinitely recurse for cases we can't evaluate. llvm-svn: 90480
* Try to make the output of PlistDiagnostics more deterministic by sorting ↵Ted Kremenek2009-12-031-0/+39
| | | | | | PathDiagnostics before they are emitted. Fixes <rdar://problem/7439668>. llvm-svn: 90478
* Convert some methods in PathDiagnostic to return StringRefs instead of ↵Ted Kremenek2009-12-031-3/+3
| | | | | | std::string&. llvm-svn: 90477
* A new helper function to set various bits in the class whenFariborz Jahanian2009-12-034-15/+19
| | | | | | | a new virtual function is declared/instantiated. it is used in couple of places. llvm-svn: 90470
* Fix Clang tool translation to forward -fvisibility as separate arguments, theDaniel Dunbar2009-12-032-3/+8
| | | | | | old syntax isn't supported. llvm-svn: 90469
* Add utils/TestUtils, and sink pch-test.pl there.Daniel Dunbar2009-12-032-0/+24
| | | | | | Also, add a test for generator a C file with a very deep call stack. llvm-svn: 90468
* Unify the end-of-class code paths used by the parser and templateDouglas Gregor2009-12-035-27/+55
| | | | | | | | | | | | | | instantiation, to ensure that we mark class template specilizations as abstract when we need to and perform checking of abstract classes. Also, move the checking that determines whether we are creating a variable of abstract class type *after* we check whether the type is complete. Otherwise, we won't see when we have an abstract class template specialization that is implicitly instantiated by this declaration. This is the "something else" that Sebastian had noted earlier. llvm-svn: 90467
* Add another blocks test case illustrating how parameters passed-by-reference ↵Ted Kremenek2009-12-031-0/+15
| | | | | | in block invocations are invalidated (just like function calls). llvm-svn: 90466
* When instantiating a class, if a base specifier is not dependent we still ↵Anders Carlsson2009-12-034-11/+41
| | | | | | need to copy its attributes down to the instantiated class. llvm-svn: 90463
* Tweak handling of BlockDataRegions in ↵Ted Kremenek2009-12-031-4/+6
| | | | | | RegionStoreManager::RemoveDeadBindings(): only the VarRegions for variables marked with the '__block' annotation should have their lifetime extended by a BlockDataRegion. llvm-svn: 90462
* Handle static_assert inside functions.Anders Carlsson2009-12-032-1/+6
| | | | llvm-svn: 90461
* When we're building a CXXExprWithTemporaries, only include thoseDouglas Gregor2009-12-034-4/+36
| | | | | | | | | | | temporaries that are within our current evaluation context. That way, nested evaluation contexts (e.g., within a sizeof() expression) won't see temporaries from outer contexts. Also, make sure to push a new evaluation context when instantiating the initializer of a variable; this may be an unevaluated context or a potentially-evaluated context, depending on whether it's an in-class initializer or not. Fixes PR5672. llvm-svn: 90460
* Minor cleanup to the code-completion-point logic suggested by Chris.Douglas Gregor2009-12-033-4/+3
| | | | llvm-svn: 90459
* Eli, I copied my code from this code... Let's fix the souce of the bad idea!Mike Stump2009-12-031-4/+1
| | | | | | Thanks. llvm-svn: 90458
* Make test 64 bit safe.Benjamin Kramer2009-12-031-1/+1
| | | | llvm-svn: 90452
* Fix for PR5659: correct a rather nasty oversight in the type conversion forEli Friedman2009-12-032-4/+14
| | | | | | member pointer types. llvm-svn: 90450
* XFAIL this on Win32 for the time being.Daniel Dunbar2009-12-031-0/+1
| | | | llvm-svn: 90448
* Add security syntactic checker for mktemp.Zhongxing Xu2009-12-031-1/+41
| | | | | | Patch by Lei Zhang! llvm-svn: 90444
* Update CMake for CallGraph.cpp move.Daniel Dunbar2009-12-032-1/+1
| | | | llvm-svn: 90443
* Fix two more diagnostic-on-stderr instances that thought they could hide ↵Daniel Dunbar2009-12-032-10/+14
| | | | | | from me -- they thought wrong. llvm-svn: 90442
* Kill a few more random stderr uses.Daniel Dunbar2009-12-036-22/+18
| | | | llvm-svn: 90441
* Convert ABIArgInfo::dump to raw_ostream.Daniel Dunbar2009-12-031-11/+11
| | | | llvm-svn: 90440
* Kill off one last exit() call.Daniel Dunbar2009-12-031-1/+1
| | | | llvm-svn: 90439
* Use llvm_report_error instead of fprintf + assert + exit.Daniel Dunbar2009-12-031-8/+5
| | | | llvm-svn: 90438
* Fix CompilerInstance::createOutputFile to use proper diagnostics, and (try ↵Daniel Dunbar2009-12-034-15/+48
| | | | | | to) update all clients to be able to handle failure. llvm-svn: 90437
* Remove an unnecessary (I believe) exit() on error.Daniel Dunbar2009-12-031-4/+0
| | | | llvm-svn: 90436
* Convert StmtDumper to raw_ostream. I forget why.Daniel Dunbar2009-12-031-129/+121
| | | | llvm-svn: 90435
* Switch PCHReader::getOriginalSourceFile to use proper diagnostics.Daniel Dunbar2009-12-034-13/+19
| | | | llvm-svn: 90434
* Fix BackendConsumer to use proper diagnostics.Daniel Dunbar2009-12-032-15/+17
| | | | llvm-svn: 90433
* Add value invalidation logic for block-captured variables. Conceptually ↵Ted Kremenek2009-12-033-2/+50
| | | | | | invoking a block (without specific reasoning of what the block does) can invalidate any value to it by reference when the block was created. llvm-svn: 90431
* Make BlockDataRegion::referenced_vars_iterator an actual class that enforces ↵Ted Kremenek2009-12-032-3/+29
| | | | | | that all MemRegions iterated over are VarRegions. llvm-svn: 90430
* Attempt to fix the MSVC build.Anders Carlsson2009-12-031-4/+4
| | | | llvm-svn: 90427
* clang-cc: Move to CompilerInvocation based command line parsing.Daniel Dunbar2009-12-034-1437/+3
| | | | llvm-svn: 90426
* Fix layering violation by moving Analysis/CallGraph to IndexDaniel Dunbar2009-12-033-3/+3
| | | | llvm-svn: 90424
* clang-cc: Honor -help and -version when using new style option parsing.Daniel Dunbar2009-12-034-0/+32
| | | | llvm-svn: 90422
* CC1Options: Normalize meta var spellings, and fix a few help texts.Daniel Dunbar2009-12-031-27/+27
| | | | llvm-svn: 90421
* Add OptTable::PrintHelp.Daniel Dunbar2009-12-033-0/+89
| | | | llvm-svn: 90420
* Update test and CIndex to use -FOO BAR form for ↵Daniel Dunbar2009-12-032-6/+8
| | | | | | -{remap-file,code-completion-at}. llvm-svn: 90416
* Add clang -cc1 support for -remap-file.Daniel Dunbar2009-12-033-2/+26
| | | | llvm-svn: 90414
* Add clang -cc1 -load option.Daniel Dunbar2009-12-035-1/+24
| | | | llvm-svn: 90413
* Fix thunk generation for thunks with a parameter with reference type.Eli Friedman2009-12-032-1/+9
| | | | llvm-svn: 90412
* Minor cleanup.Eli Friedman2009-12-033-12/+7
| | | | llvm-svn: 90411
OpenPOWER on IntegriCloud