summaryrefslogtreecommitdiffstats
path: root/clang/lib
Commit message (Collapse)AuthorAgeFilesLines
* Introduce support for emitting diagnostics (warnings + their notes)Douglas Gregor2010-10-128-57/+131
| | | | | | | | | | | | | | | that are suppressed during template argument deduction. This change queues diagnostics computed during template argument deduction. Then, if the resulting function template specialization or partial specialization is chosen by overload resolution or partial ordering (respectively), we will emit the queued diagnostics at that point. This addresses most of PR6784. However, the check for unnamed/local template arguments (which existed before this change) is still only skin-deep, and needs to be extended to look deeper into types. It must be improved to finish PR6784. llvm-svn: 116373
* Fix debug info for anon union. Devang Patel2010-10-122-12/+46
| | | | | | This is tested by anon-union.exp. llvm-svn: 116372
* Fix anon union member assignment expression's location.Devang Patel2010-10-121-1/+1
| | | | | | This is tested by anon-union.exp in gdb testsuite. llvm-svn: 116371
* Handle dependent friends more explicitly and deal with the possibilityJohn McCall2010-10-124-44/+75
| | | | | | | | of templated-scope friends by marking them invalid and white-listing all accesses until such time as we implement them. Fixes a crash, this time without a broken test case. llvm-svn: 116364
* PR8325: don't do destructor checking when a pointer is thrown.Eli Friedman2010-10-121-0/+4
| | | | llvm-svn: 116336
* Enter the context of the declared function template when performingJohn McCall2010-10-121-2/+6
| | | | | | | deduction and the final substitution, but not while substituting the explicit template arguments. Fixes rdar://problem/8537391 llvm-svn: 116332
* When finalizing a function template specialization following templateDouglas Gregor2010-10-121-7/+4
| | | | | | | | | | argument deduction, make sure to check the correctness of deduced template type arguments (which we had previously skipped) along with other kinds of template arguments. This fixes part of PR6784, but we're still swallowing the extension warning about unnamed/local template arguments. llvm-svn: 116327
* If we end up instantiating a function parameter whose default argumentDouglas Gregor2010-10-122-0/+15
| | | | | | | | | has not yet been parsed, note that the default argument hasn't been parsed and keep track of all of the instantiations of that function parameter. When its default argument does get parsed, imbue the instantiations with that default argument. Fixes PR8245. llvm-svn: 116324
* fix PR7885, rejecting invalid uses of __builtin_constant_p.Chris Lattner2010-10-121-0/+10
| | | | llvm-svn: 116317
* Parse default arguments within member functions in source order, fromDouglas Gregor2010-10-123-143/+168
| | | | | | Manuel Klimek! Fixes PR7715. llvm-svn: 116311
* Pacify gcc-4.4.Duncan Sands2010-10-121-2/+4
| | | | llvm-svn: 116300
* C's comma operator performs lvalue conversion on both its operands;John McCall2010-10-121-6/+11
| | | | | | require them to have complete types. llvm-svn: 116297
* I just do what the comments tell me to do.John McCall2010-10-121-1/+2
| | | | llvm-svn: 116289
* Progress.John McCall2010-10-122-33/+66
| | | | llvm-svn: 116287
* When we load an ASTUnit from command-line arguments, hold on to theDouglas Gregor2010-10-121-72/+111
| | | | | | | | | diagnostics produced by the driver itself. Previously, we were allowing these to either be dropped or to slip through to stderr. Fixes <rdar://problem/7595339>. llvm-svn: 116285
* Fix spelling error.Cameron Esfahani2010-10-121-1/+1
| | | | llvm-svn: 116283
* Add some infrastructure for dealing with expressions of 'placeholder' type,John McCall2010-10-124-64/+67
| | | | | | | i.e. expressions with an internally-convenient type which should not be appearing in generally valid, complete ASTs. llvm-svn: 116281
* Fixes a typo which caused byte offset in debug info Fariborz Jahanian2010-10-111-1/+1
| | | | | | for ivars to be 0. Fixes pr8353. llvm-svn: 116273
* Basic: Tweak attempt to make version tags work from 'svn export's again, clipDaniel Dunbar2010-10-111-2/+4
| | | | | | off the extra parts of the $URL$ SVN keyword. llvm-svn: 116269
* Basic: Attempt to make version tags work from 'svn export's again.Daniel Dunbar2010-10-111-0/+6
| | | | llvm-svn: 116268
* Driver/Darwin: Remove a useless warning about missing runtime libraries. TheseDaniel Dunbar2010-10-111-8/+2
| | | | | | are almost never needed, so the warning isn't very useful. llvm-svn: 116263
* Eliminate CIndexer::getClangPath(), since libclang no longer dependsDouglas Gregor2010-10-111-12/+35
| | | | | | | | | | | on the presence of a 'clang' executable. Simplify CIndexer::getClangResourcesPath() a bit. Patch up the CMake makefiles to install headers into two locations in the build tree, for those silly cases where 'clang' will end up looking into the wrong build directory for headers. llvm-svn: 116260
* Some refactoring of property rewriting stuff Fariborz Jahanian2010-10-111-17/+11
| | | | | | in rewriter. No functionality change. llvm-svn: 116254
* Eliminate the (de-)serialization of code completion results, now thatDouglas Gregor2010-10-113-165/+1
| | | | | | libclang does not support out-of-process code completion. llvm-svn: 116253
* Eliminate -fdiagnostics-binary and all of the infrastructure forDouglas Gregor2010-10-114-283/+1
| | | | | | | | emitting diagnostics in a binary form to be consumed by libclang, since libclang no longer does any of its work out-of-process, making this code dead. Besides, this stuff never worked at 100% anyway. llvm-svn: 116250
* Fix debug info for functions whose context is a namespace.Devang Patel2010-10-111-2/+6
| | | | | | This is tested by namespace.exp in gdb testsuite. llvm-svn: 116248
* Switch c-index-test from clang_codeComplete() over toDouglas Gregor2010-10-112-3/+14
| | | | | | | | | | clang_codeCompleteAt(). This uncovered a few issues with the latter: - ASTUnit wasn't saving/restoring diagnostic state appropriately between reparses and code completions. - "Overload" completions weren't being passed through to the client llvm-svn: 116241
* This patch does a few things in the area of objective-cFariborz Jahanian2010-10-112-83/+135
| | | | | | | | | | | properties. 1. Generates the AST for lexical info. of accessing getter/setter methods using dot-syntax notation. This fixes //rdar: //8528170. 2. Modifes rewriter to handle the AST putout in 1. 3. Supportes in rewriter ObjCImplicitSetterGetter ASTs. llvm-svn: 116237
* IRgen/Obj-C: Fix encoding of "long double".Daniel Dunbar2010-10-111-1/+1
| | | | | | - The mind boggles. llvm-svn: 116226
* Add parsing support for Microsoft attributes. MS attributes will just be ↵Francois Pichet2010-10-114-0/+36
| | | | | | skipped and not inserted into the AST for now. llvm-svn: 116203
* Declare argv parameters as const char* const* instead of to char** to ↵Axel Naumann2010-10-113-4/+6
| | | | | | clarify that they are not modified, and to allow for string literals as arguments. llvm-svn: 116200
* Tighten up constness of argv parameters to allow for string literals as ↵Axel Naumann2010-10-111-3/+3
| | | | | | argumants and to reflect actual (non-modifying) use. llvm-svn: 116199
* Per discussion with Sanjiv, remove the PIC16 target from mainline. When/ifChris Lattner2010-10-112-145/+0
| | | | | | | it comes back, it will be largely a rewrite, so keeping the old codebase in tree isn't helping anyone. llvm-svn: 116191
* comment out unused functionChris Lattner2010-10-111-1/+1
| | | | llvm-svn: 116189
* Make sure the VTables for template instantiations are emitted even if the ↵Argyrios Kyrtzidis2010-10-113-22/+30
| | | | | | key function doesn't have a body. llvm-svn: 116186
* Don't let typeinfo name symbols be 'internal hidden', it can lead to linker ↵Argyrios Kyrtzidis2010-10-111-1/+1
| | | | | | | | conflicts with similarly named classes in anonymous namespaces. llvm-svn: 116185
* lib/CodeGen/CodeGenModule.cpp: DLLImportLinkage should be processed also on ↵NAKAMURA Takumi2010-10-111-1/+3
| | | | | | | | declaration. It enables clang to compile Mingw's headers. llvm-svn: 116184
* lib/Driver/Driver.cpp: Use the driver g++-4 for Cygwin-1.5.NAKAMURA Takumi2010-10-111-1/+13
| | | | llvm-svn: 116183
* lib/Frontend/InitHeaderSearch.cpp: Fix compatibility to Cygming.NAKAMURA Takumi2010-10-111-8/+9
| | | | | | | | | | - lib/gcc/include should not be included. Clang oughta have alternatives. (PR7956) - Cygwin: /usr/include/w32api should be included. gcc/cygwin does. - gcc/cygwin uses gcc paths as /usr/lib not /lib. They are same on Cygwin environment, though, We have to take what gcc/cygwin does. - Cygwin-1.7: Use 4.3.4. - Cygwin-1.5: Use 4.3.2 for gcc-4. llvm-svn: 116182
* fix PR8217, a silent miscompilation of invalid code.Chris Lattner2010-10-101-5/+15
| | | | llvm-svn: 116166
* Allow a string literal to initialize a tail array (PR8217), patch Chris Lattner2010-10-101-1/+2
| | | | | | by Pierre Habouzit! llvm-svn: 116165
* Unbreak the CMake build.Francois Pichet2010-10-101-0/+1
| | | | llvm-svn: 116164
* Add experimental chroot check which checks improper use of chroot(). Patch by Zhongxing Xu2010-10-103-0/+163
| | | | | | Lei Zhang. llvm-svn: 116163
* Implement __builtin_ia32_vec_ext_v2si function (required by Qt).Argyrios Kyrtzidis2010-10-101-0/+3
| | | | llvm-svn: 116162
* lib/Driver/Tools.cpp: Disable cxa_atexit by default also on Cygwin.NAKAMURA Takumi2010-10-101-0/+1
| | | | llvm-svn: 116161
* Don't rely on a StringRef being null-terminated (it's not) for deprecation ↵Benjamin Kramer2010-10-092-12/+9
| | | | | | | | messages. Store pointer and length of the message in DelayedDiagnostic and hide the gory union details. llvm-svn: 116153
* Add target implementations for the X86 builtins:Bill Wendling2010-10-092-1/+33
| | | | | | | | | | | __builtin_ia32_vec_init_v8qi __builtin_ia32_vec_init_v4hi __builtin_ia32_vec_init_v2si They are lowered to bitcasts. (These are all ready tested by the gcc testsuite.) <rdar://problem/8529957> llvm-svn: 116147
* Fix g++.dg regressions introduced at r115347 (rdar://8529993)Argyrios Kyrtzidis2010-10-091-2/+2
| | | | llvm-svn: 116144
* Permit constant evaluation of const floating-point variables withJohn McCall2010-10-096-15/+67
| | | | | | constant initializers. llvm-svn: 116138
* Add support for UCNs for character literalsNico Weber2010-10-091-25/+55
| | | | llvm-svn: 116129
OpenPOWER on IntegriCloud