[PATCH] D34972: [CodeGen] Propagate dllexport to thunks

2017-07-21 Thread David Majnemer via Phabricator via cfe-commits
majnemer added a comment. OK, so we are exporting the thunks so that the linker will generate import thunks for the thunks. I think that we should have a comment to that effect near the code you added. https://reviews.llvm.org/D34972 ___ cfe-commi

[PATCH] D34972: [CodeGen] Propagate dllexport to thunks

2017-07-21 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. Ping. I updated the description based on the email discussion with @majnemer. https://reviews.llvm.org/D34972 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35757: Work around an MSVC2017 update 3 codegen bug.

2017-07-21 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. From what I understand, _MSC_VER changes with each 2017 update. https://reviews.llvm.org/D35757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D34444: Teach codegen to work in incremental processing mode.

2017-07-21 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D3#812836, @v.g.vassilev wrote: > In https://reviews.llvm.org/D3#812418, @rjmccall wrote: > > > In https://reviews.llvm.org/D3#795175, @v.g.vassilev wrote: > > > > > @rjmccall, thanks for the prompt and thorough reply. > > > > > >

[PATCH] D35757: Work around an MSVC2017 update 3 codegen bug.

2017-07-21 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: lib/AST/StmtProfile.cpp:1367 +#if defined(_MSC_VER) && _MSC_VER == 1911 +// Work around https://developercommunity.visualstudio.com/content/problem/84002/clang-cl-when-built-with-vc-2017-crashes-cause-vc.html Is it wo

[PATCH] D35759: [Bash-autocompletion] Show HelpText with possible flags

2017-07-21 Thread Rui Ueyama via Phabricator via cfe-commits
ruiu added inline comments. Comment at: clang/lib/Driver/Driver.cpp:1302 -llvm::outs() << llvm::join(SuggestedCompletions, " ") << '\n'; +llvm::outs() << llvm::join(SuggestedCompletions, "\n") << '\n'; return false; Now that the separator and the t

[PATCH] D35759: [Bash-autocompletion] Show HelpText with possible flags

2017-07-21 Thread Yuka Takahashi via Phabricator via cfe-commits
yamaguchi created this revision. Herald added a subscriber: hiraditya. `clang --autocomplete=-std` will show -std: Language standard to compile for -std= Language standard to compile for -stdlib=C++ standard library to use by this change. However, showing HelpText with complet

[PATCH] D35757: Work around an MSVC2017 update 3 codegen bug.

2017-07-21 Thread Nico Weber via Phabricator via cfe-commits
thakis created this revision. MSVC2017 update 3 produces a clang that crashes when compiling clang. Disabling optimizations for StmtProfiler::VisitCXXOperatorCallExpr() makes the crash go away. Patch from Bruce Dawson ! https://reviews.llvm.org/D35757 Files: lib/AST/StmtProfile.cpp Index

[PATCH] D35755: [Solaris] gcc toolchain handling revamp

2017-07-21 Thread Fedor Sergeev via Phabricator via cfe-commits
fedor.sergeev created this revision. General idea is to utilize generic (mostly Generic_GCC) code and get rid of Solaris-specific handling as much as possible. In particular: - scanLibDirForGCCTripleSolaris was removed, relying on generic CollectLibDirsAndTriples - findBiarchMultilibs is now p

[PATCH] D35577: Add -flookup-tables and -fno-lookup-tables flags

2017-07-21 Thread Eric Christopher via Phabricator via cfe-commits
echristo added a comment. In https://reviews.llvm.org/D35577#817267, @sgundapa wrote: > The discussion is scattered across these patches > https://reviews.llvm.org/D35578 and https://reviews.llvm.org/D35579. > I will provide a brief summary here: > > The idea is to control the generation of dat

[PATCH] D35747: [Driver] Fuchsia defaults to -fno-math-errno

2017-07-21 Thread Petr Hosek via Phabricator via cfe-commits
phosek accepted this revision. phosek added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D35747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

Buildbot numbers for the last of 07/09/2017 - 07/15/2017

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

[clang-tools-extra] r308807 - clangDaemon: Update libdeps in r308738.

