[cfe-commits] r151356 - /cfe/trunk/lib/Sema/SemaInit.cpp

2012-02-24 Thread Matt Beaumont-Gay
Author: matthewbg Date: Fri Feb 24 02:37:56 2012 New Revision: 151356 URL: http://llvm.org/viewvc/llvm-project?rev=151356view=rev Log: Sink variable into assert Modified: cfe/trunk/lib/Sema/SemaInit.cpp Modified: cfe/trunk/lib/Sema/SemaInit.cpp URL:

[cfe-commits] r151357 - /cfe/trunk/lib/AST/Expr.cpp

2012-02-24 Thread Nick Lewycky
Author: nicholas Date: Fri Feb 24 02:58:14 2012 New Revision: 151357 URL: http://llvm.org/viewvc/llvm-project?rev=151357view=rev Log: Silence gcc warnings pointing out that CharByteWidth could be used uninitialized. While there, restyle this function! No functionality change. Modified:

[cfe-commits] r151359 - /cfe/trunk/lib/AST/Expr.cpp

2012-02-24 Thread Nick Lewycky
Author: nicholas Date: Fri Feb 24 03:07:53 2012 New Revision: 151359 URL: http://llvm.org/viewvc/llvm-project?rev=151359view=rev Log: Revert r151357. That unreachable is reachable... Modified: cfe/trunk/lib/AST/Expr.cpp Modified: cfe/trunk/lib/AST/Expr.cpp URL:

Re: [cfe-commits] r151352 - in /cfe/trunk: docs/ include/clang/AST/ include/clang/Basic/ include/clang/Parse/ include/clang/Sema/ include/clang/Serialization/ lib/AST/ lib/Lex/ lib/Parse/ lib/Sema/ li

2012-02-24 Thread Howard Hinnant
Awesome, thanks! Howard On Feb 24, 2012, at 2:38 AM, Douglas Gregor wrote: Author: dgregor Date: Fri Feb 24 01:38:34 2012 New Revision: 151352 URL: http://llvm.org/viewvc/llvm-project?rev=151352view=rev Log: Implement a new type trait __is_trivially_constructible(T, Args...) that

Re: [cfe-commits] r151307 - in /cfe/trunk: include/clang/Basic/TokenKinds.def include/clang/Parse/Parser.h lib/Parse/ParseDeclCXX.cpp lib/Parse/ParsePragma.cpp lib/Parse/ParseStmt.cpp lib/Parse/Parser

2012-02-24 Thread Rafael Espíndola
This doesn't work for C. For example, in struct A { #pragma GCC visibility push(protected) #pragma GCC visibility pop }; we produce home/espindola/llvm/test.c:2:15: error: type name requires a specifier or qualifier #pragma GCC visibility push(protected) and in c++, we don't produce an

Re: [cfe-commits] [PATCH] ArrayRef'ize various functions in clang

2012-02-24 Thread Chris Lattner
On Feb 24, 2012, at 2:26 AM, Ahmed Charles wrote: Fairly straight forward changes to allow ArrayRefExpr* rather than Expr** and int. Looks great, please commit! -Chris ___ cfe-commits mailing list cfe-commits@cs.uiuc.edu

[cfe-commits] r151367 - /cfe/trunk/runtime/compiler-rt/Makefile

2012-02-24 Thread Rafael Espindola
Author: rafael Date: Fri Feb 24 10:22:39 2012 New Revision: 151367 URL: http://llvm.org/viewvc/llvm-project?rev=151367view=rev Log: Use -no-integrated-as only on ARM. The X86 and X86-64 integrated as have been the default for clang for some time now and can handle compiler-rt. Modified:

[cfe-commits] r151368 - in /cfe/trunk: lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp test/Analysis/malloc-interprocedural.c

2012-02-24 Thread Anna Zaks
Author: zaks Date: Fri Feb 24 10:49:41 2012 New Revision: 151368 URL: http://llvm.org/viewvc/llvm-project?rev=151368view=rev Log: [analyzer] We were silently stopping exploring the path after visiting 'return;' statement! This most likely caused us to skip a bunch of code when analyzing with

