[PATCH] D49658: [clangd] Index Interfaces for Xrefs

2018-07-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: arphaman, jkorous, MaskRay, ioeric, ilya-biryukov. This is the first step of implementing Xrefs in clangd: - add index interfaces, and related data structures. - implement a naive in-memory index for symbo

[PATCH] D49589: [UBSan] Strengthen pointer checks in 'new' expressions

2018-07-23 Thread Igor Kudrin via Phabricator via cfe-commits
ikudrin added a comment. Did you consider dividing the patch into two separate changes to solve the two described issues independently? Repository: rC Clang https://reviews.llvm.org/D49589 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D49253: [clangd] Fix category in clangd-vscode's package.json

2018-07-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a reviewer: ilya-biryukov. ilya-biryukov added a comment. Herald added a subscriber: arphaman. LGTM Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D49253 ___ cfe-commits maili

[PATCH] D49267: [clangd] Watch for changes in compile_commands.json

2018-07-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Herald added a subscriber: arphaman. Thanks for putting up this change! It can be really annoying that clangd does not pick up the compile commands that got updated. A few things of the top of my head on why we might want to punt on using the LSP watches: - File

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

2018-07-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a subscriber: simark. ilya-biryukov added a comment. Herald added a subscriber: arphaman. A recent change (https://reviews.llvm.org/D49267) is another indication that caching might be doing more wrong than good. I assume the caching does not give us much performance-wise, we

[PATCH] D49010: YAML output for index-while-building

2018-07-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. JSON is a subset of YAML, do we really need both outputs? I've noticed the schema for the output is actually different between YAML and JSON, wouldn't that be confusing? > Should be compatible with the current index format accepted by clangd Do we really want th

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

2018-07-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D48071#1171289, @ilya-biryukov wrote: > A recent change (https://reviews.llvm.org/D49267) is another indication that > caching might be doing more wrong than good. I assume the caching does not > give us much performance-wise, we only reque

[PATCH] D49375: [NEON] Define half-precision vmaxnm intrinsics only when available

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Ping. https://reviews.llvm.org/D49375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D49376: [NEON] Define half-precision vrnd intrinsics only when available

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Ping. https://reviews.llvm.org/D49376 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D49546: [clangd] Implement query iterators for Dex symbol index

2018-07-23 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 156725. kbobyrev added a comment. Herald added a subscriber: mgrang. - Implemented convenient dumping via `llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, QueryIterator &Iterator)`, which dumps iterator tree in human-readable format, e.g. `(&& [1, 2, 3

[PATCH] D49075: [NEON] Define fp16 vld and vst intrinsics conditionally

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Ping. https://reviews.llvm.org/D49075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D48829: [NEON] Fix support for vrndi_f32(), vrndiq_f32() and vrndns_f32() intrinsics

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Ping. https://reviews.llvm.org/D48829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D49376: [NEON] Define half-precision vrnd intrinsics only when available

2018-07-23 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer accepted this revision. SjoerdMeijer added a comment. This revision is now accepted and ready to land. LGTM Comment at: include/clang/Basic/arm_neon.td:1419 // Vector rounding - def FRINTZH : SInst<"vrnd", "dd", "hQh">; - def FRINTNH : SInst<"vrndn"

[PATCH] D49375: [NEON] Define half-precision vmaxnm intrinsics only when available

2018-07-23 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer accepted this revision. SjoerdMeijer added a comment. This revision is now accepted and ready to land. LGTM Comment at: include/clang/Basic/arm_neon.td:1466 def VMINH : SInst<"vmin", "ddd", "hQh">; - def FMAXNMH : SInst<"vmaxnm", "ddd", "hQh">; -

[PATCH] D49589: [UBSan] Strengthen pointer checks in 'new' expressions

2018-07-23 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added a comment. In https://reviews.llvm.org/D49589#1171279, @ikudrin wrote: > Did you consider dividing the patch into two separate changes to solve the > two described issues independently? The both tow issues have the same cause: the check is genereated too late. Now it is genera

[PATCH] D49075: [NEON] Define fp16 vld and vst intrinsics conditionally

2018-07-23 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer added a comment. Now that they are conditionally defined, do we need negative tests (in test/Sema/arm-no-fp16.c?) to check that they are not available when fp16 is not enabled? https://reviews.llvm.org/D49075 ___ cfe-commits mailing l

[PATCH] D48829: [NEON] Fix support for vrndi_f32(), vrndiq_f32() and vrndns_f32() intrinsics

2018-07-23 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer accepted this revision. SjoerdMeijer added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D48829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: r336467 - [OPENMP] Fix PR38026: Link -latomic when -fopenmp is used.

2018-07-23 Thread Jonas Hahnfeld via cfe-commits
On 2018-07-19 20:55, Hal Finkel wrote: On 07/19/2018 09:01 AM, Jonas Hahnfeld wrote: On 2018-07-19 15:43, Hal Finkel wrote: On 07/16/2018 01:19 PM, Jonas Hahnfeld wrote: [ Moving discussion from https://reviews.llvm.org/D49386 to the relevant comment on cfe-commits, CC'ing Hal who commented on

[PATCH] D49580: [clang-format] Adding style option for absolute formatting

2018-07-23 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Could you explain what problem this is fixing? https://reviews.llvm.org/D49580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D49546: [clangd] Implement query iterators for Dex symbol index

2018-07-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. A few more comments about the bits I understand, but waiting mostly on the documentation. Comment at: clang-tools-extra/clangd/index/dex/QueryIterator.cpp:155 + llvm::raw_ostream &dump(llvm::raw_ostream &OS) const override { +OS << "(&& "; +

r337678 - [Analyzer] Quick Fix for exponential execution time when simpilifying complex additive expressions

2018-07-23 Thread Adam Balogh via cfe-commits
Author: baloghadamsoftware Date: Mon Jul 23 03:50:20 2018 New Revision: 337678 URL: http://llvm.org/viewvc/llvm-project?rev=337678&view=rev Log: [Analyzer] Quick Fix for exponential execution time when simpilifying complex additive expressions Patch https://reviews.llvm.org/rC329780 not only rea

[PATCH] D49658: [clangd] Index Interfaces for Xrefs

2018-07-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Mostly LG. I think we can simplify in a couple of places, and you should decide if this patch is *implementing* the new index operation or not. (Currently it implements it for 1/3 implementations, which doesn't seem that useful). Comment at: clangd

[PATCH] D49536: [Analyzer] Quick Fix for exponential execution time when simpilifying complex additive expressions

2018-07-23 Thread Balogh , Ádám via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL337678: [Analyzer] Quick Fix for exponential execution time when simpilifying complex… (authored by baloghadamsoftware, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

r337679 - Fix for last commit: adding new test file forgotten.

2018-07-23 Thread Adam Balogh via cfe-commits
Author: baloghadamsoftware Date: Mon Jul 23 03:53:02 2018 New Revision: 337679 URL: http://llvm.org/viewvc/llvm-project?rev=337679&view=rev Log: Fix for last commit: adding new test file forgotten. Added: cfe/trunk/test/Analysis/PR38208.c Added: cfe/trunk/test/Analysis/PR38208.c URL: http:

[PATCH] D49543: [clangd] Penalize non-instance members when accessed via class instances.

2018-07-23 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 156738. ioeric marked 4 inline comments as done. ioeric added a comment. - addressed review comments. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D49543 Files: clangd/CodeComplete.cpp clangd/CodeComplete.h clangd/Quality.cpp clangd

[clang-tools-extra] r337681 - [clangd] Penalize non-instance members when accessed via class instances.

2018-07-23 Thread Eric Liu via cfe-commits
Author: ioeric Date: Mon Jul 23 03:56:37 2018 New Revision: 337681 URL: http://llvm.org/viewvc/llvm-project?rev=337681&view=rev Log: [clangd] Penalize non-instance members when accessed via class instances. Summary: The following are metrics for explicit member access completions. There is no not

[PATCH] D49543: [clangd] Penalize non-instance members when accessed via class instances.

2018-07-23 Thread Eric Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL337681: [clangd] Penalize non-instance members when accessed via class instances. (authored by ioeric, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.

r337682 - [Tooling] Use UniqueStringSaver. NFC

2018-07-23 Thread Sam McCall via cfe-commits
Author: sammccall Date: Mon Jul 23 04:25:25 2018 New Revision: 337682 URL: http://llvm.org/viewvc/llvm-project?rev=337682&view=rev Log: [Tooling] Use UniqueStringSaver. NFC Modified: cfe/trunk/include/clang/Tooling/Execution.h cfe/trunk/lib/Tooling/Execution.cpp Modified: cfe/trunk/inclu

[PATCH] D49543: [clangd] Penalize non-instance members when accessed via class instances.

2018-07-23 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/Quality.cpp:146 +return false; + if (const auto *CM = dyn_cast(ND)) +return !CM->isStatic(); sammccall wrote: > I think we also have to consider template functions too? > And ideally I think we want to exc

[PATCH] D49355: Thread safety analysis: Allow lock upgrading and downgrading

2018-07-23 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. Ping? The functional changes should be minimal. Comment at: test/SemaCXX/warn-thread-safety-analysis.cpp:38-39 #endif +#define EXCLUSIVE_UNLOCK_FUNCTION(...) __attribute__((release_capability(__VA_ARGS__))) +#define SHARED_UNLOCK_FUNCTION(...)

[libcxx] r337684 - Cleanup name qualification in the filesystem internals.

2018-07-23 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Jul 23 04:46:47 2018 New Revision: 337684 URL: http://llvm.org/viewvc/llvm-project?rev=337684&view=rev Log: Cleanup name qualification in the filesystem internals. In most cases there is no reason why the filesystem internals use the qualifier std:: or _VSTD::. This patch

[PATCH] D49523: [clangd] Add support for per-file override compilation command

2018-07-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. The extensions itself seems like a reasonable way to provide compile commands for the individual files. In case didChangeConfiguration does not work for you for some reason, happy to take a look at this change too. One drawback of using didChangeConfiguration for c

[PATCH] D48958: [clang][ubsan] Implicit Cast Sanitizer - integer truncation - clang part

2018-07-23 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added inline comments. Comment at: docs/UndefinedBehaviorSanitizer.rst:159 - ``-fsanitize=undefined``: All of the checks listed above other than ``unsigned-integer-overflow`` and the ``nullability-*`` checks. - ``-fsanitize=undefined-trap``: Deprecated alias of

Re: r337470 - [Sema] Add a new warning, -Wmemset-transposed-args

2018-07-23 Thread Aaron Ballman via cfe-commits
On Sat, Jul 21, 2018 at 4:40 PM, Arthur O'Dwyer via cfe-commits wrote: > In this case Clang is complaining about > > memset(complicated-expr, 0, 0); > > which means that transposing the last two arguments would not "fix" > anything. Clang ought to not complain in this case. +1 ~Aaron > It d

[PATCH] D48958: [clang][ubsan] Implicit Cast Sanitizer - integer truncation - clang part

2018-07-23 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: lib/CodeGen/CodeGenFunction.h:383 + // This stack is used/maintained exclusively by the implicit cast sanitizer. + llvm::SmallVector CastExprStack; + vsk wrote: > lebedev.ri wrote: > > vsk wrote: > > > Why not 0 ins

[PATCH] D48958: [clang][ubsan] Implicit Cast Sanitizer - integer truncation - clang part

2018-07-23 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added inline comments. Comment at: lib/CodeGen/CodeGenFunction.h:383 + // This stack is used/maintained exclusively by the implicit cast sanitizer. + llvm::SmallVector CastExprStack; + lebedev.ri wrote: > vsk wrote: > > lebedev.ri wrote: > > > vsk wrote: >

[libcxx] r337685 - Cleanup unnecessary conversions in filesystem.

2018-07-23 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Mon Jul 23 04:55:13 2018 New Revision: 337685 URL: http://llvm.org/viewvc/llvm-project?rev=337685&view=rev Log: Cleanup unnecessary conversions in filesystem. Modified: libcxx/trunk/src/experimental/filesystem/operations.cpp Modified: libcxx/trunk/src/experimental/filesy

[PATCH] D48958: [clang][ubsan] Implicit Cast Sanitizer - integer truncation - clang part

2018-07-23 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: lib/CodeGen/CodeGenFunction.h:383 + // This stack is used/maintained exclusively by the implicit cast sanitizer. + llvm::SmallVector CastExprStack; + vsk wrote: > lebedev.ri wrote: > > vsk wrote: > > > lebedev.ri wr

[PATCH] D49657: [clangd] Make SymbolLocation => bool conversion explicitly.

2018-07-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. Scary Definitely LGTM! Comment at: clangd/index/Index.h:45 - operator bool() const { return !FileURI.empty(); } + explicit operator bool() const { retur

[PATCH] D48958: [clang][ubsan] Implicit Cast Sanitizer - integer truncation - clang part

2018-07-23 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 156583. lebedev.ri marked 11 inline comments as done. lebedev.ri added a comment. Address @vsk's review notes. Repository: rC Clang https://reviews.llvm.org/D48958 Files: docs/ReleaseNotes.rst docs/UndefinedBehaviorSanitizer.rst include/clang/Ba

Re: [PATCH] D49657: [clangd] Make SymbolLocation => bool conversion explicitly.

2018-07-23 Thread Sam McCall via cfe-commits
Or make operator bool explicit On Mon, Jul 23, 2018, 13:55 Ilya Biryukov via Phabricator < revi...@reviews.llvm.org> wrote: > ilya-biryukov accepted this revision. > ilya-biryukov added a comment. > This revision is now accepted and ready to land. > > Scary > Definitely LGTM! > > > >

[PATCH] D49657: [clangd] Make SymbolLocation => bool conversion explicitly.

2018-07-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a subscriber: hokein. sammccall added a comment. Or make operator bool explicit Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D49657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D48873: [AST] Use llvm::TrailingObjects in CXXTryStmt

2018-07-23 Thread Benjamin Kramer via Phabricator via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. lg Repository: rC Clang https://reviews.llvm.org/D48873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[PATCH] D49618: [clang-tidy] remove private decltypeType in TrailingReturnType

2018-07-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D49618 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D48759: [ASTMatchers] add matcher for decltypeType and its underlyingType

2018-07-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM! Repository: rC Clang https://reviews.llvm.org/D48759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

[PATCH] D49267: [clangd] Watch for changes in compile_commands.json

2018-07-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a subscriber: sammccall. ilya-biryukov added a comment. @sammccall pointed out that I've been looking at a different layer of caching. Clangd does per-directory (to avoid reloading compilation database multiple times) and per-file (to avoid calling into compilation database mu

[PATCH] D49667: [clangd] Tune down quality score for class constructors so that it's ranked after class types.

2018-07-23 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. ioeric added a reviewer: sammccall. Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ilya-biryukov. Currently, class constructors have the same score as the class types, and they are often ranked before class types. This is often not desireable and

[PATCH] D49667: [clangd] Tune down quality score for class constructors so that it's ranked after class types.

2018-07-23 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Just a drive-by comment. Comment at: clangd/Quality.cpp:211 + case Constructor: +Score *= 1.0f; // Rank class constructors after class types. +break; NIT: This does not seem to change the score, right? Maybe just the assi

[PATCH] D49667: [clangd] Tune down quality score for class constructors so that it's ranked after class types.

2018-07-23 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clangd/Quality.cpp:211 + case Constructor: +Score *= 1.0f; // Rank class constructors after class types. +break; ilya-biryukov wrote: > NIT: This does not seem to change the score, right? Maybe just the assignmen

r337688 - [AST] Use llvm::TrailingObjects in CXXTryStmt

2018-07-23 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Mon Jul 23 05:45:24 2018 New Revision: 337688 URL: http://llvm.org/viewvc/llvm-project?rev=337688&view=rev Log: [AST] Use llvm::TrailingObjects in CXXTryStmt 1. Use llvm::TrailingObjects in CXXTryStmt instead of manually doing the reinterpret_casts + pointer arithmetic. This is

[PATCH] D48873: [AST] Use llvm::TrailingObjects in CXXTryStmt

2018-07-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL337688: [AST] Use llvm::TrailingObjects in CXXTryStmt (authored by d0k, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D48873?vs=155564&id=156

[PATCH] D48873: [AST] Use llvm::TrailingObjects in CXXTryStmt

2018-07-23 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC337688: [AST] Use llvm::TrailingObjects in CXXTryStmt (authored by d0k, committed by ). Changed prior to commit: https://reviews.llvm.org/D48873?vs=155564&id=156759#toc Repository: rL LLVM https://r

[PATCH] D49355: Thread safety analysis: Allow lock upgrading and downgrading

2018-07-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I'm going to let @delesley give the final sign off on this as he is more familiar with this part of the analysis, but I think this looks reasonable. Repository: rC Clang https://reviews.llvm.org/D49355 ___ cfe-comm

r337690 - [NEON] Fix support for vrndi_f32(), vrndiq_f32() and vrndns_f32() intrinsics

2018-07-23 Thread Ivan A. Kosarev via cfe-commits
Author: kosarev Date: Mon Jul 23 06:26:37 2018 New Revision: 337690 URL: http://llvm.org/viewvc/llvm-project?rev=337690&view=rev Log: [NEON] Fix support for vrndi_f32(), vrndiq_f32() and vrndns_f32() intrinsics This patch adds support for vrndi_f32() and vrndiq_f32() intrinsics in AArch32 mode an

[PATCH] D48829: [NEON] Fix support for vrndi_f32(), vrndiq_f32() and vrndns_f32() intrinsics

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC337690: [NEON] Fix support for vrndi_f32(), vrndiq_f32() and vrndns_f32() intrinsics (authored by kosarev, committed by ). Repository: rC Clang https://reviews.llvm.org/D48829 Files: include/clang/B

[PATCH] D49375: [NEON] Define half-precision vmaxnm intrinsics only when available

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Thanks for reviewing! Comment at: include/clang/Basic/arm_neon.td:1466 def VMINH : SInst<"vmin", "ddd", "hQh">; - def FMAXNMH : SInst<"vmaxnm", "ddd", "hQh">; - def FMINNMH : SInst<"vminnm", "ddd", "hQh">; + let ArchGuard = "__

[PATCH] D49376: [NEON] Define half-precision vrnd intrinsics only when available

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added inline comments. Comment at: include/clang/Basic/arm_neon.td:1419 // Vector rounding - def FRINTZH : SInst<"vrnd", "dd", "hQh">; - def FRINTNH : SInst<"vrndn", "dd", "hQh">; - def FRINTAH : SInst<"vrnda", "dd", "hQh">; - def FRINTPH : SIn

[PATCH] D49375: [NEON] Define half-precision vmaxnm intrinsics only when available

2018-07-23 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer added inline comments. Comment at: include/clang/Basic/arm_neon.td:1466 def VMINH : SInst<"vmin", "ddd", "hQh">; - def FMAXNMH : SInst<"vmaxnm", "ddd", "hQh">; - def FMINNMH : SInst<"vminnm", "ddd", "hQh">; + let ArchGuard = "__ARM_ARCH >= 8

[PATCH] D49376: [NEON] Define half-precision vrnd intrinsics only when available

2018-07-23 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer added inline comments. Comment at: include/clang/Basic/arm_neon.td:1419 // Vector rounding - def FRINTZH : SInst<"vrnd", "dd", "hQh">; - def FRINTNH : SInst<"vrndn", "dd", "hQh">; - def FRINTAH : SInst<"vrnda", "dd", "hQh">; - def FRINTPH

[PATCH] D49511: [Sema/Attribute] Check for noderef attribute

2018-07-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/AttrDocs.td:3426 + let Content = [{ +The ``noderef`` attribute causes clang to throw a warning whenever a pointer marked with +this attribute is dereferenced. This is ideally used with pointers that point to

[PATCH] D49591: [clangd] Introduce search Tokens and trigram generation algorithms

2018-07-23 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 156772. kbobyrev marked 19 inline comments as done. kbobyrev added a reviewer: ilya-biryukov. kbobyrev removed a subscriber: ilya-biryukov. kbobyrev added a comment. Address all comments from the last iteration. Latest changes: - Trigram generation algorith

[PATCH] D49591: [clangd] Introduce search Tokens and trigram generation algorithms

2018-07-23 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev updated this revision to Diff 156774. kbobyrev added a comment. Wrong diff, should be correct now. https://reviews.llvm.org/D49591 Files: clang-tools-extra/clangd/CMakeLists.txt clang-tools-extra/clangd/index/dex/Token.cpp clang-tools-extra/clangd/index/dex/Token.h clang-tools-

[PATCH] D49652: Apply -fdebug-prefix-map in reverse of command line order

2018-07-23 Thread Paul Robinson via Phabricator via cfe-commits
probinson added a reviewer: probinson. probinson added a comment. Needs a test. Repository: rC Clang https://reviews.llvm.org/D49652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[PATCH] D49652: Apply -fdebug-prefix-map in reverse of command line order

2018-07-23 Thread Paul Robinson via Phabricator via cfe-commits
probinson added a comment. Also, please document the option in clang/docs/UsersManual.rst. It should have been added when the option was first added, but certainly with right-to-left behavior it needs a mention. Nearly all options work left-to-right, so even though it's the same as gcc, not e

[PATCH] D49629: [CMake] Fix the setting of LIBCXX_HEADER_DIR

2018-07-23 Thread Keith Walker via Phabricator via cfe-commits
keith.walker.arm added a comment. This change fixed a failing build here, so it looks correct to me. Repository: rCXX libc++ https://reviews.llvm.org/D49629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[clang-tools-extra] r337697 - [clangd] Fix category in clangd-vscode's package.json

2018-07-23 Thread Simon Marchi via cfe-commits
Author: simark Date: Mon Jul 23 07:32:12 2018 New Revision: 337697 URL: http://llvm.org/viewvc/llvm-project?rev=337697&view=rev Log: [clangd] Fix category in clangd-vscode's package.json Summary: When opening package.json, vscode shows: Use 'Programming Languages' instead Replacing "Language

[PATCH] D49253: [clangd] Fix category in clangd-vscode's package.json

2018-07-23 Thread Simon Marchi via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL337697: [clangd] Fix category in clangd-vscode's package.json (authored by simark, committed by ). Herald added a subscrib

r337699 - [NEON] Define half-precision vrnd intrinsics only when available

2018-07-23 Thread Ivan A. Kosarev via cfe-commits
Author: kosarev Date: Mon Jul 23 07:53:44 2018 New Revision: 337699 URL: http://llvm.org/viewvc/llvm-project?rev=337699&view=rev Log: [NEON] Define half-precision vrnd intrinsics only when available Differential Revision: https://reviews.llvm.org/D49376 Modified: cfe/trunk/include/clang/Basi

[PATCH] D49376: [NEON] Define half-precision vrnd intrinsics only when available

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC337699: [NEON] Define half-precision vrnd intrinsics only when available (authored by kosarev, committed by ). Repository: rC Clang https://reviews.llvm.org/D49376 Files: include/clang/Basic/arm_neo

[PATCH] D49652: Apply -fdebug-prefix-map in reverse of command line order

2018-07-23 Thread Alex Xu (Hello71) via Phabricator via cfe-commits
alxu planned changes to this revision. alxu added a comment. The test syntax looked complicated, and I assumed that the documentation was terrible, like wine's, but it's actually pretty good, so I'll give it a go. I think the order is not really surprising though. It is run from right to left,

[PATCH] D49652: Apply -fdebug-prefix-map in reverse of command line order

2018-07-23 Thread Alex Xu (Hello71) via Phabricator via cfe-commits
alxu added a comment. Also, is it right to use SmallVector in one place and vector in the other? I just assumed based on the surrounding declarations, but I really have no idea. Repository: rC Clang https://reviews.llvm.org/D49652 ___ cfe-commit

[PATCH] D47618: __c11_atomic_load's _Atomic can be const

2018-07-23 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Sema/SemaChecking.cpp:3368-3374 } else if (Form != Load && Form != LoadCopy) { if (ValType.isConstQualified()) { Diag(DRE->getLocStart(), diag::err_atomic_op_needs_non_const_pointer) << Ptr->getType() << Ptr->g

[PATCH] D49674: [AArch64] Add Tiny Code Model for AArch64

2018-07-23 Thread Dave Green via Phabricator via cfe-commits
dmgreen created this revision. dmgreen added reviewers: t.p.northover, olista01, john.brawn. Herald added a reviewer: javed.absar. Herald added a subscriber: kristof.beyls. Adds a tiny code model as a Clang side of https://reviews.llvm.org/D49673. https://reviews.llvm.org/D49674 Files: includ

[PATCH] D49573: [CMake] Option to control whether shared/static library is installed

2018-07-23 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. Can't you simply set `LIBCXX_ENABLE_SHARED=OFF` when you don't want to build/install the shared library and `LIBCXX_ENABLE_STATIC=OFF` for the static library? Repository: rL LLVM https://reviews.llvm.org/D49573 ___ cfe-

[PATCH] D48759: [ASTMatchers] add matcher for decltypeType and its underlyingType

2018-07-23 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 156800. JonasToth added a comment. - rebase to master Repository: rC Clang https://reviews.llvm.org/D48759 Files: include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/ASTMatchersInternal.cpp lib/ASTMatchers/Dynamic/Registry.cpp unittests/AST

r337703 - [ASTMatchers] add matcher for decltypeType and its underlyingType

2018-07-23 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Mon Jul 23 08:59:27 2018 New Revision: 337703 URL: http://llvm.org/viewvc/llvm-project?rev=337703&view=rev Log: [ASTMatchers] add matcher for decltypeType and its underlyingType Summary: This patch introduces a new matcher for `DecltypeType` and its underlying type in orde

[PATCH] D48759: [ASTMatchers] add matcher for decltypeType and its underlyingType

2018-07-23 Thread Jonas Toth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL337703: [ASTMatchers] add matcher for decltypeType and its underlyingType (authored by JonasToth, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D

[PATCH] D49656: [analyzer] Add support for more pointer invalidating functions in InnerPointerChecker

2018-07-23 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun requested changes to this revision. xazax.hun added a comment. This revision now requires changes to proceed. Some comments, mostly nits inline. Comment at: lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp:149 +C.addTransition(State); return; + }

r337704 - [NEON] Define half-precision vmaxnm intrinsics only when available

2018-07-23 Thread Ivan A. Kosarev via cfe-commits
Author: kosarev Date: Mon Jul 23 09:01:35 2018 New Revision: 337704 URL: http://llvm.org/viewvc/llvm-project?rev=337704&view=rev Log: [NEON] Define half-precision vmaxnm intrinsics only when available Differential Revision: https://reviews.llvm.org/D49375 Modified: cfe/trunk/include/clang/Ba

[PATCH] D49375: [NEON] Define half-precision vmaxnm intrinsics only when available

2018-07-23 Thread Ivan Kosarev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC337704: [NEON] Define half-precision vmaxnm intrinsics only when available (authored by kosarev, committed by ). Changed prior to commit: https://reviews.llvm.org/D49375?vs=155675&id=156802#toc Reposit

[PATCH] D49591: [clangd] Introduce search Tokens and trigram generation algorithms

2018-07-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Looks really nice! Only major issue is the query trigrams don't look right. Otherwise, some style nits and fixes that seem to have gotten lost. Comment at: clang-tools-extra/clangd/index/dex/Token.cpp:28 + +llvm::StringRef Token::data() const { return

r337706 - [Sema] Don't emit -Wmemset-transposed-args for memset(p, 0, 0)

2018-07-23 Thread Erik Pilkington via cfe-commits
Author: epilk Date: Mon Jul 23 09:24:14 2018 New Revision: 337706 URL: http://llvm.org/viewvc/llvm-project?rev=337706&view=rev Log: [Sema] Don't emit -Wmemset-transposed-args for memset(p,0,0) Thanks to Arthur O'Dwyer for the suggestion! Modified: cfe/trunk/lib/Sema/SemaChecking.cpp cfe/

[PATCH] D49618: [clang-tidy] remove private decltypeType in TrailingReturnType

2018-07-23 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 156805. JonasToth added a comment. - rebase to master Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D49618 Files: clang-tidy/fuchsia/TrailingReturnCheck.cpp Index: clang-tidy/fuchsia/TrailingReturnCheck.cpp ===

[PATCH] D49667: [clangd] Tune down quality score for class constructors so that it's ranked after class types.

2018-07-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. No opinion on the boost style thing. Comment at: unittests/clangd/QualityTests.cpp:198 EXPECT_LT(Macro.evaluate(), Default.evaluate()); + EXPECT_LT(Macro.evaluate()

Re: r337470 - [Sema] Add a new warning, -Wmemset-transposed-args

2018-07-23 Thread Erik Pilkington via cfe-commits
Sure, that seems pretty reasonable. r337706. Thanks for the suggestion! On 7/21/18 1:40 PM, Arthur O'Dwyer wrote: In this case Clang is complaining about     memset(complicated-expr, 0, 0); which means that transposing the last two arguments would not "fix" anything. Clang ought to not compl

[clang-tools-extra] r337707 - [clang-tidy] remove private decltypeType in TrailingReturnType

2018-07-23 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Mon Jul 23 09:30:13 2018 New Revision: 337707 URL: http://llvm.org/viewvc/llvm-project?rev=337707&view=rev Log: [clang-tidy] remove private decltypeType in TrailingReturnType Summary: This patch removes a private matcher in fuchsia/TrailingReturnType check because the matc

[PATCH] D49618: [clang-tidy] remove private decltypeType in TrailingReturnType

2018-07-23 Thread Jonas Toth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL337707: [clang-tidy] remove private decltypeType in TrailingReturnType (authored by JonasToth, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D496

[PATCH] D48717: [clang-tidy] fix PR36489 - respect deduced pointer types from auto as well

2018-07-23 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth marked 2 inline comments as done. JonasToth added a comment. The tests do run now with decltype too. Still ready to land? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48717 ___ cfe-commits mailing list cfe-commits@lists

[PATCH] D48717: [clang-tidy] fix PR36489 - respect deduced pointer types from auto as well

2018-07-23 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. Yes, this looks good to me. Thanks! Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48717 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D49656: [analyzer] Add support for more pointer invalidating functions in InnerPointerChecker

2018-07-23 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. I've just one thing to add. Comment at: lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp:149 +C.addTransition(State); return; + } xazax.hun wrote: > Nit: This return is redundant. Because of how easy it is to accidentally split

[PATCH] D49647: [libcxx] Library support for contracts (C++2a)

2018-07-23 Thread Hamza Sood via Phabricator via cfe-commits
hamzasood updated this revision to Diff 156808. hamzasood added a comment. - Added a missing visibility attribute. - Added a simple test that type-checks the expected public interface. Testing whether it's actually hooked up correctly is quite problematic; it isn't meant to be instantiable. What

[PATCH] D49638: [libcxxabi] Implement a GCC compatible SEH unwinding personality, __gxx_personality_seh0

2018-07-23 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 Repository: rCXXA libc++abi https://reviews.llvm.org/D49638 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D49656: [analyzer] Add support for more pointer invalidating functions in InnerPointerChecker

2018-07-23 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: lib/StaticAnalyzer/Checkers/InnerPointerChecker.cpp:207 - if (mayInvalidateBuffer(Call)) { -if (const PtrSet *PS = State->get(ObjRegion)) { - // Mark all pointer symbols associated with the deleted object released. - c

[PATCH] D49580: [clang-format] Adding style option for absolute formatting

2018-07-23 Thread Arnaud Coomans via Phabricator via cfe-commits
acoomans added a comment. @djasper I updated the description of the diff. This fixes the issue of `clang-format -lines=x:x` not returning the same results as `clang-format`, while keeping the current behavior as default. https://reviews.llvm.org/D49580 __

[PATCH] D49580: [clang-format] Adding style option for absolute formatting

2018-07-23 Thread Arnaud Coomans via Phabricator via cfe-commits
acoomans added a comment. Also ping @jolesiak since he initially filed the report https://reviews.llvm.org/D49580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D49580: [clang-format] Adding style option for absolute formatting

2018-07-23 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. In my opinion, this only addresses one edge case where clang-format -lines output is not identical with a full reformatting. I believe they cannot all usefully be avoided. As such, I am unsure that this option carries its weight of making the implementation more complex

[PATCH] D49647: [libcxx] Library support for contracts (C++2a)

2018-07-23 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added a comment. > Testing whether it's actually hooked up correctly is quite problematic; it > isn't meant to be instantiable. What's the best way to proceed with this? The compiler is supposed to create these - right? Does clang currently do this? - If not, we should wait for them

[PATCH] D49403: More aggressively complete RecordTypes with Function Pointers

2018-07-23 Thread Olga Chupina via Phabricator via cfe-commits
olga.chupina added a comment. Hello, Since the structure field which is a function pointer appears in the assignment statement, it messes up the type analysis. If it would really be a pointer to a structure then the corresponding assignment could be treated as bad type casting and potentially l

[PATCH] D48717: [clang-tidy] fix PR36489 - respect deduced pointer types from auto as well

2018-07-23 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 156812. JonasToth added a comment. rebase to master Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48717 Files: test/clang-tidy/cppcoreguidelines-pro-bounds-pointer-arithmetic.cpp Index: test/clang-tidy/cppcoreguidelines-pro-bounds-po

[PATCH] D49580: [clang-format] Adding style option for absolute formatting

2018-07-23 Thread Arnaud Coomans via Phabricator via cfe-commits
acoomans added a comment. I don't know; I just picked a random bug from the Bugzilla to get myself familiarized with the LLVM codebase :) @jolesiak? https://reviews.llvm.org/D49580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lis

  1   2   3   >