2017-07-21 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Fri Jul 21 16:48:26 2017 New Revision: 308807 URL: http://llvm.org/viewvc/llvm-project?rev=308807&view=rev Log: clangDaemon: Update libdeps in r308738. Modified: clang-tools-extra/trunk/clangd/CMakeLists.txt Modified: clang-tools-extra/trunk/clangd/CMakeLists.txt URL:

[PATCH] D35747: [Driver] Fuchsia defaults to -fno-math-errno

2017-07-21 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr updated this revision to Diff 107752. mcgrathr added a comment. test case https://reviews.llvm.org/D35747 Files: lib/Driver/ToolChains/Fuchsia.h test/Driver/fast-math.c Index: test/Driver/fast-math.c === --- test/Dri

[PATCH] D35747: [Driver] Fuchsia defaults to -fno-math-errno

2017-07-21 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr added a comment. Please land it for me when approved. https://reviews.llvm.org/D35747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35747: [Driver] Fuchsia defaults to -fno-math-errno

2017-07-21 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr created this revision. Repository: rL LLVM https://reviews.llvm.org/D35747 Files: lib/Driver/ToolChains/Fuchsia.h Index: lib/Driver/ToolChains/Fuchsia.h === --- lib/Driver/ToolChains/Fuchsia.h +++ lib/Driver/ToolChain

r308800 - [index] Set SymbolSubKind::Accessor[GS]etter on class methods

2017-07-21 Thread Ben Langmuir via cfe-commits
Author: benlangmuir Date: Fri Jul 21 16:04:27 2017 New Revision: 308800 URL: http://llvm.org/viewvc/llvm-project?rev=308800&view=rev Log: [index] Set SymbolSubKind::Accessor[GS]etter on class methods We have the same relation between class properties and getter/setters that we have for instance p

[PATCH] D35746: Make new PM honor -fdebug-info-for-profiling (clang side)

2017-07-21 Thread Dehao Chen via Phabricator via cfe-commits
danielcdh created this revision. Herald added a subscriber: sanjoy. The new PM needs to invoke add-discriminator pass when building with -fdebug-info-for-profiling. https://reviews.llvm.org/D35746 Files: lib/CodeGen/BackendUtil.cpp Index: lib/CodeGen/BackendUtil.cpp ===

[PATCH] D35735: [ubsan] Null-check pointers in -fsanitize=vptr (PR33881)

2017-07-21 Thread Vedant Kumar via Phabricator via cfe-commits
vsk updated this revision to Diff 107741. vsk marked an inline comment as done. vsk added a comment. - Drop 'REQUIRES: asserts'. https://reviews.llvm.org/D35735 Files: docs/UndefinedBehaviorSanitizer.rst include/clang/Basic/DiagnosticDriverKinds.td include/clang/Basic/DiagnosticGroups.td

[PATCH] D35709: Remove Bitrig: CompilerRT Changes

2017-07-21 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308798: Remove Bitrig: CompilerRT Changes (authored by erichkeane). Changed prior to commit: https://reviews.llvm.org/D35709?vs=107606&id=107742#toc Repository: rL LLVM https://reviews.llvm.org/D357

[PATCH] D35743: [clang-format] Handle Structured binding declaration in C++17

2017-07-21 Thread Yan Wang via Phabricator via cfe-commits
yawanng created this revision. yawanng added a project: clang-tools-extra. Herald added a subscriber: klimek. Add handling for Structured binding declaration in C++17 in clang-format. For example: auto [x,y] = a; auto &[xr, yr] = a; auto &&[xrr, yrr] = a; https://reviews.llvm.org/D35743 File

[PATCH] D35739: Fix LLVMgold plugin name/path for non-Linux.

2017-07-21 Thread Dan Albert via Phabricator via cfe-commits
danalbert added a comment. In https://reviews.llvm.org/D35739#817705, @srhines wrote: > It's hard to believe that there is nothing in Support that gives you the > proper suffix for shared libraries. It would seem like this might be useful > elsewhere, but I actually didn't find really any other

[PATCH] D35708: Remove Bitrig: Clang Changes