[cfe-commits] r151369 - in /cfe/trunk: lib/StaticAnalyzer/Core/ExprEngine.cpp test/Analysis/keychainAPI.m test/Analysis/malloc-interprocedural.c

2012-02-24 Thread Anna Zaks
Author: zaks Date: Fri Feb 24 10:49:46 2012 New Revision: 151369 URL: http://llvm.org/viewvc/llvm-project?rev=151369view=rev Log: [analyzer] Run remove dead bindings before each call. This ensures that we report the bugs associated with symbols going out of scope in the correct function context.

[cfe-commits] r151371 - in /cfe/trunk: lib/Rewrite/RewriteModernObjC.cpp test/Rewriter/rewrite-modern-block-ivar-call.mm

2012-02-24 Thread Fariborz Jahanian
Author: fjahanian Date: Fri Feb 24 11:35:35 2012 New Revision: 151371 URL: http://llvm.org/viewvc/llvm-project?rev=151371view=rev Log: objc modern translator. Fixes writing of block pointer ivar access. Added: cfe/trunk/test/Rewriter/rewrite-modern-block-ivar-call.mm Modified:

[cfe-commits] r151372 - in /cfe/trunk: include/clang/AST/Expr.h lib/Sema/TreeTransform.h test/CodeGenCXX/blocks.cpp

2012-02-24 Thread Douglas Gregor
Author: dgregor Date: Fri Feb 24 11:41:38 2012 New Revision: 151372 URL: http://llvm.org/viewvc/llvm-project?rev=151372view=rev Log: Two minor, related fixes for template instantiation with blocks: - Make sure that the block expression is instantiation-dependent if the block is in a

Re: [cfe-commits] r151359 - /cfe/trunk/lib/AST/Expr.cpp

2012-02-24 Thread Richard Smith
On Fri, Feb 24, 2012 at 1:07 AM, Nick Lewycky nicho...@mxc.ca wrote: Author: nicholas Date: Fri Feb 24 03:07:53 2012 New Revision: 151359 URL: http://llvm.org/viewvc/llvm-project?rev=151359view=rev Log: Revert r151357. That unreachable is reachable... Modified:

[cfe-commits] r151376 - /cfe/trunk/test/Rewriter/rewrite-modern-nested-ivar.mm

2012-02-24 Thread Fariborz Jahanian
Author: fjahanian Date: Fri Feb 24 12:03:42 2012 New Revision: 151376 URL: http://llvm.org/viewvc/llvm-project?rev=151376view=rev Log: more objective-c modern translator ivar tests. Added: cfe/trunk/test/Rewriter/rewrite-modern-nested-ivar.mm Added:

[cfe-commits] r151377 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td include/clang/Basic/DiagnosticSemaKinds.td lib/Parse/ParseDeclCXX.cpp lib/Sema/DeclSpec.cpp test/SemaCXX/cxx98-compat

2012-02-24 Thread Richard Smith
Author: rsmith Date: Fri Feb 24 12:10:23 2012 New Revision: 151377 URL: http://llvm.org/viewvc/llvm-project?rev=151377view=rev Log: __decltype is a GNU extension, not a C++11 extension. Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td

[cfe-commits] r151378 - /cfe/trunk/test/Rewriter/rewrite-modern-struct-ivar.mm

2012-02-24 Thread Fariborz Jahanian
Author: fjahanian Date: Fri Feb 24 12:17:50 2012 New Revision: 151378 URL: http://llvm.org/viewvc/llvm-project?rev=151378view=rev Log: test for writing modern ivar of struct type. Added: cfe/trunk/test/Rewriter/rewrite-modern-struct-ivar.mm Added:

Re: [cfe-commits] r151330 - in /cfe/trunk: lib/Serialization/ASTWriter.cpp test/Index/targeted-cursor.m test/Index/targeted-cursor.m.h

