summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Extend format string type-checking to include '%p'. Fixes remaining cases ↵Ted Kremenek2010-06-165-78/+104
| | | | | | PR 4468. llvm-svn: 106151
* Canonicalize template template parameters when canonicalizing aDouglas Gregor2010-06-163-3/+135
| | | | | | | template name that refers to such a parameter. It's amazing that this problem didn't surface earlier. Fixes PR7387. llvm-svn: 106147
* tests: Update Frontend config to actually run ir-support tests.Daniel Dunbar2010-06-161-0/+1
| | | | llvm-svn: 106144
* C return types must be complete as well.Fariborz Jahanian2010-06-161-5/+6
| | | | | | | Moved check before we build the ObjCMessageExpr node. (PR7386 related). llvm-svn: 106139
* Change the test for which ABI/CC to use on ARM to be base on the environmentRafael Espindola2010-06-164-17/+11
| | | | | | (the last argument of the triple). llvm-svn: 106131
* Make sure result type of objc++ message expression isFariborz Jahanian2010-06-164-0/+44
| | | | | | | complete before attempting to bind it to a temporary. Fixes PR7386. llvm-svn: 106130
* A a new test for my previous patch.Rafael Espindola2010-06-161-0/+18
| | | | llvm-svn: 106120
* Fix tests that I missed from my previous commit.Rafael Espindola2010-06-165-40/+39
| | | | llvm-svn: 106118
* Test commit by adding a blank comment line.Zhanyong Wan2010-06-161-0/+1
| | | | llvm-svn: 106114
* Frontend: Allow passing -cc1 level arguments to plugins. Patch by Troy ↵Daniel Dunbar2010-06-168-16/+57
| | | | | | Straszheim! llvm-svn: 106113
* Driver: Ignore -ffast-math and -f[no-]finite-math-only.Daniel Dunbar2010-06-161-0/+3
| | | | llvm-svn: 106112
* Don't poke at an undefined class type of a field. Fixes PR7355.Douglas Gregor2010-06-162-34/+44
| | | | llvm-svn: 106111
* Downgrade the error when using a typedef in the nested-name-specifierDouglas Gregor2010-06-163-10/+9
| | | | | | | of an explicit instantiation to an ExtWarn, since nobody else seems to diagnose this problem. llvm-svn: 106109
* Add Cygwin C++ header search path.Douglas Gregor2010-06-161-0/+2
| | | | llvm-svn: 106108
* Fixed conflict between objc_memmove_collectable builtin Fariborz Jahanian2010-06-163-5/+6
| | | | | | decl. and one ddefined in darwin header file. llvm-svn: 106107
* Don't set the calling convention for ARM if it is already the default.Rafael Espindola2010-06-161-3/+11
| | | | llvm-svn: 106106
* If a non-dependent base class initializer fails to match any direct orDouglas Gregor2010-06-162-27/+64
| | | | | | | | virtual base class, but the class still has dependent base classes, then don't diagnose the failed match as an error: the right base class might magically appear. Fixes PR7259. llvm-svn: 106103
* Add some missing parentheses, from Anton YartsevDouglas Gregor2010-06-161-1/+1
| | | | llvm-svn: 106101
* Revert r106099; it broke self-host.Douglas Gregor2010-06-1611-69/+47
| | | | llvm-svn: 106100
* Added TemplateTypeParmType::getDecl().Abramo Bagnara2010-06-1611-47/+69
| | | | llvm-svn: 106099
* Rework the unqualified-lookup-in-templates section of the compatibilityJohn McCall2010-06-161-70/+84
| | | | | | document. jyasskin, let me know if this meets your needs. llvm-svn: 106098
* Fix the build. Using declarations should not be considering when lookingJohn McCall2010-06-162-1/+19
| | | | | | for overridden virtual methods. llvm-svn: 106096
* Some more nods to HTML well-formedness.John McCall2010-06-161-13/+13
| | | | llvm-svn: 106094
* Fix a point of semantics with using declaration hiding: method templatesJohn McCall2010-06-1610-105/+154
| | | | | | | | | | | | | | | | | introduced by using decls are hidden even if their template parameter lists or return types differ from the "overriding" declaration. Propagate using shadow declarations around more effectively when looking up template-ids. Reperform lookup for template-ids in member expressions so that access control is properly set up. Fix some number of latent bugs involving template-ids with totally invalid base types. You can only actually get these with a scope specifier, since otherwise the template-id won't parse as a template-id. Fixes PR7384. llvm-svn: 106093
* We return Loc where we know.Zhongxing Xu2010-06-163-13/+13
| | | | llvm-svn: 106087
* Typo.Zhongxing Xu2010-06-161-1/+1
| | | | llvm-svn: 106086
* Although arguments can not be undefined when we get here, they can still beZhongxing Xu2010-06-161-13/+15
| | | | | | unknown. llvm-svn: 106085
* Cast earlier. We know we can get a DefinedSVal.Zhongxing Xu2010-06-161-3/+3
| | | | llvm-svn: 106084
* Register CallAndMessageChecker before AttrNonNullChecker. Then we can assumeZhongxing Xu2010-06-162-7/+5
| | | | | | arguments are not undefined. llvm-svn: 106083
* Add StreamChecker. This checker models and checks stream manipulation functions.Zhongxing Xu2010-06-166-0/+132
| | | | | | This is the start. llvm-svn: 106082
* Start mangling function types in the Microsoft C++ Mangler.Charles Davis2010-06-162-5/+214
| | | | llvm-svn: 106081
* Fix template ordering compatibility docs. I missed another section that coveredJeffrey Yasskin2010-06-161-144/+90
| | | | | | the same thing. llvm-svn: 106076
* Give Type::isIntegralType() an ASTContext parameter, so that itDouglas Gregor2010-06-169-30/+48
| | | | | | | | | | | | provides C "integer type" semantics in C and C++ "integral type" semantics in C++. Note that I still need to update isIntegerType (and possibly other predicates) using the same approach I've taken for isIntegralType(). The two should have the same meaning, but currently don't (!). llvm-svn: 106074
* Introduce Type::isIntegralOrEnumerationType(), to cover those placesDouglas Gregor2010-06-1616-36/+56
| | | | | | | | | | in C++ that involve both integral and enumeration types. Convert all of the callers to Type::isIntegralType() that are meant to work with both integral and enumeration types over to Type::isIntegralOrEnumerationType(), to prepare to eliminate enumeration types as integral types. llvm-svn: 106071
* Workaround a possible VS C++ bug.Fariborz Jahanian2010-06-161-6/+12
| | | | llvm-svn: 106070
* Describe a gcc compatibility problem that occurs when a template calls aJeffrey Yasskin2010-06-152-0/+127
| | | | | | | function defined between its declaration and an instantiation, and that function isn't findable through ADL. llvm-svn: 106068
* Moved objective-c++ code gen. tests to their own directory andFariborz Jahanian2010-06-153-0/+28
| | | | | | added a new test case (related to radar 8070772). llvm-svn: 106067
* Move CodeGenOptions.h *back* into Frontend. This should have been done when theChandler Carruth2010-06-1512-13/+13
| | | | | | dependency edge was reversed such that CodeGen depends on Frontend. llvm-svn: 106065
* Patch adds support for copying of thoseFariborz Jahanian2010-06-1511-38/+233
| | | | | | | | objective-c++ class objects which have GC'able objc object pointers and need to use ObjC's objc_memmove_collectable API (radar 8070772). llvm-svn: 106061
* Update equality and relationship comparisons of pointers to reflectDouglas Gregor2010-06-153-26/+42
| | | | | | | | | C++ semantics, eliminating an extension diagnostic that doesn't match C++ semantics (ordered comparison with NULL) and tightening some extwarns to errors in C++ to match GCC and maintain conformance in SFINAE contexts. Fixes <rdar://problem/7941392>. llvm-svn: 106050
* fix the various buildbot failures by ensuring that tokens are really ↵Chris Lattner2010-06-152-4/+4
| | | | | | completely initialized. llvm-svn: 106043
* Remove a completely useless and utterly incorrect assertion.Douglas Gregor2010-06-151-2/+0
| | | | llvm-svn: 106040
* Driver: Support -Wp,-MMD,FOO, which I found an instance of. :(Daniel Dunbar2010-06-151-3/+7
| | | | llvm-svn: 106039
* Teach code completion not to ignore data members when performing codeDouglas Gregor2010-06-152-2/+15
| | | | | | completion for expressions. llvm-svn: 106037
* add a testcase, from Michael SpencerChris Lattner2010-06-151-0/+5
| | | | llvm-svn: 106026
* fix an uninitialized variable, patch by Michael Spencer!Chris Lattner2010-06-151-0/+2
| | | | llvm-svn: 106025
* Remove a dead argument to ProcessUCNEscape.Chris Lattner2010-06-152-10/+10
| | | | | | | | | | Fix string concatenation to treat escapes in concatenated strings that are wide because of other string chunks to process the escapes as wide themselves. Before we would warn about and miscompile the attached testcase. This fixes rdar://8040728 - miscompile + warning: hex escape sequence out of range llvm-svn: 106012
* tidy upChris Lattner2010-06-151-1/+1
| | | | llvm-svn: 106011
* Break Frontend's dependency on Rewrite, Checker and CodeGen in shared ↵Daniel Dunbar2010-06-1534-198/+386
| | | | | | | | | | | | | | | | | | | | | | | | | | | | library configuration Currently, all AST consumers are located in the Frontend library, meaning that in a shared library configuration, Frontend has a dependency on Rewrite, Checker and CodeGen. This is suboptimal for clients which only wish to make use of the frontend. CodeGen in particular introduces a large number of unwanted dependencies. This patch breaks the dependency by moving all AST consumers with dependencies on Rewrite, Checker and/or CodeGen to their respective libraries. The patch therefore introduces dependencies in the other direction (i.e. from Rewrite, Checker and CodeGen to Frontend). After applying this patch, Clang builds correctly using CMake and shared libraries ("cmake -DBUILD_SHARED_LIBS=ON"). N.B. This patch includes file renames which are indicated in the patch body. Changes in this revision of the patch: - Fixed some copy-paste mistakes in the header files - Modified certain aspects of the coding to comply with the LLVM Coding Standards llvm-svn: 106010
* Allocate template parameter lists for out-of-line definitions via theDouglas Gregor2010-06-154-16/+29
| | | | | | ASTContext rather than via the normal heap. llvm-svn: 106008
OpenPOWER on IntegriCloud