2017-07-21 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308797: Remove Bitrig: Clang Changes (authored by erichkeane). Changed prior to commit: https://reviews.llvm.org/D35708?vs=107605&id=107740#toc Repository: rL LLVM https://reviews.llvm.org/D35708 F

r308797 - Remove Bitrig: Clang Changes

2017-07-21 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Fri Jul 21 15:46:31 2017 New Revision: 308797 URL: http://llvm.org/viewvc/llvm-project?rev=308797&view=rev Log: Remove Bitrig: Clang Changes Bitrig code has been merged back to OpenBSD, thus the OS has been abandoned. Differential Revision: https://reviews.llvm.org/D3570

[PATCH] D35739: Fix LLVMgold plugin name/path for non-Linux.

2017-07-21 Thread Stephen Hines via Phabricator via cfe-commits
srhines added a comment. Looks great. Thanks for fixing this up. It's hard to believe that there is nothing in Support that gives you the proper suffix for shared libraries. It would seem like this might be useful elsewhere, but I actually didn't find really any other place that wants to use th

[PATCH] D35735: [ubsan] Null-check pointers in -fsanitize=vptr (PR33881)

2017-07-21 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added inline comments. Comment at: test/CodeGenCXX/ubsan-devirtualized-calls.cpp:1 -// RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_triple -emit-llvm -fsanitize=vptr %s -o - | FileCheck %s +// REQUIRES: asserts +// RUN: %clang_cc1 -std=c++11 -triple %itanium_abi_tripl

[PATCH] D35729: [Frontend] - Mark some ASTUnit methods as const

2017-07-21 Thread Vedant Kumar via Phabricator via cfe-commits
vsk accepted this revision. vsk added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D35729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[PATCH] D35739: Fix LLVMgold plugin name/path for non-Linux.

2017-07-21 Thread Dan Albert via Phabricator via cfe-commits
danalbert created this revision. It's only named LLVMgold.so on Linux. Fix the name for Windows and Darwin. Also fix the path for Windows so binutils doesn't have to. Repository: rL LLVM https://reviews.llvm.org/D35739 Files: lib/Driver/ToolChains/CommonArgs.cpp Index: lib/Drive

[PATCH] D35701: Break up Targets.cpp into a header/impl pair per target type[NFCI]

2017-07-21 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. LGTM https://reviews.llvm.org/D35701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r308783 - Inline variable into assert to fix unused warning.

2017-07-21 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Jul 21 14:29:35 2017 New Revision: 308783 URL: http://llvm.org/viewvc/llvm-project?rev=308783&view=rev Log: Inline variable into assert to fix unused warning. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.or

r308782 - [Hexagon] Attempt to fix selfhost bots

2017-07-21 Thread Krzysztof Parzyszek via cfe-commits
Author: kparzysz Date: Fri Jul 21 14:23:05 2017 New Revision: 308782 URL: http://llvm.org/viewvc/llvm-project?rev=308782&view=rev Log: [Hexagon] Attempt to fix selfhost bots The codegen testcase was checking for specific value names. Make it ignore the names instead as they are irrelevant. Modi

[PATCH] D35701: Break up Targets.cpp into a header/impl pair per target type[NFCI]

2017-07-21 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. Please recheck all the cpp file headers. Many of them aren't 80 columns and they should probably mention the target the way the header comments do. Right now it looks like a copy and paste from Targets.cpp with only the file name changed. Clang format seems to hav

[PATCH] D35736: [ubsan] -fsanitize=vptr now requires -fsanitize=null, update tests

2017-07-21 Thread Vedant Kumar via Phabricator via cfe-commits
vsk created this revision. Herald added a subscriber: kubamracek. See: https://bugs.llvm.org/show_bug.cgi?id=33881 Depends on https://reviews.llvm.org/D35735 https://reviews.llvm.org/D35736 Files: test/ubsan/TestCases/TypeCheck/PR33221.cpp test/ubsan/TestCases/TypeCheck/vptr-corrupted-vtab

[PATCH] D35735: [ubsan] Null-check pointers in -fsanitize=vptr (PR33881)

2017-07-21 Thread Vedant Kumar via Phabricator via cfe-commits
vsk created this revision. The instrumentation generated by -fsanitize=vptr does not null check a user pointer before loading from it. This causes crashes in the face of UB member calls (this=nullptr), i.e it causes user programs to crash only after UBSan is turned on. The fix is to make run-time