2012-02-24 Thread Douglas Gregor
On Feb 23, 2012, at 5:12 PM, Argyrios Kyrtzidis wrote: Author: akirtzidis Date: Thu Feb 23 19:12:38 2012 New Revision: 151330 URL: http://llvm.org/viewvc/llvm-project?rev=151330view=rev Log: [PCH] When keeping track of top-level decls for targeted deserialization make sure we don't

[cfe-commits] r151381 - /cfe/trunk/www/cxx_status.html

2012-02-24 Thread Richard Smith
Author: rsmith Date: Fri Feb 24 12:42:08 2012 New Revision: 151381 URL: http://llvm.org/viewvc/llvm-project?rev=151381view=rev Log: cxx_status: Consistently refer to C++11 as C++11, not as C++'11 nor as C++0x. Use C++98 to refer to C++98, not C++. Add heading for C++98 support section. Modified:

Re: [cfe-commits] r151330 - in /cfe/trunk: lib/Serialization/ASTWriter.cpp test/Index/targeted-cursor.m test/Index/targeted-cursor.m.h

2012-02-24 Thread Argyrios Kyrtzidis
On Feb 24, 2012, at 10:27 AM, Douglas Gregor wrote: On Feb 23, 2012, at 5:12 PM, Argyrios Kyrtzidis wrote: Author: akirtzidis Date: Thu Feb 23 19:12:38 2012 New Revision: 151330 URL: http://llvm.org/viewvc/llvm-project?rev=151330view=rev Log: [PCH] When keeping track of top-level

[cfe-commits] [Patch][Review] __has_feature(__feature__)

2012-02-24 Thread Jonathan Sauer
Hello, following the discussion in cfe-dev[*], I decided to put my money where my mouth is and have attached a patch that makes it possible to use __has_feature(__feature__) in place of __has_feature(feature) to protect the feature name in case the user defines a macro with the same name. I

[cfe-commits] r151386 - /cfe/trunk/test/Index/targeted-cursor.m

2012-02-24 Thread Argyrios Kyrtzidis
Author: akirtzidis Date: Fri Feb 24 13:45:42 2012 New Revision: 151386 URL: http://llvm.org/viewvc/llvm-project?rev=151386view=rev Log: [libclang] Add a triple to the test. Modified: cfe/trunk/test/Index/targeted-cursor.m Modified: cfe/trunk/test/Index/targeted-cursor.m URL:

Re: [cfe-commits] r151330 - in /cfe/trunk: lib/Serialization/ASTWriter.cpp test/Index/targeted-cursor.m test/Index/targeted-cursor.m.h

2012-02-24 Thread Argyrios Kyrtzidis
On Feb 23, 2012, at 8:26 PM, David Blaikie wrote: On Thu, Feb 23, 2012 at 5:12 PM, Argyrios Kyrtzidis akyr...@gmail.com wrote: Author: akirtzidis Date: Thu Feb 23 19:12:38 2012 New Revision: 151330 URL: http://llvm.org/viewvc/llvm-project?rev=151330view=rev Log: [PCH] When keeping track

[cfe-commits] r151387 - /cfe/trunk/lib/Serialization/ASTWriter.cpp

2012-02-24 Thread Argyrios Kyrtzidis
Author: akirtzidis Date: Fri Feb 24 13:45:46 2012 New Revision: 151387 URL: http://llvm.org/viewvc/llvm-project?rev=151387view=rev Log: Change the text of a FIXME. Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp URL:

[cfe-commits] r151389 - /cfe/trunk/lib/Sema/SemaExprCXX.cpp

2012-02-24 Thread Dmitri Gribenko
Author: gribozavr Date: Fri Feb 24 14:03:35 2012 New Revision: 151389 URL: http://llvm.org/viewvc/llvm-project?rev=151389view=rev Log: Fix comment: correct predicate name, reformat comment. Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp Modified: cfe/trunk/lib/Sema/SemaExprCXX.cpp URL:

