[PATCH] D41779: [clang-tidy] Fix DanglingHandleCheck for the correct conversion operation between basic_string and basic_string_view.

2018-01-08 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. LGTM Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D41779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.l

[PATCH] D41039: Add support for attribute "trivial_abi"

2018-01-08 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 128895. ahatanak added a comment. Address review comments. Also, emit the declaration of the destructor of a trivial-abi override class in Sema::ActOnParamDeclarator and mark it as referenced. This is necessary because a trivial-abi type that is passed by

[PATCH] D41039: Add support for attribute "trivial_abi"

2018-01-08 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak marked 4 inline comments as done. ahatanak added a comment. In https://reviews.llvm.org/D41039#969171, @rjmccall wrote: > I'll trust Richard on the tricky Sema/AST bits. The functionality of the > patch looks basically acceptable to me, although I'm still not thrilled about > the idea

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth created this revision. JonasToth added reviewers: aaron.ballman, alexfh, hokein. Herald added subscribers: cfe-commits, kbarton, xazax.hun, mgorny, nemanjai, klimek. The usage of `goto` is discourage in C++ since forever. This check implements a warning for every `goto`. Even though the

[PATCH] D34030: Fix the postorder visting of the ClassTemplateSpecializationDecl nodes in the RecursiveASTVisitor.

2018-01-08 Thread Peter Siket via Phabricator via cfe-commits
MontyKutyi added a comment. In https://reviews.llvm.org/D34030#967749, @bruno wrote: > The change seems good to me in general. I wonder if this will hit any broken > assumption in the code. Did you run other tests beside unittests? I run the tests available by building the `clang-test` only.

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 128898. JonasToth added a comment. - fix typos and return type of main in test Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D41815 Files: clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp clang-tidy/cppcoreguidelines/AvoidGotoCheck.h

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 128899. JonasToth added a comment. - [Misc] emphasize goto in warning message Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D41815 Files: clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp clang-tidy/cppcoreguidelines/AvoidGotoCheck.h

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added a comment. A high level comment: while it is very easy to get all the gotos using grep, it is not so easy to get all the labels. So for this check to be complete, I think it would be useful to also find labels (possibly having a configuration option for that). Repository: rC

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 128902. JonasToth added a comment. - [Misc] reformat Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D41815 Files: clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp clang-tidy/cppcoreguidelines/AvoidGotoCheck.h clang-tidy/cppcoreguideli

[PATCH] D41792: [AArch64] Add ARMv8.2-A FP16 scalar intrinsics

2018-01-08 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer added a comment. Thanks for working on this! Some comments inline. Comment at: clang/include/clang/Basic/arm_fp16.td:19 +// The operations are subclasses of Operation providing a list of DAGs, the +// last of which is the return value. +// nit: t

[PATCH] D41179: [Sema] Diagnose template specializations with C linkage

2018-01-08 Thread Mikhail Maltsev via Phabricator via cfe-commits
miyuki added a comment. ping https://reviews.llvm.org/D41179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. In https://reviews.llvm.org/D41815#969626, @xazax.hun wrote: > A high level comment: while it is very easy to get all the gotos using grep, > it is not so easy to get all the labels. So for this check to be complete, I > think it would be useful to also find labels (p

[PATCH] D41759: [clangd] Catch more symbols in SymbolCollector.

2018-01-08 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/index/SymbolCollector.cpp:89 +// violations. +if (ND->isInAnonymousNamespace()) return true; Why don't we include symbols from anonymous namespaces too? They are very similar to static symbols

[PATCH] D41816: [analyzer] Model and check unrepresentable left shifts

2018-01-08 Thread Reka Kovacs via Phabricator via cfe-commits
rnkovacs created this revision. rnkovacs added reviewers: NoQ, dcoughlin, xazax.hun. Herald added subscribers: a.sidorin, szepet, baloghadamsoftware, whisperity. Left shifting a signed positive value is undefined if the result is not representable in the unsigned version of the return type. The

[PATCH] D41759: [clangd] Catch more symbols in SymbolCollector.

2018-01-08 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clangd/index/SymbolCollector.cpp:89 +// violations. +if (ND->isInAnonymousNamespace()) return true; ilya-biryukov wrote: > Why don't we include symbols from anonymous namespaces too? > They are very similar

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D41815#969673, @JonasToth wrote: > In https://reviews.llvm.org/D41815#969626, @xazax.hun wrote: > > > A high level comment: while it is very easy to get all the gotos using > > grep, it is not so easy to get all the labels. So for this c

