[PATCH] D41217: [Concepts] Concept Specialization Expressions

2018-03-16 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: lib/AST/ExprCXX.cpp:1478 + { +// We do not want error diagnostics escaping here. +Sema::SFINAETrap Trap(S); saar.raz wrote: > faisalv wrote: > > Hubert: This needs a TODO: the idea is not to drop

[PATCH] D44597: [CFG] [analyzer] Add C++17-specific variable and return value construction contexts.

2018-03-16 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: test/Analysis/cfg-rich-constructors.cpp:481-486 +// CXX11:[B1] +// CXX11-NEXT: 1: [B4.4].~D() (Implicit destructor) +// CXX11:[B2] +// CXX11-NEXT: 1: ~temporary_object_expr_with_dtors::D() (Temporary object

[PATCH] D44597: [CFG] [analyzer] Add C++17-specific variable and return value construction contexts.

2018-03-16 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ created this revision. NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet. Herald added subscribers: cfe-commits, rnkovacs. In C++17 copy elision is mandatory for variable and return value constructors (as long as it doesn't involve type conversion) which results

Buildbot numbers for the week of 3/04/2018 - 3/10/2018

2018-03-16 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the last week of 3/04/2018 - 3/10/2018. Please see the same data in attached csv files: The longest time each builder was red during the week; "Status change ratio" by active builder (percent of builds that changed the builder status from

Buildbot numbers for the week of 2/25/2018 - 3/03/2018

2018-03-16 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the week of 2/25/2018 - 3/03/2018. Please see the same data in attached csv files: The longest time each builder was red during the week; "Status change ratio" by active builder (percent of builds that changed the builder status from greed to

[PATCH] D44231: [clang-tidy] Check for sizeof that call functions

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/misc-sizeof-expression.cpp:17 +enum E { E_VALUE = 0 }; + Can you add a C++11 test case using `enum class` -- I am worried that the `isInteger()` matcher will return false for that type. Also, I

[PATCH] D44559: [Sema] Wrong width of result of mul operation

2018-03-16 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. I think we're correct not to warn here and that GCC/ICC are being noisy. The existence of a temporary promotion to a wider type doesn't justify warning on arithmetic between two operands that are the same size as the ultimate result. It is totally fair for users to

[PATCH] D44589: [Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots.

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:7207-7217 +} else { + FixIts.push_back(FixItHint::CreateInsertion( + SelectorLocs[I], SelectorSlotNames[I])); +} + } +} else {

[PATCH] D44582: [Builtins] Fix calling long double math functions on x86_64 mingw

2018-03-16 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D44582#1040643, @efriedma wrote: > The backend has code to generate SRet returns, which is used when > TargetLowering::CanLowerReturn returns false. Probably a tiny change to > X86CallingConv.td to use that codepath on Windows. Thanks, I

[PATCH] D44222: [AArch64] Add vmulxh_lane FP16 intrinsics

2018-03-16 Thread Abderrazek Zaafrani via Phabricator via cfe-commits
az added a comment. Was not able to update this particular review with the new code, So I created a new one in https://reviews.llvm.org/D44591 I manage to reuse the mulx scalar intrinsic work, not exactly calling the fp16 scalar intrinsic itself which is not available here but the same

[PATCH] D44589: [Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots.

2018-03-16 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added inline comments. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:7207-7217 +} else { + FixIts.push_back(FixItHint::CreateInsertion( + SelectorLocs[I], SelectorSlotNames[I])); +} + } +} else { +

[PATCH] D44589: [Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots.

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a reviewer: rsmith. aaron.ballman added inline comments. Comment at: clang/include/clang/Sema/DelayedDiagnostic.h:198-199 +assert(Kind == Availability && "Not an availability diagnostic."); +return MultiSourceLocation(ArrayRef( +

[PATCH] D44231: [clang-tidy] Check for sizeof that call functions

2018-03-16 Thread Paul Fultz II via Phabricator via cfe-commits
pfultz2 marked an inline comment as done. pfultz2 added a comment. I have reworded the documentation. Hopefully it is clearer. https://reviews.llvm.org/D44231 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D44231: [clang-tidy] Check for sizeof that call functions

2018-03-16 Thread Paul Fultz II via Phabricator via cfe-commits
pfultz2 added a comment. > As this patch can catch some mistakes, I'm fine with checking it in. I agree > that it is reasonable to write normal code like sizeof(func_call()) (not > false positive), maybe set the option to false by default? I have disabled it by default. We can decide later if

[PATCH] D44231: [clang-tidy] Check for sizeof that call functions

2018-03-16 Thread Paul Fultz II via Phabricator via cfe-commits
pfultz2 updated this revision to Diff 138791. https://reviews.llvm.org/D44231 Files: clang-tidy/misc/SizeofExpressionCheck.cpp clang-tidy/misc/SizeofExpressionCheck.h docs/clang-tidy/checks/misc-sizeof-expression.rst test/clang-tidy/misc-sizeof-expression.cpp Index:

[PATCH] D44591: [AArch64] Add vmulxh_lane FP16 vector intrinsic

2018-03-16 Thread Abderrazek Zaafrani via Phabricator via cfe-commits
az created this revision. az added a reviewer: SjoerdMeijer. Herald added subscribers: kristof.beyls, javed.absar, rengolin. Add the two missing vmulxh_lane vector intrinsics that were originally left out. https://reviews.llvm.org/D44591 Files: clang/include/clang/Basic/arm_neon.td

[PATCH] D44505: [MS] Always use base dtors in place of complete/vbase dtors when possible

2018-03-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Should be fixed in https://reviews.llvm.org/rL327754. Repository: rC Clang https://reviews.llvm.org/D44505 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r327754 - [MS] Fix bug in r327732 with devirtualized complete destructor calls

2018-03-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Mar 16 15:20:57 2018 New Revision: 327754 URL: http://llvm.org/viewvc/llvm-project?rev=327754=rev Log: [MS] Fix bug in r327732 with devirtualized complete destructor calls Added: cfe/trunk/test/CodeGenCXX/devirtualize-ms-dtor.cpp Modified:

[PATCH] D44589: [Sema] Make deprecation fix-it replace all multi-parameter ObjC method slots.

2018-03-16 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added reviewers: aaron.ballman, erik.pilkington. Herald added a subscriber: jkorous-apple. Deprecation replacement can be any text but if it looks like a name of ObjC method and has the same number of arguments as original method, replace all slot names so

[PATCH] D44588: [OpenMP][Clang] Pass global thread ID to outlined function

2018-03-16 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea created this revision. gtbercea added reviewers: ABataev, grokos, carlo.bertolli, caomhin. Herald added subscribers: cfe-commits, guansong, jholewinski. The data sharing wrapper function needs to pass a valid global thread ID to the parallel outlined function when the parallel is

[PATCH] D44582: [Builtins] Fix calling long double math functions on x86_64 mingw

2018-03-16 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. The backend has code to generate SRet returns, which is used when TargetLowering::CanLowerReturn returns false. Probably a tiny change to X86CallingConv.td to use that codepath on Windows. Repository: rC Clang https://reviews.llvm.org/D44582

[PATCH] D44505: [MS] Always use base dtors in place of complete/vbase dtors when possible

2018-03-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. And, this appears to have broken clang's self-host: http://lab.llvm.org:8011/builders/clang-x86-windows-msvc2015/builds/10799 Time to debug. Repository: rC Clang https://reviews.llvm.org/D44505 ___ cfe-commits mailing list

r327746 - [Analysis] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC).

2018-03-16 Thread Eugene Zelenko via cfe-commits
Author: eugenezelenko Date: Fri Mar 16 14:22:42 2018 New Revision: 327746 URL: http://llvm.org/viewvc/llvm-project?rev=327746=rev Log: [Analysis] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). Modified:

[PATCH] D44559: [Sema] Wrong width of result of mul operation

2018-03-16 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. icc seems to match gcc for those last 4 cases i sent. And MSVC is throwing an odd signed/unsigned mismatch https://godbolt.org/g/s5FUTv Repository: rC Clang https://reviews.llvm.org/D44559 ___ cfe-commits mailing

[PATCH] D44533: [AMDGPU] Fix codegen for inline assembly

2018-03-16 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 138768. yaxunl marked an inline comment as done. yaxunl added a comment. Fix the comment. https://reviews.llvm.org/D44533 Files: lib/Basic/Targets/AMDGPU.h lib/CodeGen/CGStmt.cpp test/CodeGenOpenCL/inline-asm-amdgcn.cl

[PATCH] D44582: [Builtins] Fix calling long double math functions on x86_64 mingw

2018-03-16 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In https://reviews.llvm.org/D44582#1040578, @efriedma wrote: > Can we just fix the bug in the backend, rather than trying to hack around it > in clang? That'd obviously be ideal - but I don't know how easy that'd be (not familiar enough with that aspect of LLVM); if

[PATCH] D44559: [Sema] Wrong width of result of mul operation

2018-03-16 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. The purpose of this analysis is not to compute the theoretical information content of the computation result. We are conservative about bounds precisely so that we do not warn in situations like these. Repository: rC Clang https://reviews.llvm.org/D44559

[PATCH] D44582: [Builtins] Fix calling long double math functions on x86_64 mingw

2018-03-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Repository: rC Clang https://reviews.llvm.org/D44582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D44582: [Builtins] Fix calling long double math functions on x86_64 mingw

2018-03-16 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Can we just fix the bug in the backend, rather than trying to hack around it in clang? Repository: rC Clang https://reviews.llvm.org/D44582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r327741 - [MS] Fix tests after r327738 that only fail with a default Windows target

2018-03-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Mar 16 13:53:13 2018 New Revision: 327741 URL: http://llvm.org/viewvc/llvm-project?rev=327741=rev Log: [MS] Fix tests after r327738 that only fail with a default Windows target Modified: cfe/trunk/test/CodeGenCXX/trap-fnattr.cpp

[PATCH] D44582: [Builtins] Fix calling long double math functions on x86_64 mingw

2018-03-16 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo created this revision. mstorsjo added reviewers: rnk, compnerd. On x86_64 mingw, long doubles are passed as arguments and returned as if they were a struct. For normal functions, this calling convention detail is handled within clang when generating the IR. When a math function is

[PATCH] D44580: Sema: allow comparison between blocks & block-compatible objc types

2018-03-16 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT updated this revision to Diff 138759. DHowett-MSFT removed a subscriber: lebedev.ri. DHowett-MSFT added a comment. Moved files around slightly. Repository: rC Clang https://reviews.llvm.org/D44580 Files: lib/Sema/SemaExpr.cpp test/SemaObjC/block-compare.mm Index:

r327739 - [MS] Commit some changes that were intended to be part of r327738

2018-03-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Mar 16 13:37:59 2018 New Revision: 327739 URL: http://llvm.org/viewvc/llvm-project?rev=327739=rev Log: [MS] Commit some changes that were intended to be part of r327738 Modified: cfe/trunk/test/CodeGenCXX/regcall.cpp Modified: cfe/trunk/test/CodeGenCXX/regcall.cpp URL:

[PATCH] D44581: [Driver] Fix the descriptions for -Tdata and -Ttext options

2018-03-16 Thread Aaron Smith via Phabricator via cfe-commits
asmith created this revision. asmith added a reviewer: llvm-commits. Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D44581 Files: include/clang/Driver/Options.td Index: include/clang/Driver/Options.td

[PATCH] D44580: Sema: allow comparison between blocks & block-compatible objc types

2018-03-16 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT added a subscriber: lebedev.ri. DHowett-MSFT added a comment. In https://reviews.llvm.org/D44580#1040540, @lebedev.ri wrote: > Why not `test/SemaObjC/block_compare.mm` ? I wasn't are that it existed. It may even be a good fit for `test/SemaObjC/block-type-safety.m`, which already

[PATCH] D44580: Sema: allow comparison between blocks & block-compatible objc types

2018-03-16 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. Why not `test/SemaObjC/block_compare.mm` ? Repository: rC Clang https://reviews.llvm.org/D44580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44580: Sema: allow comparison between blocks & block-compatible objc types

2018-03-16 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT created this revision. DHowett-MSFT added reviewers: theraven, rjmccall. DHowett-MSFT added a project: clang. Herald added a subscriber: cfe-commits. This commit makes valid the following code: // objective-c++ #define nil ((id)nullptr) ... void (^f)() = ^{}; if (f == nil)

r327735 - [Parser] Remove hard-coded bracket depth limit

2018-03-16 Thread Jan Korous via cfe-commits
Author: jkorous Date: Fri Mar 16 13:17:28 2018 New Revision: 327735 URL: http://llvm.org/viewvc/llvm-project?rev=327735=rev Log: [Parser] Remove hard-coded bracket depth limit The diagnostics produced if assert fails are using proper limit from language definition already. Modified:

[PATCH] D39050: Add index-while-building support to Clang

2018-03-16 Thread Argyrios Kyrtzidis via Phabricator via cfe-commits
akyrtzi added a comment. > That would be good. How would one go about asking Clang to generate this > extra information? Would a Clang Plugin be suitable for this? That's an interesting idea that we could explore, but I don't have much experience with that mechanism to comment on. > Only the

[PATCH] D44505: [MS] Always use base dtors in place of complete/vbase dtors when possible

2018-03-16 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Thanks! I'm sorry I wasn't able to express these ideas better in https://reviews.llvm.org/D39063. Repository: rC Clang https://reviews.llvm.org/D44505 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D44505: [MS] Always use base dtors in place of complete/vbase dtors when possible

2018-03-16 Thread Reid Kleckner via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC327732: [MS] Always use base dtors in place of complete/vbase dtors when possible (authored by rnk, committed by ). Changed prior to commit: https://reviews.llvm.org/D44505?vs=138485=138748#toc

r327732 - [MS] Always use base dtors in place of complete/vbase dtors when possible

2018-03-16 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Mar 16 12:40:50 2018 New Revision: 327732 URL: http://llvm.org/viewvc/llvm-project?rev=327732=rev Log: [MS] Always use base dtors in place of complete/vbase dtors when possible Summary: Previously we tried too hard to uphold the fiction that destructor variants work like

[PATCH] D44576: [clangd] Fix undefined behavior due to misaligned type cast

2018-03-16 Thread Jan Korous via Phabricator via cfe-commits
jkorous-apple created this revision. jkorous-apple added a project: clang-tools-extra. Herald added subscribers: cfe-commits, ioeric, ilya-biryukov. The current code is casting pointer to a misaligned type which is undefined behavior. Found by compiling with Undefined Behavior Sanitizer and

[PATCH] D44575: [clangd][nfc] Give name to a magic constant

2018-03-16 Thread Jan Korous via Phabricator via cfe-commits
jkorous-apple created this revision. jkorous-apple added a project: clang-tools-extra. Herald added subscribers: cfe-commits, ioeric, ilya-biryukov. Since I was reading this code I decided I might just as well polish it a little. It is just preliminary commit for a bug-fix. Repository: rCTE

[PATCH] D44559: [Sema] Wrong width of result of mul operation

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D44559#1040435, @craig.topper wrote: > Fair point, what is the default signedness of char? It's decided by target architecture. ARM and PPC often use unsigned, x86 often uses signed. > FWIW, all these warn in gcc. So they seem to be

[PATCH] D44505: [MS] Always use base dtors in place of complete/vbase dtors when possible

2018-03-16 Thread Zahira Ammarguellat via Phabricator via cfe-commits
zahiraam added a comment. LGTM 2. It fixes PR32990. https://reviews.llvm.org/D44505 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D44559: [Sema] Wrong width of result of mul operation

2018-03-16 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. Fair point, what is the default signedness of char? FWIW, all these warn in gcc. So they seem to be just checking purely based on the int promotion without any concern for the original size? unsigned short foo(unsigned char a) { return a * a; }

[PATCH] D44226: [clangd] Add -log-lsp-to-stderr option

2018-03-16 Thread Simon Marchi via Phabricator via cfe-commits
simark updated this revision to Diff 138743. simark marked 3 inline comments as done. simark added a comment. Address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44226 Files: clangd/ClangdLSPServer.cpp clangd/JSONRPCDispatcher.cpp

[PATCH] D44559: [Sema] Wrong width of result of mul operation

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D44559#1040398, @craig.topper wrote: > gcc also warns for this > > short foo(char a) { > > return a * a; > > } > > Despite the fact that the char would be promoted to int, the upper bits are > just sign bits and the multiply result

[PATCH] D44093: [BUILTINS] structure pretty printer

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:935 +static llvm::Value *dumpRecord(CodeGenFunction , QualType RType, + Value*& RecordPtr, CharUnits Align, + Value *Func, int Lvl)

[PATCH] D44272: [clangd] Support incremental document syncing

2018-03-16 Thread Simon Marchi via Phabricator via cfe-commits
simark updated this revision to Diff 138741. simark marked an inline comment as done. simark added a comment. Address review comments, rebase on latest master Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44272 Files: clangd/ClangdLSPServer.cpp clangd/DraftStore.cpp

[PATCH] D39050: Add index-while-building support to Clang

2018-03-16 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. In https://reviews.llvm.org/D39050#1037796, @akyrtzi wrote: > Hey Marc, > > > The fact that both clang and clangd have to agree on the format so that > > index-while-building can be used seems to make it inherently not possible > > to extend > > I don't think "not

[PATCH] D44559: [Sema] Wrong width of result of mul operation

2018-03-16 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. gcc also warns for this short foo(char a) { return a * a; } Despite the fact that the char would be promoted to int, the upper bits are just sign bits and the multiply result still fits in a short. Repository: rC Clang https://reviews.llvm.org/D44559

[PATCH] D44272: [clangd] Support incremental document syncing

2018-03-16 Thread Simon Marchi via Phabricator via cfe-commits
simark marked 3 inline comments as done. simark added inline comments. Comment at: clangd/ClangdLSPServer.cpp:101 json::obj{ -{"textDocumentSync", 1}, +{"textDocumentSync", 2}, {"documentFormattingProvider", true},

[PATCH] D44559: [Sema] Wrong width of result of mul operation

2018-03-16 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: lib/Sema/SemaChecking.cpp:8541 + switch (C.getTargetInfo().getTriple().getArch()) { + case llvm::Triple::x86: + case llvm::Triple::x86_64: { I agree with @RKSimon, i don't see why this would be

[PATCH] D44409: [analyzer] Fix crashes in RetainCountChecker when underlying region is not a var

2018-03-16 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC327727: [analyzer] Fix crashes in RetainCountChecker when underlying region is not a var (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit:

r327727 - [analyzer] Fix crashes in RetainCountChecker when underlying region is not a var

2018-03-16 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Fri Mar 16 11:16:47 2018 New Revision: 327727 URL: http://llvm.org/viewvc/llvm-project?rev=327727=rev Log: [analyzer] Fix crashes in RetainCountChecker when underlying region is not a var For other regions, the error message contains a good indication of the

r327725 - [docs] ReleaseNotes: document -Wextra-semi changes.

2018-03-16 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Fri Mar 16 11:01:07 2018 New Revision: 327725 URL: http://llvm.org/viewvc/llvm-project?rev=327725=rev Log: [docs] ReleaseNotes: document -Wextra-semi changes. I should have done it in rL327558 / D43162, but forgot.. I'm not 100% sure about the text, but i don't think it

[PATCH] D44533: [AMDGPU] Fix codegen for inline assembly

2018-03-16 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added inline comments. Comment at: lib/Basic/Targets/AMDGPU.h:288 + // Constraint parm will be left pointing at the last character of + // the constraint. In practice, it won't be changed unless the parm? https://reviews.llvm.org/D44533

[PATCH] D44561: [ARM] Add HasFloat16 to TargetInfo

2018-03-16 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover added inline comments. Comment at: include/clang/Basic/TargetInfo.h:365 + /// \brief Determine whether _Float16 is supported on this target. + virtual bool hasFloat16Type() const { return HasFloat16; } t.p.northover wrote: > SjoerdMeijer wrote:

[PATCH] D44561: [ARM] Add HasFloat16 to TargetInfo

2018-03-16 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer updated this revision to Diff 138722. SjoerdMeijer added a comment. Addressed comments: simplified the logic in GetNeonType. https://reviews.llvm.org/D44561 Files: include/clang/Basic/TargetInfo.h lib/Basic/TargetInfo.cpp lib/Basic/Targets/AArch64.cpp

[PATCH] D44567: [clangd] Handle multiple callbacks from Sema's completion

2018-03-16 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327717: [clangd] Handle multiple callbacks from Semas completion (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D44567

[PATCH] D44567: [clangd] Handle multiple callbacks from Sema's completion

2018-03-16 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE327717: [clangd] Handle multiple callbacks from Semas completion (authored by ibiryukov, committed by ). Changed prior to commit: https://reviews.llvm.org/D44567?vs=138706=138713#toc Repository:

[clang-tools-extra] r327717 - [clangd] Handle multiple callbacks from Sema's completion

2018-03-16 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Mar 16 08:23:44 2018 New Revision: 327717 URL: http://llvm.org/viewvc/llvm-project?rev=327717=rev Log: [clangd] Handle multiple callbacks from Sema's completion Summary: When parser backtracks, we might receive multiple code completion callbacks. Previously we had a

[PATCH] D44569: [clang-format] Disallow breaks before ']' in text proto extensions

2018-03-16 Thread Krasimir Georgiev 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 rL327716: [clang-format] Disallow breaks before ] in text proto extensions (authored by krasimir, committed by ). Herald

r327716 - [clang-format] Disallow breaks before ']' in text proto extensions

2018-03-16 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Fri Mar 16 08:23:22 2018 New Revision: 327716 URL: http://llvm.org/viewvc/llvm-project?rev=327716=rev Log: [clang-format] Disallow breaks before ']' in text proto extensions Summary: This disallows patterns like `[ext.name\n]` in text protos. Subscribers: klimek,

[PATCH] D44568: Fix emission of phony dependency targets when adding extra deps

2018-03-16 Thread David Stenberg via Phabricator via cfe-commits
dstenb added a comment. A small caveat with this patch is that it does not fix the case where the input file as also added as an extra dependency with -fdepfile-entry; however, I reasoned that it shouldn't really be a problem in practice. I thought that it was a good trade-off ignoring that

[PATCH] D44569: [clang-format] Disallow breaks before ']' in text proto extensions

2018-03-16 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 138710. krasimir added a comment. - Remove newlines Repository: rC Clang https://reviews.llvm.org/D44569 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestTextProto.cpp Index: unittests/Format/FormatTestTextProto.cpp

[PATCH] D44569: [clang-format] Disallow breaks before ']' in text proto extensions

2018-03-16 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Herald added subscribers: cfe-commits, klimek. This disallows patterns like `[ext.name\n]` in text protos. Repository: rC Clang https://reviews.llvm.org/D44569 Files: lib/Format/ContinuationIndenter.cpp lib/Format/TokenAnnotator.cpp

[PATCH] D44568: Fix emission of phony dependency targets when adding extra deps

2018-03-16 Thread David Stenberg via Phabricator via cfe-commits
dstenb created this revision. dstenb added reviewers: rsmith, pcc, krasin. Herald added a subscriber: cfe-commits. This commit fixes a bug where passing extra dependency entries (using -fdepfile-entry) would result in -MP incorrectly emitting a phony target for the input file, and no phony target

[PATCH] D44567: [clangd] Handle multiple callbacks from Sema's completion

2018-03-16 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 138706. ilya-biryukov marked 2 inline comments as done. ilya-biryukov added a comment. - Address review comments Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D44567 Files: clangd/CodeComplete.cpp

[clang-tools-extra] r327711 - Move DraftMgr from ClangdServer to ClangdLSPServer

2018-03-16 Thread Simon Marchi via cfe-commits
Author: simark Date: Fri Mar 16 07:30:42 2018 New Revision: 327711 URL: http://llvm.org/viewvc/llvm-project?rev=327711=rev Log: Move DraftMgr from ClangdServer to ClangdLSPServer Summary: This patch moves the draft manager closer to the edge of Clangd, from ClangdServer to ClangdLSPServer. This

[PATCH] D44567: [clangd] Handle multiple callbacks from Sema's completion

2018-03-16 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/CodeComplete.cpp:454 +if (CCSema) { + log(llvm::formatv("ProcessCodeCompleteResults called multiple times." +

[PATCH] D44561: [ARM] Add HasFloat16 to TargetInfo

2018-03-16 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover added inline comments. Comment at: include/clang/Basic/TargetInfo.h:365 + /// \brief Determine whether _Float16 is supported on this target. + virtual bool hasFloat16Type() const { return HasFloat16; } SjoerdMeijer wrote: > t.p.northover wrote:

[PATCH] D44408: Move DraftMgr from ClangdServer to ClangdLSPServer

2018-03-16 Thread Simon Marchi via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL327711: Move DraftMgr from ClangdServer to ClangdLSPServer (authored by simark, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D44408 Files:

[PATCH] D44567: [clangd] Handle multiple callbacks from Sema's completion

2018-03-16 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. As a follow-up to an offline discussion: I opted for not excluding results from 'Recovery' contexts, because they are actually somewhat semantically relevant (i.e. contain only local variables from the current function). One example where this is useful are

[PATCH] D44561: [ARM] Add HasFloat16 to TargetInfo

2018-03-16 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer added a comment. Thanks for the review. Please see a first comment inline. Comment at: include/clang/Basic/TargetInfo.h:365 + /// \brief Determine whether _Float16 is supported on this target. + virtual bool hasFloat16Type() const { return HasFloat16; }

[PATCH] D44567: [clangd] Handle multiple callbacks from Sema's completion

2018-03-16 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: ioeric, jkorous-apple, klimek. When parser backtracks, we might receive multiple code completion callbacks. Previously we had a failing assertion there, now we take first results and hope

[PATCH] D44561: [ARM] Add HasFloat16 to TargetInfo

2018-03-16 Thread Tim Northover via Phabricator via cfe-commits
t.p.northover added inline comments. Comment at: include/clang/Basic/TargetInfo.h:365 + /// \brief Determine whether _Float16 is supported on this target. + virtual bool hasFloat16Type() const { return HasFloat16; } `_Float16` doesn't seem to be supported

[PATCH] D44563: [clang-format] Fix raw string prefix penalty

2018-03-16 Thread Krasimir Georgiev 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 rC327708: [clang-format] Fix raw string prefix penalty (authored by krasimir, committed by ). Changed prior to commit:

r327708 - [clang-format] Fix raw string prefix penalty

2018-03-16 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Fri Mar 16 07:01:25 2018 New Revision: 327708 URL: http://llvm.org/viewvc/llvm-project?rev=327708=rev Log: [clang-format] Fix raw string prefix penalty Summary: We weren't penalizing cases where the raw string prefix goes over the column limit. Subscribers: klimek,

[PATCH] D44563: [clang-format] Fix raw string prefix penalty

2018-03-16 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Herald added subscribers: cfe-commits, klimek. We weren't penalizing cases where the raw string prefix goes over the column limit. Repository: rC Clang https://reviews.llvm.org/D44563 Files: lib/Format/ContinuationIndenter.cpp

[PATCH] D44541: [OpenMP][Clang] Move device global stack init before master-workers split

2018-03-16 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rC Clang https://reviews.llvm.org/D44541 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D44561: [ARM] Add HasFloat16 to TargetInfo

2018-03-16 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer created this revision. SjoerdMeijer added reviewers: t.p.northover, samparker, olista01. Herald added subscribers: kristof.beyls, javed.absar. For generating NEON intrinsics, this determines the NEON data type, and whether it should be a half type or an i16 type. I.e., we always pass

[PATCH] D43764: [clang-apply-replacements] Convert tooling::Replacements to tooling::AtomicChange for conflict resolving of changes, code cleanup, and code formatting.

2018-03-16 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp:353 +const FileEntry *Entry = FileAndReplacements.first; +ReplacementsToAtomicChanges DeduplicatedChanges(SM, Entry); +for (const auto : FileAndReplacements.second)

r327705 - Implement C++ DR727, which permits explicit specializations at class scope.

2018-03-16 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Mar 16 06:36:56 2018 New Revision: 327705 URL: http://llvm.org/viewvc/llvm-project?rev=327705=rev Log: Implement C++ DR727, which permits explicit specializations at class scope. More generally, this permits a template to be specialized in any scope in which it could be

[PATCH] D44093: [BUILTINS] structure pretty printer

2018-03-16 Thread Paul Semel via Phabricator via cfe-commits
paulsemel updated this revision to Diff 138687. paulsemel added a comment. Added some tests (unit tests for almost every types) and some other tests with tricky cases. More tests are coming soon. Repository: rC Clang https://reviews.llvm.org/D44093 Files:

[PATCH] D44295: [clang-tidy] Detects and fixes calls to grand-...parent virtual methods instead of calls to parent's virtual methods

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/bugprone/ParentVirtualCallCheck.cpp:128 + diag(Member->getQualifierLoc().getSourceRange().getBegin(), + "'%0' is a grand-parent's method, not parent's. Did you mean %1?") + << CalleeName <<

[PATCH] D43764: [clang-apply-replacements] Convert tooling::Replacements to tooling::AtomicChange for conflict resolving of changes, code cleanup, and code formatting.

2018-03-16 Thread Jeremy Demeule via Phabricator via cfe-commits
jdemeule added inline comments. Comment at: clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp:353 +const FileEntry *Entry = FileAndReplacements.first; +ReplacementsToAtomicChanges DeduplicatedChanges(SM, Entry); +for (const auto :

[PATCH] D44295: [clang-tidy] Detects and fixes calls to grand-...parent virtual methods instead of calls to parent's virtual methods

2018-03-16 Thread Zinovy Nis via Phabricator via cfe-commits
zinovy.nis added inline comments. Comment at: test/clang-tidy/bugprone-parent-virtual-call.cpp:113 + int virt_1() override { return A::virt_1(); } + // CHECK-MESSAGES: :[[@LINE-1]]:34: warning: qualified function name A::virt_1 refers to a function not from a direct base

[PATCH] D44295: [clang-tidy] Detects and fixes calls to grand-...parent virtual methods instead of calls to parent's virtual methods

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/bugprone-parent-virtual-call.cpp:113 + int virt_1() override { return A::virt_1(); } + // CHECK-MESSAGES: :[[@LINE-1]]:34: warning: qualified function name A::virt_1 refers to a function not from a direct base

[PATCH] D44295: [clang-tidy] Detects and fixes calls to grand-...parent virtual methods instead of calls to parent's virtual methods

2018-03-16 Thread Zinovy Nis via Phabricator via cfe-commits
zinovy.nis added inline comments. Comment at: test/clang-tidy/bugprone-parent-virtual-call.cpp:105 + +// Test virtual method is diagnosted although not overridden in parent. +class BI : public A { aaron.ballman wrote: > Typo: diagnosted -> diagnosed oops,

[PATCH] D44295: [clang-tidy] Detects and fixes calls to grand-...parent virtual methods instead of calls to parent's virtual methods

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/bugprone-parent-virtual-call.cpp:105 + +// Test virtual method is diagnosted although not overridden in parent. +class BI : public A { Typo: diagnosted -> diagnosed Comment at:

[PATCH] D44231: [clang-tidy] Check for sizeof that call functions

2018-03-16 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D44231#1039888, @hokein wrote: > As this patch can catch some mistakes, I'm fine with checking it in. I agree > that it is reasonable to write normal code like `sizeof(func_call())` (not > false positive), maybe set the option to

[PATCH] D44557: [analyzer] CStringChecker.cpp - Code refactoring on bug report.

2018-03-16 Thread Henry Wong via Phabricator via cfe-commits
MTC created this revision. MTC added reviewers: NoQ, george.karpenkov, xazax.hun. Herald added subscribers: cfe-commits, a.sidorin, rnkovacs, szepet. When improving the modeling `evalMemset()`, some scenes need to emit report of `NotNullTerm`. In this case, there are three places in

[PATCH] D44226: [clangd] Add -log-lsp-to-stderr option

2018-03-16 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Sorry for the delay, just a few more comments. Comment at: clangd/ClangdLSPServer.cpp:412 +llvm::raw_string_ostream OS(Message); +OS << "method not found (" << Method << ")"; +replyError(ErrorCode::MethodNotFound, OS.str());

[PATCH] D44272: [clangd] Support incremental document syncing

2018-03-16 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdLSPServer.cpp:101 json::obj{ -{"textDocumentSync", 1}, +{"textDocumentSync", 2}, {"documentFormattingProvider", true}, simark wrote: > ilya-biryukov

[PATCH] D44435: Add the module name to __cuda_module_ctor and __cuda_module_dtor for unique function names

2018-03-16 Thread Simeon Ehrig via Phabricator via cfe-commits
SimeonEhrig added inline comments. Comment at: unittests/CodeGen/IncrementalProcessingTest.cpp:176-178 + +// In CUDA incremental processing, a CUDA ctor or dtor will be generated for +// every statement if a fatbinary file exists. tra wrote: > SimeonEhrig

[PATCH] D44231: [clang-tidy] Check for sizeof that call functions

2018-03-16 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. As this patch can catch some mistakes, I'm fine with checking it in. I agree that it is reasonable to write normal code like `sizeof(func_call())` (not false positive), maybe set the option to `false` by default? https://reviews.llvm.org/D44231

[PATCH] D41102: Setup clang-doc frontend framework

2018-03-16 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. So what part is failing, specifically? The SHA1 blobs of USR's differ in the llvm-bcanalyzer dumps? The actual filenames `%t/docs/bc/` differ? I guess both? First one you should be able to handle by replacing the actual values with a regex (i'd guess ` op19=226

  1   2   >