Re: [cfe-commits] Patch CMakeLists.txt to install libclang.dll on Windows

2012-02-24 Thread Joe Groff
(ping) Here's a patch to CMakeLists so that libclang.dll gets installed properly to the bin/ directory for Windows targets. Let me know if any changes are needed. Thanks. -Joe clang-dll-install.diff Description: Binary data ___ cfe-commits mailing

Re: [cfe-commits] [PATCH] Additional output for AnalyzerStatsChecker

2012-02-24 Thread Ted Kremenek
On Feb 24, 2012, at 11:24 AM, Tom Care tom.c...@uqconnect.edu.au wrote: As for the general solution to the reclaimed ExplodedNodes, should I file a bug against it? Sure. That will serve as a useful focal point for discussion. ___ cfe-commits

[cfe-commits] r151394 - in /cfe/trunk: lib/Sema/SemaDeclCXX.cpp test/SemaCXX/cxx0x-deleted-default-ctor.cpp

2012-02-24 Thread Douglas Gregor
Author: dgregor Date: Fri Feb 24 15:25:53 2012 New Revision: 151394 URL: http://llvm.org/viewvc/llvm-project?rev=151394view=rev Log: C++11 [class.ctor]p5 says that A defaulted default constructor for a class X is defined as deleted if [...] - X is a union and all of its variant members are

Re: [cfe-commits] r151377 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td include/clang/Basic/DiagnosticSemaKinds.td lib/Parse/ParseDeclCXX.cpp lib/Sema/DeclSpec.cpp test/SemaCXX/cxx98-co

2012-02-24 Thread Eli Friedman
On Fri, Feb 24, 2012 at 10:10 AM, Richard Smith richard-l...@metafoo.co.uk wrote: Author: rsmith Date: Fri Feb 24 12:10:23 2012 New Revision: 151377 URL: http://llvm.org/viewvc/llvm-project?rev=151377view=rev Log: __decltype is a GNU extension, not a C++11 extension. We don't normally warn

Re: [cfe-commits] [PATCH] atomic operation builtins, part 1

