[PATCH] D33440: clang-format: better handle statement macros

2017-11-09 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. ping? https://reviews.llvm.org/D33440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32478: [clang-format] Fix AlignOperands when BreakBeforeBinaryOperators is set

2017-11-09 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. ping? https://reviews.llvm.org/D32478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D5767: Template Instantiation Observer + a few other templight-related changes

2017-11-09 Thread Manuel Klimek via cfe-commits
On Thu, Nov 9, 2017 at 4:02 AM Richard Smith - zygoloid via Phabricator < revi...@reviews.llvm.org> wrote: > rsmith added a comment. > > I'm not entirely sure what's happening with this and > https://reviews.llvm.org/D38818, but the direction looks good to me, and > I left a couple of comments on

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 122206. sammccall added a comment. Add test verifying that working directory is compile_flags's parent. https://reviews.llvm.org/D39799 Files: docs/JSONCompilationDatabase.rst include/clang/Tooling/CompilationDatabase.h

[PATCH] D33440: clang-format: better handle statement macros

2017-11-09 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added a comment. Out of curiosity, will this be able to fix the two situations that you get for python extension? There, you usually have a PyObject_HEAD with out semicolon in a struct and than a PyObject_HEAD_INIT(..) in a braced init list. More info:

[PATCH] D33589: clang-format: consider not splitting tokens in optimization

2017-11-09 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. ping ? https://reviews.llvm.org/D33589 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32478: [clang-format] Fix AlignOperands when BreakBeforeBinaryOperators is set

