summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Move test/Index input files into a sub directory (not scanned as tests).Daniel Dunbar2009-11-0814-51/+40
| | | | llvm-svn: 86431
* Eliminate &&s in tests.Daniel Dunbar2009-11-08416-1591/+1591
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* Rework site config for cmake to be generated at configure time, and only passDaniel Dunbar2009-11-072-30/+26
| | | | | | | | | the 'build_config' value in at runtime using the new lit runtime user parameter feature. This simplifies things and drops a dependency on 'sed', FWIW. llvm-svn: 86421
* Tweak a FIXME.Daniel Dunbar2009-11-071-2/+3
| | | | llvm-svn: 86420
* Handle member expressions where the member declaration is actually a static ↵Anders Carlsson2009-11-071-0/+19
| | | | | | variable. Fixes PR5392. llvm-svn: 86414
* commit test updateChris Lattner2009-11-071-3/+3
| | | | llvm-svn: 86396
* Cope with calls to operator() templates. Fixes PR5419.Douglas Gregor2009-11-071-0/+11
| | | | llvm-svn: 86387
* Support -Wshorten-64-to-32 for integer types only, which seems to satisfy theJohn McCall2009-11-071-0/+5
| | | | | | core requirements. Fixes rdar://problem/6389954 llvm-svn: 86364
* Add bug number.Anders Carlsson2009-11-071-2/+2
| | | | llvm-svn: 86357
* Improve -Wconversion by permitting binary operations on values of the targetJohn McCall2009-11-071-0/+5
| | | | | | type (or smaller) to stay "closed" within the type. llvm-svn: 86356
* Don't treat variables with non-trivial ctors or dtors as unused. Fixes PR5407.Anders Carlsson2009-11-071-0/+8
| | | | llvm-svn: 86352
* Always mangle functions with special names. Fixes PR5420.Anders Carlsson2009-11-071-0/+7
| | | | llvm-svn: 86350
* When instantiating a field decl, make sure to clone its attributes. With ↵Anders Carlsson2009-11-071-0/+7
| | | | | | this change FileCheck no longer crashes when it's run without any arguments. llvm-svn: 86344
* When looking up and adding substitutions to the substitution table, make ↵Anders Carlsson2009-11-071-0/+8
| | | | | | sure to always use the canonical declaration. With tihs change, FileCheck compiles and links but crashes during startup. llvm-svn: 86339
* Test case for -Wconversion.John McCall2009-11-071-0/+226
| | | | llvm-svn: 86327
* Implement -Wconversion. Off by default, in the non-gcc group. There'sJohn McCall2009-11-071-1/+1
| | | | | | significant work left to be done to reduce the false-positive rate here. llvm-svn: 86326
* Add basic code completion support for ObjC messages.Steve Naroff2009-11-071-0/+35
| | | | | | Still a work in progress... llvm-svn: 86323
* MIPS linkage name confuses gdb here. Generate and test DW_AT_name here.Devang Patel2009-11-071-1/+1
| | | | llvm-svn: 86318
* Make sure isCopyAssignment is only true for actual copy assignment operators,Eli Friedman2009-11-071-0/+9
| | | | | | | | instead of all assignment operators. The mistake messes up IRGen because it ends up assuming that the assignment operator is actually the implicit copy assignment operator, and therefore tries to emit the RHS as an lvalue. llvm-svn: 86307
* Various improvements to Clang's code-completion infrastructure:Douglas Gregor2009-11-071-2/+2
| | | | | | | | | | | | | | - Introduce more code-completion string "chunk" kinds that describe symbols, the actual text that the user is expected to type, etc. - Make the generation of macro results optional, since it can be slow - Make code-completion accessible through the C API, marshalling the code-completion results through a temporary file (ick) to maintain process separation. The last doesn't have tests yet. llvm-svn: 86306
* Refine the non-virtual this adjustment. Optimize out virtual thisMike Stump2009-11-061-12/+12
| | | | | | adjustments of zero. llvm-svn: 86300
* Since default writable attribute is 'assign', allowFariborz Jahanian2009-11-061-0/+2
| | | | | | | | | | specification of 'assign' (no warning to be issued), when a continuation class makes a 'readonly' attribute 'readwrite' but also specifies the 'assign' attribute. (this matches gcc's behavior and prevents exessive warnings)/ llvm-svn: 86297
* Make fragile-abi test run happy.Fariborz Jahanian2009-11-061-1/+1
| | | | llvm-svn: 86293
* Fix a bogus objective-c warning with -pedantic.Fariborz Jahanian2009-11-061-0/+18
| | | | | | (radar 7370882). llvm-svn: 86291
* Prevent a code gen. crash on empty unions - pr5408.Fariborz Jahanian2009-11-061-0/+10
| | | | llvm-svn: 86287
* testing: Merge PR3135.c into misc-ps-region-store.m.Ted Kremenek2009-11-062-20/+16
| | | | llvm-svn: 86286
* Sentence-case bug type, and pull tests from region-only-test.c into ↵Ted Kremenek2009-11-062-20/+23
| | | | | | misc-ps-region.store.m (removing an extra unneeded test file). Also add a bunch of FIXME comments for future enhancements. llvm-svn: 86282
* Simplify the debug info code, handle lvalue references and template ↵Anders Carlsson2009-11-061-0/+2
| | | | | | specializations. llvm-svn: 86277
* This patch fixes code gen. part of pr5333 (ConversionFariborz Jahanian2009-11-061-0/+24
| | | | | | using elipsis conversion). llvm-svn: 86276
* Handle QualifiedNameType and SubstTemplateTypeParmType types in ↵Anders Carlsson2009-11-061-0/+6
| | | | | | CGDebugInfo::CreateTypeNode. llvm-svn: 86274
* add test case for PR3135 which was already fixedNuno Lopes2009-11-061-0/+20
| | | | llvm-svn: 86273
* Add a checker for CWE-466: Return of Pointer Value Outside of Expected Range.Zhongxing Xu2009-11-061-0/+7
| | | | llvm-svn: 86252
* compare.c also needs a target triple now, and improve some comments while we'reJohn McCall2009-11-061-1/+1
| | | | | | at it. llvm-svn: 86243
* Improve the -Wsign-compare heuristics:John McCall2009-11-062-29/+380
| | | | | | | | | | | | | * If the unsigned type is smaller than the signed type, never warn, because its value will not change when zero-extended to the larger type. * If we're testing for (in)equality, and the unsigned value is an integer constant whose sign bit is not set, never warn, because even though the signed value might change, it can't affect the result of the equality. Also make the comparison test cases much more rigorous, and have them expose the subtle differences between C and C++ here. llvm-svn: 86242
* Rework the fix-it hint for code likeDouglas Gregor2009-11-062-2/+11
| | | | | | | | | | | get_origin->x where get_origin is actually a function and the user has forgotten the parentheses. Instead of giving a lame note for the fix-it, give a full-fledge error, early, then build the call expression to try to recover. llvm-svn: 86238
* Improve recovery when we fail to parse the operand of a C++ named cast. ↵Douglas Gregor2009-11-061-0/+11
| | | | | | Fixes PR5210 llvm-svn: 86234
* Turn off -Wsign-compare warnings by defaultDouglas Gregor2009-11-064-4/+4
| | | | llvm-svn: 86233
* If a member variable of reference type is bound to a temporary in its member ↵Anders Carlsson2009-11-061-0/+17
| | | | | | initializer it needs to be destroyed at the end of the constructor. llvm-svn: 86230
* If a member initializer create temporaries we need to destroy them. Fixes ↵Anders Carlsson2009-11-061-0/+33
| | | | | | PR5077. llvm-svn: 86225
* Handle ParenExprs in mangleExpression.Anders Carlsson2009-11-061-0/+6
| | | | llvm-svn: 86218
* Refine the vcall for a function that is defined in a virtual baseMike Stump2009-11-061-1/+31
| | | | | | class that is overridden in a base that isn't morally virtual. llvm-svn: 86217
* If we have a C-style cast, functional cast, or a static_cast to aDouglas Gregor2009-11-061-0/+14
| | | | | | | | | | class type, don't perform the array-to-pointer or function-to-pointer conversions, because we may end up binding a reference to a function or array. With this change, FileCheck now passes -fsyntax-only! llvm-svn: 86211
* When we encounter a derived-to-base conversion when performing anDouglas Gregor2009-11-061-0/+13
| | | | | | | implicit conversion sequence, check the validity of this conversion and then perform it. llvm-svn: 86210
* Convert file over to checking the .ll file for codegen. Also, weMike Stump2009-11-061-450/+63
| | | | | | speed up this file by not doing twice the checking. llvm-svn: 86205
* Make sure that EnumConstantDecls always get a type, even when they have ↵Douglas Gregor2009-11-061-0/+16
| | | | | | type-dependent initializers. llvm-svn: 86197
* clean up integer preprocessor type definitions, patch by Ken Dyck!Chris Lattner2009-11-051-4/+4
| | | | llvm-svn: 86177
* Make ASTContext::getIntWidth return 1 for all boolean type variations, not ↵Sebastian Redl2009-11-051-0/+5
| | | | | | just for the unqualified, unaliased bool. llvm-svn: 86174
* Be a little more careful when trying to extract a TypeDecl from a ↵Douglas Gregor2009-11-051-0/+2
| | | | | | enum/class/struct/union specifier; in invalid code, we may also see ClassTemplateDecls. llvm-svn: 86171
* Adding -fshort-wchar option.John Thompson2009-11-052-7/+16
| | | | llvm-svn: 86167
* De-FIXME a testDouglas Gregor2009-11-051-5/+1
| | | | llvm-svn: 86166
OpenPOWER on IntegriCloud