2012-02-24 Thread Jeffrey Yasskin
I managed to get in touch with some folks at Intel to get their thoughts on this. Milind has some recommendations. On Sat, Feb 11, 2012 at 11:53 PM, Jeffrey Yasskin jyass...@googlers.com wrote: On Wed, Oct 12, 2011 at 11:55 AM, Jeffrey Yasskin jyass...@google.com wrote: [+ Lawrence who's been

[cfe-commits] r151395 - /cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp

2012-02-24 Thread Fariborz Jahanian
Author: fjahanian Date: Fri Feb 24 15:42:38 2012 New Revision: 151395 URL: http://llvm.org/viewvc/llvm-project?rev=151395view=rev Log: Minor modern rewriter bug showed up during testing against a large project. Modified: cfe/trunk/lib/Rewrite/RewriteModernObjC.cpp Modified:

[cfe-commits] r151400 - /cfe/trunk/lib/Sema/SemaType.cpp

2012-02-24 Thread Benjamin Kramer
Author: d0k Date: Fri Feb 24 16:19:42 2012 New Revision: 151400 URL: http://llvm.org/viewvc/llvm-project?rev=151400view=rev Log: Make helper static. Modified: cfe/trunk/lib/Sema/SemaType.cpp Modified: cfe/trunk/lib/Sema/SemaType.cpp URL:

Re: [cfe-commits] [Patch][Review] __has_feature(__feature__)

2012-02-24 Thread Chris Lattner
On Feb 24, 2012, at 11:47 AM, Jonathan Sauer wrote: Hello, following the discussion in cfe-dev[*], I decided to put my money where my mouth is and have attached a patch that makes it possible to use __has_feature(__feature__) in place of __has_feature(feature) to protect the feature

[cfe-commits] r151401 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td lib/Parse/ParseDeclCXX.cpp test/SemaCXX/decltype-98.cpp

2012-02-24 Thread Richard Smith
Author: rsmith Date: Fri Feb 24 16:30:04 2012 New Revision: 151401 URL: http://llvm.org/viewvc/llvm-project?rev=151401view=rev Log: Back out __decltype warning from r151377: we should either warn on all the GNU __keywords or none of them. Modified:

Re: [cfe-commits] r151377 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td include/clang/Basic/DiagnosticSemaKinds.td lib/Parse/ParseDeclCXX.cpp lib/Sema/DeclSpec.cpp test/SemaCXX/cxx98-co

2012-02-24 Thread Richard Smith
On Fri, Feb 24, 2012 at 1:50 PM, Eli Friedman eli.fried...@gmail.comwrote: On Fri, Feb 24, 2012 at 10:10 AM, Richard Smith richard-l...@metafoo.co.uk wrote: Author: rsmith Date: Fri Feb 24 12:10:23 2012 New Revision: 151377 URL: http://llvm.org/viewvc/llvm-project?rev=151377view=rev

Re: [cfe-commits] r151377 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td include/clang/Basic/DiagnosticSemaKinds.td lib/Parse/ParseDeclCXX.cpp lib/Sema/DeclSpec.cpp test/SemaCXX/cxx98-co

2012-02-24 Thread Eli Friedman
On Fri, Feb 24, 2012 at 2:35 PM, Richard Smith rich...@metafoo.co.uk wrote: On Fri, Feb 24, 2012 at 1:50 PM, Eli Friedman eli.fried...@gmail.com wrote: On Fri, Feb 24, 2012 at 10:10 AM, Richard Smith richard-l...@metafoo.co.uk wrote: Author: rsmith Date: Fri Feb 24 12:10:23 2012 New

Re: [cfe-commits] r151399 - in /cfe/trunk: lib/AST/ExprConstant.cpp test/SemaCXX/lambda-expressions.cpp

2012-02-24 Thread Eli Friedman
On Fri, Feb 24, 2012 at 2:12 PM, Richard Smith richard-l...@metafoo.co.uk wrote: Author: rsmith Date: Fri Feb 24 16:12:32 2012 New Revision: 151399 URL: http://llvm.org/viewvc/llvm-project?rev=151399view=rev Log: When checking whether a reference to a variable is an ICE, look at the type of

Re: [cfe-commits] r151403 - in /cfe/trunk: lib/CodeGen/CodeGenTypes.cpp test/CodeGenCXX/forward-enum.cpp

2012-02-24 Thread Eli Friedman
On Fri, Feb 24, 2012 at 2:40 PM, Douglas Gregor dgre...@apple.com wrote: Author: dgregor Date: Fri Feb 24 16:40:36 2012 New Revision: 151403 URL: http://llvm.org/viewvc/llvm-project?rev=151403view=rev Log: For the purposes of building LLVM types, a forward-declared enumeration type with a

Re: [cfe-commits] r151399 - in /cfe/trunk: lib/AST/ExprConstant.cpp test/SemaCXX/lambda-expressions.cpp

2012-02-24 Thread Richard Smith
On Fri, Feb 24, 2012 at 2:54 PM, Eli Friedman eli.fried...@gmail.comwrote: On Fri, Feb 24, 2012 at 2:12 PM, Richard Smith richard-l...@metafoo.co.uk wrote: Author: rsmith Date: Fri Feb 24 16:12:32 2012 New Revision: 151399 URL: http://llvm.org/viewvc/llvm-project?rev=151399view=rev

[cfe-commits] r151405 - /cfe/trunk/test/SemaCXX/lambda-expressions.cpp

2012-02-24 Thread Richard Smith
Author: rsmith Date: Fri Feb 24 17:21:24 2012 New Revision: 151405 URL: http://llvm.org/viewvc/llvm-project?rev=151405view=rev Log: Remove FIXME: as Eli points out, the behavior here is now correct. Modified: cfe/trunk/test/SemaCXX/lambda-expressions.cpp Modified:

Re: [cfe-commits] [Patch][Review] __has_feature(__feature__)

2012-02-24 Thread Jean-Daniel Dupas
Le 24 févr. 2012 à 20:47, Jonathan Sauer a écrit : Hello, following the discussion in cfe-dev[*], I decided to put my money where my mouth is and have attached a patch that makes it possible to use __has_feature(__feature__) in place of __has_feature(feature) to protect the feature

Re: [cfe-commits] [Patch][Review] __has_feature(__feature__)

2012-02-24 Thread Jean-Daniel Dupas
Le 24 févr. 2012 à 20:47, Jonathan Sauer a écrit : Hello, following the discussion in cfe-dev[*], I decided to put my money where my mouth is and have attached a patch that makes it possible to use __has_feature(__feature__) in place of __has_feature(feature) to protect the feature

[cfe-commits] [libcxx] r151406 - in /libcxx/trunk: include/type_traits test/utilities/meta/meta.unary/meta.unary.prop/is_trivially_copy_constructible.pass.cpp test/utilities/meta/meta.unary/meta.unary

2012-02-24 Thread Howard Hinnant
Author: hhinnant Date: Fri Feb 24 17:32:26 2012 New Revision: 151406 URL: http://llvm.org/viewvc/llvm-project?rev=151406view=rev Log: Hook up to the new clang __is_trivially_constructible and __is_trivially_assignable traits. Fixes r10925427 and http://llvm.org/bugs/show_bug.cgi?id=12038.

[cfe-commits] r151407 - in /cfe/trunk: lib/CodeGen/CGExprAgg.cpp test/CodeGen/init.c

2012-02-24 Thread Eli Friedman
Author: efriedma Date: Fri Feb 24 17:53:49 2012 New Revision: 151407 URL: http://llvm.org/viewvc/llvm-project?rev=151407view=rev Log: Fix a stupid mistake in r151133. Reported to me by Joerg Sonnenberger. Modified: cfe/trunk/lib/CodeGen/CGExprAgg.cpp cfe/trunk/test/CodeGen/init.c

[cfe-commits] r151409 - in /cfe/trunk: include/clang/Sema/Initialization.h include/clang/Sema/Sema.h lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaExpr.cpp lib/Sema/SemaInit.cpp lib/Sema/SemaOverload.cpp test

2012-02-24 Thread Douglas Gregor
Author: dgregor Date: Fri Feb 24 17:56:31 2012 New Revision: 151409 URL: http://llvm.org/viewvc/llvm-project?rev=151409view=rev Log: Implement C++11 [over.match.copy]p1b2, which allows the use of explicit conversion functions to initialize the argument to a copy/move constructor that itself is

[cfe-commits] r151411 - /cfe/trunk/test/CXX/over/over.match/over.match.funcs/over.match.copy/p1.cpp

2012-02-24 Thread Douglas Gregor
Author: dgregor Date: Fri Feb 24 17:57:42 2012 New Revision: 151411 URL: http://llvm.org/viewvc/llvm-project?rev=151411view=rev Log: Add test for C++ DR899. Modified: cfe/trunk/test/CXX/over/over.match/over.match.funcs/over.match.copy/p1.cpp Modified:

[cfe-commits] r151410 - in /cfe/trunk: lib/StaticAnalyzer/Checkers/MallocChecker.cpp test/Analysis/malloc.mm test/Analysis/system-header-simulator-objc.h

2012-02-24 Thread Anna Zaks
Author: zaks Date: Fri Feb 24 17:56:53 2012 New Revision: 151410 URL: http://llvm.org/viewvc/llvm-project?rev=151410view=rev Log: [analyzer] Malloc: reason about the ObjC messages and C++. Assume none of the ObjC messages defined in system headers free memory, except for the ones containing

[cfe-commits] r151412 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

2012-02-24 Thread Douglas Gregor
Author: dgregor Date: Fri Feb 24 18:06:47 2012 New Revision: 151412 URL: http://llvm.org/viewvc/llvm-project?rev=151412view=rev Log: Simplify check per Eli's comment Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp URL:

Re: [cfe-commits] r151403 - in /cfe/trunk: lib/CodeGen/CodeGenTypes.cpp test/CodeGenCXX/forward-enum.cpp

2012-02-24 Thread Douglas Gregor
On Feb 24, 2012, at 3:02 PM, Eli Friedman eli.fried...@gmail.com wrote: On Fri, Feb 24, 2012 at 2:40 PM, Douglas Gregor dgre...@apple.com wrote: Author: dgregor Date: Fri Feb 24 16:40:36 2012 New Revision: 151403 URL: http://llvm.org/viewvc/llvm-project?rev=151403view=rev Log: For the

[cfe-commits] r151413 - in /cfe/trunk: lib/Sema/SemaExprMember.cpp test/SemaCXX/cxx0x-class.cpp test/SemaCXX/warn-thread-safety-analysis.cpp

2012-02-24 Thread DeLesley Hutchins
Author: delesley Date: Fri Feb 24 18:11:55 2012 New Revision: 151413 URL: http://llvm.org/viewvc/llvm-project?rev=151413view=rev Log: Bugfix: bogus warning -- invalid use of non-static data member, when a class is forward declared, and the reference to the data member in question does not occur

Re: [cfe-commits] r151412 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

2012-02-24 Thread Benjamin Kramer
On 25.02.2012, at 01:12, Douglas Gregor dgre...@apple.com wrote: Author: dgregor Date: Fri Feb 24 18:06:47 2012 New Revision: 151412 URL: http://llvm.org/viewvc/llvm-project?rev=151412view=rev Log: Simplify check per Eli's comment Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

[cfe-commits] r151414 - /cfe/trunk/lib/CodeGen/CodeGenTypes.cpp

2012-02-24 Thread Douglas Gregor
Author: dgregor Date: Fri Feb 24 18:16:17 2012 New Revision: 151414 URL: http://llvm.org/viewvc/llvm-project?rev=151414view=rev Log: Trying to increase my Ohloh ranking with trivial tweaks Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp Modified: cfe/trunk/lib/CodeGen/CodeGenTypes.cpp URL:

[cfe-commits] r151416 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaExpr.cpp test/SemaObjC/arc-type-conversion.m

2012-02-24 Thread Eli Friedman
Author: efriedma Date: Fri Feb 24 18:23:44 2012 New Revision: 151416 URL: http://llvm.org/viewvc/llvm-project?rev=151416view=rev Log: Improve the diagnostic in ARC mode when a conditional with an Objective-C type and void* is used. rdar://problem/10486347. Modified:

[cfe-commits] r151424 - in /cfe/trunk: lib/ARCMigrate/TransGCAttrs.cpp test/ARCMT/GC-no-arc-runtime.m test/ARCMT/GC-no-arc-runtime.m.result test/ARCMT/GC-no-finalize-removal.m test/ARCMT/GC-no-finaliz

2012-02-24 Thread Argyrios Kyrtzidis
Author: akirtzidis Date: Fri Feb 24 19:57:42 2012 New Revision: 151424 URL: http://llvm.org/viewvc/llvm-project?rev=151424view=rev Log: [arcmt] GC migrator: don't try to remove redundant __strong, it does more harm than good. Fixes rdar://1052280510521433 Modified:

[cfe-commits] r151426 - in /cfe/trunk: lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp test/Analysis/retain-release-inline.m

2012-02-24 Thread Ted Kremenek
Author: kremenek Date: Fri Feb 24 20:09:09 2012 New Revision: 151426 URL: http://llvm.org/viewvc/llvm-project?rev=151426view=rev Log: RetainCountChecker: don't adjust the retain count when analyzing a ReturnStmt unless we are in the top-level call frame. We can do more later, but this makes

[cfe-commits] r151427 - in /cfe/trunk: include/clang-c/Index.h include/clang/Frontend/ASTUnit.h include/clang/Frontend/PreprocessorOptions.h include/clang/Lex/PreprocessingRecord.h include/clang/Lex/P

2012-02-24 Thread Argyrios Kyrtzidis
Author: akirtzidis Date: Fri Feb 24 20:41:16 2012 New Revision: 151427 URL: http://llvm.org/viewvc/llvm-project?rev=151427view=rev Log: Don't record nested macro expansions in the preprocessing record, it can only bring pain when dealing with preprocessor abuse (see: boost). rdar://10898986

[cfe-commits] r151428 - in /cfe/trunk/lib: CodeGen/CGBlocks.cpp CodeGen/CGClass.cpp CodeGen/CodeGenFunction.cpp CodeGen/CodeGenFunction.h Sema/SemaDeclCXX.cpp

2012-02-24 Thread Eli Friedman
Author: efriedma Date: Fri Feb 24 20:48:22 2012 New Revision: 151428 URL: http://llvm.org/viewvc/llvm-project?rev=151428view=rev Log: Work-in-progress for lambda conversion-to-block operator. Still need to implement the retain+autorelease outside of ARC, and there's a bug that causes the

[cfe-commits] r151430 - /cfe/trunk/lib/CodeGen/BackendUtil.cpp

2012-02-24 Thread Chad Rosier
Author: mcrosier Date: Fri Feb 24 20:56:13 2012 New Revision: 151430 URL: http://llvm.org/viewvc/llvm-project?rev=151430view=rev Log: Prevent llvm.lifetime intrinsics from being emitted at -O0. rdar://10921594 Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp Modified:

Re: [cfe-commits] r151428 - in /cfe/trunk/lib: CodeGen/CGBlocks.cpp CodeGen/CGClass.cpp CodeGen/CodeGenFunction.cpp CodeGen/CodeGenFunction.h Sema/SemaDeclCXX.cpp

2012-02-24 Thread Eli Friedman
On Fri, Feb 24, 2012 at 6:48 PM, Eli Friedman eli.fried...@gmail.com wrote: Author: efriedma Date: Fri Feb 24 20:48:22 2012 New Revision: 151428 URL: http://llvm.org/viewvc/llvm-project?rev=151428view=rev Log: Work-in-progress for lambda conversion-to-block operator.  Still need to

Re: [cfe-commits] [PATCH] atomic operation builtins, part 1

2012-02-24 Thread Girkar, Milind
After some internal discussion within intel, here is what we would recommend for atomic objects: 0:The sizes in subsequent statements refer to the size of the object including any fields to implement atomicity. (but per Jeffrey, no current implementation is considering the addition of

[cfe-commits] r151434 - in /cfe/trunk: include/clang/Sema/Sema.h lib/Sema/SemaLookup.cpp lib/Sema/SemaOverload.cpp test/SemaCXX/overload-call.cpp

2012-02-24 Thread Richard Smith
Author: rsmith Date: Sat Feb 25 00:24:24 2012 New Revision: 151434 URL: http://llvm.org/viewvc/llvm-project?rev=151434view=rev Log: Fix a regression from r151117: ADL requires that we attempt to complete any associated classes, since it can find friend functions declared within them, but overload

[cfe-commits] r151441 - in /cfe/trunk: include/clang/AST/DeclCXX.h lib/AST/ASTImporter.cpp lib/AST/DeclCXX.cpp lib/Serialization/ASTReaderDecl.cpp lib/Serialization/ASTWriter.cpp test/PCH/cxx0x-defaul

2012-02-24 Thread Richard Smith
Author: rsmith Date: Sat Feb 25 01:33:38 2012 New Revision: 151441 URL: http://llvm.org/viewvc/llvm-project?rev=151441view=rev Log: Teach CXXRecordDecl::hasIrrelevantDestructor to check the base classes and data members for deleted or user-provided destructors. Now it's computed in advance,