[PATCH] D47616: [CFG] [analyzer] Explain copy elision through construction contexts.

2018-06-12 Thread Henry Wong via Phabricator via cfe-commits
MTC added inline comments. Herald added a subscriber: mikhail.ramalho. Comment at: include/clang/Analysis/ConstructionContext.h:351 + + explicit SimpleTemporaryObjectConstructionContext( + const CXXBindTemporaryExpr *BTE, const MaterializeTemporaryExpr *MTE) ---

[libcxx] r334477 - [CMake] Use common variable for all header targets NFC

2018-06-12 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Jun 11 23:58:06 2018 New Revision: 334477 URL: http://llvm.org/viewvc/llvm-project?rev=334477&view=rev Log: [CMake] Use common variable for all header targets NFC This simplifies the handling of header targets. Modified: libcxx/trunk/cmake/Modules/HandleLibCXXABI.cma

[PATCH] D45532: [StaticAnalyzer] Checker to find uninitialized fields after a constructor call

2018-06-12 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 150899. Szelethus added a comment. Polite ping :) This diff fixed a minor issue in FieldChainInfo's constructor. https://reviews.llvm.org/D45532 Files: include/clang/StaticAnalyzer/Checkers/Checkers.td lib/StaticAnalyzer/Checkers/CMakeLists.txt lib

[PATCH] D48063: [clang-format] Discourage breaks in submessage entries, hard rule

2018-06-12 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Herald added a subscriber: cfe-commits. This is an alternative to https://reviews.llvm.org/D48034. Repository: rC Clang https://reviews.llvm.org/D48063 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestTextProto.cpp Index: unittests/Format/

[clang-tools-extra] r334485 - [clangd] Support proximity paths in index fuzzy find.

2018-06-12 Thread Eric Liu via cfe-commits
Author: ioeric Date: Tue Jun 12 01:48:20 2018 New Revision: 334485 URL: http://llvm.org/viewvc/llvm-project?rev=334485&view=rev Log: [clangd] Support proximity paths in index fuzzy find. Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, cfe-commits Differential Revision: https:

[PATCH] D47937: [clangd] Support proximity paths in index fuzzy find.

2018-06-12 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334485: [clangd] Support proximity paths in index fuzzy find. (authored by ioeric, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D47937 Files:

[PATCH] D46024: [clang-format] Add SpaceBeforeCpp11BracedList option.

2018-06-12 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. In https://reviews.llvm.org/D46024#1121242, @rkirsling wrote: > FWIW, please note that this space-before-brace style is not specific to > WebKit; CppCoreGuidelines exhibits it as well: > > http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#es23-prefer-the--initia

[PATCH] D47829: [Driver] Accept the -fno-shrink-wrap option for GCC compatibility

2018-06-12 Thread Simon Dardis via Phabricator via cfe-commits
sdardis updated this revision to Diff 150904. sdardis added a comment. Modify implementation to produce a function attribute. Repository: rC Clang https://reviews.llvm.org/D47829 Files: include/clang/Driver/Options.td include/clang/Frontend/CodeGenOptions.def lib/CodeGen/CodeGenFunctio

[PATCH] D47946: [ASTmporter] Fix infinite recursion on function import with struct definition in parameters

2018-06-12 Thread Zoltán Gera via Phabricator via cfe-commits
gerazo added a comment. In https://reviews.llvm.org/D47946#1127679, @balazske wrote: > Problem: This change interferes with https://reviews.llvm.org/D47445. > Probably that should be committed, it is approved already. Ok. I'll wait for the other thing to be committed and I will rework this im

r334489 - [AArch64] Corrected FP16 Intrinsic range checks in Clang + added Sema tests

2018-06-12 Thread Luke Geeson via cfe-commits
Author: lukegeeson Date: Tue Jun 12 02:54:27 2018 New Revision: 334489 URL: http://llvm.org/viewvc/llvm-project?rev=334489&view=rev Log: [AArch64] Corrected FP16 Intrinsic range checks in Clang + added Sema tests Summary: This fixes the ranges for the vcvth family of FP16 intrinsics in the clang

[PATCH] D47592: [AArch64] Corrected FP16 Intrinsic range checks in Clang + added Sema tests

2018-06-12 Thread Luke Geeson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. LukeGeeson marked an inline comment as done. Closed by commit rL334489: [AArch64] Corrected FP16 Intrinsic range checks in Clang + added Sema tests (authored by LukeGeeson, committed by ). Herald added a subscriber: llvm-com

[PATCH] D48068: [clangd] Move caching of compile args out of ClangdServer.

2018-06-12 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: jkorous, MaskRay, ioeric, mgorny. Caching is now handled by ClangdLSPServer and hidden behind the GlobalCompilationDatabase interface. This simplifies ClangdServer. No behavioral changes are

[PATCH] D48068: [clangd] Move caching of compile args out of ClangdServer.

2018-06-12 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. After looking at it more closely, it seems caching happens in the underlying compilation databases anyway. So I guess we don't even need the `CachingCompilationDatabase`. I'll remove it. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48068 ___

[PATCH] D48068: [clangd] Move caching of compile args out of ClangdServer.

2018-06-12 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 150917. ilya-biryukov added a comment. - Remove CachingCompilationDb Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48068 Files: clangd/CMakeLists.txt clangd/ClangdLSPServer.cpp clangd/ClangdLSPServer.h clangd/ClangdServer.cpp

[PATCH] D48068: [clangd] Move caching of compile args out of ClangdServer.

2018-06-12 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 150920. ilya-biryukov added a comment. - Revert "Remove CachingCompilationDb". Turns out we do need it internally (Thanks, Sam!) :-) Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48068 Files: clangd/CMakeLists.txt clangd/ClangdL

