[PATCH] D37677: [libc++] implement future synchronization using atomic_flag

2017-10-02 Thread Dennis Luxen via Phabricator via cfe-commits
dennis.luxen planned changes to this revision. dennis.luxen added a comment. In https://reviews.llvm.org/D37677#868851, @EricWF wrote: > I agree with the general consensus that we should only make this change if > it's significantly faster, and only after we have a test that demonstrates > this

[PATCH] D38404: [CodeGen] Do not refer to complete TBAA info where we actually deal with just TBAA access types

2017-10-02 Thread Ivan A. Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL314657: [CodeGen] Do not refer to complete TBAA info where we actually deal with just… (authored by kosarev). Changed prior to commit: https://reviews.llvm.org/D38404?vs=117143&id=117315#toc Repository

[PATCH] D38048: [clangd] Add textDocument/signatureHelp

2017-10-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/ClangdUnit.cpp:742 + Consumer->includeBriefComments(); + FrontendOpts.CodeCompleteOpts.IncludeBriefComments = + Consumer->includeBriefComments(); Duplicated line sneaked into commit. It looks like

[PATCH] D38452: Mark test as a long-test

2017-10-02 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 created this revision. This test creates a string of 2GiB which may make it too slow to run in a simulator. https://reviews.llvm.org/D38452 Files: test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/pbump2gig.pass.cpp Index: test/std/input.outpu

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov requested changes to this revision. ilya-biryukov added a comment. This revision now requires changes to proceed. Some changes seem to be lost while merging with head. Comment at: clangd/GlobalCompilationDatabase.cpp:75 + auto CachedIt = CompilationDatabases.find

Re: r314650 - Dependent Address Space Support Test File

2017-10-02 Thread NAKAMURA Takumi via cfe-commits
On Mon, Oct 2, 2017 at 3:33 PM Andrew Gozillon via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: agozillon > Date: Sun Oct 1 23:31:25 2017 > New Revision: 314650 > > URL: http://llvm.org/viewvc/llvm-project?rev=314650&view=rev > Log: > Dependent Address Space Support Test File > > Ad

[PATCH] D38408: [CodeGen] Have a special function to get TBAA info for may-alias accesses

2017-10-02 Thread Ivan A. Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL314660: [CodeGen] Have a special function to get TBAA info for may-alias accesses (authored by kosarev). Changed prior to commit: https://reviews.llvm.org/D38408?vs=117162&id=117321#toc Repository: r

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 117327. Nebiroth added a comment. Fixed changes that were lost while merging with head. https://reviews.llvm.org/D37150 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/GlobalCompilationDatabase.cpp clangd/GlobalCompilationDatabase

Fwd: clang-format: Incorrect BreakBeforeBraces documentation

2017-10-02 Thread Matthew Fernandez via cfe-commits
Hello cfe-commits, I sent the following mail to cfe-dev, but didn't receive reply. I believe the attached patch to the Clang repo fixes this issue, if you're happy to accept it. Please let me know if you want it altered or if I've made a mistake. Thanks, Matt Forwarded Message -

r314660 - [CodeGen] Have a special function to get TBAA info for may-alias accesses

2017-10-02 Thread Ivan A. Kosarev via cfe-commits
Author: kosarev Date: Mon Oct 2 04:10:04 2017 New Revision: 314660 URL: http://llvm.org/viewvc/llvm-project?rev=314660&view=rev Log: [CodeGen] Have a special function to get TBAA info for may-alias accesses This is part of D37826 reworked to be a separate patch to simplify review. Differential

r314657 - [CodeGen] Do not refer to complete TBAA info where we actually deal with just TBAA access types

2017-10-02 Thread Ivan A. Kosarev via cfe-commits
Author: kosarev Date: Mon Oct 2 02:54:47 2017 New Revision: 314657 URL: http://llvm.org/viewvc/llvm-project?rev=314657&view=rev Log: [CodeGen] Do not refer to complete TBAA info where we actually deal with just TBAA access types This patch fixes misleading names of entities related to getting,

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov requested changes to this revision. ilya-biryukov added inline comments. This revision now requires changes to proceed. Comment at: clangd/GlobalCompilationDatabase.cpp:90 + + Logger.log("Failed to find compilation database for " + Twine(File) + "\n"); + return nu

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 117337. Nebiroth marked 2 inline comments as done. Nebiroth added a comment. Changed placement of logging instruction to reduce logging output. https://reviews.llvm.org/D37150 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/GlobalCo

