summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Driver/Darwin: Catch another case where ld ends up using ld_classic.Daniel Dunbar2010-09-071-0/+10
| | | | llvm-svn: 113226
* Driver/Darwin: Don't pass -demangle to the linker when we know it is going toDaniel Dunbar2010-09-071-1/+7
| | | | | | | use ld_classic. This is a temporary workaround, the linkr itself should handle this. llvm-svn: 113212
* Provide a specific diagnostic when trying to redefine an "externDouglas Gregor2010-09-071-1/+6
| | | | | | | inline" function outside of GNU89 mode. Fixes <rdar://problem/6880464>. llvm-svn: 113204
* Improve recovery when there is a stray ']' or ')' before the ';' atDouglas Gregor2010-09-074-6/+26
| | | | | | the end of a statement. Fixes <rdar://problem/6896493>. llvm-svn: 113202
* Improve recovery when a comma is missing between enumerators in anDouglas Gregor2010-09-072-5/+13
| | | | | | enumeration definition. Fixes <rdar://problem/7159693>. llvm-svn: 113201
* Improve diagnostic and recovery when missing a comma between base orDouglas Gregor2010-09-071-0/+6
| | | | | | member initializers in a C++ constructor. Fixes <rdar://problem/7796492>. llvm-svn: 113199
* Replace loops with SmallVector::append.Benjamin Kramer2010-09-062-6/+3
| | | | llvm-svn: 113185
* Fix a C++ PCH problem which was exposed by r113019. ↵Argyrios Kyrtzidis2010-09-061-0/+2
| | | | | | CXXBaseOrMemberInitializer's IsWritten and source order is not set. llvm-svn: 113161
* LastFieldBitfield in CGObjCCommonMac::BuildAggrIvarLayout keeps bitfields or ↵Argyrios Kyrtzidis2010-09-061-15/+24
| | | | | | | | unnamed fields but later the code assumes that it's always a bitfield. This can lead to a crash (reported at rdar://8368320). llvm-svn: 113154
* FinishBlock() is essentially doing nothing except returning '!badCFG'.Zhongxing Xu2010-09-061-55/+42
| | | | llvm-svn: 113149
* Simplify CFG construction: bail out early when we have a bad CFG.Zhongxing Xu2010-09-061-36/+32
| | | | llvm-svn: 113148
* Make "-ccc-cxx" option work on Linux.Rafael Espindola2010-09-062-3/+5
| | | | | | | | | Patch by nobled. I also took the opportunity to make the field private since now it is only ready from the outside. llvm-svn: 113138
* Get rid of unnecessary return.Eli Friedman2010-09-061-1/+0
| | | | llvm-svn: 113132
* move the hackaround for PR6537 to catch unions as well,Chris Lattner2010-09-061-12/+12
| | | | | | fixing the ICE in PR7151 llvm-svn: 113130
* clean up some formatting.Chris Lattner2010-09-062-16/+15
| | | | llvm-svn: 113129
* PR7242: Make sure to use a different context for evaluating constantEli Friedman2010-09-061-1/+4
| | | | | | | | initializers, so the result of the evaluation doesn't leak through inconsistently. Also, don't evaluate references to variables with initializers with side-effects. llvm-svn: 113128
* fix PR7192 by defining wchar_t in a more conventional way. TheChris Lattner2010-09-051-1/+1
| | | | | | type of L"x" can change based on command line arguments. llvm-svn: 113127
* Tell the VS headers that char16_t and char32_t are keywords, so yvals.h ↵Steven Watanabe2010-09-051-0/+4
| | | | | | doesn't try to define them as typedefs. llvm-svn: 113126
* fix 7320: we can't delete a trailing space if it doesn't exist.Chris Lattner2010-09-051-1/+3
| | | | llvm-svn: 113125
* PR8023: Don't crash on invalid uses of __real__ on class types in C++.Eli Friedman2010-09-051-1/+1
| | | | llvm-svn: 113124
* No functional change. Replace Out << 'a' << 'b' with Out << "ab" and spellNick Lewycky2010-09-051-3/+3
| | | | | | David Vandevoorde's name correctly. llvm-svn: 113103
* "const id<NSFoo> *" instead of "id<NSFoo> const *".Chris Lattner2010-09-051-7/+9
| | | | | | I think this wraps up all the legal cases. llvm-svn: 113096
* "const id<NSFoo> *" not "id<NSFoo> const*"Chris Lattner2010-09-051-1/+3
| | | | llvm-svn: 113095
* "const std::vector<int>*" not "std::vector<int> const*"Chris Lattner2010-09-051-1/+1
| | | | llvm-svn: 113094
* "const _Complex float *" not "_Complex float const *"Chris Lattner2010-09-051-1/+2
| | | | llvm-svn: 113093
* 'const std::type_info*' instead of 'std::type_info const*'Chris Lattner2010-09-051-1/+1
| | | | llvm-svn: 113092
* print "const intptr_t" instead of "intptr_t const"Chris Lattner2010-09-051-1/+2
| | | | llvm-svn: 113091
* make clang print types as "const int *" instead of "int const*",Chris Lattner2010-09-052-2/+22
| | | | | | | which is should have done from the beginning. As usual, the most fun with this sort of change is updating all the testcases. llvm-svn: 113090
* revert this, it isn't safe.Chris Lattner2010-09-041-1/+2
| | | | llvm-svn: 113088
* tidy upChris Lattner2010-09-042-3/+2
| | | | llvm-svn: 113087
* revise r112365 to fix the actual problem: the isa<TagType>(Underlying)Chris Lattner2010-09-041-15/+12
| | | | | | | check in the "typedef for anonymous type" check should have been a getAs. llvm-svn: 113085
* Casting of a property reference to 'void' did notFariborz Jahanian2010-09-041-2/+7
| | | | | | | generate the necessary code. This patch fixes it. // rdar://8389655 llvm-svn: 113079
* zap more dead code.Chris Lattner2010-09-042-7/+4
| | | | llvm-svn: 113076
* zap dead code.Chris Lattner2010-09-042-8/+2
| | | | llvm-svn: 113074
* Petty optimization.John McCall2010-09-041-1/+1
| | | | llvm-svn: 113049
* fix a crash in RecursiveASTVisitor's child classes (PR8403); reviewed by ↵Zhanyong Wan2010-09-031-5/+8
| | | | | | chandlerc. llvm-svn: 113038
* Synchronize code-completion cursor kinds with indexing cursorDouglas Gregor2010-09-032-87/+68
| | | | | | kinds. How shameful that this code was duplicated! llvm-svn: 113033
* Truncate block variable of bool type to i1 when itsFariborz Jahanian2010-09-033-20/+2
| | | | | | | value is used. This matches with non-block variable use of bool type. (Fixes radar 8390062). llvm-svn: 113027
* Fix PR7402 when it strikes via template instantiation.Chandler Carruth2010-09-031-0/+5
| | | | llvm-svn: 113019
* It's OK for classes to have flexible array elements (but not unions).Anders Carlsson2010-09-031-1/+1
| | | | llvm-svn: 113018
* Cope with llvm's reference to bool type of 'i1' vs. clang'sFariborz Jahanian2010-09-031-0/+17
| | | | | | | type of 'i8' for the same for __block variables of type bool. refixes radar 8382559. llvm-svn: 113015
* Allow anonymous and local types. The support was already in place for these,Chandler Carruth2010-09-031-21/+23
| | | | | | but this makes them work even as an extension in C++98. This resolves PR8077. llvm-svn: 113011
* A constant initializer never matches the type of the variable it'sJohn McCall2010-09-031-1/+1
| | | | | | | initializing; it at best matches the element type of the variable it's initializing. Fixes PR8073. llvm-svn: 112992
* Use std::string instead of llvm::StringRef to avoid dangling ref.Fariborz Jahanian2010-09-031-1/+1
| | | | | | Per Chris's comment. llvm-svn: 112979
* Use getSpelling to get original text of theFariborz Jahanian2010-09-032-58/+22
| | | | | | c++ operator token. (radar 8328250). llvm-svn: 112977
* Add missing #includeDouglas Gregor2010-09-031-0/+1
| | | | llvm-svn: 112974
* fix a hard coded version number, PR8031. Patch by 'nobled'.Chris Lattner2010-09-031-1/+2
| | | | llvm-svn: 112970
* fix lookup of bits/c++config.h on mingw, patch by Ismail Donmez!Chris Lattner2010-09-031-0/+2
| | | | llvm-svn: 112969
* Simplify code-completion result sorting a bitDouglas Gregor2010-09-031-8/+0
| | | | llvm-svn: 112968
* First test commit by Francois Pichet. _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES ↵Francois Pichet2010-09-031-3/+0
| | | | | | is not a predefined macro, remove it. llvm-svn: 112953
OpenPOWER on IntegriCloud