2017-11-09 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D32478#806757, @Typz wrote: > I renamed the option to `AlignAfterOperator`, is it acceptable now? > (I also thought of `UnindentOperator`, but I think it is better to keep the > notion of alignment) > > Note that this style is used in

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread Manuel Klimek via Phabricator via cfe-commits
klimek accepted this revision. klimek added a comment. lg Comment at: lib/Tooling/CompilationDatabase.cpp:312 +FixedCompilationDatabase::loadFromFile(StringRef Path, std::string ) { + ErrorMsg.clear(); + llvm::ErrorOr File = sammccall wrote:

[PATCH] D39834: [ClangDriver] -foptimization-record-file= should imply -fsave-optimization-record

2017-11-09 Thread Dmitry Venikov via Phabricator via cfe-commits
Quolyk created this revision. Herald added a subscriber: ilya-biryukov. This is my first attempt to contribute to llvm. I'm trying to implement this https://bugs.llvm.org/show_bug.cgi?id=33670. I'm struggling with writing tests for this patch. I will be very thankful if somebody guides me

r317777 - [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread Sam McCall via cfe-commits
Author: sammccall Date: Thu Nov 9 02:37:39 2017 New Revision: 31 URL: http://llvm.org/viewvc/llvm-project?rev=31=rev Log: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found. Summary: This is an alternative to JSONCompilationDatabase for simple projects that don't

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL31: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found. (authored by sammccall). Repository: rL LLVM https://reviews.llvm.org/D39799 Files:

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D39799#919508, @ilya-biryukov wrote: > In https://reviews.llvm.org/D39799#919494, @sammccall wrote: > > > e.g. IIUC, things like `#include "sibling.h"` won't look for the h file > > next to the cc file? > > > Actually, this should work as

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. Next time, please remember to add `cfe-commits` to the subscriber. Comment at: clang-tidy/objc/PropertyDeclarationCheck.cpp:14 + +#include + Do we need this header? Comment at:

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris added a comment. In https://reviews.llvm.org/D39114#914098, @kubamracek wrote: > Hi and sorry for replying so late! All of the changes LGTM with a few nits. All good, thanks for having a look! >> Assembly for Darwin x86_64 and how we avoid the ELF'isms (do we need to >> implement

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris updated this revision to Diff 122210. dberris marked an inline comment as done. dberris added a comment. - fixup: Use ASM macros for darwin assembly - fixup: support weak symbols for Darwin linkage https://reviews.llvm.org/D39114 Files: clang/lib/Driver/XRayArgs.cpp

[PATCH] D32478: [clang-format] Fix AlignOperands when BreakBeforeBinaryOperators is set

2017-11-09 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. > Sorry for the long response time. I don't see this style rule expressed > explicitly in the Skia or QtCreator style guides - is this something that > just happens to be done sometimes in the code bases? This is present in code base. Those project's style guides are not

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

2017-11-09 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. ping? https://reviews.llvm.org/D37813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a subscriber: klimek. ilya-biryukov added a comment. I personally think they're useful to have anyway, and they don't add much noise when they're at the end of completions list. I sometimes want to complete an item I know is there and then fix accessibility. Do you think

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 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. This is probably one of the things that I'd like to be configurable. In https://reviews.llvm.org/D39836#920313, @sammccall wrote: > - they bulk up tests and debugging output

[PATCH] D39505: [OpenMP] Show error if VLAs are not supported

2017-11-09 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:944 + /// \brief Whether target supports variable-length arrays. + bool isVLASupported() const { return VLASupported; } + ABataev wrote: > ABataev wrote: > > Hahnfeld wrote: > > >

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 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. In https://reviews.llvm.org/D39799#920195, @sammccall wrote: > It's doable, but then you're fighting the infrastructure here. The same > ambiguity can exist between any pair of

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 122211. sammccall added a comment. Add fixme to upgrade out-param APIs. https://reviews.llvm.org/D39799 Files: docs/JSONCompilationDatabase.rst include/clang/Tooling/CompilationDatabase.h lib/Tooling/CompilationDatabase.cpp

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. (There must be some reason why https://reviews.llvm.org/D38077 didn't just do this, but I don't get it!) https://reviews.llvm.org/D39836 Files: clangd/ClangdUnit.cpp test/clangd/completion-priorities.test test/clangd/completion-qualifiers.test Index:

[PATCH] D39831: [Driver] Make the use of relax relocations a per target option

2017-11-09 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. Herald added a subscriber: mgorny. The support for relax relocations is dependent on the linker and different toolchains within the same compiler can be using different linkers some of which may or may not support relax relocations. Give toolchains the

r317776 - Fix a bug with the use of __builtin_bzero in a conditional expression.

2017-11-09 Thread John McCall via cfe-commits
Author: rjmccall Date: Thu Nov 9 01:32:32 2017 New Revision: 317776 URL: http://llvm.org/viewvc/llvm-project?rev=317776=rev Log: Fix a bug with the use of __builtin_bzero in a conditional expression. Patch by Bharathi Seshadri! Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp

[clang-tools-extra] r317780 - [clangd] Add rename support.

2017-11-09 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Nov 9 03:30:04 2017 New Revision: 317780 URL: http://llvm.org/viewvc/llvm-project?rev=317780=rev Log: [clangd] Add rename support. Summary: Make clangd handle "textDocument/rename" request. The rename functionality comes from the "local-rename" sub-tool of

[PATCH] D39676: [clangd] Add rename support.

2017-11-09 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done. Closed by commit rL317780: [clangd] Add rename support. (authored by hokein). Changed prior to commit: https://reviews.llvm.org/D39676?vs=122074=12#toc Repository: rL LLVM

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D39836#920313, @sammccall wrote: > In https://reviews.llvm.org/D39836#920306, @ilya-biryukov wrote: > > > I personally think they're useful to have anyway, and they don't add much > > noise when they're at the end of completions list. > > I

[PATCH] D32478: [clang-format] Fix AlignOperands when BreakBeforeBinaryOperators is set

2017-11-09 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D32478#920275, @Typz wrote: > > Sorry for the long response time. I don't see this style rule expressed > > explicitly in the Skia or QtCreator style guides - is this something that > > just happens to be done sometimes in the code bases? > >

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D39836#920306, @ilya-biryukov wrote: > I personally think they're useful to have anyway, and they don't add much > noise when they're at the end of completions list. > I sometimes want to complete an item I know is there and then fix >

[PATCH] D33440: clang-format: better handle statement macros

2017-11-09 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. In https://reviews.llvm.org/D33440#920205, @djasper wrote: > Out of curiosity, will this be able to fix the two situations that you get > for python extension? > There, you usually have a PyObject_HEAD with out semicolon in a struct and > than a PyObject_HEAD_INIT(..) in

[PATCH] D39050: Add index-while-building support to Clang

2017-11-09 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. In https://reviews.llvm.org/D39050#900830, @arphaman wrote: > I think this patch should be split into a number of smaller patches to help > the review process. > > Things like `tools/IndexStore`, `DirectoryWatcher` and other components that > are not directly needed

[PATCH] D39843: [clangd] Use in-memory preambles in clangd.

2017-11-09 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. https://reviews.llvm.org/D39843 Files: clangd/ClangdUnit.cpp Index: clangd/ClangdUnit.cpp === --- clangd/ClangdUnit.cpp +++ clangd/ClangdUnit.cpp @@ -235,7 +235,7 @@ // NOTE: we use

[PATCH] D39843: [clangd] Use in-memory preambles in clangd.

2017-11-09 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. After looking at the numbers, I think we should make this configurable. I'll update this change accordingly. Not sure what should be the default, though. I'm currently erring on the side of "in-memory by default". Current implementation eats almost twice as much

[PATCH] D39838: [clang] [python] [tests] Update priority values in code completion test

2017-11-09 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov accepted this revision. ilya-biryukov added a comment. This revision is now accepted and ready to land. LGTM. Can we run those tests as part of `check-all` cmake target or setup a buildbot that runs those? Seems surprising it went unnoticed for so long. Repository: rL LLVM

[PATCH] D39842: Allow to store precompiled preambles in memory.

2017-11-09 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. These preambles are built by ASTUnit and clangd. Previously, preambles were always stored on disk. In-memory preambles are routed back to the compiler as virtual files in a custom VFS. Interface of ASTUnit does not allow to use in-memory preambles, as

r317793 - [clang-format] Apply a clang-tidy suggestion, NFC

2017-11-09 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Thu Nov 9 07:12:17 2017 New Revision: 317793 URL: http://llvm.org/viewvc/llvm-project?rev=317793=rev Log: [clang-format] Apply a clang-tidy suggestion, NFC Modified: cfe/trunk/lib/Format/Format.cpp Modified: cfe/trunk/lib/Format/Format.cpp URL:

[PATCH] D32478: [clang-format] Fix AlignOperands when BreakBeforeBinaryOperators is set

2017-11-09 Thread Francois Ferrand via Phabricator via cfe-commits
Typz added a comment. > Unless I'm missing something, I'd agree with Daniel; this is not a rule > that's widely used, and I'd say reformatting a code base to the > clang-formatted variant will not regress readability. Unfortunately coding rules are not just about readability, but also about

r317783 - [clang-format] Fix argument name comment, NFC

2017-11-09 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Thu Nov 9 05:19:14 2017 New Revision: 317783 URL: http://llvm.org/viewvc/llvm-project?rev=317783=rev Log: [clang-format] Fix argument name comment, NFC Modified: cfe/trunk/lib/Format/ContinuationIndenter.cpp Modified: cfe/trunk/lib/Format/ContinuationIndenter.cpp

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris updated this revision to Diff 19. dberris added a comment. - fixup: Use ASM macros for darwin assembly - fixup: support weak symbols for Darwin linkage - fixup: qualify symbols, use macros, limit weak symbols - fixup: move test cases from Linux up one directory - fixup: make clang

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris added subscribers: pelikan, echristo. dberris added a comment. Got some good progress on finally being able to make this work... here's the current state: - When linking the final binary, the XRay runtime can't seem to find the `__{start,stop}_xray_{fn_idx,instr_map}` symbols. I've

[PATCH] D39786: [clang-format] Sort using declarations by splitting on '::'

2017-11-09 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 https://reviews.llvm.org/D39786 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r317784 - [clang-format] Fix a clang-tidy finding, NFC

2017-11-09 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Thu Nov 9 05:22:03 2017 New Revision: 317784 URL: http://llvm.org/viewvc/llvm-project?rev=317784=rev Log: [clang-format] Fix a clang-tidy finding, NFC Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp Modified: cfe/trunk/lib/Format/UnwrappedLineParser.cpp URL:

[PATCH] D39838: [clang] [python] [tests] Update priority values in code completion test

2017-11-09 Thread Michał Górny via Phabricator via cfe-commits
mgorny created this revision. The priority for destructors and operators was reduced in https://reviews.llvm.org/rL314019. Adjust the values used in the test appropriately to fix the test failure. Repository: rL LLVM https://reviews.llvm.org/D39838 Files:

[PATCH] D38639: [clangd] #include statements support for Open definition

2017-11-09 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. I'm not sure it's better to use the InclusionDirective callback for this. We need to get the includes in two places: in the preamble and non-preamble. In the preamble we use the callback, have to store some temporary stuff because we don't have a SourceManager in

[PATCH] D39806: [clang-format] Support python-style comments in text protos

2017-11-09 Thread Benjamin Kramer via Phabricator via cfe-commits
bkramer added inline comments. Comment at: lib/Format/BreakableToken.cpp:48 + static const SmallVector KnownTextProtoPrefixes{"//", "#"}; + const SmallVectorImpl = + (Style.Language == FormatStyle::LK_TextProto) ? KnownTextProtoPrefixes

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. I would prefer to make this behaviour configurable. https://reviews.llvm.org/D39836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r317800 - [VirtualFileSystem] InMemoryFileSystem::addFile(): Type and Perms

2017-11-09 Thread Ben Hamilton via cfe-commits
Author: benhamilton Date: Thu Nov 9 08:01:16 2017 New Revision: 317800 URL: http://llvm.org/viewvc/llvm-project?rev=317800=rev Log: [VirtualFileSystem] InMemoryFileSystem::addFile(): Type and Perms Summary: This implements a FIXME in InMemoryFileSystem::addFile(), allowing clients to specify

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. So I probably should have started from the other end, here :-) I'd really like to make the completion retrieval and ranking more flexible. In particular - incorporating results from other sources (indexes: both in-memory and external services). - combining more

[PATCH] D39786: [clang-format] Sort using declarations by splitting on '::'

2017-11-09 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317794: [clang-format] Sort using declarations by splitting on '::' (authored by krasimir). Repository: rL LLVM https://reviews.llvm.org/D39786 Files: cfe/trunk/docs/ClangFormatStyleOptions.rst

[PATCH] D39843: [clangd] Use in-memory preambles in clangd.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Heh, I was just going to ask :-) As a very first step, can we make this configurable but off-by-default? That will address the pressing diskless-servers need. In a typical workstation scenario, disk is plentiful (if slow) and RAM is scarce - very likely we're

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added inline comments. Comment at: docs/clang-tidy/checks/objc-property-declaration.rst:7 +Finds property declarations in Objective-C files that do not follow the pattern +of property names in Google's Objective-C Style Guide. The property name should +be in the

r317813 - [OPENMP] Codegen for `#pragma omp target parallel for simd`.

2017-11-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Nov 9 09:32:15 2017 New Revision: 317813 URL: http://llvm.org/viewvc/llvm-project?rev=317813=rev Log: [OPENMP] Codegen for `#pragma omp target parallel for simd`. Added codegen for `#pragma omp target parallel for simd` and clauses. Added:

r317794 - [clang-format] Sort using declarations by splitting on '::'

2017-11-09 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Thu Nov 9 07:41:23 2017 New Revision: 317794 URL: http://llvm.org/viewvc/llvm-project?rev=317794=rev Log: [clang-format] Sort using declarations by splitting on '::' Summary: This patch improves using declarations sorting. Reviewers: bkramer Reviewed By: bkramer

r317799 - [clang-format] Keep Sphinx happy after r317794

2017-11-09 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Thu Nov 9 07:54:59 2017 New Revision: 317799 URL: http://llvm.org/viewvc/llvm-project?rev=317799=rev Log: [clang-format] Keep Sphinx happy after r317794 Modified: cfe/trunk/docs/ClangFormatStyleOptions.rst cfe/trunk/include/clang/Format/Format.h Modified:

[PATCH] D39842: Allow to store precompiled preambles in memory.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. I'm really happy you've made this work! I don't understand it enough to do a meaningful review (keen to learn if you have time for a walkthrough when back in the office). https://reviews.llvm.org/D39842 ___ cfe-commits

[PATCH] D38639: [clangd] #include statements support for Open definition

2017-11-09 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. In https://reviews.llvm.org/D38639#920487, @ilya-biryukov wrote: > I think we should never iterate through `SourceManager`, as it's much easier > to get wrong than using the callbacks. I agree that all that fiddling with > callbacks is unfortunate, but it's well

[PATCH] D39800: [analyzer] pr34404: Fix a crash on pointers to members in nested anonymous structures.

2017-11-09 Thread Kirill Romanenkov via Phabricator via cfe-commits
kromanenkov added a comment. @NoQ Do we need to change a `DeclaratorDecl` field in PointerToMember SVal to something more common, like `ValueDecl`, to support `IndirectFieldDecl` as well? https://reviews.llvm.org/D39800 ___ cfe-commits mailing

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Kuba (Brecka) Mracek via Phabricator via cfe-commits
kubamracek added a comment. > When linking the final binary, the XRay runtime can't seem to find the > `__{start,stop}_xray_{fn_idx,instr_map}` symbols. I've marked them weak, but > they seem to either not be resolved when statically linking the binary. The > dynamic lib version of the XRay

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton added inline comments. Comment at: clang-tidy/objc/PropertyDeclarationCheck.cpp:25 +/// we will do best effort to generate a fix, however, if the +/// case can not be solved with a simple fix (e.g. remove prefix or change first +/// character), we will leave the fix

r317811 - [OPENMP] Treat '#pragma omp target parallel for simd' as simd directive.

2017-11-09 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Nov 9 09:01:35 2017 New Revision: 317811 URL: http://llvm.org/viewvc/llvm-project?rev=317811=rev Log: [OPENMP] Treat '#pragma omp target parallel for simd' as simd directive. `#pragma omp target parallel for simd` mistakenly was not treated as a simd directive, fixed

[PATCH] D39114: [XRay] Initial XRay in Darwin Support

2017-11-09 Thread Kuba (Brecka) Mracek via Phabricator via cfe-commits
kubamracek added a comment. Thanks for working on this! Can we split the patch and land parts that are LGTM? It's getting a bit crowded here. I think the ASM changes should be a separate patch, and the test changes as well, probably. https://reviews.llvm.org/D39114

[libcxx] r317816 - Add _LIBCPP_INLINE_VISIBILITY to __compressed_pair_elem members

2017-11-09 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Thu Nov 9 09:54:49 2017 New Revision: 317816 URL: http://llvm.org/viewvc/llvm-project?rev=317816=rev Log: Add _LIBCPP_INLINE_VISIBILITY to __compressed_pair_elem members The commit r300140 changed the implementation of compressed_pair, but didn't add

[PATCH] D39751: [libc++] Add _LIBCPP_INLINE_VISIBILITY to __compressed_pair_elem members

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317816: Add _LIBCPP_INLINE_VISIBILITY to __compressed_pair_elem members (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D39751?vs=121939=122261#toc Repository: rL LLVM

[PATCH] D39457: [OPENMP] Current status of OpenMP support.

2017-11-09 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev updated this revision to Diff 122268. ABataev added a comment. Update status. https://reviews.llvm.org/D39457 Files: docs/OpenMPSupport.rst docs/index.rst Index: docs/index.rst === --- docs/index.rst +++

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl added a subscriber: cfe-commits. kzhuravl added a reviewer: aaron.ballman. kzhuravl added a comment. Hi Alex, can you rebase on top of trunk (I think you brought in some extra changes from hcc branch) and upload a full diff? Comment at:

[PATCH] D39852: [clangd] Support returning a limited number of completion results.

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. All results are scored, we only process CodeCompletionStrings for the winners. We now return CompletionList rather than CompletionItem[] (both are valid). sortText is now based on CodeCompletionResult::orderedName (mostly the same). This is the first clangd-only

[PATCH] D39457: [OPENMP] Current status of OpenMP support.

2017-11-09 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev updated this revision to Diff 122273. ABataev added a comment. Fixed version of OpenMP standard https://reviews.llvm.org/D39457 Files: docs/OpenMPSupport.rst docs/index.rst Index: docs/index.rst === ---

r317820 - [analyzer] assume bitwise arithmetic axioms

2017-11-09 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Nov 9 11:06:22 2017 New Revision: 317820 URL: http://llvm.org/viewvc/llvm-project?rev=317820=rev Log: [analyzer] assume bitwise arithmetic axioms Patches the solver to assume that bitwise OR of an unsigned value with a constant always produces a value

[PATCH] D39707: [analyzer] assume bitwise arithmetic axioms

2017-11-09 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317820: [analyzer] assume bitwise arithmetic axioms (authored by george.karpenkov). Changed prior to commit: https://reviews.llvm.org/D39707?vs=122170=122278#toc Repository: rL LLVM

[PATCH] D39799: [Tooling] Use FixedCompilationDatabase when `compile_flags.txt` is found.

2017-11-09 Thread JVApen via Phabricator via cfe-commits
JVApen added a comment. How does this new file know if it should handle it's flags as it does in clang.exe or clang-cl.exe? Repository: rL LLVM https://reviews.llvm.org/D39799 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:1329 StringArgument<"ISA", 1>]; let Documentation = [AMDGPUFlatWorkGroupSizeDocs]; let Subjects = SubjectList<[Function], ErrorDiag, "ExpectedKernelFunction">;

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov created this revision. Herald added subscribers: szepet, xazax.hun. This is the issue breaking the postgresql bot, purely by chance exposed through taint checker, somehow appearing after https://reviews.llvm.org/D38358 got committed. The backstory is that the taint checker

[PATCH] D39739: [HCC] Add flag to Import Weak Functions in Function Importer

2017-11-09 Thread Aaron En Ye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 122271. ashi1 added subscribers: scchan, yaxunl, ashi1. ashi1 added a comment. Herald added a subscriber: eraman. I've added the lit tests for this change, and also showing full context. My lit test import_weak_type.ll follows similar format to

[PATCH] D39859: [OpenMP] diagnose assign to firstprivate const

2017-11-09 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny created this revision. [OpenMP] diagnose assign to firstprivate const Clang does not diagnose assignments to const variables declared firstprivate. Furthermore, codegen is broken such that, at run time, such assignments simply have no effect. For example, the following prints 0 not 1:

[PATCH] D39838: [clang] [python] [tests] Update priority values in code completion test

2017-11-09 Thread Michał Górny via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317828: [python] [tests] Update priority values in code completion test (authored by mgorny). Changed prior to commit: https://reviews.llvm.org/D39838?vs=17=122304#toc Repository: rL LLVM

[PATCH] D39706: [refactor][extract] Initial implementation of variable captures

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 122270. arphaman marked 5 inline comments as done. arphaman added a comment. Address review comments Repository: rL LLVM https://reviews.llvm.org/D39706 Files: lib/Tooling/Refactoring/CMakeLists.txt

[PATCH] D39706: [refactor][extract] Initial implementation of variable captures

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added inline comments. Comment at: lib/Tooling/Refactoring/Extract/CaptureVariables.cpp:36 + return true; +// FIXME: Capture 'self'. +if (!VD->isLocalVarDeclOrParm()) ioeric wrote: > and `this`? This is a different kind of expression that

[PATCH] D39707: [analyzer] assume bitwise arithmetic axioms

2017-11-09 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin added a comment. This looks good to me. It is very clean! But please add a comment in the places where you are assuming a two's complement value representation for signed integers. https://reviews.llvm.org/D39707 ___ cfe-commits mailing

[PATCH] D39838: [clang] [python] [tests] Update priority values in code completion test

2017-11-09 Thread Michał Górny via Phabricator via cfe-commits
mgorny added a comment. In https://reviews.llvm.org/D39838#920399, @ilya-biryukov wrote: > LGTM. > > Can we run those tests as part of `check-all` cmake target or setup a > buildbot that runs those? Seems surprising it went unnoticed for so long. I was thinking of that but I think it'd be

Re: [PATCH] Ensure std::getline always 0-terminates string.

2017-11-09 Thread Reimar Döffinger via cfe-commits
Hello! On Wed, Nov 08, 2017 at 12:36:00PM -0800, Volodymyr Sapsai wrote: > Thanks for the patch, Reimar. Can you please add tests to ensure this > functionality doesn’t regress? As null character is required by the standard > (27.7.2.3p21), a good starting point seems to be >

r317828 - [python] [tests] Update priority values in code completion test

2017-11-09 Thread Michal Gorny via cfe-commits
Author: mgorny Date: Thu Nov 9 12:17:41 2017 New Revision: 317828 URL: http://llvm.org/viewvc/llvm-project?rev=317828=rev Log: [python] [tests] Update priority values in code completion test The priority for destructors and operators was reduced in r314019. Adjust the values used in the test

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. In https://reviews.llvm.org/D39836#920587, @sammccall wrote: > So I probably should have started from the other end, here :-) > > I'd really like to make the completion retrieval and ranking more flexible. > In particular > > - incorporating results from other sources

[PATCH] D39859: [OpenMP] diagnose assign to firstprivate const

2017-11-09 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/Sema/SemaExpr.cpp:14356 +if (S.IsOpenMPCapturedDecl(Var)) { + bool hasConst = DeclRefType.isConstQualified(); DeclRefType = DeclRefType.getUnqualifiedType(); `hasConst` must start from capital letter

[PATCH] D39738: [clangd] Sort completion results.

2017-11-09 Thread Francisco Lopes da Silva via Phabricator via cfe-commits
francisco.lopes added a comment. Sorting got hardcoded? libclang has it optional. If hardcoded it becomes a performance problem, since some clients may wish to order it themselves with private heuristics. Repository: rL LLVM https://reviews.llvm.org/D39738

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx updated this revision to Diff 122323. AlexVlx marked 7 inline comments as done. https://reviews.llvm.org/D39857 Files: include/clang/Basic/Attr.td lib/CodeGen/TargetInfo.cpp lib/Sema/SemaDeclAttr.cpp Index: lib/Sema/SemaDeclAttr.cpp

[PATCH] D38818: Template Instantiation Observer + a few other templight-related changes

2017-11-09 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 marked an inline comment as done. sabel83 added a comment. The last update of the patch also contains the changes to this pull request based on comments from https://reviews.llvm.org/D5767. https://reviews.llvm.org/D38818 ___ cfe-commits

[PATCH] D39859: [OpenMP] diagnose assign to firstprivate const

2017-11-09 Thread Joel E. Denny via Phabricator via cfe-commits
jdenny updated this revision to Diff 122329. jdenny added a comment. Hi Alexey. Thanks for your comments. This update should address them all. https://reviews.llvm.org/D39859 Files: lib/Sema/SemaExpr.cpp test/OpenMP/parallel_firstprivate_messages.cpp Index:

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx updated this revision to Diff 122318. https://reviews.llvm.org/D39857 Files: include/clang/Basic/Attr.td lib/CodeGen/TargetInfo.cpp lib/Sema/SemaDeclAttr.cpp Index: lib/Sema/SemaDeclAttr.cpp === ---

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread Devin Coughlin via Phabricator via cfe-commits
dcoughlin accepted this revision. dcoughlin added a comment. This revision is now accepted and ready to land. This seems reasonable to me. Please commit it. @NoQ can do a post-commit review and fix it up if he would rather address the issue differently. https://reviews.llvm.org/D39862

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. I'm curious if the crash would turn into an assertion failure during `getRawSVal()` after https://reviews.llvm.org/D38801 is committed. The problem with this checker producing void symbols is known since https://reviews.llvm.org/D26837. If this problem is fixed on the

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx marked an inline comment as done. AlexVlx added a comment. In https://reviews.llvm.org/D39857#920814, @kzhuravl wrote: > Hi Alex, can you rebase on top of trunk (I think you brought in some extra > changes from hcc branch) and upload a full diff? Hello Konstantine - apologies about

[PATCH] D39857: [AMDGPU] Late parsed / dependent arguments for AMDGPU kernel attributes

2017-11-09 Thread Alex Voicu via Phabricator via cfe-commits
AlexVlx updated this revision to Diff 122327. https://reviews.llvm.org/D39857 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/CodeGen/TargetInfo.cpp lib/Sema/SemaDeclAttr.cpp Index: lib/Sema/SemaDeclAttr.cpp

[PATCH] D39862: [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317839: [analyzer] do not crash when trying to convert an APSInt to an unexpected type (authored by george.karpenkov). Changed prior to commit: https://reviews.llvm.org/D39862?vs=122306=122328#toc

r317839 - [analyzer] do not crash when trying to convert an APSInt to an unexpected type

2017-11-09 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Nov 9 13:49:38 2017 New Revision: 317839 URL: http://llvm.org/viewvc/llvm-project?rev=317839=rev Log: [analyzer] do not crash when trying to convert an APSInt to an unexpected type This is the issue breaking the postgresql bot, purely by chance exposed through

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Yan Zhang via Phabricator via cfe-commits
Wizard updated this revision to Diff 122319. Wizard marked 6 inline comments as done. Wizard added a comment. address comments https://reviews.llvm.org/D39829 Files: clang-tidy/objc/CMakeLists.txt clang-tidy/objc/ObjCTidyModule.cpp clang-tidy/objc/PropertyDeclarationCheck.cpp

[PATCH] D39829: add new check for property declaration

2017-11-09 Thread Yan Zhang via Phabricator via cfe-commits
Wizard added inline comments. Comment at: clang-tidy/objc/PropertyDeclarationCheck.cpp:25 +/// we will do best effort to generate a fix, however, if the +/// case can not be solved with a simple fix (e.g. remove prefix or change first +/// character), we will leave the fix to

[PATCH] D39836: [clangd] Drop impossible completions (unavailable or inaccessible)

2017-11-09 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In https://reviews.llvm.org/D39836#920977, @arphaman wrote: > In https://reviews.llvm.org/D39836#920587, @sammccall wrote: > > > So I probably should have started from the other end, here :-) > > > > I'd really like to make the completion retrieval and ranking more

[PATCH] D38818: Template Instantiation Observer + a few other templight-related changes

2017-11-09 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 marked an inline comment as done. sabel83 added a comment. I have moved the tests into their own directory in the last update. Comment at: tools/CMakeLists.txt:37 add_clang_subdirectory(libclang) +add_subdirectory(templight) rsmith wrote: > Did you

[PATCH] D5767: Template Instantiation Observer + a few other templight-related changes

2017-11-09 Thread Ábel Sinkovics via Phabricator via cfe-commits
sabel83 added a comment. In https://reviews.llvm.org/D5767#920085, @rsmith wrote: > I'm not entirely sure what's happening with this and > https://reviews.llvm.org/D38818, but the direction looks good to me, and I > left a couple of comments on the other review thread. This was the original

  1   2   >