[PATCH] D40712: [Driver] Add flag enabling the function stack size section that was added in r319430

2018-01-08 Thread Sean Eveson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. seaneveson marked an inline comment as done. Closed by commit rL321992: [Driver] Add flag enabling the function stack size section that was added in… (authored by seaneveson, committed by ). Changed prior to commit: https

r321992 - [Driver] Add flag enabling the function stack size section that was added in r319430

2018-01-08 Thread Sean Eveson via cfe-commits
Author: seaneveson Date: Mon Jan 8 05:42:26 2018 New Revision: 321992 URL: http://llvm.org/viewvc/llvm-project?rev=321992&view=rev Log: [Driver] Add flag enabling the function stack size section that was added in r319430 Adds the -fstack-size-section flag to enable the .stack_sizes section. The

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. > Rather than add a warning for the labels, I would just add a note for the > label when diagnosing the goto (since the goto has a single target). That might lead to existing labels without any gotos for them, does it? Maybe the check could also diagnose labels withou

[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value

2018-01-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/bugprone-unused-return-value.cpp:163 + +void noWarning() { + auto AsyncRetval1 = std::async(increment, 42); khuttun wrote: > aaron.ballman wrote: > > Sorry, I just realized that we're missing a tes

[PATCH] D35109: [Analyzer] SValBuilder Comparison Rearrangement

2018-01-08 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. In https://reviews.llvm.org/D35109#969109, @NoQ wrote: > I guess it'd be an `-analyzer-config` flag. You can add it to the > `AnalyzerOptions` object, which has access to these flags and can be accessed > from `AnalysisManager`. OK, I can do that. BUt how s

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D41815#969708, @JonasToth wrote: > > Rather than add a warning for the labels, I would just add a note for the > > label when diagnosing the goto (since the goto has a single target). > > That might lead to existing labels without any go

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp:22 + if (getLangOpts().CPlusPlus) +Finder->addMatcher(gotoStmt().bind("goto"), this); +} aaron.ballman wrote: > aaron.ballman wrote: > > Are you planning to add the

[PATCH] D41815: [clang-tidy] implement check for goto

2018-01-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cppcoreguidelines/AvoidGotoCheck.cpp:22 + if (getLangOpts().CPlusPlus) +Finder->addMatcher(gotoStmt().bind("goto"), this); +} JonasToth wrote: > aaron.ballman wrote: > > aaron.ballman wrote: > > > A

[PATCH] D41820: [coroutines] Pass coro func args to promise ctor

2018-01-08 Thread Brian Gesiak via Phabricator via cfe-commits
modocache created this revision. modocache added reviewers: rsmith, GorNishanov, eric_niebler. Herald added a subscriber: EricWF. Use corutine function arguments to initialize a promise type, but only if the promise type defines a constructor that takes those arguments. Otherwise, fall back to the

[PATCH] D41487: [clang-format] Adds a FormatStyleSet

2018-01-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 128921. krasimir added a comment. - Address review comments Repository: rC Clang https://reviews.llvm.org/D41487 Files: include/clang/Format/Format.h lib/Format/Format.cpp Index: lib/Format/Format.cpp ===

[PATCH] D41539: [CodeGen] Decorate aggregate accesses with TBAA tags

2018-01-08 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Sure, but since it is not a trivial change we could first replace 'tbaa.struct' with 'tbaa' and then decide how to attach multiple TBAA tags to an instruction. I didn't think enough about it, but one way to do that is to have different kinds of TBAA tags for read and wr

r321995 - Fix test added in r321992 failing on some buildbots.

2018-01-08 Thread Sean Eveson via cfe-commits
Author: seaneveson Date: Mon Jan 8 06:43:28 2018 New Revision: 321995 URL: http://llvm.org/viewvc/llvm-project?rev=321995&view=rev Log: Fix test added in r321992 failing on some buildbots. Modified: cfe/trunk/test/CodeGen/stack-size-section.c Modified: cfe/trunk/test/CodeGen/stack-size-sect

[PATCH] D35110: [Analyzer] Constraint Manager Negates Difference

2018-01-08 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. Strange, but modifying the tests from `m n` to `m - n 0` does not help. The statement `if (m - n 0)` does not store a range for `m - n` in the constraint manager. With the other patch which automatically changes `m n` to `m - n 0` the range is stored a

r321997 - Avoid assumption that lit tests are writable. NFC