[PATCH] D35701: Break up Targets.cpp into a header/impl pair per target type[NFCI]

2017-07-21 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D35701#817526, @echristo wrote: > I'm going to say this ahead of time without looking into it "LGTM", but wait > for ctopper (or someone else) to ack it for style etc since I'm unlikely to > get to it any time shortly. :) > > Also, make su

r308777 - Fix tblgen error

2017-07-21 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Jul 21 13:32:22 2017 New Revision: 308777 URL: http://llvm.org/viewvc/llvm-project?rev=308777&view=rev Log: Fix tblgen error Add Heading string to attribute documentation. Modified: cfe/trunk/include/clang/Basic/AttrDocs.td Modified: cfe/trunk/include/clang/Basic/At

[PATCH] D35701: Break up Targets.cpp into a header/impl pair per target type[NFCI]

2017-07-21 Thread Eric Christopher via Phabricator via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. I'm going to say this ahead of time without looking into it "LGTM", but wait for ctopper (or someone else) to ack it for style etc since I'm unlikely to get to it any time shortly. :) Als

[PATCH] D35577: Add -flookup-tables and -fno-lookup-tables flags

2017-07-21 Thread Sumanth Gundapaneni via Phabricator via cfe-commits
sgundapa added a comment. This is not going to be a temporary option https://reviews.llvm.org/D35577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35732: Update system_error tests for more platforms.

2017-07-21 Thread Dan Albert via Phabricator via cfe-commits
danalbert created this revision. Old versions of Android used the "Unknown error: -1" format. Repository: rL LLVM https://reviews.llvm.org/D35732 Files: test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp test/std/diagnostics/syserr/syserr.errcat/s

Re: [PATCH] D35715: Preserve typedef names in debug info for template type parameters

2017-07-21 Thread David Blaikie via cfe-commits
On Fri, Jul 21, 2017 at 12:57 PM David Blaikie wrote: > On Fri, Jul 21, 2017 at 11:34 AM David Majnemer via Phabricator < > revi...@reviews.llvm.org> wrote: > >> majnemer added a comment. >> >> This might be a silly question but why not do this by default? >> > > I'd hazard a guess that GDB would

Re: [PATCH] D35715: Preserve typedef names in debug info for template type parameters

