summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Ignore a more comprehensive set of gcc-special format attributes.Duncan Sands2010-03-231-0/+6
| | | | llvm-svn: 99277
* For forward-declared static inline functions, delay CFG-based warnings until weTed Kremenek2010-03-231-0/+3
| | | | | | encounter a definition. llvm-svn: 99243
* Tweak null dereference diagnostics to give clearer diagnostics whenTed Kremenek2010-03-233-23/+23
| | | | | | a null dereference results from a field access. llvm-svn: 99236
* Only perform CFG-based warnings on 'static inline' functions thatTed Kremenek2010-03-231-0/+14
| | | | | | | are called (transitively) by regular functions/blocks within a translation untion. llvm-svn: 99233
* Set the relevent attributes declared in class extensionFariborz Jahanian2010-03-221-0/+15
| | | | | | | and fix a missing diagnostics on assigning to a read-only property. Fixes radar 7766184. llvm-svn: 99230
* A fixed version of r99174 which also includes a test that we emit vtables whenRafael Espindola2010-03-221-0/+33
| | | | | | we see an specialization definition ever if we then see a extern template declaration. llvm-svn: 99226
* Improve the diagnostics for the UndefinedAssignmentChecker when anTed Kremenek2010-03-221-0/+7
| | | | | | uninitialized value is used in the LHS of a compound assignment. llvm-svn: 99221
* (re)implement PR6542, accepting and discarding the __gcc_tdiag__Chris Lattner2010-03-221-0/+4
| | | | | | format attribute specifier. llvm-svn: 99213
* merge some tests.Chris Lattner2010-03-223-38/+36
| | | | llvm-svn: 99212
* rename testChris Lattner2010-03-221-0/+0
| | | | llvm-svn: 99211
* Diagnose miuse of property dot-syntax instead of crashing.Fariborz Jahanian2010-03-221-0/+5
| | | | | | (radar 7634653). llvm-svn: 99210
* merge two tests.Chris Lattner2010-03-222-23/+21
| | | | llvm-svn: 99209
* rename test.Chris Lattner2010-03-221-0/+0
| | | | llvm-svn: 99208
* move a test to a more appropriate directoryChris Lattner2010-03-221-0/+0
| | | | llvm-svn: 99200
* Fixes access rues for ivars declared in classFariborz Jahanian2010-03-221-3/+20
| | | | | | implementations (radar 7547942). llvm-svn: 99198
* hopefully fix this on non-sse2 hosts. Shouldn't an apple-darwin10 Chris Lattner2010-03-221-1/+1
| | | | | | triple imply sse2? llvm-svn: 99197
* Test for my last patch.Fariborz Jahanian2010-03-221-0/+15
| | | | llvm-svn: 99194
* fix PR6658: inline isn't a keyword in C89 mode, use __inline__ instead.Chris Lattner2010-03-221-0/+5
| | | | llvm-svn: 99190
* -Wshadow should only warn about parameter declarations when we'reJohn McCall2010-03-221-0/+5
| | | | | | | | | entering a function or block definition, not on every single declaration. Unfortunately we don't have previous-lookup results around when it's time to make this decision, so we have to redo the lookup. The alternative is to use delayed diagnostics. llvm-svn: 99172
* Fix PR6618.Rafael Espindola2010-03-213-4/+15
| | | | | | | If a struct has an invalid field, mark it as invalid. Also avoid producing errors about incomplete types that are invalid. llvm-svn: 99150
* Fix PR6648 by not creating a temporary with the type of aRafael Espindola2010-03-211-0/+13
| | | | | | | | | | | CXXExprWithTemporaries. Not emitting the expression as an aggregate might be the right thing to do, but is orthogonal. Emitting it as an scalar expression will still try to create a temporary for the incomplete type of the CXXExprWithTemporaries and fail. llvm-svn: 99134
* tests: Mangle '-vg' onto the end of the triple when running under valgrind, soDaniel Dunbar2010-03-201-0/+5
| | | | | | | we can use the standard XFAIL and XTARGET to conditional tests based on valgrind. llvm-svn: 99089
* Driver: Support CC_PRINT_OPTIONS, used for logging the compile commands (in ↵Daniel Dunbar2010-03-201-0/+7
| | | | | | -v style) to a file. llvm-svn: 99054
* Add sse4.2 support to this test.Eric Christopher2010-03-201-0/+4
| | | | llvm-svn: 99052
* IRgen: Wrap atomic intrinsics with memory barriers, to ensure we honor the ↵Daniel Dunbar2010-03-201-0/+1
| | | | | | | | semantics. - This should be conservatively correct, we eventually should have target hooks for platforms that are less strict. llvm-svn: 99050
* Evaluate: Fix a subtle bug in the pointer evaluator in which we would do anDaniel Dunbar2010-03-201-0/+8
| | | | | | | | expression computation in the wrong bit-width, and end up generating a totally bogus array reference (_g0+8589934546). - This showed up on Prolangs/cdecl. llvm-svn: 99042
* Driver: Fix a number of -fapple-kext issues:Daniel Dunbar2010-03-201-0/+36
| | | | | | | | | | | | | - Disable RTTI. - Disable use of __cxa_atexit. - Disable unwind tables. - Enable freestanding mode. Also, honor -fhosted correctly. <rdar://problem/7515383> C++ support: -fapple-kext not honored llvm-svn: 99041
* C++: Add support for -fno-use-cxa-atexit.Daniel Dunbar2010-03-203-2/+16
| | | | | | | | - So much typing, so little gain... Also, rename the __cxx_global_initialization function just to match llvm-gcc. llvm-svn: 99039
* Implement -Wshadow for parameter declarations as well.John McCall2010-03-202-2/+33
| | | | llvm-svn: 99037
* Driver: Force joining of "-l" "foo", the linker doesn't eat that format.Daniel Dunbar2010-03-201-2/+2
| | | | | | <rdar://problem/7641151> clang must eat spaces after -l llvm-svn: 99023
* Add include for smmintrin.h to this test.Eric Christopher2010-03-201-0/+4
| | | | llvm-svn: 99019
* Change CodeGenModule to rely on the Module's symbol table instead ofJohn McCall2010-03-191-0/+8
| | | | | | | | | | | | | shadowing it in the GlobalDeclMap. Eliminates the string-uniquing requirement for mangled names, which should help C++ codegen times a little. Forces us to do string lookups instead of pointer lookups, which might hurt codegen times a little across the board. We'll see how it plays out. Removing the string-uniquing requirement implicitly fixes any bugs like PR6635 which arose from the fact that we had multiple uniquing tables for different kinds of identifiers. llvm-svn: 99012
* Robustify PreprocessingRecord slightly, by only creating macroDouglas Gregor2010-03-191-0/+1
| | | | | | | | instantiations when we have the corresponding macro definition and by removing macro definition information from our table when the macro is undefined. llvm-svn: 99004
* Implement serialization and lazy deserialization of the preprocessingDouglas Gregor2010-03-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | record (which includes all macro instantiations and definitions). As with all lay deserialization, this introduces a new external source (here, an external preprocessing record source) that loads all of the preprocessed entities prior to iterating over the entities. The preprocessing record is an optional part of the precompiled header that is disabled by default (enabled with -detailed-preprocessing-record). When the preprocessor given to the PCH writer has a preprocessing record, that record is written into the PCH file. When the PCH reader is given a PCH file that contains a preprocessing record, it will be lazily loaded (which, effectively, implicitly adds -detailed-preprocessing-record). This is the first case where we have sections of the precompiled header that are added/removed based on a compilation flag, which is unfortunate. However, this data consumes ~550k in the PCH file for Cocoa.h (out of ~9.9MB), and there is a non-trivial cost to gathering this detailed preprocessing information, so it's too expensive to turn on by default. In the future, we should investigate a better encoding of this information. llvm-svn: 99002
* More coherent diagnostics when ivar is placed n categories.Fariborz Jahanian2010-03-191-2/+2
| | | | | | (related to radar 7538989). llvm-svn: 98993
* Add test case for <rdar://problem/7770737>.Ted Kremenek2010-03-191-0/+22
| | | | llvm-svn: 98979
* Promote enum types during -Wsign-compare. Fixes some spurious warnings,John McCall2010-03-192-3/+75
| | | | | | mostly during conditional expressions. llvm-svn: 98975
* Diagnose conversion of 'Class' to/from objective-c Fariborz Jahanian2010-03-194-6/+49
| | | | | | | object pointer types. Fixes radar 7634850. llvm-svn: 98970
* Pretty-print anonymous types using their kind and presumed location.John McCall2010-03-193-9/+9
| | | | | | Fixes PR6643. Patch by Mike M! llvm-svn: 98946
* Fix a longstanding (but previously unknown) bug in the lazyDouglas Gregor2010-03-191-0/+6
| | | | | | | | | | | | | deserialization of precompiled headers, where the deserialization of the source location entry for a buffer (e.g., macro instantiation scratch space) would overwrite a one-element FileID cache in the source manager. When tickled at the wrong time, we would return the wrong decomposed source location and eventually cause c-index-test to crash. Found by dumb luck. It's amazing this hasn't shown up before. llvm-svn: 98940
* Visit preprocessing elements (macro instantiations and macroDouglas Gregor2010-03-191-0/+18
| | | | | | | | definitions) as part of the translation unit, so that normal visitation, token-annotation, and cursor-at retrieval all see preprocessing elements. llvm-svn: 98935
* Revert 98907 since it is breaking buildbots.Bob Wilson2010-03-191-18/+0
| | | | | | | | --- Reverse-merging r98907 into '.': D test/Index/c-index-getCursor-pp.c U tools/CIndex/CIndex.cpp llvm-svn: 98929
* Visit preprocessing elements (macro instantiations and macroDouglas Gregor2010-03-191-0/+18
| | | | | | | | definitions) as part of the translation unit, so that normal visitation, token-annotation, and cursor-at retrieval all see preprocessing elements. llvm-svn: 98907
* When elevating access along an inheritance path, initialize the computedJohn McCall2010-03-183-2/+49
| | | | | | | | | | | | | | | | access to the (elevated) access of the accessed declaration, if applicable, rather than plunking that access onto the end after we've calculated the inheritance access. Also, being a friend of a derived class gives you public access to its members (subject to later modification by further inheritance); it does not simply ignore a single location of restricted inheritance. Also, when computing the best unprivileged path to a subobject, preserve the information that the worst path might be AS_none (forbidden) rather than a minimum of AS_private. llvm-svn: 98899
* Try to appease MSVC's standard libraryDouglas Gregor2010-03-181-1/+1
| | | | llvm-svn: 98878
* Try to appease MSVCDouglas Gregor2010-03-181-1/+1
| | | | llvm-svn: 98875
* Make PredefinedExpr::ComputeName() more robust to incorrectTed Kremenek2010-03-181-0/+7
| | | | | | | code when we are printing the name of an Objective-C method whose class has not been declared. Fixes <rdar://problem/7495713>. llvm-svn: 98874
* Some cleanup, change diagnostic when assigning toFariborz Jahanian2010-03-181-3/+3
| | | | | | a property which is not lvalue. llvm-svn: 98848
* Explicitly link macro instantiations to macro definitions in theDouglas Gregor2010-03-181-4/+4
| | | | | | | | preprocessing record. Use that link with clang_getCursorReferenced() and clang_getCursorDefinition() to match instantiations of a macro to the definition of the macro. llvm-svn: 98842
* Expose macro definitions as CIndex cursors. These can still only beDouglas Gregor2010-03-181-3/+3
| | | | | | generated by clang_annotateTokens(). llvm-svn: 98837
OpenPOWER on IntegriCloud