2018-01-08 Thread Sam McCall via cfe-commits
Author: sammccall Date: Mon Jan 8 07:05:01 2018 New Revision: 321997 URL: http://llvm.org/viewvc/llvm-project?rev=321997&view=rev Log: Avoid assumption that lit tests are writable. NFC Modified: cfe/trunk/test/ARCMT/releases-driver.m cfe/trunk/test/ARCMT/releases-driver.m.result cfe/

r321999 - [CodeGen] Fix TBAA info for accesses to members of base classes

2018-01-08 Thread Ivan A. Kosarev via cfe-commits
Author: kosarev Date: Mon Jan 8 07:36:06 2018 New Revision: 321999 URL: http://llvm.org/viewvc/llvm-project?rev=321999&view=rev Log: [CodeGen] Fix TBAA info for accesses to members of base classes Resolves: Bug 35724 - regression (r315984): fatal error: error in backend: Broken function found (D

[PATCH] D41547: [CodeGen] Fix TBAA info for accesses to members of base classes

2018-01-08 Thread Ivan Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC321999: [CodeGen] Fix TBAA info for accesses to members of base classes (authored by kosarev, committed by ). Repository: rC Clang https://reviews.llvm.org/D41547 Files: lib/CodeGen/CGExpr.cpp tes

[PATCH] D41487: [clang-format] Adds a FormatStyleSet

2018-01-08 Thread Benjamin Kramer via Phabricator via cfe-commits
bkramer added inline comments. Comment at: include/clang/Format/Format.h:1700 +typedef std::map> +MapType; Why unique_ptr? Comment at: include/clang/Format/Format.h:1706 +// FormatStyleSet. +void Add(FormatStyle Style); +

r322000 - Fix test added in r321992 failing on some buildbots (again), test requires x86.

2018-01-08 Thread Sean Eveson via cfe-commits
Author: seaneveson Date: Mon Jan 8 07:46:18 2018 New Revision: 322000 URL: http://llvm.org/viewvc/llvm-project?rev=322000&view=rev Log: Fix test added in r321992 failing on some buildbots (again), test requires x86. Modified: cfe/trunk/test/CodeGen/stack-size-section.c Modified: cfe/trunk/t

[clang-tools-extra] r322001 - Avoid assumption that lit tests are writable. NFC

2018-01-08 Thread Sam McCall via cfe-commits
Author: sammccall Date: Mon Jan 8 07:49:40 2018 New Revision: 322001 URL: http://llvm.org/viewvc/llvm-project?rev=322001&view=rev Log: Avoid assumption that lit tests are writable. NFC Modified: clang-tools-extra/trunk/test/clang-apply-replacements/crlf.cpp clang-tools-extra/trunk/test/c

Re: trivial_abi

