summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix spelling for target triplet.Mike Stump2009-11-162-2/+2
| | | | llvm-svn: 88928
* The ssp and sspreq function attributes should only be applied to function ↵Anders Carlsson2009-11-162-5/+5
| | | | | | definitions, not declarations or calls. llvm-svn: 88915
* Parameterize the constant-generating macros in stdint.h with new built-inKen Dyck2009-11-164-19/+29
| | | | | | | __INTn_C_SUFFIX__ macros that are defined for types with corresponding constant suffixes (i.e. long and long long). llvm-svn: 88914
* Pass a value for the isSigned parameter of CreateIntCast, rather thanDuncan Sands2009-11-161-5/+10
| | | | | | passing the name (an exotic way of specifying that the result is signed!). llvm-svn: 88909
* Implement most of dynamic_cast. WIP.Mike Stump2009-11-164-6/+132
| | | | llvm-svn: 88901
* Try and fix buildbot issue.Mike Stump2009-11-161-1/+1
| | | | llvm-svn: 88900
* Make GetAddrOfConstantStringFromLiteral return a constant of the correct type.Eli Friedman2009-11-161-1/+8
| | | | | | | This doesn't have any visible effects at the moment because normally the implicit cast code forces the type to the expected type. llvm-svn: 88896
* Some minor cleanup for EmitCastLValue.Eli Friedman2009-11-161-11/+7
| | | | llvm-svn: 88894
* Set the cast kind for a few more code paths.Eli Friedman2009-11-161-2/+8
| | | | llvm-svn: 88893
* Fix a couple of cases where we weren't generating the right kind of callEli Friedman2009-11-163-8/+39
| | | | | | for a call to a virtual function. llvm-svn: 88891
* Implement two-argument form of delete operator.Eli Friedman2009-11-162-0/+14
| | | | llvm-svn: 88890
* Fix test on Linux.Eli Friedman2009-11-161-2/+2
| | | | llvm-svn: 88889
* * Do the same thing to the basicstore as in r84163.Zhongxing Xu2009-11-166-33/+33
| | | | | | | | | | * Add a load type to GRExprEngine::EvalLoad(). * When retrieve from 'theValue' of OSAtomic funcitions, use the type of the region instead of the argument expression as the load type. * Then we can convert CastRetrievedSVal to a pure assertion. In the future we can let all Retrieve() methods simply return SVal. llvm-svn: 88888
* Add constant evaluation for comma operator with floating-point operand. FixesEli Friedman2009-11-162-1/+15
| | | | | | PR5449. llvm-svn: 88885
* Remove an unused parameter.Zhongxing Xu2009-11-161-3/+2
| | | | llvm-svn: 88882
* Fix a missing include from r88876.Chandler Carruth2009-11-151-0/+1
| | | | llvm-svn: 88879
* When generating the deleting ctor, emit a call to delete.Anders Carlsson2009-11-151-4/+24
| | | | llvm-svn: 88878
* Make sure that virtual destructors have delete operators.Anders Carlsson2009-11-154-6/+40
| | | | llvm-svn: 88877
* Add DeclarationName::dump().Anders Carlsson2009-11-152-1/+6
| | | | llvm-svn: 88876
* Peer through refernces for typeid. WIP.Mike Stump2009-11-151-0/+2
| | | | llvm-svn: 88871
* Deallocation functions must also be static.Anders Carlsson2009-11-152-1/+18
| | | | llvm-svn: 88859
* allocation functions are always static.Anders Carlsson2009-11-152-1/+21
| | | | llvm-svn: 88858
* Factor finding a deallocation function for a record type out into a separate ↵Anders Carlsson2009-11-152-40/+65
| | | | | | function. llvm-svn: 88857
* Fix linux buildbots.Mike Stump2009-11-151-0/+2
| | | | llvm-svn: 88856
* Finish off zero check for typeid(*p) so that it will do a __cxa_bad_typeid.Mike Stump2009-11-152-2/+39
| | | | llvm-svn: 88852
* If we find a deallocation function in the class scope, but it is a placement ↵Anders Carlsson2009-11-153-2/+29
| | | | | | function we should not look for a deallocation function in the global scope. llvm-svn: 88851
* Add MIPS support to Triple for Linux and the PSP. Credit to Bruno Cardoso Lopes.Edward O'Callaghan2009-11-151-0/+163
| | | | llvm-svn: 88850
* When performing a static downcast as part of a static_cast, make sureDouglas Gregor2009-11-152-13/+34
| | | | | | | | | | that we're dealing with canonical types like the documentation say (yay, CanQualType). Alas, this is another instance where using getQualifiers() on a non-canonical QualType got us in trouble. Good news: with this fix, Clang can now parse all of its own headers! llvm-svn: 88848
* Don't gratuitously mark the default constructors of base or member ↵Douglas Gregor2009-11-152-22/+19
| | | | | | initializers as used llvm-svn: 88847
* When adding the underlying declaration of a decl to a lookup-resultsDouglas Gregor2009-11-152-1/+35
| | | | | | | | | set, expand overloaded function declarations. Long-term, this should actually be done by the name-lookup code rather than here, but this part of the code (involving using declarations) is getting a makeover now and the test-case is useful. llvm-svn: 88846
* Add two new C++ lit tests suites, for testing Clang .cpp files withDaniel Dunbar2009-11-153-4/+62
| | | | | | -fsyntax-only and with -c. llvm-svn: 88845
* Implement typeid for class types.Mike Stump2009-11-155-1/+76
| | | | llvm-svn: 88843
* When looking for operator() to type-check a call to an object of classDouglas Gregor2009-11-152-8/+17
| | | | | | | | | type, use full qualified name lookup rather than the poking the declaration context directly. This makes sure that we see operator()'s in superclasses. Also, move the complete-type check before this name lookup. llvm-svn: 88842
* Make a couple more headers standaloneDouglas Gregor2009-11-154-1/+9
| | | | llvm-svn: 88840
* Add Clang-Syntax C++Tests; these don't run by default, use the lit argumentsDaniel Dunbar2009-11-152-0/+28
| | | | | | '--param run_clang_syntax=1' to run them. llvm-svn: 88839
* Remove an obviously-broken header, which still tries to refer to ScopedDecl.Douglas Gregor2009-11-151-63/+0
| | | | llvm-svn: 88837
* Use the other excludes syntax.Daniel Dunbar2009-11-151-4/+2
| | | | llvm-svn: 88836
* Make some more headers standaloneDouglas Gregor2009-11-153-0/+3
| | | | llvm-svn: 88835
* If any errors have occurred by the time we hit the end of a function body, ↵Douglas Gregor2009-11-151-0/+6
| | | | | | clear out any remaining temporaries so they aren't seen later. llvm-svn: 88834
* Add TargetOptions and use it when constructing targets.Daniel Dunbar2009-11-1516-127/+203
| | | | | | | | - This ended up being hard to factor, sorry for the large diff. - Some post-commit cleanup to come. llvm-svn: 88833
* Make a few headers parse standaloneDouglas Gregor2009-11-154-1/+4
| | | | llvm-svn: 88832
* Finish off support for typeinfo generation for classes.Mike Stump2009-11-152-9/+145
| | | | llvm-svn: 88828
* Add a trivial example plugin, which prints the names of the top-level decls.Daniel Dunbar2009-11-154-1/+89
| | | | | | - The build scriptage is about twice as long as the code, which is nice. :) llvm-svn: 88826
* Add examples dir, built with BUILD_EXAMPLES=1 (Makefiles, no CMake ↵Daniel Dunbar2009-11-155-2/+21
| | | | | | | | equivalent yet). Move tools/wpa to examples/wpa, and unbreak its build. llvm-svn: 88825
* Add pluggable action support to clang-cc, via -plugin command line option.Daniel Dunbar2009-11-155-7/+79
| | | | | | | | - Expects the plugin has been loaded with -load. - Using this may require disabling TOOL_NO_EXPORTS in the clang-cc Makefile, this breaks the llvm::Registry way of working (static constructors are bad, kids). This should be replaced with a "real" plugin model that has explicit plugin interfaces. llvm-svn: 88824
* Finisgh off rest of class_type_info rtti generation.Mike Stump2009-11-143-14/+120
| | | | llvm-svn: 88823
* When dumping implicit cast exprs, print out whether the cast is an lvalue ↵Anders Carlsson2009-11-141-0/+7
| | | | | | cast or not. llvm-svn: 88821
* Move the program action enum to FrontendOptions.Daniel Dunbar2009-11-143-98/+106
| | | | | | | | | -- ddunbar@giles:clang-cc (master)$ grep llvm::cl::opt clang-cc.cpp # Woot ddunbar@giles:clang-cc (master)$ -- llvm-svn: 88820
* Add clang -mcpu=native support, patch by Roman Divacky, varioustweaks by me.Daniel Dunbar2009-11-142-12/+27
| | | | | | | - We still need support for detecting the target features, since the name doesn't actually do a good job of decribing what the CPU supports (for LLVM). llvm-svn: 88819
* Add an internal CreateRecordDecl that will create a CXXRecordDecl when ↵Anders Carlsson2009-11-142-12/+29
| | | | | | compiling C++ and a RecordDecl otherwise. llvm-svn: 88816
OpenPOWER on IntegriCloud