r326062 - [www] Update link to analyzer's "Building a Checker in 24 hours" video

2018-02-25 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Sun Feb 25 16:39:25 2018 New Revision: 326062 URL: http://llvm.org/viewvc/llvm-project?rev=326062&view=rev Log: [www] Update link to analyzer's "Building a Checker in 24 hours" video The video is now uploaded to YouTube. Modified: cfe/trunk/www/analyzer/alpha_checks.h

[PATCH] D42644: [asan] Intercept std::rethrow_exception indirectly.

2018-02-25 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added inline comments. This revision is now accepted and ready to land. Comment at: test/asan/TestCases/intercept-rethrow-exception.cc:48 + // memcpy is intercepted by asan which performs checks on src and dst + using T = int[1000];

[PATCH] D43606: [Driver] Add SafeStack to a map of incompatible sanitizers

2018-02-25 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Driver/SanitizerArgs.cpp:384 +KernelAddress | Efficiency), + std::make_pair(SafeStack, Address | HWAddr

[PATCH] D43248: [Attr] Fix parameter indexing for attributes

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. (Review is incomplete, but here are some initial comments.) Comment at: include/clang/AST/Attr.h:210-212 + unsigned Idx; + bool HasThis; + bool IsValid; I think it might be best to mash these together using bit-fields: ``` unsi

[PATCH] D43749: [Attr] Fix alloc_size's diags to report arg idx not value

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Committed (with whitespace fix for the test case) in r326058, thanks for the patch! https://reviews.llvm.org/D43749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

r326058 - When diagnosing the arguments to alloc_size, report the failing argument using a 1-based index instead of a 0-based index for consistency.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 12:40:06 2018 New Revision: 326058 URL: http://llvm.org/viewvc/llvm-project?rev=326058&view=rev Log: When diagnosing the arguments to alloc_size, report the failing argument using a 1-based index instead of a 0-based index for consistency. Patch by Joel Denn

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Committed in r326057. If you're not already on IRC, I would recommend joining the #llvm channel on OFTC so that you can watch for build break notifications from the build bots. https://reviews.llvm.org/D43747 ___

r326057 - Fix a failing assertion with the pointer_with_type_tag attribute when the function the attribute appertains to is variadic.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 12:28:10 2018 New Revision: 326057 URL: http://llvm.org/viewvc/llvm-project?rev=326057&view=rev Log: Fix a failing assertion with the pointer_with_type_tag attribute when the function the attribute appertains to is variadic. Patch by Joel Denny. Modified:

[PATCH] D43750: Allow writing calling convention attributes on function types

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman created this revision. aaron.ballman added a reviewer: rsmith. Calling convention attributes notionally appertain to the function type -- they modify the mangling of the function, change the behavior of assignment operations, etc. However, they're not currently allowed to be writte

[PATCH] D43748: [Attr] Fix paren, comma, and omitted arg printing in some cases

2018-02-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny added inline comments. Comment at: test/Misc/ast-print-objectivec.m:52 // CHECK: @class C1; -// CHECK: struct __attribute__((objc_bridge_related(C1, , ))) S1; +// CHECK: struct __attribute__((objc_bridge_related(C1))) S1; aaron.ballman wrote: > This fix i

[PATCH] D43749: [Attr] Fix alloc_size's diags to report arg idx not value

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D43749#1018825, @jdenny wrote: > In https://reviews.llvm.org/D43749#1018818, @aaron.ballman wrote: > > > Aside from a minor testcase nit, this LGTM. Why is this dependent on > > https://reviews.llvm.org/D43248? > > > The dependency goes

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny added a comment. In https://reviews.llvm.org/D43747#1018824, @aaron.ballman wrote: > In https://reviews.llvm.org/D43747#1018814, @jdenny wrote: > > > Hi Aaron. Thanks for accepting. I do not have commit privileges. Would > > you please commit this (and any other patches you accept) for me

[PATCH] D43749: [Attr] Fix alloc_size's diags to report arg idx not value

2018-02-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny added a comment. In https://reviews.llvm.org/D43749#1018818, @aaron.ballman wrote: > Aside from a minor testcase nit, this LGTM. Why is this dependent on > https://reviews.llvm.org/D43248? The dependency goes the other way. Did I get it wrong? Comment at: test/Sema/

[PATCH] D43749: [Attr] Fix alloc_size's diags to report arg idx not value

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. Aside from a minor testcase nit, this LGTM. Why is this dependent on https://reviews.llvm.org/D43248? Comment at: test/Sema/alloc-size.c:3 -void *fail1(int a

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D43747#1018814, @jdenny wrote: > Hi Aaron. Thanks for accepting. I do not have commit privileges. Would > you please commit this (and any other patches you accept) for me? I'm happy to do so. Just to double-check though, there's nothin

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Why is this dependent on https://reviews.llvm.org/D43248? https://reviews.llvm.org/D43747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny added a comment. Hi Aaron. Thanks for accepting. I do not have commit privileges. Would you please commit this (and any other patches you accept) for me? https://reviews.llvm.org/D43747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D43748: [Attr] Fix paren, comma, and omitted arg printing in some cases

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In general, I think the idea is reasonable, but in practice I'm worried about the attributes with custom parsing. Sometimes the parsing requires those extra bits and I'm not certain of how best to address that. Comment at: test/Misc/ast-print-ob

[PATCH] D43248: [Attr] Fix parameter indexing for attributes

2018-02-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny updated this revision to Diff 135839. jdenny retitled this revision from "[Attr] Fix printing of parameter indices in attributes" to "[Attr] Fix parameter indexing for attributes". jdenny edited the summary of this revision. jdenny added a comment. Herald added a subscriber: kristof.beyls.

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-25 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you for the fix! https://reviews.llvm.org/D43747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D43749: [Attr] Fix alloc_size's diags to report arg idx not value

2018-02-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny created this revision. jdenny added a reviewer: aaron.ballman. For consistency with other attributes, fix alloc_size's diagnostics to report the attribute's argument index for a function parameter index rather than the actual function parameter index specified in the source. https://revie

[PATCH] D43747: [Attr] Fix pointer_with_type_tag assert fail for variadic

2018-02-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny created this revision. jdenny added a reviewer: aaron.ballman. https://reviews.llvm.org/D43747 Files: lib/Sema/SemaDeclAttr.cpp test/Sema/warn-type-safety.c Index: test/Sema/warn-type-safety.c === --- test/Sema/warn-type

[PATCH] D43748: [Attr] Fix paren, comma, and omitted arg printing in some cases

2018-02-25 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny created this revision. jdenny added a reviewer: aaron.ballman. The first FIXME introduced here will be addressed in another patch soon. https://reviews.llvm.org/D43748 Files: test/Misc/ast-print-objectivec.m test/Sema/attr-print.c test/Sema/attr-print.cpp utils/TableGen/ClangAttr

[PATCH] D43745: Fix cppcoreguidelines-pro-bounds-pointer-arithmetic not working for functions with auto return specifier.

2018-02-25 Thread Alexandru Octavian Buțiu via Phabricator via cfe-commits
predator5047 created this revision. predator5047 added reviewers: alexfh, alexfh_. predator5047 added a project: clang-tools-extra. Herald added subscribers: cfe-commits, kbarton, nemanjai. Fix bug #36489 Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D43745 Files: clang-tidy/

[PATCH] D43737: Improve -Winfinite-recursion

2018-02-25 Thread Robert Widmann via Phabricator via cfe-commits
CodaFi updated this revision to Diff 135827. https://reviews.llvm.org/D43737 Files: lib/Sema/AnalysisBasedWarnings.cpp test/SemaCXX/warn-infinite-recursion.cpp Index: test/SemaCXX/warn-infinite-recursion.cpp === --- test/SemaCXX

r326055 - Switch the default behavior of the Clang<> spelling to opt-in to the C2x attribute spellings. NFC to the attribute spellings themselves.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 07:34:17 2018 New Revision: 326055 URL: http://llvm.org/viewvc/llvm-project?rev=326055&view=rev Log: Switch the default behavior of the Clang<> spelling to opt-in to the C2x attribute spellings. NFC to the attribute spellings themselves. The Clang<> spelling

r326054 - Document why the consumed attributes (consumable, callable_when, et al) are not exposed with a C2x spelling. NFC.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 06:54:25 2018 New Revision: 326054 URL: http://llvm.org/viewvc/llvm-project?rev=326054&view=rev Log: Document why the consumed attributes (consumable, callable_when, et al) are not exposed with a C2x spelling. NFC. Modified: cfe/trunk/include/clang/Basic

r326053 - Add a C2x spelling for the external_source_symbol and internal_linkage attributes in the clang vendor namespace.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 06:43:45 2018 New Revision: 326053 URL: http://llvm.org/viewvc/llvm-project?rev=326053&view=rev Log: Add a C2x spelling for the external_source_symbol and internal_linkage attributes in the clang vendor namespace. Both of these attributes have existing meani

[PATCH] D43741: [Analyzer] More accurate modeling about the increment operator of the operand with type bool.

2018-02-25 Thread Henry Wong via Phabricator via cfe-commits
MTC created this revision. MTC added reviewers: alexshap, NoQ, dcoughlin. Herald added subscribers: cfe-commits, a.sidorin, szepet, xazax.hun. Herald added a reviewer: george.karpenkov. There is a problem with analyzer that a wrong value is given when modeling the increment operator of the operan

r326052 - Add a C++11 and C2x spelling for the type safety attribute (argument_with_type_tag, pointer_with_type_tag, and type_tag_for_datatype) in the clang vendor namespace.

2018-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Sun Feb 25 06:01:04 2018 New Revision: 326052 URL: http://llvm.org/viewvc/llvm-project?rev=326052&view=rev Log: Add a C++11 and C2x spelling for the type safety attribute (argument_with_type_tag, pointer_with_type_tag, and type_tag_for_datatype) in the clang vendor nam

[PATCH] D43737: Improve -Winfinite-recursion

2018-02-25 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Please upload patches with full diff (-U99) Repository: rC Clang https://reviews.llvm.org/D43737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D43281: [AMDGPU] fixes for lds f32 builtins

2018-02-25 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added a comment. Can’t you just change the description to be the LangAS value? I also thought these happened to be the same already https://reviews.llvm.org/D43281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org