summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix for PR5714: make sure globals that will be modified aren't marked const.Eli Friedman2009-12-112-5/+23
| | | | llvm-svn: 91156
* Switch PathDiagnostic to StringRef.Benjamin Kramer2009-12-112-59/+20
| | | | llvm-svn: 91155
* Fix two typos.Benjamin Kramer2009-12-112-2/+2
| | | | llvm-svn: 91154
* Reorganize testcase.John McCall2009-12-111-61/+52
| | | | llvm-svn: 91153
* Fix linkage of type info and vtable for classes without linkage.Eli Friedman2009-12-113-3/+11
| | | | llvm-svn: 91152
* Make sure mangling doesn't crash in another case. Add some more tests.Eli Friedman2009-12-113-9/+40
| | | | llvm-svn: 91149
* Don't enter a new scope for a namespace-qualified declarator unless we'reJohn McCall2009-12-115-4/+67
| | | | | | | in a file context. In well-formed code, only happens with friend functions. Fixes PR 5760. llvm-svn: 91146
* When code completion of an overload set fails, produce results for ordinary ↵Douglas Gregor2009-12-111-5/+16
| | | | | | name lookup instead. llvm-svn: 91141
* Add a function's cv-qualifiers to the code-completion results as anDouglas Gregor2009-12-112-6/+26
| | | | | | informative chunk. llvm-svn: 91139
* Teach code completion to instantiate templates when it needs toDouglas Gregor2009-12-112-6/+23
| | | | llvm-svn: 91138
* Member function templates can occur after . or ->Douglas Gregor2009-12-112-4/+14
| | | | llvm-svn: 91137
* Fix for PR5706: let mangleName deal with mangling names without identifiersEli Friedman2009-12-112-4/+9
| | | | | | correctly. llvm-svn: 91136
* Tweak code-completion results by suppressing class templateDouglas Gregor2009-12-113-13/+19
| | | | | | | | | specializations and class template partial specializations (they're never named directly). Also, member access expressions only refer to value declarations (fields, functions, enumerators, etc.) and Objective-C property declarations; filter out everything else. llvm-svn: 91133
* XFAIL this for now, fixing linkage bugs causes the order of globals to ↵Anders Carlsson2009-12-111-0/+1
| | | | | | change. Will fix later today. llvm-svn: 91130
* Move info vectors and add assertions in preparation of moving the vector ↵Anders Carlsson2009-12-111-7/+11
| | | | | | directly into RTTIBuilder. llvm-svn: 91129
* Use GetAddrOfRTTI when getting the RTTI pointer for a base class.Anders Carlsson2009-12-112-4/+17
| | | | llvm-svn: 91127
* Class template (partial) specializations should not show up in code ↵Douglas Gregor2009-12-112-3/+8
| | | | | | completion results llvm-svn: 91125
* Random string-related cleanups.Benjamin Kramer2009-12-113-9/+5
| | | | llvm-svn: 91119
* Use StringRef.getAsInteger instead of temporary string + strtol. No intended ↵Benjamin Kramer2009-12-111-9/+3
| | | | | | functionality change. llvm-svn: 91118
* Move the code for converting a member pointer to a bool so that it is usableEli Friedman2009-12-113-28/+32
| | | | | | for logical not. llvm-svn: 91112
* Fix for PR5718: implement equality comparisons for member function pointers.Eli Friedman2009-12-112-1/+36
| | | | llvm-svn: 91108
* Enhance understanding of VarRegions referenced by a block whose declarations ↵Ted Kremenek2009-12-117-17/+102
| | | | | | are outside the current stack frame. Fixes <rdar://problem/7462324>. llvm-svn: 91107
* Completely evaluate malloc/free in MallocChecker.cpp.Zhongxing Xu2009-12-111-8/+20
| | | | llvm-svn: 91100
* Test member template using hiding.John McCall2009-12-111-2/+45
| | | | llvm-svn: 91099
* Improve linkage of RTTI data structures. Introduce ↵Anders Carlsson2009-12-117-62/+113
| | | | | | CodeGenModule::GetAddrOfRTTI which figures out the right linkage of the RTTI information for the given type and whether it should be defined or not. I will migrate clients over to GetAddrOfRTTI in subsequent commits (with tests). llvm-svn: 91098
* Fix a recent regression from the initialization changes.Eli Friedman2009-12-113-10/+22
| | | | llvm-svn: 91097
* Check if the target of a using decl is already declared in this scope beforeJohn McCall2009-12-112-12/+29
| | | | | | | doing any of the other redeclaration checks. We were missing a few cases. Fixes PR 5752. llvm-svn: 91096
* Implement access declarations. Most of the work here is parsing them, whichJohn McCall2009-12-117-1/+263
| | | | | | | | | | | | is difficult because they're so terribly, terribly ambiguous. We implement access declarations in terms of using declarations, which is quite reasonable. However, we should really persist the access/using distinction in the AST and use the appropriate name in diagnostics. This isn't a priority, so I'll just file a PR and hope someone else does it. :) llvm-svn: 91095
* Give the "cannot pass object of non-POD type 'class C' through variadic ↵Chris Lattner2009-12-114-8/+9
| | | | | | constructor; call will abort at runtime" warning a -W flag (non-pod-varargs) and default it being an error by default. There is no good reason to allow users to get bitten by this sort of thing by default. llvm-svn: 91094
* Fix the handling of dependent enums per C++ DR 502.Eli Friedman2009-12-112-4/+27
| | | | llvm-svn: 91089
* Use named flags in RTTIBuilder::BuildPointerType.Anders Carlsson2009-12-111-25/+54
| | | | llvm-svn: 91088
* When extending the lifetime of a temporary, make sure to emit a branch to ↵Anders Carlsson2009-12-111-1/+4
| | | | | | the cleanup exit block. This fixes a broken module error in LLVMCConfigurationEmitter.cpp. llvm-svn: 91086
* Use 'class' instead of 'struct'.Zhongxing Xu2009-12-111-1/+2
| | | | llvm-svn: 91085
* When an exception needs to be freed by calling __cxa_exception_free, make ↵Anders Carlsson2009-12-113-12/+44
| | | | | | | | sure to stash away the exception pointer somewhere. This fixes an "Instruction does not dominate all uses!" verification error when compiling TableGen. llvm-svn: 91084
* Remove this test for now, it is flaky.Daniel Dunbar2009-12-111-15/+0
| | | | llvm-svn: 91083
* FileManager: Do not cache failed stats, it is easy to construct commonDaniel Dunbar2009-12-111-10/+9
| | | | | | | | | | | | | | | | | | inconsistent situations if we do, and they are not important for PCH performance (which currently only needs the stats to construct the initial FileManager entries). - No test case, sorry, the machinations are too involved. This occurs when, for example, the build makes a PCH file and has a header map or a -I for a directory that does not yet exist. It is possible we will cache the negative stat on that directory, and then in the build we will never find header files inside that dir. For PCH we don't need these stats anyway for performance, so this also makes PCH files smaller w/ no loss. I hope to eventually eliminate the stat cache entirely. llvm-svn: 91082
* Patch to fix a crash trying to access a category name inFariborz Jahanian2009-12-116-24/+14
| | | | | | | objective-c++ mode and also removed dead-code in this area. (fixes radar 7456710). llvm-svn: 91081
* Testcase for recent checkin.Mike Stump2009-12-111-1/+1
| | | | llvm-svn: 91080
* Implement just a bit more of inline assembly.Mike Stump2009-12-111-1/+14
| | | | llvm-svn: 91079
* Fix spacing.Mike Stump2009-12-111-1/+1
| | | | llvm-svn: 91078
* Don't complain about falling off the end of a function with an asmMike Stump2009-12-102-0/+9
| | | | | | | block, if the function is supposed to return a value as we don't know exactly what the asm code does. llvm-svn: 91073
* clang_getCompletionChunkText() will treat optional strings as empty text blocksDouglas Gregor2009-12-101-1/+1
| | | | llvm-svn: 91072
* Support unary type traits in a scalar context. Not that I've actually seenEli Friedman2009-12-102-0/+7
| | | | | | this construct, but might as well for completeness. llvm-svn: 91071
* Clean up enum constants so that they're finally sane. Fixes PR3173 and aEli Friedman2009-12-104-25/+11
| | | | | | recently introduced crash. llvm-svn: 91070
* Make sure that explicitly instantiated functions get the right linkage.Anders Carlsson2009-12-102-3/+36
| | | | llvm-svn: 91069
* Beef up Clang-on-LLVM testing a bit, by making LLVM-Syntax recursiveDouglas Gregor2009-12-102-5/+29
| | | | | | | (since we now parse all of the headers appropriately) and teaching LLVM-Code-Syntax about the extra paths needed to parse the backends. llvm-svn: 91068
* Privatize class members.Benjamin Kramer2009-12-101-2/+2
| | | | llvm-svn: 91067
* Actually try to trigger the last diagnostic in the declaration-collision ↵John McCall2009-12-101-4/+9
| | | | | | | | | test case. Surprisingly, we *do* diagnose one of them. Since we don't really track scopes into instantiation, this has to signal some kind of bug. llvm-svn: 91063
* No need to add -x objecitve-c++Fariborz Jahanian2009-12-101-1/+1
| | | | llvm-svn: 91060
* Add support for finding composite type of twp objective-c pointersFariborz Jahanian2009-12-102-0/+72
| | | | | | in objective-c++ mode. llvm-svn: 91059
OpenPOWER on IntegriCloud