[PATCH] D62286: [Driver] Try normalized triple when looking for C++ libraries

2019-05-23 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This addresses the issue introduced in r361432 where we would only try effective triple but not the normalized one as we do for other runtimes. Repository: rC Clang

[PATCH] D62238: [CodeComplete] Complete a lambda when preferred type is a function

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 200876. ilya-biryukov added a comment. - Remove a leftover from name check. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62238/new/ https://reviews.llvm.org/D62238 Files:

[PATCH] D62270: [Driver] Move the "-o OUT -x TYPE SRC.c" flags to the end of -cc1

2019-05-23 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. Nice, lgtm. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62270/new/ https://reviews.llvm.org/D62270

[PATCH] D50147: clang-format: support external styles

2019-05-23 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. Herald added a project: clang. In D50147#1310146 , @sammccall wrote: > In D50147#1309880 , @Typz wrote: > > > ping? > > > Sorry for losing track of this. > > I think `-style=` is a logical

[PATCH] D60455: [SYCL] Implement SYCL device code outlining

2019-05-23 Thread Mariya Podchishchaeva via Phabricator via cfe-commits
Fznamznon added inline comments. Comment at: clang/include/clang/Basic/Attr.td:1017 + let LangOpts = [SYCL]; + let Documentation = [Undocumented]; +} bader wrote: > Anastasia wrote: > > Ok, I thought the earlier request was not to add undocumented attributes

[PATCH] D59415: Do not resolve directory junctions for `-fdiagnostics-absolute-paths` on Windows.

2019-05-23 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. Thanks! This looks good to me. I'm still a bit nervous about "mklink" in the test, but let's land this and see if the bots can handle it. CHANGES SINCE LAST ACTION

[PATCH] D62276: lld-link, clang: Treat non-existent input files as possible spellos for option flags

2019-05-23 Thread Hans Wennborg via Phabricator via cfe-commits
hans accepted this revision. hans added a comment. This revision is now accepted and ready to land. Beautiful! Want to add a line to docs/ReleaseNotes.rst too? :-) Comment at: clang/include/clang/Basic/DiagnosticDriverKinds.td:177 def

[PATCH] D62115: fix a issue that clang is incompatible with gcc with -H option.

2019-05-23 Thread Kan Shengchen via Phabricator via cfe-commits
skan updated this revision to Diff 200878. skan added a comment. make test case consider Windows path separators CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62115/new/ https://reviews.llvm.org/D62115 Files: lib/Frontend/HeaderIncludeGen.cpp test/Frontend/clang_H_opt.c Index:

r361461 - [CodeComplete] Complete a lambda when preferred type is a function

2019-05-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu May 23 00:45:35 2019 New Revision: 361461 URL: http://llvm.org/viewvc/llvm-project?rev=361461=rev Log: [CodeComplete] Complete a lambda when preferred type is a function Summary: Uses a heuristic to detect std::function and friends. Reviewers: kadircet Reviewed By:

[clang-tools-extra] r361464 - [clangd-vscode] Bump versions dependencies. NFC

2019-05-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu May 23 01:06:24 2019 New Revision: 361464 URL: http://llvm.org/viewvc/llvm-project?rev=361464=rev Log: [clangd-vscode] Bump versions dependencies. NFC Result of running 'npm audit fix', which tracks security vulnerabilities. Modified:

[PATCH] D62288: [clangd-vscode] Do not customize uri converters in vscode

2019-05-23 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, this improves the paths produced for generated files inside `bazel-genfiles`, we now point to the `/my/project/bazel-genfiles/path/to/some.proto.h` instead of

[PATCH] D62288: [clangd-vscode] Do not customize uri converters in vscode

2019-05-23 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet created this revision. kadircet added a reviewer: ilya-biryukov. Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay. Herald added a project: clang. Clangd is already resolving symlinks on the server side, therefore there is no more need to handle it in client side. This

[PATCH] D62238: [CodeComplete] Complete a lambda when preferred type is a function

