[PATCH] D43500: [clang-tidy]: modernize-use-default-member-init: Remove trailing comma and colon.

2018-02-22 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D43500#1015208, @jdemeule wrote: > In https://reviews.llvm.org/D43500#1013558, @malcolm.parsons wrote: > > > In https://reviews.llvm.org/D43500#1013497, @aaron.ballman wrote: > > > > > Is there a way to make clang-apply-replacements smarter rath

[PATCH] D43625: [OpenMP] Remove implicit data sharing code gen that aims to use device shared memory

2018-02-22 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea created this revision. gtbercea added reviewers: ABataev, carlo.bertolli, caomhin. Herald added subscribers: cfe-commits, guansong, jholewinski. Remove this scheme for now since it will be covered by another more generic scheme using global memory. This code will be worked into an optimi

[PATCH] D43621: [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows.

2018-02-22 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. In https://reviews.llvm.org/D43621#1015888, @amccarth wrote: > This must be new-ish code, since I've routinely used `-fuse-ld=lld` (without > `.exe`) on Windows. Well, since 12/2016: https://reviews.llvm.org/rC289668 Repository: rC Clang https://reviews.llvm.org/

[clang-tools-extra] r325802 - Fix "not all control paths return a value" MSVC warning. NFCI.

2018-02-22 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Thu Feb 22 08:12:27 2018 New Revision: 325802 URL: http://llvm.org/viewvc/llvm-project?rev=325802&view=rev Log: Fix "not all control paths return a value" MSVC warning. NFCI. Modified: clang-tools-extra/trunk/clangd/TUScheduler.cpp Modified: clang-tools-extra/trunk/clan

[PATCH] D43513: [OpenMP] Limit reduction support for pragma 'distribute' when combined with pragma 'simd'

2018-02-22 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. LG Repository: rC Clang https://reviews.llvm.org/D43513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D43621: [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows.

2018-02-22 Thread Adrian McCarthy via Phabricator via cfe-commits
amccarth added a comment. This must be new-ish code, since I've routinely used `-fuse-ld=lld` (without `.exe`) on Windows. Repository: rC Clang https://reviews.llvm.org/D43621 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

[PATCH] D43513: [OpenMP] Limit reduction support for pragma 'distribute' when combined with pragma 'simd'

2018-02-22 Thread Carlo Bertolli via Phabricator via cfe-commits
carlo.bertolli updated this revision to Diff 135429. carlo.bertolli added a comment. [OpenMP] Add regression test: this verifies that only one call to the runtime for reduction is done in a combined construct with distribute, without simd, and with at least one pragma accepting reduction as a cl

Re: [libcxx] r323971 - Remove ; use instead. See https://libcxx.llvm.org/TS_deprecation.html

2018-02-22 Thread Nico Weber via cfe-commits
I have a small personal project where I used to use this. I tried switching to instead, but that apparently requires -std=c++17. With that, things build fine with my locally-built clang, but latest Xcode clang doesn't accept that flag yet. So I tried -std=c++1z, but latest Xcode (9.2) doesn't even

[PATCH] D43621: [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows.

2018-02-22 Thread Igor Kudrin via Phabricator via cfe-commits
ikudrin added inline comments. Comment at: lib/Driver/ToolChain.cpp:415 // second-guess that. -if (llvm::sys::fs::exists(UseLinker)) +if (llvm::sys::fs::can_execute(UseLinker)) return UseLinker; Hahnfeld wrote: > I don't think we should do thi

[PATCH] D43621: [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows.

2018-02-22 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: lib/Driver/ToolChain.cpp:415 // second-guess that. -if (llvm::sys::fs::exists(UseLinker)) +if (llvm::sys::fs::can_execute(UseLinker)) return UseLinker; I don't think we should do this for absolute pa

[PATCH] D43621: [Driver] Allow using a canonical form of '-fuse-ld=' when cross-compiling on Windows.

2018-02-22 Thread Igor Kudrin via Phabricator via cfe-commits
ikudrin created this revision. ikudrin added reviewers: phosek, Hahnfeld, logan, rnk. ikudrin added a project: clang. Right now, we have to add an `.exe` suffix when using this switch, like `-fuse-ld=lld.exe`. If the suffix is omitted, `llvm::sys::fs::exists()` cannot find the file on Windows, w

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

2018-02-22 Thread Robert Schneider via Phabricator via cfe-commits
robot marked an inline comment as done. robot added a comment. Have you had the time to review the second revision? Repository: rCRT Compiler Runtime https://reviews.llvm.org/D42644 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

[clang-tools-extra] r325801 - [clangd] fix test use-after-free from r325774

2018-02-22 Thread Sam McCall via cfe-commits
Author: sammccall Date: Thu Feb 22 07:33:33 2018 New Revision: 325801 URL: http://llvm.org/viewvc/llvm-project?rev=325801&view=rev Log: [clangd] fix test use-after-free from r325774 Modified: clang-tools-extra/trunk/unittests/clangd/TUSchedulerTests.cpp Modified: clang-tools-extra/trunk/unit

[clang-tools-extra] r325784 - [clangd] DidChangeConfiguration Notification

2018-02-22 Thread Simon Marchi via cfe-commits
Author: simark Date: Thu Feb 22 06:00:39 2018 New Revision: 325784 URL: http://llvm.org/viewvc/llvm-project?rev=325784&view=rev Log: [clangd] DidChangeConfiguration Notification Summary: Implementation of DidChangeConfiguration notification handling in clangd. This currently only supports chang

[libcxx] r325760 - [libcxx] Do not include the C math.h header before __config

2018-02-22 Thread Mikhail Maltsev via cfe-commits
Author: miyuki Date: Thu Feb 22 01:34:08 2018 New Revision: 325760 URL: http://llvm.org/viewvc/llvm-project?rev=325760&view=rev Log: [libcxx] Do not include the C math.h header before __config Summary: Certain C libraries require configuration macros defined in __config to provide the correct fun

r325771 - [OpenCL] Add '-cl-uniform-work-group-size' compile option

2018-02-22 Thread via cfe-commits
Author: AlexeySotkin Date: Thu Feb 22 03:54:14 2018 New Revision: 325771 URL: http://llvm.org/viewvc/llvm-project?rev=325771&view=rev Log: [OpenCL] Add '-cl-uniform-work-group-size' compile option Summary: OpenCL 2.0 specification defines '-cl-uniform-work-group-size' option, which requires that

[PATCH] D41880: Adding nocf_check attribute for cf-protection fine tuning

2018-02-22 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2691 +def warn_nocf_check_attribute_ignored : + Warning<"nocf_check attribute ignored. Use -fcf-prtection flag to enable it">, + InGroup; Diagnostics are not complete s

Re: [libcxx] r324290 - Remove ; use instead. See https://libcxx.llvm.org/TS_deprecation.html

2018-02-22 Thread Nico Weber via cfe-commits
Out of interest, do you know why the non-experimental version doesn't have to_string()? What are folks supposed to use instead? On Mon, Feb 5, 2018 at 6:43 PM, Marshall Clow via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: marshall > Date: Mon Feb 5 15:43:34 2018 > New Revision: 32

[PATCH] D43108: Support for the mno-stack-arg-probe flag

2018-02-22 Thread Ruslan Nikolaev via Phabricator via cfe-commits
nruslan added a comment. @hans, @craig.topper, @MatzeB: Can someone commit https://reviews.llvm.org/D43108 (this) and https://reviews.llvm.org/D43107 on my behalf? I do not think, I have commit access. https://reviews.llvm.org/D43108 ___ cfe-commi

[PATCH] D43105: [RISCV] Enable __int128_t and uint128_t through clang flag

2018-02-22 Thread Alex Bradbury via Phabricator via cfe-commits
asb added a comment. Herald added a subscriber: shiva0217. As @efriedma noted in https://reviews.llvm.org/D43106, it would be good to have some test coverage for ABI lowering. I'd suggest updating test/Driver/riscv32-abi.c with something like: #ifdef __SIZEOF_INT128__ // CHECK-FORCEINT128-L

[PATCH] D39571: [clangd] DidChangeConfiguration Notification

2018-02-22 Thread Simon Marchi 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 rL325784: [clangd] DidChangeConfiguration Notification (authored by simark, committed by ). Herald added a subscriber: llvm-

[PATCH] D41102: Setup clang-doc frontend framework

2018-02-22 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: clang-doc/BitcodeWriter.cpp:149 + +/// \brief Emits a record ID in the BLOCKINFO block. +void ClangDocBitcodeWriter::emitRecordID(RecordId ID) { For me, with no prior knowledge of llvm's bitstreams, it was not obvious

[PATCH] D43569: [clangd] Correct setting ignoreWarnings in CodeCompletion.

2018-02-22 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done. Closed by commit rL325779: [clangd] Correct setting ignoreWarnings in CodeCompletion. (authored by hokein, committed by ). Herald added a subscriber: llvm-commits. Repository: rL L

[clang-tools-extra] r325779 - [clangd] Correct setting ignoreWarnings in CodeCompletion.

2018-02-22 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Feb 22 05:35:01 2018 New Revision: 325779 URL: http://llvm.org/viewvc/llvm-project?rev=325779&view=rev Log: [clangd] Correct setting ignoreWarnings in CodeCompletion. Summary: We should set the flag before creating ComplierInstance -- when CopmilerInstance gets initialize

[PATCH] D43500: [clang-tidy]: modernize-use-default-member-init: Remove trailing comma and colon.

2018-02-22 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a reviewer: ioeric. alexfh added a comment. In https://reviews.llvm.org/D43500#1013497, @aaron.ballman wrote: > > It seems, when they are apply directly from clang-tidy, the RefactoringTool > > engine is smart enough to remove trailing tokens. However, when fixes are > > exported,

[PATCH] D43569: [clangd] Correct setting ignoreWarnings in CodeCompletion.

2018-02-22 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 135399. hokein added a comment. - add a comment - find one more incorrect usage, and fix it. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D43569 Files: clangd/CodeComplete.cpp clangd/Headers.cpp Index: clangd/Headers.cpp =

[PATCH] D43569: [clangd] Correct setting ignoreWarnings in CodeCompletion.

2018-02-22 Thread Haojian Wu via Phabricator via cfe-commits
hokein marked an inline comment as done. hokein added inline comments. Comment at: clangd/CodeComplete.cpp:705 } + CI->getDiagnosticOpts().IgnoreWarnings = true; auto Clang = prepareCompilerInstance( ilya-biryukov wrote: > Could we add a comment that this

[PATCH] D43518: [clangd] Allow embedders some control over when diagnostics are generated.

2018-02-22 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL325774: [clangd] Allow embedders some control over when diagnostics are generated. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://revie

[clang-tools-extra] r325774 - [clangd] Allow embedders some control over when diagnostics are generated.

2018-02-22 Thread Sam McCall via cfe-commits
Author: sammccall Date: Thu Feb 22 05:11:12 2018 New Revision: 325774 URL: http://llvm.org/viewvc/llvm-project?rev=325774&view=rev Log: [clangd] Allow embedders some control over when diagnostics are generated. Summary: Through the C++ API, we support for a given snapshot version: - Yes: make su

[PATCH] D43569: [clangd] Correct setting ignoreWarnings in CodeCompletion.

2018-02-22 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. LGTM with a minor nit. Comment at: clangd/CodeComplete.cpp:705 } + CI->getDiagnosticOpts().IgnoreWarnings = true; auto Clang = prepareCompilerInstance( -

[PATCH] D43518: [clangd] Allow embedders some control over when diagnostics are generated.

2018-02-22 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. LGTM (just one more possibly useful nit about const) Comment at: clangd/TUScheduler.cpp:298 + while (shouldSkipHeadLocked()) +Requests.pop_front();

[PATCH] D43570: [OpenCL] Add '-cl-uniform-work-group-size' compile option

2018-02-22 Thread Alexey Sotkin via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL325771: [OpenCL] Add '-cl-uniform-work-group-size' compile option (authored by AlexeySotkin, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D43570

[PATCH] D43518: [clangd] Allow embedders some control over when diagnostics are generated.

2018-02-22 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/TUScheduler.cpp:298 + while (shouldSkipHeadLocked()) +Requests.pop_front(); + assert(!Requests.empty() && "skipped the whole queue"); sammccall wrote: > ilya-biryukov wrote: > > Instead of

[PATCH] D41880: Adding nocf_check attribute for cf-protection fine tuning

2018-02-22 Thread Oren Ben Simhon via Phabricator via cfe-commits
oren_ben_simhon marked 2 inline comments as done. oren_ben_simhon added a comment. I added a comment ignoring nocf_check attribute in case -fcf-protection is not set. Now LLVM is identical to GCC. Comment at: test/Sema/attr-nocf_check.c:18-20 + FuncPointerWithNoCfCheck fNoCfC

[PATCH] D41880: Adding nocf_check attribute for cf-protection fine tuning

2018-02-22 Thread Oren Ben Simhon via Phabricator via cfe-commits
oren_ben_simhon updated this revision to Diff 135386. oren_ben_simhon added a comment. Implemented comments posted until 02/22 (Thanks Aaron). Repository: rL LLVM https://reviews.llvm.org/D41880 Files: include/clang/AST/Type.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td

Re: r324308 - Fix crash on invalid.

2018-02-22 Thread Hans Wennborg via cfe-commits
Seems safe. Merged in r325766. On Thu, Feb 22, 2018 at 1:15 AM, Richard Trieu wrote: > Hi Hans, > > If there's still time for rc3, I'd like to get this crash fix in. This adds > a null check to prevent a crash on invalid. > > Richard > > On Mon, Feb 5, 2018 at 6:58 PM, Richard Trieu via cfe-comm

[PATCH] D41537: Optionally add code completion results for arrow instead of dot

2018-02-22 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. In https://reviews.llvm.org/D41537#1015563, @yvvan wrote: > Or is your idea is to return the char sequence instead to use this correction > in some universal way? Exactly. Editors that implement corrections would pick up any new corrections automatically, rather

[PATCH] D43518: [clangd] Allow embedders some control over when diagnostics are generated.

2018-02-22 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Not convinced about the flow control stuff - I think you might be underestimating the complexity of the cancellation-based approach with the extra functionality. But if you think it would still be more readable the other way, happy to get a third opinion. =

[PATCH] D43518: [clangd] Allow embedders some control over when diagnostics are generated.

2018-02-22 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 135382. sammccall marked an inline comment as done. sammccall added a comment. add param names to decls Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D43518 Files: clangd/ClangdLSPServer.cpp clangd/ClangdServer.cpp clangd/ClangdServ

[PATCH] D43614: Define _PTHREADS for -pthread on NetBSD

2018-02-22 Thread Kamil Rytarowski via Phabricator via cfe-commits
krytarowski created this revision. krytarowski added reviewers: joerg, rnk. krytarowski added a project: clang. Herald added a subscriber: llvm-commits. GCC and PCC define _PTHREADS for -pthreads on NetBSD. The _PTHREADS preprocessor macro is used in the NetBSD header in . NetBSD uses both: _REE

[PATCH] D43550: [clangd] Not collect include headers for dynamic index for now.

2018-02-22 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL325764: [clangd] Not collect include headers for dynamic index for now. (authored by ioeric, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D43550

[PATCH] D39571: [clangd] DidChangeConfiguration Notification

2018-02-22 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. Thanks for fixing all the comments! LGTM! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D39571 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists

[clang-tools-extra] r325764 - [clangd] Not collect include headers for dynamic index for now.

2018-02-22 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Feb 22 02:14:05 2018 New Revision: 325764 URL: http://llvm.org/viewvc/llvm-project?rev=325764&view=rev Log: [clangd] Not collect include headers for dynamic index for now. Summary: The new behaviors introduced by this patch: o When include collection is enabled, we always

[PATCH] D43579: [libcxx] Do not include the C math.h header before __config

2018-02-22 Thread Mikhail Maltsev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL325760: [libcxx] Do not include the C math.h header before __config (authored by miyuki, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D43579

[PATCH] D43547: [Indexing] Fixing inconsistencies between FUNCDNAME and generated code by improving ASTContext's API for MangleContext

2018-02-22 Thread Michael Haidl via Phabricator via cfe-commits
pacxx updated this revision to Diff 135372. pacxx retitled this revision from "[NameMangling] Make ASTContext owning the ManglingContext during entire compilation" to "[Indexing] Fixing inconsistencies between FUNCDNAME and generated code by improving ASTContext's API for MangleContext". pacxx e

[PATCH] D43570: [OpenCL] Add '-cl-uniform-work-group-size' compile option

2018-02-22 Thread Kristina Bessonova via Phabricator via cfe-commits
krisb updated this revision to Diff 135375. krisb added a comment. Herald added a subscriber: nhaehnle. Updated one more test where attributes became mismatched. Repository: rC Clang https://reviews.llvm.org/D43570 Files: include/clang/Driver/Options.td include/clang/Frontend/CodeGenOpti

[PATCH] D41537: Optionally add code completion results for arrow instead of dot

2018-02-22 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. Or is your idea is to return the char sequence instead to use this correction in some universal way? https://reviews.llvm.org/D41537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

<    1   2