summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Split out -Wconversion warnings about constant precision into theirJohn McCall2010-11-098-29/+85
| | | | | | | | | | | own subcategory, -Wconstant-conversion, which is on by default. Tweak the constant folder to give better results in the invalid case of a negative shift amount. Implements rdar://problem/6792488 llvm-svn: 118636
* Test moved to its correct place.Fariborz Jahanian2010-11-091-0/+0
| | | | llvm-svn: 118635
* Restore patch reversed in r118475. FixesFariborz Jahanian2010-11-096-6/+31
| | | | | | // rdar://8632525 llvm-svn: 118634
* Attempt to resolve overloaded functions in comma expressions andDouglas Gregor2010-11-092-0/+38
| | | | | | conditional operators. Fixes PR7863. llvm-svn: 118631
* Issues good diagnostic when @end is missing.Fariborz Jahanian2010-11-092-0/+11
| | | | | | // rdar://8283484 llvm-svn: 118629
* tidy upChris Lattner2010-11-092-10/+9
| | | | llvm-svn: 118626
* fix PR8380, a crash on invalid due to an illogical DeclSpec SourceRange ↵Chris Lattner2010-11-093-1/+12
| | | | | | being constructed. llvm-svn: 118625
* Revert the fix for PR8013.Douglas Gregor2010-11-094-20/+8
| | | | | | | | | | | | | That bug concerned the well-formedness of code such as (&ovl)(a, b, c). GCC rejects the code, while EDG accepts it. On further study of the standard, I see no support for EDG's position: in particular, C++ [over.over] does not list this as a context where we can take the address of an overloaded function, C++ [over.call.func] does not reference the address-of operator at any point, and C++ [expr.call] claims that the function argument in a call is either a function lvalue or a pointer-to-function; (&ovl) is neither. llvm-svn: 118620
* Simplify code.Benjamin Kramer2010-11-091-28/+10
| | | | llvm-svn: 118619
* make the example a bit better, encouraging people to use "suggestions of ↵Chris Lattner2010-11-091-2/+2
| | | | | | what to use" in the message :) llvm-svn: 118612
* Replace "#if __clang__" by "#if __has_feature(attribute_analyzer_noreturn)" ↵Ted Kremenek2010-11-091-1/+1
| | | | | | | | to be consistent with all other snippets on this page. Patch by Jean-Daniel Dupas! llvm-svn: 118603
* Use the right calling convention when mangling names in the Microsoft C++Charles Davis2010-11-094-9/+20
| | | | | | | | mangler. Now member functions and pointers thereof have their calling convention mangled as __thiscall if they have the default CC (even though, they technically still have the __cdecl CC). llvm-svn: 118598
* Add support for soft/hard float options to the Sparc targetBruno Cardoso Lopes2010-11-093-0/+70
| | | | llvm-svn: 118514
* Include System/DataTypes.h in Diagnostic.h to get intptr_t.Rafael Espindola2010-11-092-0/+2
| | | | | | | Set Haiku's UserLabelPrefix to "". Patch by Paul Davey. llvm-svn: 118510
* Handle overload resolution when calling an overloaded function setDouglas Gregor2010-11-094-8/+20
| | | | | | with, e.g., (&f)(a, b, c). Fixes PR8013. llvm-svn: 118508
* Make #pragma unused work for static local variables.Douglas Gregor2010-11-092-1/+7
| | | | llvm-svn: 118500
* Remove the use of aliases in outputted code from ObjC (GNU runtime).David Chisnall2010-11-091-4/+6
| | | | llvm-svn: 118498
* Remove debugging printf.Nick Lewycky2010-11-091-3/+0
| | | | | | Fix linux build. llvm-svn: 118497
* lib/Lex/PPMacroExpansion.cpp: Fixup to appease MSVC.NAKAMURA Takumi2010-11-091-0/+4
| | | | | | Confirmed on MSVS10. llvm-svn: 118496
* ntroduce clang_getSpellingLocation() into libclang, to provide theDouglas Gregor2010-11-099-35/+120
| | | | | | | | | | | | | | location where we're spelling a token even within a macro. clang_getInstantiationLocation() tells where we instantiated the macro. I'm still not thrilled with the CXSourceLocation/CXSourceRange APIs, since they gloss over macro-instantiation information. Take 2: this time, adjusted tests appropriately and used a "simple" approach to the spelling location. llvm-svn: 118495
* Revert r118492, which didn't update all of its tests accordinglyDouglas Gregor2010-11-097-110/+33
| | | | llvm-svn: 118494
* Appeasing MSVC, take 3Douglas Gregor2010-11-092-0/+2
| | | | llvm-svn: 118493
* Introduce clang_getSpellingLocation() into libclang, to provide theDouglas Gregor2010-11-097-33/+110
| | | | | | | | | | | location where we're spelling a token even within a macro. clang_getInstantiationLocation() tells where we instantiated the macro. I'm still not thrilled with the CXSourceLocation/CXSourceRange APIs, since they gloss over macro-instantiation information. llvm-svn: 118492
* Introduce the concept of a non-virtual base type to CGRecordLayoutBuilder as ↵Anders Carlsson2010-11-092-12/+122
| | | | | | a first step towards fixing PR6995. llvm-svn: 118491
* Try to appease MSVCDouglas Gregor2010-11-092-0/+9
| | | | llvm-svn: 118487
* Add missing includeDouglas Gregor2010-11-091-0/+1
| | | | llvm-svn: 118485
* Teach code completion not to include out-of-line declarations andDouglas Gregor2010-11-092-3/+12
| | | | | | | definitions in its results. The original declarations will be visible wherever they are declared. llvm-svn: 118484
* Fix the test for Release.Argyrios Kyrtzidis2010-11-091-1/+1
| | | | llvm-svn: 118483
* Add __nullptr as a C++0x nullptr literal, available in C++98Douglas Gregor2010-11-092-0/+4
| | | | llvm-svn: 118482
* Fix source locations in unnamed bitfield diagnostic, from JakubDouglas Gregor2010-11-092-0/+9
| | | | | | Wieczorek! Fixes PR8025. llvm-svn: 118481
* libclang and c-index-test can be built on Cygming.NAKAMURA Takumi2010-11-091-1/+1
| | | | llvm-svn: 118480
* c-index-test: Be available on Cygwin by using Win32's logic.NAKAMURA Takumi2010-11-091-1/+12
| | | | llvm-svn: 118479
* sprintf -> snprintf conversion, from Vladimir KirillovDouglas Gregor2010-11-092-4/+4
| | | | llvm-svn: 118478
* Remove this test for now.Fariborz Jahanian2010-11-091-3/+0
| | | | llvm-svn: 118476
* Reverse patch for // rdar://8632525. It mightFariborz Jahanian2010-11-093-10/+5
| | | | | | has broken a build. llvm-svn: 118475
* Remove space from rdar URIs.Fariborz Jahanian2010-11-0912-14/+14
| | | | llvm-svn: 118474
* Teach AttrNonNullChecker about transparent unions. Fixes crash reported in ↵Ted Kremenek2010-11-092-0/+36
| | | | | | <rdar://problem/8642434>. llvm-svn: 118473
* Fix InitListExpr::getSourceRange() to work in the case of no locations for ↵Ted Kremenek2010-11-092-3/+31
| | | | | | | | '(' and ')'. This can happen in the case of transparent unions. llvm-svn: 118472
* Fix miscompilation regarding VLAs; subscription of VLA pointers was incorrect.Argyrios Kyrtzidis2010-11-092-8/+18
| | | | | | Fixes rdar://8644873 & http://llvm.org/PR8567. llvm-svn: 118468
* When re-using a vtable slot for the nearest overridden method, just becauseJohn McCall2010-11-092-1/+29
| | | | | | | | | | | | there's no return adjustment from the overridden to the overrider doesn't mean there isn't a return adjustment from the overrider to the final overrider. This matters if we're emitting a virtual this-adjustment thunk because the overrider virtually inherits from the class providing the nearest overridden method. Do the appropriate return adjustment in this case. Fixes PR7611. llvm-svn: 118466
* Fix warning about unused variable 'Fn' in no-asserts builds. Also reflow thisNick Lewycky2010-11-091-8/+5
| | | | | | block so that it looks more like the rest of the file. No functional change. llvm-svn: 118459
* Don't lose track of previous-declarations when instantiating a class template.Nick Lewycky2010-11-082-1/+29
| | | | | | Fixes PR8001. llvm-svn: 118454
* Provide a precise builtin declaration for objc_msgSendFariborz Jahanian2010-11-084-5/+13
| | | | | | to avoid a bogus warning. Fixes //rdar: //8632525 llvm-svn: 118451
* 1) Fix a typo in PPCallbacks: It's elif, not elfif. :-) This isCraig Silverstein2010-11-082-5/+6
| | | | | | | | contentful, since the typo was in the method-name... 2) Clarify some comments in RecursiveASTVisitor. llvm-svn: 118448
* Add CursorVisitor::VisitBinaryOperator() to explicitly handle the case where ↵Ted Kremenek2010-11-082-0/+2072
| | | | | | | | | we can blow out the stack due to deeply nested BinaryOperators. This is done by turning the explicit recursion into being data recursive. Fixes: <rdar://problem/8289205> llvm-svn: 118444
* If an instance method messages is sending to an expression of type Class,Douglas Gregor2010-11-082-8/+41
| | | | | | | | and we statically can compute a bound on the actual type (e.g., because it's a send to the the magic "class" instance method), code complete as if we were performing a class message send to that class. llvm-svn: 118443
* Document Clang's support for attributes on individual enumerators andJohn McCall2010-11-085-4/+54
| | | | | | | tweak the documentation for deprecation-with-message. Provide __has_feature tests for both. rdar://problem/8605692 llvm-svn: 118435
* Add a forgotten break. Found by Rafael Espindola!Roman Divacky2010-11-081-0/+1
| | | | llvm-svn: 118433
* When building a compound literal, check that the base element of the array ↵Argyrios Kyrtzidis2010-11-082-0/+19
| | | | | | | | is complete. Fixes rdar://8620582 & http://llvm.org/PR7905 llvm-svn: 118428
* Fixes a rewrite bug, rewriting nested property usage Fariborz Jahanian2010-11-083-1/+57
| | | | | | inside blocks. Fixes //rdar: //8608293. llvm-svn: 118425
OpenPOWER on IntegriCloud