2019-05-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL361461: [CodeComplete] Complete a lambda when preferred type is a function (authored by ibiryukov, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to

[PATCH] D37813: clang-format: better handle namespace macros

2019-05-23 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added inline comments. Comment at: unittests/Format/NamespaceEndCommentsFixerTest.cpp:582 + EXPECT_EQ("TESTSUITE() {\n" +" int i;\n" +"} // TESTSUITE()", All of the fixNamespaceEndComments tests are indented, but standard llvm

[PATCH] D62298: [CodeComplete] Filter override completions by function name

2019-05-23 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang/lib/Sema/SemaCodeComplete.cpp:3154 +/// The result contains only 'typed text' and 'text' chunks. +static void PrintOverrideString(const CodeCompletionString , +CodeCompletionBuilder ) {

[PATCH] D62309: Fix linking of the refactor tweaks directory

2019-05-23 Thread Rudolf Kastl via Phabricator via cfe-commits
che666 created this revision. che666 added a reviewer: clang-tools-extra. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, ilya-biryukov, mgorny. Herald added a project: clang. Currently it seems that the linked libs in CMakelists for the refactor tweaks directory is

[PATCH] D60763: Prototype OpenCL BIFs using Tablegen

2019-05-23 Thread Pierre via Phabricator via cfe-commits
Pierre updated this revision to Diff 200961. Pierre marked 4 inline comments as done. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60763/new/ https://reviews.llvm.org/D60763 Files: clang/include/clang/Basic/CMakeLists.txt clang/include/clang/Basic/LangOptions.def

[PATCH] D62309: Fix linking of the refactor tweaks directory

2019-05-23 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. Thanks for the fix! A few nit-picky comments about the process, in case you'll be interested in sending more patches to LLVM. Could you please upload the patch with

[PATCH] D62312: [ASTImporter] Added visibility context check for CXXRecordDecl.

2019-05-23 Thread Balázs Kéri via Phabricator via cfe-commits
balazske created this revision. Herald added subscribers: cfe-commits, gamesh411, Szelethus, dkrupp. Herald added a reviewer: martong. Herald added a reviewer: a.sidorin. Herald added a reviewer: shafik. Herald added a project: clang. ASTImporter makes now difference between classes with same

[PATCH] D62303: [Index] Fix reported references in presence of template type aliases

2019-05-23 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added a comment. This revision is now accepted and ready to land. LGTM, thanks! Comment at: clang/lib/Index/IndexTypeSourceInfo.cpp:140 + bool IsTypeAlias) { +if (ResolvedClass) { + //

[PATCH] D62298: [CodeComplete] Filter override completions by function name

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Summarizing the offline discussion, the final results we want in the long run is a completion item of the form: - Displayed to the user: `override foo(int a, int b)` - Inserted into the editor: `return_type foo(int a, int b) override` - Filtered by `override foo`

[PATCH] D59628: Add support for __attribute__((objc_class_stub))

2019-05-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM! Comment at: clang/include/clang/Basic/Attr.td:297 def CUDA : LangOpt<"CUDA">; -def COnly : LangOpt<"CPlusPlus", 1>; +def COnly : LangOpt<"COnly", "!LangOpts.CPlusPlus">; def CPlusPlus :

Re: [PATCH] D62201: [LibTooling] Address post-commit feedback for r361152

2019-05-23 Thread Yitzhak Mandelbaum via cfe-commits
Fixed in https://reviews.llvm.org/D62320 On Thu, May 23, 2019 at 10:44 AM Sam Clegg via Phabricator < revi...@reviews.llvm.org> wrote: > sbc100 added a comment. > > I think this build broke the `-DLLVM_BUILD_LLVM_DYLIB=ON > -DLLVM_LINK_LLVM_DYLIB=ON` build. e.g >

r361504 - [Driver] Try normalized triple when looking for C++ libraries

2019-05-23 Thread Petr Hosek via cfe-commits
Author: phosek Date: Thu May 23 08:23:16 2019 New Revision: 361504 URL: http://llvm.org/viewvc/llvm-project?rev=361504=rev Log: [Driver] Try normalized triple when looking for C++ libraries This addresses the issue introduced in r361432 where we would only try effective triple but not the

[PATCH] D62286: [Driver] Try normalized triple when looking for C++ libraries

2019-05-23 Thread Petr Hosek 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 rC361504: [Driver] Try normalized triple when looking for C++ libraries (authored by phosek, committed by ). Changed prior

[PATCH] D62298: [CodeComplete] Override completion items are filtered by funciton names

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 200926. ilya-biryukov added a comment. - Update the tests Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62298/new/ https://reviews.llvm.org/D62298 Files: clang/lib/Sema/SemaCodeComplete.cpp

[PATCH] D62303: [Index] Fix reported references in presence of template type aliases

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: kadircet. Herald added subscribers: arphaman, jkorous. Herald added a project: clang. See the added test for an example. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D62303 Files:

[PATCH] D59253: [AIX][libcxx] AIX system headers need stdint.h and inttypes.h to be re-enterable when macro _STD_TYPES_T is defined

2019-05-23 Thread Xing Xue via Phabricator via cfe-commits
xingxue updated this revision to Diff 200967. xingxue added a comment. Herald added subscribers: jsji, jfb. Added test case `stdint_h.sh.cpp`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59253/new/ https://reviews.llvm.org/D59253 Files:

Re: [PATCH] D61774: [LibTooling] Add RangeSelector library for defining source ranges based on bound AST nodes.

2019-05-23 Thread Yitzhak Mandelbaum via cfe-commits
Sounds good. I'll send a fix shortly. Found another bug too (captured a StringRef in a lambda) -- shall i bundle the fixes? On Thu, May 23, 2019 at 9:01 AM Ilya Biryukov wrote: > Maybe go with a runtime parameter (of type llvm::function_ref) instead of > the template parameter? > In any

[PATCH] D48961: [Index] Add indexing support for MACROs.

2019-05-23 Thread Marco Bubke via Phabricator via cfe-commits
marcobubke added a comment. Herald added a subscriber: dexonsmith. Herald added a project: clang. This changset is not handling #ifdef MACRO, defined(MACRO) etc. in he PPCallbacks. Is there any intention to omit them or do you simply forgot them? Repository: rC Clang CHANGES SINCE LAST

[PATCH] D62320: Fix LLVM_LINK_LLVM_DYLIB build after rC361285

2019-05-23 Thread Sam Clegg via Phabricator via cfe-commits
sbc100 created this revision. Herald added subscribers: cfe-commits, aheejin, mgorny. Herald added a project: clang. All the other unittests I can find specify LLVMTestingSupport in target_link_libraries not as part of LLVM_LINK_COMPONENTS. I'm how/why this fixes the build issue, but its

[PATCH] D62298: [CodeComplete] Filter override completions by function name

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Sorry for so many changes, this is ready for review now! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62298/new/ https://reviews.llvm.org/D62298 ___ cfe-commits mailing

[PATCH] D62298: [CodeComplete] Filter override completions by function name

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 200927. ilya-biryukov added a comment. - Simplify negative tests a bit Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62298/new/ https://reviews.llvm.org/D62298 Files:

[PATCH] D60455: [SYCL] Implement SYCL device code outlining

2019-05-23 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. //**Design question**//: since you are not aware what functions are to be run on a device while parsing them, at what point do you plan to diagnose the invalid behavior from the standard C++ i.e. using function pointers in kernel code is likely to cause issues? Also

[PATCH] D62197: [OpenCL] Fix file-scope const sampler variable for 2.0

2019-05-23 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. Makes sense. LGTM! Thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62197/new/ https://reviews.llvm.org/D62197 ___

[clang-tools-extra] r361488 - [clangd] Also update package-lock.json

2019-05-23 Thread Kadir Cetinkaya via cfe-commits
Author: kadircet Date: Thu May 23 05:02:14 2019 New Revision: 361488 URL: http://llvm.org/viewvc/llvm-project?rev=361488=rev Log: [clangd] Also update package-lock.json Modified: clang-tools-extra/trunk/clangd/clients/clangd-vscode/package-lock.json Modified:

[PATCH] D61386: [clang-tidy] Add support writing a check as a Transformer rewrite rule.

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp:46 + + StringRef Message = "no explanation"; + if (Case.Explanation) { ymandel wrote: > ilya-biryukov wrote: > > ymandel wrote: > > >

clang extra refactor tweaks link patch

2019-05-23 Thread Rudolf Kastl via cfe-commits
A pretty trivial patch to successfully build clang. --- clang-r361395/tools/extra/clangd/refactor/tweaks/CMakeLists.txt.old 2019-05-23 06:35:07.247867697 +0200 +++ clang-r361395/tools/extra/clangd/refactor/tweaks/CMakeLists.txt 2019-05-23 06:35:59.810341911 +0200 @@ -19,4 +19,5 @@ clangAST

Re: clang extra refactor tweaks link patch

2019-05-23 Thread Roman Lebedev via cfe-commits
It might be best to submit the patch to phabricator so it does not get lost. https://llvm.org/docs/Phabricator.html On Thu, May 23, 2019 at 3:13 PM Rudolf Kastl via cfe-commits wrote: > > A pretty trivial patch to successfully build clang. > ___ >

[PATCH] D61386: [clang-tidy] Add support writing a check as a Transformer rewrite rule.

2019-05-23 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel marked 2 inline comments as done. ymandel added inline comments. Comment at: clang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp:46 + + StringRef Message = "no explanation"; + if (Case.Explanation) { ilya-biryukov wrote: > ymandel wrote: >

Re: [PATCH] D61774: [LibTooling] Add RangeSelector library for defining source ranges based on bound AST nodes.

2019-05-23 Thread Yitzhak Mandelbaum via cfe-commits
Given that we'll need to store the function reference, is llvm::function_ref still the way to go? The comments seem to warn away from storing function_refs. On Thu, May 23, 2019 at 11:06 AM Yitzhak Mandelbaum wrote: > Sounds good. I'll send a fix shortly. Found another bug too (captured a >

Re: [PATCH] D61774: [LibTooling] Add RangeSelector library for defining source ranges based on bound AST nodes.

2019-05-23 Thread Ilya Biryukov via cfe-commits
Maybe go with a runtime parameter (of type llvm::function_ref) instead of the template parameter? In any non-trivial example, the runtime costs of another function pointer should be negligible given that we need to parse the ASTs, run the matchers, etc. On Wed, May 22, 2019 at 10:48 PM Penzin,

Re: clang extra refactor tweaks link patch

2019-05-23 Thread Rudolf Kastl via cfe-commits
did: https://reviews.llvm.org/D62309 Am Do., 23. Mai 2019 um 14:44 Uhr schrieb Roman Lebedev : > > It might be best to submit the patch to phabricator so it does not get lost. > https://llvm.org/docs/Phabricator.html > > On Thu, May 23, 2019 at 3:13 PM Rudolf Kastl via cfe-commits > wrote: > > >

[PATCH] D62320: Fix LLVM_LINK_LLVM_DYLIB build after rC361285

2019-05-23 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel accepted this revision. ymandel added a comment. This revision is now accepted and ready to land. Thanks for fixing this. Might want to wait for Nico's response, though, since the original change was at his suggestion. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

r361502 - Work around a Visual C++ bug.

2019-05-23 Thread Paul Robinson via cfe-commits
Author: probinson Date: Thu May 23 08:07:46 2019 New Revision: 361502 URL: http://llvm.org/viewvc/llvm-project?rev=361502=rev Log: Work around a Visual C++ bug. Using a static function as a template parameter gets a bogus compile-time error with Visual Studio 2017, prior to version 15.8. Our

[clang-tools-extra] r361486 - [clangd] Bump vscode extension version

2019-05-23 Thread Kadir Cetinkaya via cfe-commits
Author: kadircet Date: Thu May 23 04:58:03 2019 New Revision: 361486 URL: http://llvm.org/viewvc/llvm-project?rev=361486=rev Log: [clangd] Bump vscode extension version Modified: clang-tools-extra/trunk/clangd/clients/clangd-vscode/package.json Modified:

[PATCH] D58033: Add option for emitting dbg info for call site parameters

2019-05-23 Thread Djordje Todorovic via Phabricator via cfe-commits
djtodoro updated this revision to Diff 200943. djtodoro added a comment. -Add a negative test for -O0 CHANGES SINCE LAST ACTION https://reviews.llvm.org/D58033/new/ https://reviews.llvm.org/D58033 Files: include/clang/Basic/CodeGenOptions.def include/clang/Driver/CC1Options.td

Re: [PATCH] D61774: [LibTooling] Add RangeSelector library for defining source ranges based on bound AST nodes.

2019-05-23 Thread Yitzhak Mandelbaum via cfe-commits
Actually, someone already committed a fix: https://reviews.llvm.org/D62202 I can still make this change if it seems worthwhile, but its not strictly necessary at this point. On Thu, May 23, 2019 at 11:14 AM Yitzhak Mandelbaum wrote: > Given that we'll need to store the function reference, is >

[PATCH] D58035: [clang/DIVar] Emit flag for params that have unchanged values

2019-05-23 Thread Djordje Todorovic via Phabricator via cfe-commits
djtodoro updated this revision to Diff 200950. djtodoro added a comment. -Add `SPDefCache` to speed up the process -Add additional assertions that will improve quality of the code CHANGES SINCE LAST ACTION https://reviews.llvm.org/D58035/new/ https://reviews.llvm.org/D58035 Files:

[PATCH] D62298: [CodeComplete] Filter override completions by function name

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clang/lib/Sema/SemaCodeComplete.cpp:3166 +// Add a space after return type. +if (Chunk.Kind == CodeCompletionString::CK_ResultType) + Result.AddChunk(CodeCompletionString::CK_HorizontalSpace);

[PATCH] D62202: Work around a Visual C++ bug

2019-05-23 Thread Paul Robinson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL361502: Work around a Visual C++ bug. (authored by probinson, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D60763: Prototype OpenCL BIFs using Tablegen

2019-05-23 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Thanks! Please address the minor nitpicks suggested here in your final commit. Comment at: clang/include/clang/Basic/OpenCLBuiltins.td:16 +// -Builtins.def,

[clang-tools-extra] r361487 - [clang-tidy] New check calling out uses of +new in Objective-C code

2019-05-23 Thread Dmitri Gribenko via cfe-commits
Author: gribozavr Date: Thu May 23 05:01:26 2019 New Revision: 361487 URL: http://llvm.org/viewvc/llvm-project?rev=361487=rev Log: [clang-tidy] New check calling out uses of +new in Objective-C code Summary: Google's Objective-C style guide forbids calling or overriding +new to instantiate

[PATCH] D61350: [clang-tidy] New check calling out uses of +new in Objective-C code

2019-05-23 Thread Dmitri Gribenko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE361487: [clang-tidy] New check calling out uses of +new in Objective-C code (authored by gribozavr, committed by ). Changed prior to commit: https://reviews.llvm.org/D61350?vs=200824=200931#toc

[PATCH] D62309: Fix linking of the refactor tweaks directory

2019-05-23 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. Thank you! Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62309/new/ https://reviews.llvm.org/D62309

[PATCH] D60883: [OpenMP] Avoid emitting maps for target link variables when unified memory is used

2019-05-23 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. Tests? Comment at: lib/CodeGen/CGOpenMPRuntime.h:1628 + /// Return whether the unified_shared_memory has been specified. + virtual bool hasRequiresUnifiedSharedMemory(); }; Do we need to make it virtual? Repository: rC Clang

[PATCH] D62201: [LibTooling] Address post-commit feedback for r361152

2019-05-23 Thread Sam Clegg via Phabricator via cfe-commits
sbc100 added a comment. I think this build broke the `-DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON` build. e.g https://ci.chromium.org/p/wasm/builders/ci/linux/6457 FAILED: tools/clang/unittests/Tooling/ToolingTests : &&

r361507 - Ensure builtins use the target default Calling Convention

2019-05-23 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu May 23 09:05:21 2019 New Revision: 361507 URL: http://llvm.org/viewvc/llvm-project?rev=361507=rev Log: Ensure builtins use the target default Calling Convention r355317 changed builtins/allocation functions to use the default calling convention in order to support

[PATCH] D62312: [ASTImporter] Added visibility context check for CXXRecordDecl.

2019-05-23 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik added a comment. Minor comments, I am going to run `check-lldb` now. Comment at: unittests/AST/ASTImporterVisibilityTest.cpp:34 }; +struct GetClassPattern { + using DeclTy = CXXRecordDecl; `GetCXXRecordPattern` feels more consistent.

[PATCH] D62328: [LibTooling] Fix dangling references in RangeSelector.

2019-05-23 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 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62328/new/ https://reviews.llvm.org/D62328

[PATCH] D62312: [ASTImporter] Added visibility context check for CXXRecordDecl.

2019-05-23 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik accepted this revision. shafik added a comment. This revision is now accepted and ready to land. LGTM Repository: rC Clang CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62312/new/ https://reviews.llvm.org/D62312 ___ cfe-commits

r361516 - [WebAssembly] Add multivalue and tail-call target features

2019-05-23 Thread Thomas Lively via cfe-commits
Author: tlively Date: Thu May 23 10:26:47 2019 New Revision: 361516 URL: http://llvm.org/viewvc/llvm-project?rev=361516=rev Log: [WebAssembly] Add multivalue and tail-call target features Summary: These features will both be implemented soon, so I thought I would save time by adding the

[PATCH] D62047: [WebAssembly] Add multivalue and tail-call target features

2019-05-23 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL361516: [WebAssembly] Add multivalue and tail-call target features (authored by tlively, committed by ). Changed prior to commit: https://reviews.llvm.org/D62047?vs=199941=201010#toc Repository: rL

[PATCH] D62049: [clang-tidy] Add a close-on-exec check on pipe2() in Android module.

2019-05-23 Thread Stephen Hines via Phabricator via cfe-commits
srhines added inline comments. Comment at: clang-tools-extra/test/clang-tidy/android-cloexec-pipe2.cpp:52 + +void e() { + int pipefd[2]; jcai19 wrote: > srhines wrote: > > I'm not all that familiar with writing clang-tidy-specific tests, but > > should these

[PATCH] D62298: [CodeComplete] Filter override completions by function name

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov marked an inline comment as done. ilya-biryukov added a comment. I think that's a good step forward, although not yet ideal. The typed chunk now contains everything starting function name and ending with `override`, so one gets both nice prefix match scores when typing a function

[PATCH] D62298: [CodeComplete] Filter override completions by function name

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. After landing this, will try to add new presentation options for completion items here. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62298/new/ https://reviews.llvm.org/D62298

[PATCH] D62328: [LibTooling] Fix dangling references in RangeSelector.

2019-05-23 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL361514: [LibTooling] Fix dangling references in RangeSelector. (authored by ymandel, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commit:

[PATCH] D62279: Use LTO capable linker

2019-05-23 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. In D62279#1514046 , @winksaville wrote: > I've add gtest_main and gtest to CLANG_BOOTSTRAP_TARGETS as a guess, because > that's where check-all is defined: > ... > My guess is likely wrong, what do you advise? Are you still

r361534 - [NewPassManager] Add tuning option: SLPVectorization [clang-change]

2019-05-23 Thread Alina Sbirlea via cfe-commits
Author: asbirlea Date: Thu May 23 11:51:02 2019 New Revision: 361534 URL: http://llvm.org/viewvc/llvm-project?rev=361534=rev Log: [NewPassManager] Add tuning option: SLPVectorization [clang-change] Summary: NewPassManager is not using CodeGenOpts values before this patch. [to be coupled with

[PATCH] D62328: [LibTooling] Fix dangling references in RangeSelector.

2019-05-23 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel created this revision. ymandel added reviewers: ilya-biryukov, gribozavr. Herald added a project: clang. RangeSelector had a number of cases of capturing a StringRef in a lambda, which lead to dangling references. This change converts all uses in the API of `StringRef` to `std::string` to

r361511 - [Index] Fix reported references in presence of template type aliases

2019-05-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu May 23 09:48:47 2019 New Revision: 361511 URL: http://llvm.org/viewvc/llvm-project?rev=361511=rev Log: [Index] Fix reported references in presence of template type aliases Summary: See the added test for an example. Reviewers: kadircet Reviewed By: kadircet

[clang-tools-extra] r361511 - [Index] Fix reported references in presence of template type aliases

2019-05-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu May 23 09:48:47 2019 New Revision: 361511 URL: http://llvm.org/viewvc/llvm-project?rev=361511=rev Log: [Index] Fix reported references in presence of template type aliases Summary: See the added test for an example. Reviewers: kadircet Reviewed By: kadircet

[PATCH] D62167: CodeView - add static data members to global variable debug info.

2019-05-23 Thread Amy Huang via Phabricator via cfe-commits
akhuang updated this revision to Diff 201004. akhuang added a comment. Add llvm IR test. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62167/new/ https://reviews.llvm.org/D62167 Files: clang/lib/CodeGen/CGDebugInfo.cpp

[PATCH] D62167: CodeView - add static data members to global variable debug info.

2019-05-23 Thread Amy Huang via Phabricator via cfe-commits
akhuang marked an inline comment as done. akhuang added inline comments. Comment at: clang/lib/CodeGen/CGDebugInfo.cpp:4385 +// Use the global scope for static members. +DContext = getContextDescriptor( + cast(CGM.getContext().getTranslationUnitDecl()), TheCU);

[PATCH] D61774: [LibTooling] Add RangeSelector library for defining source ranges based on bound AST nodes.

2019-05-23 Thread Petr Penzin via Phabricator via cfe-commits
penzn marked an inline comment as done. penzn added inline comments. Comment at: cfe/trunk/lib/Tooling/Refactoring/RangeSelector.cpp:229 +RangeSelector tooling::statements(StringRef ID) { + return RelativeSelector(ID); +} penzn wrote: > Sorry for posting here,

[PATCH] D62156: [Sema] Diagnose addr space mismatch while constructing objects

2019-05-23 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia updated this revision to Diff 201011. Anastasia added a comment. - Switched back to loop over all method qualifiers - Moved addr space check into `AddOverloadCandidate` CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62156/new/ https://reviews.llvm.org/D62156 Files:

[PATCH] D62298: [CodeComplete] Filter override completions by function name

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 201000. ilya-biryukov added a comment. Herald added subscribers: arphaman, jkorous. - Make first letter of the helper function lowercase - New model: everything before name is a text chunk, everything after it is typed chunk - Test the filter text

r361510 - [CodeComplete] Only show lambda completions if patterns are requested

2019-05-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu May 23 09:39:26 2019 New Revision: 361510 URL: http://llvm.org/viewvc/llvm-project?rev=361510=rev Log: [CodeComplete] Only show lambda completions if patterns are requested This is a trivial follow-up to r361461, so sending without review. Modified:

Re: [PATCH] D61774: [LibTooling] Add RangeSelector library for defining source ranges based on bound AST nodes.

2019-05-23 Thread Ilya Biryukov via cfe-commits
Either way looks good. If we go with function_ref, we should definitely store a comment why storing function_ref is fine there. Or use a function pointer to make it even clearer that nothing cheesy is going on there. On Thu, May 23, 2019 at 5:28 PM Yitzhak Mandelbaum wrote: > Actually, someone

[PATCH] D62303: [Index] Fix reported references in presence of template type aliases

2019-05-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL361511: [Index] Fix reported references in presence of template type aliases (authored by ibiryukov, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior

[PATCH] D62215: Fixes to distribution example for X86_64 Arch Linux

2019-05-23 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. In D62215#1512849 , @winksaville wrote: > IIRC, on linux if LTO is ON I had to use `ld.gold` for both stage 1 and 2, > although that maybe > just the way it ended up and it wasn't necessary. But I'll test whatever you > come up

[PATCH] D61809: [BPF] Preserve debuginfo array/union/struct type/access index

2019-05-23 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri resigned from this revision. lebedev.ri added a comment. Don't think i will be of any help here. Comment at: test/CodeGen/bpf-offsetreloc.c:2-4 +// RUN: grep "llvm.preserve.struct.access.index" %t1 +// RUN: grep "llvm.preserve.array.access.index" %t1 +// RUN: grep

r361518 - lld-link, clang: Treat non-existent input files as possible spellos for option flags

2019-05-23 Thread Nico Weber via cfe-commits
Author: nico Date: Thu May 23 10:58:33 2019 New Revision: 361518 URL: http://llvm.org/viewvc/llvm-project?rev=361518=rev Log: lld-link, clang: Treat non-existent input files as possible spellos for option flags OptTable treats arguments starting with / that aren't a known option as filenames.

[PATCH] D62276: lld-link, clang: Treat non-existent input files as possible spellos for option flags

2019-05-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLD361518: lld-link, clang: Treat non-existent input files as possible spellos for option… (authored by nico, committed by ). Changed prior to commit:

[PATCH] D61634: [clang/llvm] Allow efficient implementation of libc's memory functions in C/C++

2019-05-23 Thread Guillaume Chatelet via Phabricator via cfe-commits
gchatelet updated this revision to Diff 200998. gchatelet added a comment. - Use no-builtin instead of no-runtime-for. - Use one attribute per runtime function to make merging easier. The patch is still WIP and needs more work. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D59253: [AIX][libcxx] AIX system headers need stdint.h and inttypes.h to be re-enterable when macro _STD_TYPES_T is defined

2019-05-23 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: libcxx/include/stdint.h:16 +#endif // _STD_TYPES_T /* mclow.lists wrote: > I don't think that this will do what you want it to. > Is this a supported use case? > > ``` > #include > #define

[PATCH] D62276: lld-link, clang: Treat non-existent input files as possible spellos for option flags

2019-05-23 Thread Nico Weber via Phabricator via cfe-commits
thakis marked 5 inline comments as done. thakis added a comment. Thanks! Landing with comments addressed. Comment at: clang/include/clang/Basic/DiagnosticDriverKinds.td:177 def warn_drv_unknown_argument_clang_cl_with_suggestion : Warning< - "unknown argument ignored in

[PATCH] D62156: [Sema][PR41730] Diagnose addr space mismatch while constructing objects

2019-05-23 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Sema/Overload.h:977 + +void setDestAS(LangAS AS) { DestAS = AS; } }; Can this assert that `Kind == CSK_InitByConstructor || Kind == CSK_InitByUserDefinedConversion`? Comment at:

[PATCH] D62335: [OpenCL][PR41963] Add overloads of old atomics with generic pointer type in C++ mode

2019-05-23 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia created this revision. Anastasia added a reviewer: svenvh. Herald added subscribers: ebevhan, jfb, yaxunl. The direction is to allow it as an extension to the kernel language 2.0 and above. https://github.com/KhronosGroup/OpenCL-Docs/issues/66 For the published OpenCL C spec there

r361505 - [analyzer][NFC] Prettify some RUN: lines in test files.

2019-05-23 Thread Kristof Umann via cfe-commits
Author: szelethus Date: Thu May 23 08:49:04 2019 New Revision: 361505 URL: http://llvm.org/viewvc/llvm-project?rev=361505=rev Log: [analyzer][NFC] Prettify some RUN: lines in test files. This is a test commit in disguise. Modified: cfe/trunk/test/Analysis/bsd-string.c

[PATCH] D62303: [Index] Fix reported references in presence of template type aliases

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 201002. ilya-biryukov marked 2 inline comments as done. ilya-biryukov added a comment. - Address a comment Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62303/new/ https://reviews.llvm.org/D62303 Files:

[PATCH] D59253: [AIX][libcxx] AIX system headers need stdint.h and inttypes.h to be re-enterable when macro _STD_TYPES_T is defined

2019-05-23 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added inline comments. Comment at: libcxx/include/stdint.h:16 +#endif // _STD_TYPES_T /* I don't think that this will do what you want it to. Is this a supported use case? ``` #include #define _STD_TYPES_T #include ``` Repository: rG LLVM

[PATCH] D62276: lld-link, clang: Treat non-existent input files as possible spellos for option flags

2019-05-23 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. Thanks, this has been a longstanding issue! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62276/new/ https://reviews.llvm.org/D62276 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D62333: Fix unresolved symbols when linking tools/clang/unittests/Tooling/ToolingTests

2019-05-23 Thread Guanzhong Chen via Phabricator via cfe-commits
quantum created this revision. quantum added reviewers: tlively, aheejin. Herald added subscribers: cfe-commits, mgorny. Herald added a project: clang. Add correct cmake dependencies so that `ToolingTests` link successfully. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D62333

[PATCH] D62329: [ASTImporter] Structural eq: handle DependentScopeDeclRefExpr

2019-05-23 Thread Gabor Marton via Phabricator via cfe-commits
martong created this revision. martong added a reviewer: a_sidorin. Herald added subscribers: cfe-commits, gamesh411, Szelethus, dkrupp, rnkovacs. Herald added a reviewer: a.sidorin. Herald added a project: clang. Structural equivalence did not handle dependent template args properly when the arg

[PATCH] D62303: [Index] Fix reported references in presence of template type aliases

2019-05-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clang/lib/Index/IndexTypeSourceInfo.cpp:140 + bool IsTypeAlias) { +if (ResolvedClass) { + // In presence of type aliases, the resolved class was never written in

[PATCH] D61716: [libclang] Expose AtomicType

2019-05-23 Thread Henry Jen via Phabricator via cfe-commits
slowhog edited projects, added clang-c; removed clang. slowhog removed reviewers: yvvan, jbcoe. slowhog added a comment. Herald added a project: clang. Hi, We use libclang in OpenJDK project Panama for a tool, jextract, to read C header files and generate Java bindings. It's critical for us to

[PATCH] D62270: [Driver] Move the "-o OUT -x TYPE SRC.c" flags to the end of -cc1

2019-05-23 Thread Reid Kleckner via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC361530: [Driver] Move the -o OUT -x TYPE SRC.c flags to the end of -cc1 (authored by rnk, committed by ). Changed prior to commit: https://reviews.llvm.org/D62270?vs=200827=201026#toc Repository: rC

r361530 - [Driver] Move the "-o OUT -x TYPE SRC.c" flags to the end of -cc1

2019-05-23 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu May 23 11:35:43 2019 New Revision: 361530 URL: http://llvm.org/viewvc/llvm-project?rev=361530=rev Log: [Driver] Move the "-o OUT -x TYPE SRC.c" flags to the end of -cc1 New -cc1 arguments, such as -faddrsig, have started appearing after the input name. I personally find it

[PATCH] D62279: Use LTO capable linker

2019-05-23 Thread Wink Saville via Phabricator via cfe-commits
winksaville added a comment. Adding libcxxabi worked and `ninja stage2-distribution` succeeded but I then ran `ninja check-all` and from within stage2-bins/ but that failed: [1072/1526] cd

  1   2   >