r314668 - Dependent Address Space Support Test Fix

2017-10-02 Thread Andrew Gozillon via cfe-commits
Author: agozillon Date: Mon Oct 2 06:32:59 2017 New Revision: 314668 URL: http://llvm.org/viewvc/llvm-project?rev=314668&view=rev Log: Dependent Address Space Support Test Fix Modifying a non-type template integer arguement that is causing errors in some builds as it's too large for 32-bit long

Re: r314650 - Dependent Address Space Support Test File

2017-10-02 Thread Andrew Gozillon via cfe-commits
Thank you very much for the help. I have committed a change that should fix this, I tested it with my normal build and the triple you referenced and it works in both cases. I shall continue to keep an eye on the build bot. Best Regards, Andrew Gozillon From: N

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. Thanks. LGTM modulo minor NIT (see other inline comment). Do you need help to land this? Comment at: clangd/GlobalCompilationDatabase.cpp:102 +if (ReturnValue == nullptr) + Logger.log("Failed to find

[PATCH] D38456: [CodeGen] Introduce generic TBAA access descriptors

2017-10-02 Thread Ivan A. Kosarev via Phabricator via cfe-commits
kosarev created this revision. kosarev added a project: clang. With this patch we implement a concept of TBAA access descriptors that are capable of representing both scalar and struct-path accesses in a generic way. This is part of https://reviews.llvm.org/D37826 reworked to be a separate patch

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 117340. Nebiroth added a comment. Improved logging message when unable to find compilation database in specified overriden directory. https://reviews.llvm.org/D37150 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/GlobalCompilation

[PATCH] D38458: Fix assertion failure in thread safety analysis (PR34800).

2017-10-02 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh created this revision. Fix an assertion failure and clean up unused code relevant to the fixed logic. https://reviews.llvm.org/D38458 Files: include/clang/Analysis/Analyses/ThreadSafetyTIL.h test/SemaCXX/warn-thread-safety-analysis.cpp Index: test/SemaCXX/warn-thread-safety-analysi

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Thanks for fixing the last comment. Do you want me to land this for you? Comment at: clangd/GlobalCompilationDatabase.cpp:103 + Logger.log("Failed to find compilation database for " + Twine(File) + + "in overriden directory "

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread William Enright via Phabricator via cfe-commits
Nebiroth added a comment. In https://reviews.llvm.org/D37150#885749, @ilya-biryukov wrote: > Thanks for fixing the last comment. > Do you want me to land this for you? Yes please! https://reviews.llvm.org/D37150 ___ cfe-commits mailing list cfe-

r314670 - [OPENMP] Simplify codegen for non-offloading code.

2017-10-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 2 07:20:58 2017 New Revision: 314670 URL: http://llvm.org/viewvc/llvm-project?rev=314670&view=rev Log: [OPENMP] Simplify codegen for non-offloading code. Simplified and generalized codegen for non-offloading part that works if offloading is failed or condition of th

[PATCH] D38458: Fix assertion failure in thread safety analysis (PR34800).

2017-10-02 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added inline comments. Comment at: include/clang/Analysis/Analyses/ThreadSafetyTIL.h:931-936 +if (!SlotName) { + std::string Buffer; + llvm::raw_string_ostream OS(Buffer); + Cvdecl->printName(OS); + SlotName = OS.str(); +} BTW,

r314673 - [OPENMP] Fix test, NFC.

2017-10-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 2 07:35:31 2017 New Revision: 314673 URL: http://llvm.org/viewvc/llvm-project?rev=314673&view=rev Log: [OPENMP] Fix test, NFC. Modified: cfe/trunk/test/OpenMP/target_codegen.cpp Modified: cfe/trunk/test/OpenMP/target_codegen.cpp URL: http://llvm.org/viewvc/llv

[PATCH] D38460: [CodeGen] Fix propagation of TBAA info for atomic accesses

2017-10-02 Thread Ivan A. Kosarev via Phabricator via cfe-commits
kosarev created this revision. kosarev added a project: clang. This patch fixes clang to propagate complete TBAA information for atomic accesses and not just the final access types. Prepared against https://reviews.llvm.org/D38456 and requires it to be committed first. This is part of https://r

[PATCH] D38425: [clangd] Document highlights for clangd

2017-10-02 Thread William Enright via Phabricator via cfe-commits
Nebiroth updated this revision to Diff 117351. Nebiroth marked 3 inline comments as done. Nebiroth added a comment. Addressed initial comments. Formatted ClangdUnit.h https://reviews.llvm.org/D38425 Files: clangd/ClangdLSPServer.cpp clangd/ClangdServer.cpp clangd/ClangdServer.h clangd/C

[PATCH] D35216: [analyzer] Escape symbols when creating std::initializer_list.

2017-10-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Core/ExprEngine.cpp:1127 +// only consist of ObjC objects, and escapes of ObjC objects +// aren't so important (eg., retain count checker ignores them). +if (isa(Ex) || dcoughlin wr

[clang-tools-extra] r314677 - [clangd] Run clang-format on the source code. NFC.

2017-10-02 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Oct 2 08:10:41 2017 New Revision: 314677 URL: http://llvm.org/viewvc/llvm-project?rev=314677&view=rev Log: [clangd] Run clang-format on the source code. NFC. Modified: clang-tools-extra/trunk/clangd/ProtocolHandlers.h Modified: clang-tools-extra/trunk/clangd/Prot

[clang-tools-extra] r314678 - [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Oct 2 08:13:20 2017 New Revision: 314678 URL: http://llvm.org/viewvc/llvm-project?rev=314678&view=rev Log: [clangd] Command line arg to specify compile_commands.json path Summary: Adds compileCommands command line argument to specify an absolute path directly to the

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL314678: [clangd] Command line arg to specify compile_commands.json path (authored by ibiryukov). Changed prior to commit: https://reviews.llvm.org/D37150?vs=117340&id=117354#toc Repository: rL LLVM

[PATCH] D37150: [clangd] Command line arg to specify compile_commands.json path

2017-10-02 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Did a minor rename and added a few `std::move`s before submitting. Was not worth another round of code review. Repository: rL LLVM https://reviews.llvm.org/D37150 ___ cfe-commits mailing list cfe-commits@lists.llvm

[PATCH] D37973: [clang-format] Fix regression about short functions after #else

2017-10-02 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. This test looks like it was intended to catch some case, maybe we're now mishandling some case like if (foo) { } else { // this can now be merged } But there's no testca

r314683 - [clang-format] Fix regression about short functions after #else

2017-10-02 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Mon Oct 2 08:53:37 2017 New Revision: 314683 URL: http://llvm.org/viewvc/llvm-project?rev=314683&view=rev Log: [clang-format] Fix regression about short functions after #else Summary: This patch fixes a regression introduced in r312904, where the formatter confuses the `e

[PATCH] D37973: [clang-format] Fix regression about short functions after #else

2017-10-02 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL314683: [clang-format] Fix regression about short functions after #else (authored by krasimir). Repository: rL LLVM https://reviews.llvm.org/D37973 Files: cfe/trunk/lib/Format/UnwrappedLineFormatter

[PATCH] D38463: [OpenCL] Fix checking of vector type casting

2017-10-02 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. Currently clang allows the following code int a; int b = (const int) a; However it does not the following code int4 a; int4 b = (const int4) a; This is because Clang compares the qualified types instead of unqualified types for vector type casting, which

[PATCH] D38358: [analyzer] Fix autodetection of getSVal()'s type argument.

2017-10-02 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ updated this revision to Diff 117360. NoQ added a comment. Yeah, nice catch. So we need to either always tell the checkers to specify their `CharTy` when they are dealing with void pointers, or to do our substitution consistently, not only for `SymbolicRegion` but also for `AllocaRegion` (d

[PATCH] D38303: [Sema] Correct IUnknown to support Unknwnbase.h Header.

2017-10-02 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. @chapuni Thanks for the fix! That 'novtable' line is there simply because that is supposed to be a minimized replica of what happens in the UnknwnBase.h header. I'll likely just remove the attribute and your fix, since the warning itself isn't important to the test

[PATCH] D33029: [clang-format] add option for dangling parenthesis

2017-10-02 Thread Ryan Stringham via Phabricator via cfe-commits
stringham added a comment. @djasper should I move forward with extending the BracketAlignmentStyle option? I'm happy to do it, but I'd like to get the idea signed off on before I spend more time working on it. We've been using a version of clang-format with these changes since May, and we've be

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

2017-10-02 Thread Peter Siket via Phabricator via cfe-commits
MontyKutyi updated this revision to Diff 117367. MontyKutyi added a comment. Updated to the latest trunk version. https://reviews.llvm.org/D34030 Files: include/clang/AST/RecursiveASTVisitor.h unittests/AST/PostOrderASTVisitor.cpp Index: unittests/AST/PostOrderASTVisitor.cpp =

[PATCH] D38284: [clang-tidy] Fix google-readability-namespace-comments handling of C++17 nested namespaces

2017-10-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/readability/NamespaceCommentCheck.cpp:59 +static std::string getNamespaceComment(const std::string &s, + bool InsertLineBreak) { `s` should be renamed to `S` or so

[PATCH] D37466: D37461: fixups for existing InlineAsm tests + adding new ones

2017-10-02 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: test/CodeGen/ms-inline-asm.cpp:37-38 - int lvar = 10; - __asm mov eax, offset Foo::ptr - __asm mov eax, offset Foo::Bar::ptr -// CHECK-LABEL: define void @_Z2t2v() coby wrote: > rnk wrote: > > These don't seem tested anyw

[PATCH] D38458: Fix assertion failure in thread safety analysis (PR34800).

2017-10-02 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! https://reviews.llvm.org/D38458 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

r314686 - [OPENMP] Capture argument of `device` clause for target-based

2017-10-02 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Mon Oct 2 09:32:39 2017 New Revision: 314686 URL: http://llvm.org/viewvc/llvm-project?rev=314686&view=rev Log: [OPENMP] Capture argument of `device` clause for target-based directives. The argument of the `device` clause in target-based executable directives must be capture

[PATCH] D38464: [clangd] less boilerplate in RPC dispatch

2017-10-02 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. Make the ProtocolHandlers glue between JSONRPCDispatcher and ClangdLSPServer generic. Eliminate small differences between methods, de-emphasize the unimportant distinction between notifications and methods. ClangdLSPServer is no longer responsible for producing a

[PATCH] D38464: [clangd] less boilerplate in RPC dispatch

2017-10-02 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 117374. sammccall added a comment. - clang-format https://reviews.llvm.org/D38464 Files: clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/JSONRPCDispatcher.cpp clangd/JSONRPCDispatcher.h clangd/Protocol.cpp clangd/Protocol.h clangd

r314687 - Update IUnknown lit test to pass on Win32

2017-10-02 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Mon Oct 2 09:49:32 2017 New Revision: 314687 URL: http://llvm.org/viewvc/llvm-project?rev=314687&view=rev Log: Update IUnknown lit test to pass on Win32 Modified: cfe/trunk/test/SemaCXX/ms-iunknown-template-function.cpp Modified: cfe/trunk/test/SemaCXX/ms-iunknown-t

[PATCH] D38456: [CodeGen] Introduce generic TBAA access descriptors

2017-10-02 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. LGTM. Repository: rL LLVM https://reviews.llvm.org/D38456 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cg

[PATCH] D38460: [CodeGen] Fix propagation of TBAA info for atomic accesses

2017-10-02 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. LGTM, but is there a reason this isn't just part of that patch? Repository: rL LLVM https://reviews.llvm.org/D38460 ___ cfe-commits mailin

[PATCH] D35216: [analyzer] Escape symbols when creating std::initializer_list.

2017-10-02 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added inline comments. This revision is now accepted and ready to land. Comment at: test/Analysis/objc-boxing.m:66 + BoxableStruct bs; + bs.str = strdup("dynamic string"); // The duped string shall be owned by val. + NSValue *val = @

[PATCH] D24933: Enable configuration files in clang

2017-10-02 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added a comment. Here is a list of design solutions used in this implementation of config files. **How config file is specified** There are two ways to specify config file: - To encode it into executable file name, such as `foo-clang`, - To pass config file in command line arguments.

r314689 - Revert "[Sema] Warn on attribute nothrow conflicting with language specifiers"

2017-10-02 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Mon Oct 2 10:16:14 2017 New Revision: 314689 URL: http://llvm.org/viewvc/llvm-project?rev=314689&view=rev Log: Revert "[Sema] Warn on attribute nothrow conflicting with language specifiers" This reverts r314461. It is warning on user code that uses END_COM_MAP(), which expands

[PATCH] D38358: [analyzer] Fix autodetection of getSVal()'s type argument.

2017-10-02 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. Looks great to me. I do wonder if long-term we should consider removing the auto-deduction when loading from the store. On the one hand it is really nice to avoid having to specify that

[PATCH] D38468: [CUDA] Fix name of __activemask()

2017-10-02 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. The name has two underscores in the official CUDA documentation: http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#warp-vote-functions https://reviews.llvm.org/D38468 Files: lib/Headers/__clang_cuda_intrinsics.h Index: lib/Headers/__clang_cuda_i

Re: r314689 - Revert "[Sema] Warn on attribute nothrow conflicting with language specifiers"

2017-10-02 Thread Hans Wennborg via cfe-commits
This is https://bugs.llvm.org/show_bug.cgi?id=34805 On Mon, Oct 2, 2017 at 10:16 AM, Reid Kleckner via cfe-commits wrote: > Author: rnk > Date: Mon Oct 2 10:16:14 2017 > New Revision: 314689 > > URL: http://llvm.org/viewvc/llvm-project?rev=314689&view=rev > Log: > Revert "[Sema] Warn on attribut

[PATCH] D38468: [CUDA] Fix name of __activemask()

2017-10-02 Thread Justin Lebar via Phabricator via cfe-commits
jlebar accepted this revision. jlebar added a comment. This revision is now accepted and ready to land. Thank you for the fix! https://reviews.llvm.org/D38468 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

r314691 - [CUDA] Fix name of __activemask()

2017-10-02 Thread Jonas Hahnfeld via cfe-commits
Author: hahnfeld Date: Mon Oct 2 10:50:11 2017 New Revision: 314691 URL: http://llvm.org/viewvc/llvm-project?rev=314691&view=rev Log: [CUDA] Fix name of __activemask() The name has two underscores in the official CUDA documentation: http://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html

[PATCH] D38468: [CUDA] Fix name of __activemask()

2017-10-02 Thread Jonas Hahnfeld via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL314691: [CUDA] Fix name of __activemask() (authored by Hahnfeld). Changed prior to commit: https://reviews.llvm.org/D38468?vs=117384&id=117392#toc Repository: rL LLVM https://reviews.llvm.org/D38468

[PATCH] D38290: Add a ld64.lld alias for the MACHO LLD target

2017-10-02 Thread Martell Malone via Phabricator via cfe-commits
martell added a comment. `CODE_OWNERS.TXT` does not have a list of `driver` owners. It does have rsmith as an owner for all things not covered by someone else so I added him. Reid usually reviews driver patches I submit to clang and is on the owner list so I added him here initially. I think eit

[PATCH] D37115: [coroutines] Do not attempt to typo-correct when coroutine is looking for required members

2017-10-02 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added a comment. ping https://reviews.llvm.org/D37115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r314692 - [Analyzer] Make testing scripts flake8 compliant

2017-10-02 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Mon Oct 2 10:59:12 2017 New Revision: 314692 URL: http://llvm.org/viewvc/llvm-project?rev=314692&view=rev Log: [Analyzer] Make testing scripts flake8 compliant Differential Review: https://reviews.llvm.org/D38213 Modified: cfe/trunk/utils/analyzer/CmpRuns.py

[clang-tools-extra] r314693 - [clangd] Handle workspace/didChangeWatchedFiles

2017-10-02 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Oct 2 11:00:37 2017 New Revision: 314693 URL: http://llvm.org/viewvc/llvm-project?rev=314693&view=rev Log: [clangd] Handle workspace/didChangeWatchedFiles Summary: The client can send notifications when it detects watched files have changed. This patch adds the protoc

[PATCH] D38444: [compiler-rt] [cmake] Create dummy gtest target for stand-alone builds

2017-10-02 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov added a comment. > breaking stand-alone builds as a result That's a strong statement. Could you clarify? We have a lot of buildbots performing standalone builds, and they are still green. > and the likeliness of people mistakenly adding more unconditional dependencies That's a

[PATCH] D37808: [clang-tidy] Add new hicpp-multiway-paths-covered check for missing branches

2017-10-02 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. ping. is there something obviously wrong with this check? https://reviews.llvm.org/D37808 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] r314695 - Fix building on macOS after SVN r314492

2017-10-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Oct 2 11:14:06 2017 New Revision: 314695 URL: http://llvm.org/viewvc/llvm-project?rev=314695&view=rev Log: Fix building on macOS after SVN r314492 That commit incorrectly expanded the assumption that defined(__APPLE__) implies SjLj exception handling, which only is tru

[PATCH] D38284: [clang-tidy] Fix google-readability-namespace-comments handling of C++17 nested namespaces

2017-10-02 Thread Alexandru Octavian Buțiu via Phabricator via cfe-commits
predator5047 updated this revision to Diff 117398. predator5047 marked 5 inline comments as done. predator5047 added a comment. Address review comments: - Use llvm::SmallVector instead of std::vector - Some formatting changes. https://reviews.llvm.org/D38284 Files: clang-tidy/readabilit

[PATCH] D38042: EmitAssemblyHelper: CodeGenOpts.DisableLLVMOpts should not overrule CodeGenOpts.VerifyModule.

2017-10-02 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl abandoned this revision. aprantl added a comment. Abandoning in favor of https://reviews.llvm.org/D38184 https://reviews.llvm.org/D38042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

r314697 - Revert "Add /System/Library/PrivateFrameworks as a header search path."

2017-10-02 Thread Douglas Gregor via cfe-commits
Author: dgregor Date: Mon Oct 2 11:22:19 2017 New Revision: 314697 URL: http://llvm.org/viewvc/llvm-project?rev=314697&view=rev Log: Revert "Add /System/Library/PrivateFrameworks as a header search path." This reverts commit f7a95215a435aa8d5f64f43a8bb23ba077270755. Modified: cfe/trunk/lib/

r314700 - Add a testcase to check that debug info is upgraded when compiling LLVM IR

2017-10-02 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Mon Oct 2 11:31:52 2017 New Revision: 314700 URL: http://llvm.org/viewvc/llvm-project?rev=314700&view=rev Log: Add a testcase to check that debug info is upgraded when compiling LLVM IR through clang. Added: cfe/trunk/test/CodeGen/verify-debuginfo.ll Added: cfe/trunk/te

[PATCH] D37681: [refactor] Simplify the interface and remove some template magic

2017-10-02 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. I will commit this today. @klimek, let me know if there any issues in post-commit review. Repository: rL LLVM https://reviews.llvm.org/D37681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[libclc] r314703 - integer/sub_sat: Use clang builtin instead of llvm asm

2017-10-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Oct 2 11:39:03 2017 New Revision: 314703 URL: http://llvm.org/viewvc/llvm-project?rev=314703&view=rev Log: integer/sub_sat: Use clang builtin instead of llvm asm reviewer: Tom Stellard Signed-off-by: Jan Vesely Removed: libclc/trunk/generic/lib/integer/sub_sat_if

[libclc] r314701 - integer/clz: Use clang builtin instead of llvm asm

2017-10-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Oct 2 11:38:57 2017 New Revision: 314701 URL: http://llvm.org/viewvc/llvm-project?rev=314701&view=rev Log: integer/clz: Use clang builtin instead of llvm asm The generated llvm IR mostly identical. char/uchar case is a bit worse. reviewer: Tom Stellard Signed-off-by:

[libclc] r314702 - integer/add_sat: Use clang builtin instead of llvm asm

2017-10-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Mon Oct 2 11:39:00 2017 New Revision: 314702 URL: http://llvm.org/viewvc/llvm-project?rev=314702&view=rev Log: integer/add_sat: Use clang builtin instead of llvm asm reviewer: Tom Stellard Signed-off-by: Jan Vesely Removed: libclc/trunk/generic/lib/integer/add_sat_if

[PATCH] D36806: Switch to cantFail(), since it does the same assertion.

2017-10-02 Thread Stephen Hines via Phabricator via cfe-commits
srhines added a comment. Ping again. This is really trivial. https://reviews.llvm.org/D36806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r314704 - [refactor] Simplify the refactoring interface

2017-10-02 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Oct 2 11:42:43 2017 New Revision: 314704 URL: http://llvm.org/viewvc/llvm-project?rev=314704&view=rev Log: [refactor] Simplify the refactoring interface This commit simplifies the interface for the refactoring action rules and the refactoring requirements. It merges th

[PATCH] D37681: [refactor] Simplify the interface and remove some template magic

2017-10-02 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL314704: [refactor] Simplify the refactoring interface (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D37681?vs=115211&id=117403#toc Repository: rL LLVM https://reviews.llv

r314706 - Add support for Myriad ma2x8x series of CPUs

2017-10-02 Thread Walter Lee via cfe-commits
Author: waltl Date: Mon Oct 2 11:50:57 2017 New Revision: 314706 URL: http://llvm.org/viewvc/llvm-project?rev=314706&view=rev Log: Add support for Myriad ma2x8x series of CPUs Summary: Also: - Add support for some older Myriad CPUs that were missing. - Fix some incorrect compiler defines for exi

[PATCH] D35216: [analyzer] Escape symbols when creating std::initializer_list.

2017-10-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D35216#856415, @NoQ wrote: > We already have the object's fields in the AST, with its AST record layout, > however field names and layouts are implementation-dependent, and it is > unsafe to try to understand how the specific standard library

r314708 - Add std::move in RefactoringActionRulesTest.cpp

2017-10-02 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Mon Oct 2 12:02:42 2017 New Revision: 314708 URL: http://llvm.org/viewvc/llvm-project?rev=314708&view=rev Log: Add std::move in RefactoringActionRulesTest.cpp Should fix http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental Modified: cfe/trunk/unittest

[PATCH] D38473: Include getting generated struct offsets in CodegenABITypes

2017-10-02 Thread Michael Ferguson via cfe-commits
This change adds a new function, CodeGen::getFieldNumber, that enables a user of clang's code generation to get the field number in a generated LLVM IR struct that corresponds to a particular field in a C struct. It is important to expose this information in Clang's code generation interface becau

Re: [PATCH] D38473: Include getting generated struct offsets in CodegenABITypes

2017-10-02 Thread Michael Ferguson via cfe-commits
I forgot to include the Phabricator URL for the patch in question. It is here: https://reviews.llvm.org/D38473 Thanks, -michael On Mon, Oct 2, 2017 at 3:19 PM, Michael Ferguson wrote: > This change adds a new function, CodeGen::getFieldNumber, that > enables a user of clang's code generation t

[PATCH] D38444: [compiler-rt] [cmake] Create dummy gtest target for stand-alone builds

2017-10-02 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D38444#886138, @george.karpenkov wrote: > > breaking stand-alone builds as a result > > That's a strong statement. Could you clarify? We have a lot of buildbots > performing standalone builds, and they are still green. I didn't know anyone ac

[PATCH] D38290: Add a ld64.lld alias for the MACHO LLD target

2017-10-02 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. In https://reviews.llvm.org/D38290#885503, @ruiu wrote: > This patch virtually sets `ld64` the linker command name for macOS. I'd be a > bit reluctant doing that, because `ld64` sounds like a too ge

Re: [PATCH] D38444: [compiler-rt] [cmake] Create dummy gtest target for stand-alone builds

2017-10-02 Thread George Karpenkov via cfe-commits
> On Oct 2, 2017, at 12:57 PM, Michał Górny via Phabricator > wrote: > > mgorny added a comment. > > In https://reviews.llvm.org/D38444#886138, @george.karpenkov wrote: > >>> breaking stand-alone builds as a result >> >> That's a strong statement. Could you clarify? We have a lot of buildbo

[PATCH] D38380: [libunwind] Add CMake support for building for MinGW

2017-10-02 Thread Martin Storsjö via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL314716: Add CMake support for building for MinGW (authored by mstorsjo). Changed prior to commit: https://reviews.llvm.org/D38380?vs=117046&id=117417#toc Repository: rL LLVM https://reviews.llvm.org

[libunwind] r314716 - Add CMake support for building for MinGW

2017-10-02 Thread Martin Storsjo via cfe-commits
Author: mstorsjo Date: Mon Oct 2 13:46:37 2017 New Revision: 314716 URL: http://llvm.org/viewvc/llvm-project?rev=314716&view=rev Log: Add CMake support for building for MinGW This section is similar to what already exists in libcxx and libcxxabi. Differential Revision: https://reviews.llvm.org/

r314722 - [Analyzer] Avoid copy and modifying passed reference in BodyFarm::create_call_once

2017-10-02 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Mon Oct 2 14:01:46 2017 New Revision: 314722 URL: http://llvm.org/viewvc/llvm-project?rev=314722&view=rev Log: [Analyzer] Avoid copy and modifying passed reference in BodyFarm::create_call_once Differential Revision: https://reviews.llvm.org/D38475 Modified:

Re: [PATCH] D38444: [compiler-rt] [cmake] Create dummy gtest target for stand-alone builds

2017-10-02 Thread Michał Górny via cfe-commits
W dniu pon, 02.10.2017 o godzinie 13∶33 -0700, użytkownik George Karpenkov napisał: > > On Oct 2, 2017, at 12:57 PM, Michał Górny via Phabricator > > wrote: > > > > mgorny added a comment. > > > > In https://reviews.llvm.org/D38444#886138, @george.karpenkov wrote: > > > > > > breaking stand-al

[PATCH] D36806: Switch to cantFail(), since it does the same assertion.

2017-10-02 Thread Don Hinton via Phabricator via cfe-commits
hintonda added a comment. LGTM... https://reviews.llvm.org/D36806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38479: Make -mgeneral-regs-only more like GCC's

2017-10-02 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv created this revision. Herald added a subscriber: javed.absar. (Copy/pasting the reviewer list from https://reviews.llvm.org/D26856.) Addresses https://bugs.llvm.org/show_bug.cgi?id=30792 . In GCC, -mgeneral-regs-only emits errors upon trying to emit floating-point or vector op

[PATCH] D38048: [clangd] Add textDocument/signatureHelp

2017-10-02 Thread Raoul Wols via Phabricator via cfe-commits
rwols updated this revision to Diff 117427. rwols added a comment. - Update `invokeCodeComplete` function to also take a `CodeCompleteOptions`, we assign it to the `CompilerInstance`'s `FrontendOpts.CodeCompleteOpts`. - Remove unused variable in `SignatureHelpCollector::ProcessOverloadCandidate`.

r314733 - PR33839: Fix -Wunused handling for structured binding declarations.

2017-10-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Oct 2 15:43:36 2017 New Revision: 314733 URL: http://llvm.org/viewvc/llvm-project?rev=314733&view=rev Log: PR33839: Fix -Wunused handling for structured binding declarations. We warn about a structured binding declaration being unused only if none of its bindings are use

[PATCH] D38110: [libunwind][MIPS]: Add support for unwinding in O32 and N64 processes.

2017-10-02 Thread John Baldwin via Phabricator via cfe-commits
bsdjhb updated this revision to Diff 117438. bsdjhb added a comment. - Fixes from review feedback. https://reviews.llvm.org/D38110 Files: include/__libunwind_config.h include/libunwind.h src/Registers.hpp src/UnwindCursor.hpp src/UnwindRegistersRestore.S src/UnwindRegistersSave.S

[PATCH] D38110: [libunwind][MIPS]: Add support for unwinding in O32 and N64 processes.

2017-10-02 Thread John Baldwin via Phabricator via cfe-commits
bsdjhb marked 14 inline comments as done. bsdjhb added a comment. I have only tested this (test programs as mentioned earlier) with clang 5.0.0 (with a few patches) on o32 and n64. I am in the process of performing the same tests with GCC 6.3.0. I will also spend some time figuring out how to

[libcxx] r314735 - Improve test runner output for broken configurations.

2017-10-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Oct 2 15:52:51 2017 New Revision: 314735 URL: http://llvm.org/viewvc/llvm-project?rev=314735&view=rev Log: Improve test runner output for broken configurations. Previously LIT would often fail while attempting to set up/configure the test compiler; normally when attempti

[PATCH] D31417: [OpenMP] Add support for omp simd pragmas without runtime

2017-10-02 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. Is this still being worked on? https://reviews.llvm.org/D31417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

LLVM buildmaster will be updated and restarted tonight

2017-10-02 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted after 7 PM Pacific time. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38483: [ExprConstant] Allow constexpr ctor to modify non static data members in body

2017-10-02 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington created this revision. Previously, clang rejected the following (copied from PR19741): struct A { int a = 0; constexpr A() { a = 1; } }; constexpr bool f() { constexpr A a; static_assert(a.a == 1, ""); return a.a == 1; } static_assert(f(), ""); Clang

RE: D31417: [OpenMP] Add support for omp simd pragmas without runtime

2017-10-02 Thread Tian, Xinmin via cfe-commits
Yes, actually, I will have a meeting with ARM team on this. Xinmin -Original Message- From: Hal Finkel via Phabricator [mailto:revi...@reviews.llvm.org] Sent: Monday, October 2, 2017 4:19 PM To: graham.hun...@arm.com; kkw...@gmail.com; Tian, Xinmin ; a.bat...@hotmail.com Cc: hfin...@a

Re: r270962 - [OPENMP] Fixed processing of '-fopenmp-version=' option and test.

2017-10-02 Thread Hal Finkel via cfe-commits
Hi, Alexey, At what point can we switch, by default, to reporting a version for _OPENMP corresponding to 4.x? We're missing out on some OpenMP simd directives because the source code guards them with '#if _OPENMP >= 201307' or similar. Thanks again, Hal On 05/26/2016 11:13 PM, Alexey Bataev

[PATCH] D38483: [ExprConstant] Allow constexpr ctor to modify non static data members in body

2017-10-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/AST/ExprConstant.cpp:576 +typedef std::pair EvaluatingObject; + Please add a comment explaining what the two fields mean. Comment at: lib/AST/ExprConstant.cpp:588 + : EI(EI), Object(O

  1   2   >