2017-07-21 Thread David Blaikie via cfe-commits
On Fri, Jul 21, 2017 at 11:34 AM David Majnemer via Phabricator < revi...@reviews.llvm.org> wrote: > majnemer added a comment. > > This might be a silly question but why not do this by default? > I'd hazard a guess that GDB wouldn't cope well with this (in terms of identifying templates as the sa

New buildbot admin

2017-07-21 Thread Galina Kistanova via cfe-commits
Hello everyone, I'm going on vacation starting from the next week. I will be traveling, so likely will be slow with my e-mails. Please feel free to contact Victor Leschuk with the questions or request related to the LLVM Lab and the buildbot infrastructure. Thanks Galina ___

r308773 - [OPENMP] Fix build problem, NFC.

2017-07-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 21 12:26:22 2017 New Revision: 308773 URL: http://llvm.org/viewvc/llvm-project?rev=308773&view=rev Log: [OPENMP] Fix build problem, NFC. Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp Modified: cfe/trunk/lib/Sema/SemaOpenMP.cpp URL: http://llvm.org/viewvc/llvm-pro

r308771 - [OPENMP] Add ast-print tests for in_reduction clause, NFC.

2017-07-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 21 11:55:46 2017 New Revision: 308771 URL: http://llvm.org/viewvc/llvm-project?rev=308771&view=rev Log: [OPENMP] Add ast-print tests for in_reduction clause, NFC. Modified: cfe/trunk/test/OpenMP/taskloop_ast_print.cpp cfe/trunk/test/OpenMP/taskloop_simd_ast_p

r308769 - Complex Long Double classification In RegCall calling convention

2017-07-21 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Fri Jul 21 11:50:36 2017 New Revision: 308769 URL: http://llvm.org/viewvc/llvm-project?rev=308769&view=rev Log: Complex Long Double classification In RegCall calling convention This change is part of the RegCall calling convention support for LLVM. Existing RegCall imple

[PATCH] D35259: Complex Long Double classification In RegCall calling convention

2017-07-21 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308769: Complex Long Double classification In RegCall calling convention (authored by erichkeane). Changed prior to commit: https://reviews.llvm.org/D35259?vs=107667&id=107696#toc Repository: rL LLVM

r308768 - [OPENMP] Initial support for 'in_reduction' clause.

2017-07-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 21 11:48:21 2017 New Revision: 308768 URL: http://llvm.org/viewvc/llvm-project?rev=308768&view=rev Log: [OPENMP] Initial support for 'in_reduction' clause. Parsing/sema analysis for 'in_reduction' clause for task-based directives. Added: cfe/trunk/test/OpenMP/ta

[PATCH] D35715: Preserve typedef names in debug info for template type parameters

2017-07-21 Thread David Majnemer via Phabricator via cfe-commits
majnemer added a comment. This might be a silly question but why not do this by default? https://reviews.llvm.org/D35715 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r308763 - [Hexagon] Add inline-asm constraint 'a' for modifier register class

2017-07-21 Thread Krzysztof Parzyszek via cfe-commits
Author: kparzysz Date: Fri Jul 21 11:07:15 2017 New Revision: 308763 URL: http://llvm.org/viewvc/llvm-project?rev=308763&view=rev Log: [Hexagon] Add inline-asm constraint 'a' for modifier register class For example asm ("memw(%0++%1) = %2" : : "r"(addr),"a"(mod),"r"(val) : "memory") Modified:

[PATCH] D35259: Complex Long Double classification In RegCall calling convention

2017-07-21 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm https://reviews.llvm.org/D35259 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D35729: [Frontend] - Mark some ASTUnit methods as const

2017-07-21 Thread Hamza Sood via Phabricator via cfe-commits
hamzasood created this revision. While using the libtooling API, I ran into problems when using a const ASTUnit. There were a few functions I needed to use that don't seem to modify anything, but they weren't marked as const so I couldn't use them. This patch marks those methods (and a few othe

[PATCH] D35701: Break up Targets.cpp into a header/impl pair per target type[NFCI]

2017-07-21 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: lib/Basic/Targets/OSTargets.h:13 + +//===--===// +// Defines specific to certain operating systems. craig.topper wrote: > This comment seems somewhat

[PATCH] D35701: Break up Targets.cpp into a header/impl pair per target type[NFCI]

2017-07-21 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: lib/Basic/Targets/OSTargets.h:13 + +//===--===// +// Defines specific to certain operating systems. This comment seems somewhat redundant with the

r308759 - [OPENMP] Simplify analysis of data-sharing attributes.

2017-07-21 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Fri Jul 21 10:24:30 2017 New Revision: 308759 URL: http://llvm.org/viewvc/llvm-project?rev=308759&view=rev Log: [OPENMP] Simplify analysis of data-sharing attributes. Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td cfe/trunk/lib/Sema/SemaOpenMP.cpp

[PATCH] D35701: Break up Targets.cpp into a header/impl pair per target type[NFCI]

2017-07-21 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. I think we should drop "using namespace llvm;" from the cpp files. clang doesn't usually do that except in codegen and it doesn't look like it was required in the original Targets.cpp. https://reviews.llvm.org/D35701

[PATCH] D35726: unguarded availability: add a fixit for the "annotate '...' with an availability attribute to silence" note

2017-07-21 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. Thanks for working on this! This looks like it would be very useful. Comment at: lib/Sema/SemaDeclAttr.cpp:7230 +return; + for (const auto &M : S.getPreprocessor().macros()) { +if (M.first->getName() != "API_AVAILABLE")

[PATCH] D35715: Preserve typedef names in debug info for template type parameters

2017-07-21 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added inline comments. Comment at: include/clang/AST/TemplateBase.h:109-111 +// This is the type that most closely resembles what is in the source. +// At the moment it is retaining typedefs, but not decltype or typeof. +uintptr_t DisplayType; ---

r308744 - Test commit

2017-07-21 Thread Andrey Kasaurov via cfe-commits
Author: kasaurov Date: Fri Jul 21 08:24:37 2017 New Revision: 308744 URL: http://llvm.org/viewvc/llvm-project?rev=308744&view=rev Log: Test commit Modified: cfe/trunk/lib/Driver/ToolChains/AMDGPU.cpp Modified: cfe/trunk/lib/Driver/ToolChains/AMDGPU.cpp URL: http://llvm.org/viewvc/llvm-proje

[PATCH] D35726: unguarded availability: add a fixit for the "annotate '...' with an availability attribute to silence" note

2017-07-21 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. The fixit is given only if the `API_AVAILABLE` macro is defined. Repository: rL LLVM https://reviews.llvm.org/D35726 Files: lib/Sema/SemaDeclAttr.cpp test/FixIt/fixit-availability.c test/FixIt/fixit-availability.mm Index: test/FixIt/fixit-availability.

[PATCH] D35577: Add -flookup-tables and -fno-lookup-tables flags

2017-07-21 Thread Sumanth Gundapaneni via Phabricator via cfe-commits
sgundapa added a comment. The discussion is scattered across these patches https://reviews.llvm.org/D35578 and https://reviews.llvm.org/D35579. I will provide a brief summary here: The idea is to control the generation of data (lookup table) generated from a function, specifically when the user

r308741 - Test commit

2017-07-21 Thread Nikolay Haustov via cfe-commits
Author: nhaustov Date: Fri Jul 21 06:58:11 2017 New Revision: 308741 URL: http://llvm.org/viewvc/llvm-project?rev=308741&view=rev Log: Test commit Modified: cfe/trunk/lib/Driver/ToolChains/AMDGPU.cpp Modified: cfe/trunk/lib/Driver/ToolChains/AMDGPU.cpp URL: http://llvm.org/viewvc/llvm-proje

[PATCH] D35259: Complex Long Double classification In RegCall calling convention

2017-07-21 Thread Elizabeth Andrews via Phabricator via cfe-commits
eandrews updated this revision to Diff 107667. eandrews added a comment. Regcall-specific checks for Lin64 now occur only if CXXABI returns false. An existing test has also been modified to verify behavior with non trivial destructors. https://reviews.llvm.org/D35259 Files: lib/CodeGen/Targ

[PATCH] D35406: [clangd] Replace ASTUnit with manual AST management.

2017-07-21 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308738: [clangd] Replace ASTUnit with manual AST management. (authored by ibiryukov). Changed prior to commit: https://reviews.llvm.org/D35406?vs=107475&id=107666#toc Repository: rL LLVM https://rev

[clang-tools-extra] r308738 - [clangd] Replace ASTUnit with manual AST management.

2017-07-21 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jul 21 06:29:29 2017 New Revision: 308738 URL: http://llvm.org/viewvc/llvm-project?rev=308738&view=rev Log: [clangd] Replace ASTUnit with manual AST management. Summary: This refactoring does not aim to introduce any significant changes to the behaviour of clangd to ke

r308737 - [clang-diff] Get rid of unused variable warnings in ASTDiff.cpp

2017-07-21 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jul 21 06:18:51 2017 New Revision: 308737 URL: http://llvm.org/viewvc/llvm-project?rev=308737&view=rev Log: [clang-diff] Get rid of unused variable warnings in ASTDiff.cpp Modified: cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp Modified: cfe/trunk/lib/Tooling/ASTDiff/A

r308735 - Clang's tests should depend on clang-diff

2017-07-21 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jul 21 06:12:01 2017 New Revision: 308735 URL: http://llvm.org/viewvc/llvm-project?rev=308735&view=rev Log: Clang's tests should depend on clang-diff Modified: cfe/trunk/test/CMakeLists.txt Modified: cfe/trunk/test/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-p

r308734 - Fix another compiler error from r308731

2017-07-21 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jul 21 06:04:57 2017 New Revision: 308734 URL: http://llvm.org/viewvc/llvm-project?rev=308734&view=rev Log: Fix another compiler error from r308731 std::pair in emplace back couldn't be constructed because SNodeId has an explicit constructor. Not sure how this even comp

r308733 - Fix tuple construction compiler error from r308731

2017-07-21 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jul 21 05:57:40 2017 New Revision: 308733 URL: http://llvm.org/viewvc/llvm-project?rev=308733&view=rev Log: Fix tuple construction compiler error from r308731 Modified: cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp Modified: cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp UR

[PATCH] D34329: [clang-diff] Initial implementation.

2017-07-21 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308731: [clang-diff] Add initial implementation (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D34329?vs=105161&id=107661#toc Repository: rL LLVM https://reviews.llvm.org/

r308731 - [clang-diff] Add initial implementation

2017-07-21 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jul 21 05:49:28 2017 New Revision: 308731 URL: http://llvm.org/viewvc/llvm-project?rev=308731&view=rev Log: [clang-diff] Add initial implementation This is the first commit for the "Clang-based C/C++ diff tool" GSoC project. ASTDiff is a new library that computes a str

[PATCH] D35718: [clang-tidy] Do not issue fixit for explicit template specializations

2017-07-21 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: test/clang-tidy/performance-unnecessary-value-param.cpp:358 +void templateFunction(ExpensiveToCopyType E) { + // CHECK-MESSAGES: [[@LINE-1]]:64: wa

[PATCH] D35406: [clangd] Replace ASTUnit with manual AST management.

2017-07-21 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir accepted this revision. krasimir added a comment. This revision is now accepted and ready to land. Looks good! https://reviews.llvm.org/D35406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[PATCH] D31326: Add option to export fixes to run-clang-tidy.py

2017-07-21 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Committed as r308726. Thank you for the contribution! One note for the future: the patch doesn't contain repository-based paths, so I had to apply it manually. There's a good documentation at http://llvm.org/docs/Phabricator.html, which you could follow to create the p

[PATCH] D31326: Add option to export fixes to run-clang-tidy.py

2017-07-21 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308726: [clang-tidy] Add option to export fixes to run-clang-tidy.py (authored by alexfh). Changed prior to commit: https://reviews.llvm.org/D31326?vs=107633&id=107650#toc Repository: rL LLVM https:

[clang-tools-extra] r308726 - [clang-tidy] Add option to export fixes to run-clang-tidy.py

2017-07-21 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Jul 21 03:31:26 2017 New Revision: 308726 URL: http://llvm.org/viewvc/llvm-project?rev=308726&view=rev Log: [clang-tidy] Add option to export fixes to run-clang-tidy.py This patch adds the option to keep the list of proposed fixes even though they should not be applied.

[PATCH] D35485: [clang-format] Fix comment levels between '}' and PPDirective

2017-07-21 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308725: [clang-format] Fix comment levels between '}' and PPDirective (authored by krasimir). Repository: rL LLVM https://reviews.llvm.org/D35485 Files: cfe/trunk/lib/Format/UnwrappedLineParser.cpp

r308725 - [clang-format] Fix comment levels between '}' and PPDirective

2017-07-21 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Fri Jul 21 03:26:13 2017 New Revision: 308725 URL: http://llvm.org/viewvc/llvm-project?rev=308725&view=rev Log: [clang-format] Fix comment levels between '}' and PPDirective Summary: This fixes a regression exposed by r307795 in which the level of a comment line between '}'

[PATCH] D31326: Add option to export fixes to run-clang-tidy.py

2017-07-21 Thread Michael F. Herbst via Phabricator via cfe-commits
mfherbst added a comment. Many thanks! https://reviews.llvm.org/D31326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D34329: [clang-diff] Initial implementation.

2017-07-21 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. I'll commit this on behalf of Johannes today as he didn't get his access yet https://reviews.llvm.org/D34329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31326: Add option to export fixes to run-clang-tidy.py

2017-07-21 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. I'll commit the patch for you https://reviews.llvm.org/D31326 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

[PATCH] D35427: [clang] Fix handling of "%zd" format specifier

2017-07-21 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. Thanks for fixing this long-standing TODO :-) Repository: rL LLVM https://reviews.llvm.org/D35427 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r308722 - Fixed failing assert in code completion.

2017-07-21 Thread Alex L via cfe-commits
Hans, can you please merge this to the LLVM 5.0 branch? AFAIK It's a recent regression that should get fixed in LLVM 5.0. Cheers, Alex On 21 July 2017 at 10:24, Ilya Biryukov via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ibiryukov > Date: Fri Jul 21 02:24:00 2017 > New Revision

[PATCH] D35557: clang-format: merge short case labels with trailing comments

2017-07-21 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added inline comments. Comment at: lib/Format/UnwrappedLineFormatter.cpp:405 +for (; J != E; ++J) { + const AnnotatedLine *Line = J[0]; + if (Line->InPPDirective != InPPDirective) I'd change `J[0]` to `*J` and rename `Line` to s

[PATCH] D35682: Fixed failing assert in code completion.

2017-07-21 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308722: Fixed failing assert in code completion. (authored by ibiryukov). Repository: rL LLVM https://reviews.llvm.org/D35682 Files: cfe/trunk/lib/Sema/SemaCodeComplete.cpp cfe/trunk/test/CodeComp

r308722 - Fixed failing assert in code completion.

2017-07-21 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jul 21 02:24:00 2017 New Revision: 308722 URL: http://llvm.org/viewvc/llvm-project?rev=308722&view=rev Log: Fixed failing assert in code completion. Summary: The code was accessing uninstantiated default argument. This resulted in failing assertion at ParmVarDecl::getD

[PATCH] D35485: [clang-format] Fix comment levels between '}' and PPDirective

2017-07-21 Thread Daniel Jasper via Phabricator via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D35485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D35682: Fixed failing assert in code completion.

2017-07-21 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir accepted this revision. krasimir added a comment. This revision is now accepted and ready to land. Looks good! https://reviews.llvm.org/D35682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[PATCH] D35674: [analyzer] Treat C++ throw as sink during CFG-based suppress-on-sink.

2017-07-21 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. One minor nit, otherwise looks good to me. Comment at: lib/StaticAnalyzer/Core/BugReporter.cpp: +})) { + // Throw-expressions are currently generating sinks during symbolic + // execution: they'r

[PATCH] D35673: [analyzer] A better CFG-based suppress-on-sink.

2017-07-21 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin accepted this revision. a.sidorin added a comment. This revision is now accepted and ready to land. Just a minor nit. Comment at: lib/StaticAnalyzer/Core/BugReporter.cpp:3332 + +if (Visited.count(Blk)) { + // We've encountered a loop. We won't see anything ne

[clang-tools-extra] r308721 - [clangd] Specified --gcc-toolchain explicitly in VFS test.

2017-07-21 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jul 21 01:20:47 2017 New Revision: 308721 URL: http://llvm.org/viewvc/llvm-project?rev=308721&view=rev Log: [clangd] Specified --gcc-toolchain explicitly in VFS test. In order to avoid platform-specific configuration quirks. (Possible fix for https://bugs.llvm.org/show

Re: r308641 - [Docs] Regenerate the command line option reference.

2017-07-21 Thread Hans Wennborg via cfe-commits
Thanks for the reminder! I regenerated on the branch in r308720. Cheers, Hans On Thu, Jul 20, 2017 at 7:59 PM, Craig Topper wrote: > Hans, > > This needs to be ported to the 5.0 branch. Not sure if any new options have > been added to 6.0 since the branch that would make this patch not correct.

[PATCH] D35674: [analyzer] Treat C++ throw as sink during CFG-based suppress-on-sink.

2017-07-21 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin accepted this revision. a.sidorin added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D35674 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[PATCH] D35485: [clang-format] Fix comment levels between '}' and PPDirective

2017-07-21 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. @djasper: ping https://reviews.llvm.org/D35485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r308719 - [mips] Add `short_call` to the set of `long_call/far/near` attributes

2017-07-21 Thread Simon Atanasyan via cfe-commits
Author: atanasyan Date: Fri Jul 21 01:10:57 2017 New Revision: 308719 URL: http://llvm.org/viewvc/llvm-project?rev=308719&view=rev Log: [mips] Add `short_call` to the set of `long_call/far/near` attributes MIPS gcc supports `long_call/far/near` attributes only, but other targets have the `short_c