2018-01-08 Thread David Blaikie via cfe-commits
(just a side note: perhaps this conversation would've been more suited to cfe-dev? I sort of missed it because I only check commits once a week, unless I'm specifically cc'd on something. All good though :)) On Wed, Jan 3, 2018 at 4:06 PM Richard Smith via cfe-commits < cfe-commits@lists.llvm.org>

[PATCH] D41779: [clang-tidy] Fix DanglingHandleCheck for the correct conversion operation between basic_string and basic_string_view.

2018-01-08 Thread Samuel Benzaquen via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL322002: [clang-tidy] Fix DanglingHandleCheck for the correct conversion operation… (authored by sbenza, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm

[clang-tools-extra] r322002 - [clang-tidy] Fix DanglingHandleCheck for the correct conversion operation between basic_string and basic_string_view.

2018-01-08 Thread Samuel Benzaquen via cfe-commits
Author: sbenza Date: Mon Jan 8 07:59:08 2018 New Revision: 322002 URL: http://llvm.org/viewvc/llvm-project?rev=322002&view=rev Log: [clang-tidy] Fix DanglingHandleCheck for the correct conversion operation between basic_string and basic_string_view. Summary: Fix DanglingHandleCheck to handle th

[PATCH] D41487: [clang-format] Adds a FormatStyleSet

2018-01-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 128932. krasimir marked 5 inline comments as done. krasimir added a comment. - Address review comments Repository: rC Clang https://reviews.llvm.org/D41487 Files: 2 include/clang/Format/Format.h lib/Format/Format.cpp Index: lib/Format/Format.cpp

[PATCH] D41487: [clang-format] Adds a FormatStyleSet

2018-01-08 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 128933. krasimir added a comment. - Remove accidentally added file Repository: rC Clang https://reviews.llvm.org/D41487 Files: include/clang/Format/Format.h lib/Format/Format.cpp Index: lib/Format/Format.cpp

Re: trivial_abi

2018-01-08 Thread John McCall via cfe-commits
> On Jan 8, 2018, at 10:57 AM, David Blaikie wrote: > (just a side note: perhaps this conversation would've been more suited to > cfe-dev? I sort of missed it because I only check commits once a week, unless > I'm specifically cc'd on something. All good though :)) I suppose it's more design-an

Re: r321997 - Avoid assumption that lit tests are writable. NFC

2018-01-08 Thread David Blaikie via cfe-commits
I'm sure it's something obvious I don't understand here, but maybe someone else doesn't either & could benefit from it: What exactly does this change do? In what important way is "cp X Y" different from "cat X > Y"? On Mon, Jan 8, 2018 at 7:06 AM Sam McCall via cfe-commits < cfe-commits@lists.llv

Re: r321854 - NFC.

2018-01-08 Thread David Blaikie via cfe-commits
It helps to have the first line of the commit message be roughly descriptive, since it forms the brief commit summary in version tools and the subject line in commit email - just "NFC" is a bit unclear. Usually these sort of commits are described as, say "Suppress -Asserts unused-variable warning f

Re: r321816 - [OPENMP] Add debug info for generated functions.

2018-01-08 Thread David Blaikie via cfe-commits
Rough guess: That seems like a lot of code changes for relatively little test changes - are all parts of this change tested? (Might well be - just lots of layers to plumb things through - but if there's lots of places that get locations and only a few of those are tested, maybe this could use more

Re: r321845 - Debug Info: Support DW_AT_calling_convention on composite types.

2018-01-08 Thread David Blaikie via cfe-commits
Great - are you tracking/planning to implement this for trivial_abi once it's in? (was mentioned in the code review, but not sure if it's on your plate/plan or not (no worries if it isn't, just keeping these things in mind)) On Thu, Jan 4, 2018 at 5:14 PM Adrian Prantl via cfe-commits < cfe-commit

[PATCH] D41039: Add support for attribute "trivial_abi"

2018-01-08 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/AST/Type.h:811 + bool hasTrivialABIOverride() const; + This should get a comment, even if it's just to refer to the CXXRecordDecl method. Comment at: lib/CodeGen/CGCall.cpp:3498 b

[PATCH] D41539: [CodeGen] Decorate aggregate accesses with TBAA tags

2018-01-08 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Yes, I think that's fine. I think unconditionally attaching the tag is probably wrong; you need suppress it in the may_alias cases. I'll grant that the existing code doesn't honor that, but that seems like a bug we should go ahead and fix. You'll need to either prop

r322005 - Emit Function IDs table for Control Flow Guard

2018-01-08 Thread Adrian McCarthy via cfe-commits
Author: amccarth Date: Mon Jan 8 08:33:42 2018 New Revision: 322005 URL: http://llvm.org/viewvc/llvm-project?rev=322005&view=rev Log: Emit Function IDs table for Control Flow Guard Adds option /guard:cf to clang-cl and -cfguard to cc1 to emit function IDs of functions that have their address tak

[PATCH] D41823: [clangd] Add more filters for collected symbols.

2018-01-08 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added reviewers: hokein, ilya-biryukov. Herald added subscribers: cfe-commits, klimek. o We only collect symbols in namespace or translation unit scopes. o Add an option to only collect symbols in included headers. Repository: rCTE Clang Tools Extra https:

Re: r321845 - Debug Info: Support DW_AT_calling_convention on composite types.

2018-01-08 Thread Adrian Prantl via cfe-commits
> On Jan 8, 2018, at 8:14 AM, David Blaikie wrote: > > Great - are you tracking/planning to implement this for trivial_abi once it's > in? (was mentioned in the code review, but not sure if it's on your > plate/plan or not (no worries if it isn't, just keeping these things in mind)) Yes, thi

Re: r321845 - Debug Info: Support DW_AT_calling_convention on composite types.

2018-01-08 Thread David Blaikie via cfe-commits
Excellent :) On Mon, Jan 8, 2018 at 8:39 AM Adrian Prantl wrote: > > On Jan 8, 2018, at 8:14 AM, David Blaikie wrote: > > Great - are you tracking/planning to implement this for trivial_abi once > it's in? (was mentioned in the code review, but not sure if it's on your > plate/plan or not (no w

[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value

2018-01-08 Thread Kalle Huttunen via Phabricator via cfe-commits
khuttun added inline comments. Comment at: test/clang-tidy/bugprone-unused-return-value.cpp:163 + +void noWarning() { + auto AsyncRetval1 = std::async(increment, 42); aaron.ballman wrote: > khuttun wrote: > > aaron.ballman wrote: > > > Sorry, I just realized tha

r322008 - Revert "Emit Function IDs table for Control Flow Guard"

2018-01-08 Thread Adrian McCarthy via cfe-commits
Author: amccarth Date: Mon Jan 8 09:12:01 2018 New Revision: 322008 URL: http://llvm.org/viewvc/llvm-project?rev=322008&view=rev Log: Revert "Emit Function IDs table for Control Flow Guard" The new test fails on the Hexagon bot. Reverting while I investigate. This reverts https://reviews.llvm.

[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value

2018-01-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/bugprone-unused-return-value.cpp:163 + +void noWarning() { + auto AsyncRetval1 = std::async(increment, 42); khuttun wrote: > aaron.ballman wrote: > > khuttun wrote: > > > aaron.ballman wrote: > > >

Re: r321816 - [OPENMP] Add debug info for generated functions.

2018-01-08 Thread Alexey Bataev via cfe-commits
Will add some more tests later today - Best regards, Alexey Bataev 08.01.2018 11:13, David Blaikie пишет: > Rough guess: That seems like a lot of code changes for relatively > little test changes - are all parts of this change tested? (Might well > be - just lots of layers to plumb thi

Re: r321997 - Avoid assumption that lit tests are writable. NFC

2018-01-08 Thread Sam McCall via cfe-commits
Hi David (and the list this time!), If X is readonly, then after `cp X Y`, Y is also readonly. The `cat` version doesn't propagate permissions. The environment for lit tests isn't really spelled out, but relying on the input files being +w doesn't seem obviously reasonable. Google's internal runn

[libcxx] r322011 - Document upcoming TS feature removal

2018-01-08 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Jan 8 09:43:46 2018 New Revision: 322011 URL: http://llvm.org/viewvc/llvm-project?rev=322011&view=rev Log: Document upcoming TS feature removal Added: libcxx/trunk/www/TS_deprecation.html Added: libcxx/trunk/www/TS_deprecation.html URL: http://llvm.org/viewvc/llv

[PATCH] D41575: [index] Return when DC is null in handleReference

2018-01-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Sorry, I was hoping @akyrtzi would see this. I don't know enough about the code to know whether DC==null is an indicator of some other problem, but if this is crashing today then let's no

[PATCH] D41575: [index] Return when DC is null in handleReference

2018-01-08 Thread Argyrios Kyrtzidis via Phabricator via cfe-commits
akyrtzi added a comment. Could you add a test case for this change ? See examples in `test/Index/Core`. Also for the test case code: `template class Actor = actor>`, is the `actor` reference in this code reported ? See the test examples on how to print out and test how the source symbols are in

[PATCH] D40819: Implement Attribute Target MultiVersioning (Improved edition!)

2018-01-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane marked 7 inline comments as done. erichkeane added a comment. patch incoming! Comment at: include/clang/AST/ASTContext.h:2643-2648 +for (auto *CurDecl : + FD->getDeclContext()->getRedeclContext()->lookup(FD->getDeclName())) { + FunctionDecl *CurFD =

[PATCH] D40819: Implement Attribute Target MultiVersioning (Improved edition!)

2018-01-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 128950. erichkeane marked 2 inline comments as done. erichkeane added a comment. All of @rsmith 's comments on the last patch. 1 "open" item on the duplicate discover in the resolver generation, but hopefully this otherwise acceptable. https://reviews.l

[PATCH] D41539: [CodeGen] Decorate aggregate accesses with TBAA tags

2018-01-08 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. OK, I'm reading your response so that this patch may significantly increase the number of cases where we propagate TBAA tags from memory-transfer intrinsic calls, which means potentially more cases where ignoring may_alias would lead to problems. If so, then I tend to a

[PATCH] D41575: [index] Return when DC is null in handleReference

2018-01-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. @akyrtzi When I run `c-index-test core -print-source-symbols -- a.cc` on template struct actor; template class Actor = actor> struct terminal; the issue disappears. It emerges only when `clang_indexTranslationUnit` is called with interactions of other thing

[PATCH] D41575: [index] Return when DC is null in handleReference

2018-01-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 128953. MaskRay added a comment. rebase Repository: rC Clang https://reviews.llvm.org/D41575 Files: tools/libclang/CXIndexDataConsumer.cpp Index: tools/libclang/CXIndexDataConsumer.cpp =

[PATCH] D41655: [clang-tidy] New check bugprone-unused-return-value

2018-01-08 Thread Kalle Huttunen via Phabricator via cfe-commits
khuttun added inline comments. Comment at: test/clang-tidy/bugprone-unused-return-value.cpp:163 + +void noWarning() { + auto AsyncRetval1 = std::async(increment, 42); aaron.ballman wrote: > khuttun wrote: > > aaron.ballman wrote: > > > khuttun wrote: > > > > aar

[PATCH] D41575: [index] Return when DC is null in handleReference

2018-01-08 Thread Fangrui Song via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL322017: [index] Return when DC is null in handleReference (authored by MaskRay, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D41575 Files: cf

r322018 - [OPENMP] Current status of OpenMP support.

2018-01-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jan 8 11:02:51 2018 New Revision: 322018 URL: http://llvm.org/viewvc/llvm-project?rev=322018&view=rev Log: [OPENMP] Current status of OpenMP support. Summary: Some info about supported features of OpenMP 4.5-5.0. Reviewers: hfinkel, rsmith Subscribers: kkwli0, Hahnfel

[PATCH] D39457: [OPENMP] Current status of OpenMP support.

2018-01-08 Thread Alexey Bataev via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rC322018: [OPENMP] Current status of OpenMP support. (authored by ABataev, committed by ). Changed prior to commit: https

Re: r322018 - [OPENMP] Current status of OpenMP support.

2018-01-08 Thread Jonas Hahnfeld via cfe-commits
Can we backport this page to release_60? I think the documented support is also valid for 6.0 or did I miss recent commits that added support for new directives / clauses? Am 2018-01-08 20:02, schrieb Alexey Bataev via cfe-commits: Author: abataev Date: Mon Jan 8 11:02:51 2018 New Revision: 3

[libcxx] r322019 - Add the C++17 extensions to std::search. Include the default searcher, but not the Boyer-Moore or Boyer-Moore-Horspool searcher (yet). BUT put the BM and BMH tests in place, marked

2018-01-08 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Jan 8 11:18:00 2018 New Revision: 322019 URL: http://llvm.org/viewvc/llvm-project?rev=322019&view=rev Log: Add the C++17 extensions to std::search. Include the default searcher, but not the Boyer-Moore or Boyer-Moore-Horspool searcher (yet). BUT put the BM and BMH tes

[PATCH] D40819: Implement Attribute Target MultiVersioning (Improved edition!)

2018-01-08 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. Looks good to me with just a few more tweaks (assuming these comments don't uncover any new issues). Thank you! Comment at: lib/AST/ASTContext.cpp:9490 + assert(FD->isMultiVersion() && "Only valid for multiversioned funct

[PATCH] D41039: Add support for attribute "trivial_abi"

2018-01-08 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 128960. ahatanak marked 7 inline comments as done. ahatanak added a comment. Address review comments. https://reviews.llvm.org/D41039 Files: include/clang/AST/Decl.h include/clang/AST/DeclCXX.h include/clang/AST/Type.h include/clang/Basic/Attr.td

[PATCH] D41829: [cmake] Add cache file to bootstrap 2-stage linux cross compile on Darwin.

2018-01-08 Thread Don Hinton via Phabricator via cfe-commits
hintonda created this revision. hintonda added reviewers: beanz, compnerd, phosek, smeenai. Herald added a subscriber: mgorny. Add cache file to bootstrap 2-stage linux cross compile on Darwin. Repository: rC Clang https://reviews.llvm.org/D41829 Files: cmake/caches/Linux.cmake Index: cm

[libcxx] r322021 - Change add_ten to add_one to avoid triggering ubsan integer overflow.

2018-01-08 Thread Billy Robert O'Neal III via cfe-commits
Author: bion Date: Mon Jan 8 11:45:16 2018 New Revision: 322021 URL: http://llvm.org/viewvc/llvm-project?rev=322021&view=rev Log: Change add_ten to add_one to avoid triggering ubsan integer overflow. Modified: libcxx/trunk/test/std/numerics/numeric.ops/transform.exclusive.scan/transform_exc

[PATCH] D41830: [libc++] Fix PR#35780 - make std::experimental::filesystem::remove return false if the file doesn't exist

2018-01-08 Thread Ekaterina Vaartis via Phabricator via cfe-commits
TyanNN created this revision. TyanNN added a reviewer: EricWF. Herald added a subscriber: cfe-commits. Previously it thrown an error if the file didn't exist. PR#35780 Repository: rCXX libc++ https://reviews.llvm.org/D41830 Files: src/experimental/filesystem/operations.cpp test/libcxx/

[PATCH] D33563: Track whether a unary operation can overflow

2018-01-08 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: test/Misc/ast-dump-stmt.c:66 + // CHECK:ImplicitCastExpr + // CHECK: DeclRefExpr{{.*}}'T2' 'int' +} aaron.ballman wrote: > efriedma wrote: > > What does it mean for bitwise complement to "overflow"? >

r322022 - [OPENMP] Fix debug info for outlined functions in NVPTX + add more tests.

2018-01-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Jan 8 12:09:47 2018 New Revision: 322022 URL: http://llvm.org/viewvc/llvm-project?rev=322022&view=rev Log: [OPENMP] Fix debug info for outlined functions in NVPTX + add more tests. Fixed name of emitted outlined functions in NVPTX target + extra tests for the debug inf

[PATCH] D41507: avxintrin.h documentation fixes and updates

2018-01-08 Thread Katya Romanova via Phabricator via cfe-commits
kromanova accepted this revision. kromanova added a comment. LGTM too. https://reviews.llvm.org/D41507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39963: [RISCV] Add initial RISC-V target and driver support

2018-01-08 Thread Ana Pazos via Phabricator via cfe-commits
apazos accepted this revision. apazos added a comment. This revision is now accepted and ready to land. Please merge this patch, it looks in good shape. This patch is required for any RISCV build. https://reviews.llvm.org/D39963 ___ cfe-commits mai

r322023 - [Myriad] Remove invalidated -elf flag for MoviAsm

2018-01-08 Thread Walter Lee via cfe-commits
Author: waltl Date: Mon Jan 8 12:36:08 2018 New Revision: 322023 URL: http://llvm.org/viewvc/llvm-project?rev=322023&view=rev Log: [Myriad] Remove invalidated -elf flag for MoviAsm Summary: The flag has been deprecated, and is becoming invalid in the latest MDK. Reviewers: jyknight Subscribers

[PATCH] D41713: [Myriad] Remove invalidated -elf flag for MoviAsm

2018-01-08 Thread Walter Lee via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC322023: [Myriad] Remove invalidated -elf flag for MoviAsm (authored by waltl, committed by ). Changed prior to commit: https://reviews.llvm.org/D41713?vs=128557&id=128970#toc Repository: rC Clang ht

[PATCH] D40023: [RISCV] Implement ABI lowering

2018-01-08 Thread Ana Pazos via Phabricator via cfe-commits
apazos added a comment. Hi Alex, just a reminder, it looks like Eli's and David's comments have not been addressed yet. https://reviews.llvm.org/D40023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

[PATCH] D41271: [RISCV] Propagate -mabi and -march values to GNU assembler.

2018-01-08 Thread Ana Pazos via Phabricator via cfe-commits
apazos added a comment. This is ready to merge, just waiting for the dependence https://reviews.llvm.org/D39963 to be merged first. https://reviews.llvm.org/D41271 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D41039: Add support for attribute "trivial_abi"

2018-01-08 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Thanks, looks good to me. https://reviews.llvm.org/D41039 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D41834: [Lex] Fix handling numerical literals ending with ' and signed exponent.

2018-01-08 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added reviewers: rsmith, t.p.northover. For input `0'e+1` lexer tokenized as numeric constant only `0'e`. Later NumericLiteralParser skipped 0 and ' as digits and parsed `e+1` as valid exponent going past the end of the token. Because it didn't mark numeric l

[PATCH] D41834: [Lex] Fix handling numerical literals ending with ' and signed exponent.

2018-01-08 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. This fixes the OSS-Fuzz bug but I don't know if it is sufficient. Should I also make `Lexer::LexNumericConstant` to include `+1` part as tok::numeric_constant? https://reviews.llvm.org/D41834 ___ cfe-commits mailing list cf

r322024 - Factor out comparison handling for arithmetic types.

2018-01-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Jan 8 13:12:04 2018 New Revision: 322024 URL: http://llvm.org/viewvc/llvm-project?rev=322024&view=rev Log: Factor out comparison handling for arithmetic types. This is not quite NFC: we don't perform the usual arithmetic conversions unless we have an operand of arithmeti

r322027 - [DOXYGEN] Fix doxygen and content issues in avxintrin.h

2018-01-08 Thread Douglas Yung via cfe-commits
Author: dyung Date: Mon Jan 8 13:21:17 2018 New Revision: 322027 URL: http://llvm.org/viewvc/llvm-project?rev=322027&view=rev Log: [DOXYGEN] Fix doxygen and content issues in avxintrin.h - Fix incorrect wording in various intrinsic descriptions. Previously the descriptions used "low-order" and

r322028 - Implement Attribute Target MultiVersioning

2018-01-08 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Mon Jan 8 13:34:17 2018 New Revision: 322028 URL: http://llvm.org/viewvc/llvm-project?rev=322028&view=rev Log: Implement Attribute Target MultiVersioning GCC's attribute 'target', in addition to being an optimization hint, also allows function multiversioning. We current

[PATCH] D40819: Implement Attribute Target MultiVersioning (Improved edition!)

2018-01-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane closed this revision. erichkeane marked 2 inline comments as done. erichkeane added a comment. Closed with revision 322028 https://reviews.llvm.org/D40819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D41039: Add support for attribute "trivial_abi"

2018-01-08 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. I'd like to see more testing for the template instantiation case. I don't see any test coverage for the "attribute only affects instantiations whose members are trivial-for-calls" part. Comment at: include/clang/Sema/Sema.h:2239 bool SpecialMemberIs

[PATCH] D41706: [Driver] Update default sanitizer blacklist location

2018-01-08 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd accepted this revision. compnerd added a comment. This revision is now accepted and ready to land. This seems fine, but will need https://reviews.llvm.org/D41673 to go in at the same time. The sanitizers are pretty tightly coupled with the compiler, so I don't think that it is too big

r322030 - PR35862: Suppress -Wmissing-variable-declarations warning on inline variables,

2018-01-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Jan 8 13:46:42 2018 New Revision: 322030 URL: http://llvm.org/viewvc/llvm-project?rev=322030&view=rev Log: PR35862: Suppress -Wmissing-variable-declarations warning on inline variables, variable templates, and instantiations thereof. Modified: cfe/trunk/lib/Sema/Sema

[libcxx] r322031 - Make rehash(0) work with ubsan's unsigned-integer-overflow.

2018-01-08 Thread Dan Albert via cfe-commits
Author: danalbert Date: Mon Jan 8 13:49:12 2018 New Revision: 322031 URL: http://llvm.org/viewvc/llvm-project?rev=322031&view=rev Log: Make rehash(0) work with ubsan's unsigned-integer-overflow. Reviewers: mclow.lists, EricWF Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revi

[PATCH] D40743: Make rehash(0) work with ubsan's unsigned-integer-overflow.

2018-01-08 Thread Dan Albert via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCXX322031: Make rehash(0) work with ubsan's unsigned-integer-overflow. (authored by danalbert, committed by ). Changed prior to commit: https://reviews.llvm.org/D40743?vs=125193&id=128979#toc Repository

[PATCH] D40743: Make rehash(0) work with ubsan's unsigned-integer-overflow.

2018-01-08 Thread Dan Albert via Phabricator via cfe-commits
danalbert added inline comments. Comment at: include/__hash_table:2141 __n = 2; else if (__n & (__n - 1)) __n = __next_prime(__n); mclow.lists wrote: > danalbert wrote: > > With `rehash(0)` this is `0 & (0 - 1)`, which triggers > > unsigne

[PATCH] D41837: Add Function multiversion to the release notes.

2018-01-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane created this revision. erichkeane added reviewers: rsmith, hans, aaron.ballman, echristo. Richard suggested that I add this feature to the release notes, so I was hoping someone (anyone willing:) ) could do a quick read through for me. Thanks! -Erich Repository: rC Clang https://r

[PATCH] D41837: Add Function multiversion to the release notes.

2018-01-08 Thread Eric Christopher via Phabricator via cfe-commits
echristo added a comment. I think you're missing that right now it's x86 only yes? :) -eric Repository: rC Clang https://reviews.llvm.org/D41837 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

[PATCH] D41837: Add Function multiversion to the release notes.

2018-01-08 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 128982. erichkeane added a comment. Ah, right :) Slipped my mind that ELF != x86-linux. https://reviews.llvm.org/D41837 Files: docs/ReleaseNotes.rst Index: docs/ReleaseNotes.rst === ---

[libcxx] r322034 - Apparently 'C++14' is different than 'c++14'

2018-01-08 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Jan 8 14:16:30 2018 New Revision: 322034 URL: http://llvm.org/viewvc/llvm-project?rev=322034&view=rev Log: Apparently 'C++14' is different than 'c++14' Modified: libcxx/trunk/test/std/utilities/function.objects/func.search/func.search.bm/hash.pass.cpp Modified:

  1   2   >