[PATCH] D47829: [Driver] Accept the -fno-shrink-wrap option for GCC compatibility

2018-06-12 Thread Simon Dardis via Phabricator via cfe-commits
sdardis added a comment. In https://reviews.llvm.org/D47829#1124040, @efriedma wrote: > Is this something which is actually useful to control? From your > description, you want to add the flag to clang not because you actually want > to use it, but just because you can't figure out how to pass

[PATCH] D47935: [clangd] Boost completion score according to file proximity.

2018-06-12 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 150923. ioeric added a comment. - Merge branch 'uri' into proximity - Addressed review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47935 Files: clangd/CodeComplete.cpp clangd/Quality.cpp clangd/Quality.h unittests/clangd

[PATCH] D47935: [clangd] Boost completion score according to file proximity.

2018-06-12 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 150924. ioeric added a comment. - Cleanup comment a bit. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D47935 Files: clangd/CodeComplete.cpp clangd/Quality.cpp clangd/Quality.h unittests/clangd/QualityTests.cpp unittests/clangd/Tes

[PATCH] D47935: [clangd] Boost completion score according to file proximity.

2018-06-12 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. PTAL Comment at: clangd/Quality.cpp:215 void SymbolRelevanceSignals::merge(const CodeCompletionResult &SemaCCResult) { if (SemaCCResult.Availability == CXAvailability_NotAvailable || ioeric wrote: > sammccall wrote: > > proximity p

[PATCH] D48071: [clangd] Add an option controlling caching of compile commands.

2018-06-12 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: jkorous, MaskRay, ioeric. Disabled by default and hidden, caching for most implementation already happens outside clangd, so we rarely need to change it. Repository: rCTE Clang Tools Extra

[PATCH] D48071: [clangd] Add an option controlling caching of compile commands.

2018-06-12 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Testing should be possible with lit tests, I'll look into that. Let me know if there's anything else about this patch that needs attention. Thanks! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48071 ___

[PATCH] D48063: [clang-format] Discourage breaks in submessage entries, hard rule

2018-06-12 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 150926. krasimir added a comment. - Add tests Repository: rC Clang https://reviews.llvm.org/D48063 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestProto.cpp unittests/Format/FormatTestTextProto.cpp Index: unittests/Format/FormatTe

[PATCH] D48072: Sema: Fix PR12350 destructor name lookup, addressing (some of) DR244

2018-06-12 Thread Jeremy Morse via Phabricator via cfe-commits
jmorse created this revision. jmorse added reviewers: rsmith, doug.gregor, majnemer. Herald added a subscriber: cfe-commits. Hi, This patch tries to fix a problem in clangs implementation of C++11's [basic.lookup.qual]p6 as demonstrated in PR12350, by: - Re-enabling looking in name-specifier pre

[PATCH] D47154: Try to make builtin address space declarations not useless

2018-06-12 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added inline comments. Comment at: include/clang/Basic/BuiltinsAMDGPU.def:49 + +// FIXME: Need to disallow constant address space. BUILTIN(__builtin_amdgcn_div_scale, "dddbb*", "n") arsenm wrote: > Anastasia wrote: > > Do you plan to provide the suppor

[PATCH] D43015: clang-format: Introduce BreakInheritanceList option

2018-06-12 Thread Carlos Alberto Enciso via Phabricator via cfe-commits
CarlosAlbertoEnciso added a comment. @Typz, It seems that the changes done to `ClangFormatStyleOptions.rst` @334408 are causing the generation of the documentation to fail, with the following error: Warning, treated as error: /llvm/tools/clang/docs/ClangFormatStyleOptions.rst:1060: WARNING:

r334493 - Revert r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now"

2018-06-12 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Jun 12 04:33:44 2018 New Revision: 334493 URL: http://llvm.org/viewvc/llvm-project?rev=334493&view=rev Log: Revert r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now" The tests fail on Windows bots, and for me locally. > Enable crash

Re: r334418 - Enable crash recovery tests on Windows, globs work in the lit internal shell now

2018-06-12 Thread Hans Wennborg via cfe-commits
I've reverted in r334493 in the meantime. When I run the tests locally, they fail with: # command stderr: C:\src\llvm\tools\clang\test\Driver\crash-report.c:17:11: error: expected string not found in input // CHECK: Preprocessed source(s) and associated run script(s) are located at: ^ :

r334494 - Re-apply r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now"

2018-06-12 Thread Hans Wennborg via cfe-commits
Author: hans Date: Tue Jun 12 04:51:22 2018 New Revision: 334494 URL: http://llvm.org/viewvc/llvm-project?rev=334494&view=rev Log: Re-apply r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now" Plus change run lines from not env FOO=bar %clang to env F

Re: r334418 - Enable crash recovery tests on Windows, globs work in the lit internal shell now

2018-06-12 Thread Hans Wennborg via cfe-commits
On Tue, Jun 12, 2018 at 1:43 PM, Hans Wennborg wrote: > I've reverted in r334493 in the meantime. > > When I run the tests locally, they fail with: > > # command stderr: > C:\src\llvm\tools\clang\test\Driver\crash-report.c:17:11: error: > expected string not found in input > // CHECK: Preprocessed

[clang-tools-extra] r334495 - [clangd] Trace time the operations wait on Semaphore.

2018-06-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jun 12 04:56:21 2018 New Revision: 334495 URL: http://llvm.org/viewvc/llvm-project?rev=334495&view=rev Log: [clangd] Trace time the operations wait on Semaphore. The Semaphore is currently used to limit the number of concurrently running tasks. Tracing the wait times w

[PATCH] D48053: Correct behavior of __builtin_*_overflow and constexpr.

2018-06-12 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 150934. erichkeane marked an inline comment as done. erichkeane added a comment. Add error checking to perform copy init. https://reviews.llvm.org/D48053 Files: lib/Sema/SemaChecking.cpp test/SemaCXX/builtins-overflow.cpp Index: lib/Sema/SemaChecki

[PATCH] D48053: Correct behavior of __builtin_*_overflow and constexpr.

2018-06-12 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: lib/Sema/SemaChecking.cpp:228 + S.getASTContext(), Ty, /*consume*/ false); + Arg = S.PerformCopyInitialization(Entity, SourceLocation(), Arg); + TheCall->setArg(2, Arg.get()); efriedma wrote: > Is i

[PATCH] D45179: [libc++] Add _LIBCPP_FORCE_NODISCARD define to force-enable nodiscard in pre-C++17

2018-06-12 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. What's the status here? The MS STL has this feature under _HAS_NODISCARD and it's super useful. Repository: rCXX libc++ https://reviews.llvm.org/D45179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

[PATCH] D47435: Add __builtin_signbit semantic checking

2018-06-12 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Ping Repository: rC Clang https://reviews.llvm.org/D47435 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r334503 - Fix overload resolution between Ptr-To-Member and Bool

2018-06-12 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Tue Jun 12 06:59:32 2018 New Revision: 334503 URL: http://llvm.org/viewvc/llvm-project?rev=334503&view=rev Log: Fix overload resolution between Ptr-To-Member and Bool As reported here (https://bugs.llvm.org/show_bug.cgi?id=19808) and discovered independently when looking

[PATCH] D47435: Add __builtin_signbit semantic checking

2018-06-12 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. The checking by itself looks sane-ish, but i don't have any reasonable knowledge in this area. Comment at: lib/Sema/SemaChecking.cpp:925 + case Builtin::BI__builtin_signbitl: if (SemaBuiltinFPClassification(TheCall, 1)) return ExprError

[PATCH] D42787: clang-format: do not add extra indent when wrapping last parameter

2018-06-12 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. In https://reviews.llvm.org/D42787#1127790, @djasper wrote: > The normal rule for formatting options apply. If you can dig up a public > style guide and a project of reasonable size where it is used, we can add an > option. I don't want to be rude, but it seems to me tha

[PATCH] D47394: [OpenMP][Clang][NVPTX] Replace bundling with partial linking for the OpenMP NVPTX device offloading toolchain

2018-06-12 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 150947. gtbercea added a comment. Added separate test. Repository: rC Clang https://reviews.llvm.org/D47394 Files: include/clang/Driver/Action.h include/clang/Driver/Compilation.h include/clang/Driver/Driver.h include/clang/Driver/Options.td i

[PATCH] D46915: [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals

2018-06-12 Thread Bevin Hansson via Phabricator via cfe-commits
ebevhan added inline comments. Comment at: include/clang/Basic/TargetInfo.h:89 + // corresponding unsaturated types. + unsigned char ShortAccumFBits, ShortAccumIBits; + unsigned char AccumFBits, AccumIBits; leonardchan wrote: > ebevhan wrote: > > I suspect it'

[PATCH] D34156: [LTO] Enable module summary emission by default for regular LTO

2018-06-12 Thread Tobias Edler von Koch via Phabricator via cfe-commits
tobiasvk updated this revision to Diff 150965. tobiasvk added a comment. - Rebase for current tree - Fix -flto -save-temps which the previous patch broke https://reviews.llvm.org/D34156 Files: clang/include/clang/Frontend/CodeGenOptions.def clang/lib/CodeGen/BackendUtil.cpp clang/lib/Code

[PATCH] D47435: Add __builtin_signbit semantic checking

2018-06-12 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman updated this revision to Diff 150967. aaron.ballman marked 5 inline comments as done. aaron.ballman added a comment. Updating based on review feedback. https://reviews.llvm.org/D47435 Files: lib/Sema/SemaChecking.cpp test/Sema/builtins.c Index: test/Sema/builtins.c =

[PATCH] D47435: Add __builtin_signbit semantic checking

2018-06-12 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/Sema/SemaChecking.cpp:925 + case Builtin::BI__builtin_signbitl: if (SemaBuiltinFPClassification(TheCall, 1)) return ExprError(); lebedev.ri wrote: > The name of the function is unfortunate given th

[PATCH] D47435: Add __builtin_signbit semantic checking

2018-06-12 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri accepted this revision. lebedev.ri added a comment. This revision is now accepted and ready to land. Looks good to me, but you probably want a bit for a second opinion. https://reviews.llvm.org/D47435 ___ cfe-commits mailing list cfe-comm

[PATCH] D47233: [CodeGen] Emit MSVC RTTI for Obj-C EH types

2018-06-12 Thread Dustin L. Howett via Phabricator via cfe-commits
DHowett-MSFT added a comment. In https://reviews.llvm.org/D47233#1129207, @rjmccall wrote: > In https://reviews.llvm.org/D47233#1129110, @smeenai wrote: > > > WinObjC does this wrapping, for example. > > > I see. The idea of creating the type descriptors and mangled names ad-hoc > for the catch

[PATCH] D42787: clang-format: do not add extra indent when wrapping last parameter

2018-06-12 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. You are right that this behavior is what the code authors, but also many other people, like to have and so it is what is engrained in clang-format. There are likely about a million things that fall into the same category. Now we might find that the current default is ac

[PATCH] D48083: [clangd] Boost keyword completions.

2018-06-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: ilya-biryukov. Herald added subscribers: cfe-commits, jkorous, MaskRay, ioeric. These have few signals other than being keywords, so the boost is high. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48083 Files: cla

[PATCH] D48063: [clang-format] Discourage breaks in submessage entries, hard rule

2018-06-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: lib/Format/TokenAnnotator.cpp:3104 if (Left.is(tok::colon) && Left.isOneOf(TT_DictLiteral, TT_ObjCMethodExpr)) { if ((Style.Language == FormatSt

[PATCH] D46024: [clang-format] Add SpaceBeforeCpp11BracedList option.

2018-06-12 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. In https://reviews.llvm.org/D46024#1129350, @hans wrote: > In https://reviews.llvm.org/D46024#1121242, @rkirsling wrote: > > > FWIW, please note that this space-before-brace style is not specific to > > WebKit; CppCoreGuidelines exhibits it

[PATCH] D48063: [clang-format] Discourage breaks in submessage entries, hard rule

2018-06-12 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 150980. krasimir added a comment. - Split-up the if-condition Repository: rC Clang https://reviews.llvm.org/D48063 Files: lib/Format/TokenAnnotator.cpp unittests/Format/FormatTestProto.cpp unittests/Format/FormatTestTextProto.cpp Index: unittests

r334517 - [clang-format] Discourage breaks in submessage entries, hard rule

2018-06-12 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue Jun 12 10:26:31 2018 New Revision: 334517 URL: http://llvm.org/viewvc/llvm-project?rev=334517&view=rev Log: [clang-format] Discourage breaks in submessage entries, hard rule Summary: Currently clang-format allows this for text protos: ``` submessage: { key: 'aaa

[PATCH] D48063: [clang-format] Discourage breaks in submessage entries, hard rule

2018-06-12 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334517: [clang-format] Discourage breaks in submessage entries, hard rule (authored by krasimir, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D4

[PATCH] D47958: [CUDA][HIP] Allow CUDA __global__ functions to have amdgpu kernel attributes

2018-06-12 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. Thank you. https://reviews.llvm.org/D47958 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[PATCH] D48068: [clangd] Move caching of compile args out of ClangdServer.

2018-06-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clangd/GlobalCompilationDatabase.cpp:137 + // 'It' may be invalid at this point, recompute it. + It = Cached.find(File); + if (It != Cached.end()) --

r334518 - Refactor ExecuteAndWait to take StringRefs.

2018-06-12 Thread Zachary Turner via cfe-commits
Author: zturner Date: Tue Jun 12 10:43:52 2018 New Revision: 334518 URL: http://llvm.org/viewvc/llvm-project?rev=334518&view=rev Log: Refactor ExecuteAndWait to take StringRefs. This simplifies some code which had StringRefs to begin with, and makes other code more complicated which had const cha

[PATCH] D47233: [CodeGen] Emit MSVC RTTI for Obj-C EH types

2018-06-12 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. In https://reviews.llvm.org/D47233#1129810, @DHowett-MSFT wrote: > In https://reviews.llvm.org/D47233#1129207, @rjmccall wrote: > > > In https://reviews.llvm.org/D47233#1129110, @smeenai wrote: > > > > > WinObjC does this wrapping, for example. > > > > > > I see. The ide

[PATCH] D45616: [X86] Lower _mm[256|512]_cmp[.]_mask intrinsics to native llvm IR

2018-06-12 Thread Gabor Buella via Phabricator via cfe-commits
GBuella added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:10071 + // is _MM_FROUND_CUR_DIRECTION + if (cast(Ops[4])->getZExtValue() != 4) +UsesNonDefaultRounding = true; efriedma wrote: > Given we're ignoring floating-point exceptions

[PATCH] D48036: [CUDA] Make min/max shims host+device.

2018-06-12 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. Last comment in the bug pointed out that those overloads should be constexpr in c++14. Maybe in a separate patch, though. https://bugs.llvm.org/show_bug.cgi?id=37753#c5 https://reviews.llvm.org/D48036 ___ cfe-commits mailing l

[PATCH] D46024: [clang-format] Add SpaceBeforeCpp11BracedList option.

2018-06-12 Thread Ross Kirsling via Phabricator via cfe-commits
rkirsling updated this revision to Diff 150984. rkirsling added a comment. Addressed feedback—thank you for the review! Repository: rC Clang https://reviews.llvm.org/D46024 Files: docs/ClangFormatStyleOptions.rst include/clang/Format/Format.h lib/Format/Format.cpp lib/Format/TokenAnn

Re: r334418 - Enable crash recovery tests on Windows, globs work in the lit internal shell now

2018-06-12 Thread Reid Kleckner via cfe-commits
On Tue, Jun 12, 2018 at 4:43 AM Hans Wennborg wrote: > Actually, maybe switching the order from "not env ... %clang" to "env > ... not %clang" might work... > Thanks, I was going to try that next. ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r334525 - [analyzer] [NFC] Unify Minimal and Extensive diagnostics.

2018-06-12 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jun 12 12:08:00 2018 New Revision: 334525 URL: http://llvm.org/viewvc/llvm-project?rev=334525&view=rev Log: [analyzer] [NFC] Unify Minimal and Extensive diagnostics. Once we removed AlternateExtensive, I've looked closer into the difference between Minimal and E

r334526 - [analyzer] [NFC] Now let's have only one place for diagnostics generation

2018-06-12 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jun 12 12:08:17 2018 New Revision: 334526 URL: http://llvm.org/viewvc/llvm-project?rev=334526&view=rev Log: [analyzer] [NFC] Now let's have only one place for diagnostics generation Differential Revision: https://reviews.llvm.org/D47808 Modified: cfe/trunk/

[PATCH] D47756: [analyzer] [NFC] Unify Minimal and Extensive diagnostics.

2018-06-12 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC334525: [analyzer] [NFC] Unify Minimal and Extensive diagnostics. (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://reviews.llvm.org

[PATCH] D47931: [clangd] Customizable URI schemes for dynamic index.

2018-06-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Not ignoring this patch: the implementation LG, whether it's the right design depends on where https://reviews.llvm.org/D47935 ends up I think. (I suspect this is what we want, is there any urgency to landing this part?) Repository: rCTE Clang Tools Extra https://r

[PATCH] D47808: [analyzer] [NFC] Now let's have only one place for diagnostics generation

2018-06-12 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC334526: [analyzer] [NFC] Now let's have only one place for diagnostics generation (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://

[PATCH] D48089: [clang-format] Fix crash while reflowing backslash in comments

2018-06-12 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Herald added a subscriber: cfe-commits. The added test case was currently crashing with an assertion: Repository: rC Clang https://reviews.llvm.org/D48089 Files: lib/Format/BreakableToken.cpp unittests/Format/FormatTestComments.cpp Index: unittests/Forma

[PATCH] D47935: [clangd] Boost completion score according to file proximity.

2018-06-12 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Sorry for the delay on this change. There's a bunch of complexity in this problem that I haven't seen how to slice through: 1. the signals needed seem like a weird fit for the Symbol*Signals structs for some reason (maybe my misdesign) 2. the inconsistency between how

r334527 - [clang-format] Fix crash while reflowing backslash in comments

2018-06-12 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Tue Jun 12 12:33:15 2018 New Revision: 334527 URL: http://llvm.org/viewvc/llvm-project?rev=334527&view=rev Log: [clang-format] Fix crash while reflowing backslash in comments Summary: The added test case was currently crashing with an assertion: ``` krasimir@krasimir> cat t

[PATCH] D48089: [clang-format] Fix crash while reflowing backslash in comments

2018-06-12 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rC334527: [clang-format] Fix crash while reflowing backslash in comments (authored by krasimir, committed by ). Changed pri

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread Matthew Voss via Phabricator via cfe-commits
ormris added inline comments. Comment at: lib/StaticAnalyzer/Core/LoopWidening.cpp:89 +new Callback(LCtx, MRMgr, ITraits)); + Finder.matchAST(ASTCtx); + ormris wrote: > NoQ wrote: > > NoQ wrote: > > > george.karpenkov wrote: > > > > ormris wr

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Core/LoopWidening.cpp:89 +new Callback(LCtx, MRMgr, ITraits)); + Finder.matchAST(ASTCtx); + ormris wrote: > ormris wrote: > > NoQ wrote: > > > NoQ wrote: > > > > george.karpenkov wrote

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread Matthew Voss via Phabricator via cfe-commits
ormris added inline comments. Comment at: lib/StaticAnalyzer/Core/LoopWidening.cpp:89 +new Callback(LCtx, MRMgr, ITraits)); + Finder.matchAST(ASTCtx); + NoQ wrote: > ormris wrote: > > ormris wrote: > > > NoQ wrote: > > > > NoQ wrote: > > > >

r334531 - [AArch64] Support reserving x20 register

2018-06-12 Thread Petr Hosek via cfe-commits
Author: phosek Date: Tue Jun 12 13:00:50 2018 New Revision: 334531 URL: http://llvm.org/viewvc/llvm-project?rev=334531&view=rev Log: [AArch64] Support reserving x20 register Register x20 is a callee-saved register which may be used for other purposes in certain contexts, for example to hold speci

[PATCH] D46552: [AArch64] Support reserving x20 register

2018-06-12 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC334531: [AArch64] Support reserving x20 register (authored by phosek, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://reviews.llvm.org/D46552?vs=150601&id=151006

Re: r334494 - Re-apply r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now"

2018-06-12 Thread Galina Kistanova via cfe-commits
Hello Hans, The test Driver/crash-report-modules.m still fails on one of windows builder: http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-win/builds/10221 . . . Failing Tests (1): Clang :: Driver/crash-report-modules.m Please have a look? Thanks Galina On Tue, Jun

r334539 - Work around false -Wmissing-braces warning from old clang which has been fixed in r314838

2018-06-12 Thread Fangrui Song via cfe-commits
Author: maskray Date: Tue Jun 12 13:44:11 2018 New Revision: 334539 URL: http://llvm.org/viewvc/llvm-project?rev=334539&view=rev Log: Work around false -Wmissing-braces warning from old clang which has been fixed in r314838 Modified: cfe/trunk/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp

[PATCH] D47996: Added modulemap for lldb-mi

2018-06-12 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl accepted this revision. aprantl added a comment. This revision is now accepted and ready to land. That should work. Thanks! https://reviews.llvm.org/D47996 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

Re: r334494 - Re-apply r334418 "Enable crash recovery tests on Windows, globs work in the lit internal shell now"

2018-06-12 Thread Reid Kleckner via cfe-commits
The length of that path is about 257, or very near MAX_PATH, which suggests that the version of rm you are using does not tolerate deep paths. This has been a long standing problem, and our solution to it was to install a special version of rm.exe on all of our buildbots that reliably handles long

r334540 - [analyzer] [NFC] Remove most usages of getEndPath

2018-06-12 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jun 12 13:50:44 2018 New Revision: 334540 URL: http://llvm.org/viewvc/llvm-project?rev=334540&view=rev Log: [analyzer] [NFC] Remove most usages of getEndPath getEndPath is a problematic API, because it's not clear when it's called (hint: not always at the end of

[PATCH] D48042: [analyzer] Replace most usages of getEndPath

2018-06-12 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC334540: [analyzer] [NFC] Remove most usages of getEndPath (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://reviews.llvm.org/D48042?

r334541 - [analyzer] [NFC] Move ::dump methods from BugReporter.cpp to PathDiagnostics.cpp

2018-06-12 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jun 12 13:51:01 2018 New Revision: 334541 URL: http://llvm.org/viewvc/llvm-project?rev=334541&view=rev Log: [analyzer] [NFC] Move ::dump methods from BugReporter.cpp to PathDiagnostics.cpp BugReporter.cpp is already severely overloaded, and those dump methods ar

r334542 - [analyzer] [NFC] Remove "removeInvalidation" from visitor API

2018-06-12 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Tue Jun 12 13:51:19 2018 New Revision: 334542 URL: http://llvm.org/viewvc/llvm-project?rev=334542&view=rev Log: [analyzer] [NFC] Remove "removeInvalidation" from visitor API removeInvalidation is a very problematic API, as it makes suppression order-dependent. Moreo

[PATCH] D48035: [analyzer] [NFC] Move ::dump methods from BugReporter.cpp to PathDiagnostics.cpp

2018-06-12 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC334541: [analyzer] [NFC] Move ::dump methods from BugReporter.cpp to PathDiagnostics.cpp (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit:

[PATCH] D48045: [analyzer] [NFC] Remove "removeInvalidation" from visitor API

2018-06-12 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334542: [analyzer] [NFC] Remove "removeInvalidation" from visitor API (authored by george.karpenkov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.ll

[PATCH] D48045: [analyzer] [NFC] Remove "removeInvalidation" from visitor API

2018-06-12 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC334542: [analyzer] [NFC] Remove "removeInvalidation" from visitor API (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: https://reviews.llv

[PATCH] D46915: [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals

2018-06-12 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 151016. leonardchan marked 9 inline comments as done. Repository: rC Clang https://reviews.llvm.org/D46915 Files: include/clang/AST/ASTContext.h include/clang/AST/Expr.h include/clang/AST/OperationKinds.def include/clang/AST/RecursiveASTVisitor

[PATCH] D48053: Correct behavior of __builtin_*_overflow and constexpr.

2018-06-12 Thread Eli Friedman via Phabricator via cfe-commits
efriedma accepted this revision. efriedma added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D48053 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D46915: [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals

2018-06-12 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: include/clang/Basic/TargetInfo.h:89 + // corresponding unsaturated types. + unsigned char ShortAccumFBits, ShortAccumIBits; + unsigned char AccumFBits, AccumIBits; ebevhan wrote: > leonardchan wrote: > > ebevhan w

[PATCH] D47988: [CodeGen] Emit MSVC funclet IR for Obj-C exceptions

2018-06-12 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. In https://reviews.llvm.org/D47988#1127432, @smeenai wrote: > Any idea why we would see inlining in one case and not the other? i686 vs. > x86-64 doesn't make any difference, and neither does -Os vs. -O1 vs. -O2. My theory is that the inliner is attempting to avoid inlinin

[PATCH] D47030: [Fixed Point Arithmetic] Checks for Precision Macros

2018-06-12 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan abandoned this revision. leonardchan added a comment. No longer setting fractional and integral bits at configure time. These values are set and checked in TargetInfo. Repository: rC Clang https://reviews.llvm.org/D47030 ___ cfe-comm

r334550 - [CMake][Darwin] Match cxx-headers -> cxx_headers libcxx target rename.

2018-06-12 Thread Ahmed Bougacha via cfe-commits
Author: ab Date: Tue Jun 12 14:27:36 2018 New Revision: 334550 URL: http://llvm.org/viewvc/llvm-project?rev=334550&view=rev Log: [CMake][Darwin] Match cxx-headers -> cxx_headers libcxx target rename. This was changed in r334477. Modified: cfe/trunk/cmake/caches/Apple-stage2.cmake Modified:

Re: [libcxx] r334477 - [CMake] Use common variable for all header targets NFC

2018-06-12 Thread Ahmed Bougacha via cfe-commits
Hey Petr, FYI: clang has cmake caches that listed cxx-headers as a dependency; I fixed that in: r334550 [CMake][Darwin] Match cxx-headers -> cxx_headers libcxx target rename. -Ahmed On Mon, Jun 11, 2018 at 11:58 PM, Petr Hosek via cfe-commits wrote: > Author: phosek > Date: Mon Jun 11 23:58:06

[PATCH] D48098: clang-format-diff: Switch to python3 by default, support python 2.7

2018-06-12 Thread Marco Falke via Phabricator via cfe-commits
MarcoFalke created this revision. Repository: rC Clang https://reviews.llvm.org/D48098 Files: tools/clang-format/clang-format-diff.py Index: tools/clang-format/clang-format-diff.py === --- tools/clang-format/clang-format-diff.

[PATCH] D48098: clang-format-diff: Switch to python3 by default, support python 2.7

2018-06-12 Thread Marco Falke via Phabricator via cfe-commits
MarcoFalke updated this revision to Diff 151038. MarcoFalke added a comment. In python2.7: TypeError: 'encoding' is an invalid keyword argument for this function So remove it for now. https://reviews.llvm.org/D48098 Files: tools/clang-format/clang-format-diff.py Index: tools/clang-format/c

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread Matthew Voss via Phabricator via cfe-commits
ormris updated this revision to Diff 151043. ormris added a comment. - Use match function iterators rather than a callback class - Update test Repository: rC Clang https://reviews.llvm.org/D47044 Files: lib/StaticAnalyzer/Core/LoopWidening.cpp test/Analysis/loop-widening-preserve-referen

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov accepted this revision. george.karpenkov added a comment. This revision is now accepted and ready to land. Looks good to me, apart from the nit on an unused header. Comment at: lib/StaticAnalyzer/Core/LoopWidening.cpp:21 #include "clang/StaticAnalyzer/Core/Pat

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread Matthew Voss via Phabricator via cfe-commits
ormris updated this revision to Diff 151046. ormris added a comment. Remove unneeded header Repository: rC Clang https://reviews.llvm.org/D47044 Files: lib/StaticAnalyzer/Core/LoopWidening.cpp test/Analysis/loop-widening-preserve-reference-type.cpp Index: test/Analysis/loop-widening-pr

[PATCH] D48100: Append new attributes to the end of an AttributeList.

2018-06-12 Thread Michael Kruse via Phabricator via cfe-commits
Meinersbur created this revision. Meinersbur added reviewers: hfinkel, TylerNowicki, ABataev, thakis, rjmccall, george.burgess.iv, nicholas, nlewycky. Herald added subscribers: atanasyan, zzheng. ... instead of prepending it at the beginning (the original behavior since implemented in r122535 20

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. I'm still curious whether this also works: void foo() { const A &x = B(); bar(); } void bar() { for (int i = 0; i < 10; ++i) {} } Though we can land this patch and deal with this later. Repository: rC Clang https://revi

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread Matthew Voss via Phabricator via cfe-commits
ormris marked an inline comment as done. ormris added a comment. Sounds good. I'll go ahead and commit this. Thanks for the review! Repository: rC Clang https://reviews.llvm.org/D47044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:

[PATCH] D47044: [analyzer] Ensure that we only visit a destructor for a reference if type information is available.

2018-06-12 Thread Matthew Voss via Phabricator via cfe-commits
ormris added a comment. Hmm... I'll take a look. Repository: rC Clang https://reviews.llvm.org/D47044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >