r298769 - Define __HAVE_BSWAP__ on ppc to match gcc since we support both builtins as well.

2017-03-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Sat Mar 25 00:40:13 2017 New Revision: 298769 URL: http://llvm.org/viewvc/llvm-project?rev=298769=rev Log: Define __HAVE_BSWAP__ on ppc to match gcc since we support both builtins as well. Modified: cfe/trunk/lib/Basic/Targets.cpp

Re: r298767 - [AMDGPU] Switch address space mapping by triple environment amdgiz

2017-03-24 Thread Eric Christopher via cfe-commits
On Fri, Mar 24, 2017 at 8:58 PM Yaxun Liu via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: yaxunl > Date: Fri Mar 24 22:46:25 2017 > New Revision: 298767 > > URL: http://llvm.org/viewvc/llvm-project?rev=298767=rev > Log: > [AMDGPU] Switch address space mapping by triple environment

[PATCH] D31210: [AMDGPU] Switch address space mapping by triple environment

2017-03-24 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298767: [AMDGPU] Switch address space mapping by triple environment amdgiz (authored by yaxunl). Changed prior to commit: https://reviews.llvm.org/D31210?vs=92997=93031#toc Repository: rL LLVM

r298767 - [AMDGPU] Switch address space mapping by triple environment amdgiz

2017-03-24 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Fri Mar 24 22:46:25 2017 New Revision: 298767 URL: http://llvm.org/viewvc/llvm-project?rev=298767=rev Log: [AMDGPU] Switch address space mapping by triple environment amdgiz For target environment amdgiz and amdgizcl (giz means Generic Is Zero), AMDGPU will use new address

[libcxx] r298766 - [libc++] Fix some comment typos

2017-03-24 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Fri Mar 24 22:42:20 2017 New Revision: 298766 URL: http://llvm.org/viewvc/llvm-project?rev=298766=rev Log: [libc++] Fix some comment typos Remove a stray letter, add a missing letter. No functional change. Modified: libcxx/trunk/CMakeLists.txt Modified:

r298765 - Add the _CALL_LINUX preprocessor define for ppc linux platforms.

2017-03-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Mar 24 22:33:59 2017 New Revision: 298765 URL: http://llvm.org/viewvc/llvm-project?rev=298765=rev Log: Add the _CALL_LINUX preprocessor define for ppc linux platforms. This typically is only for a new enough linker (bfd >= 2.16.2 or gold), but our ppc suppport

[libcxx] r298764 - [libc++] Fix word transposition in comment

2017-03-24 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Fri Mar 24 22:29:51 2017 New Revision: 298764 URL: http://llvm.org/viewvc/llvm-project?rev=298764=rev Log: [libc++] Fix word transposition in comment "to due" -> "due to". No functional change. Modified: libcxx/trunk/CMakeLists.txt Modified:

[libcxx] r298763 - [libc++] Fix capitalization in comment

2017-03-24 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Fri Mar 24 22:22:35 2017 New Revision: 298763 URL: http://llvm.org/viewvc/llvm-project?rev=298763=rev Log: [libc++] Fix capitalization in comment Fix a stray capital letter in the middle of a sentence. No functional change. Modified: libcxx/trunk/CMakeLists.txt

[libcxx] r298762 - [libc++] Update package version

2017-03-24 Thread Shoaib Meenai via cfe-commits
Author: smeenai Date: Fri Mar 24 22:12:37 2017 New Revision: 298762 URL: http://llvm.org/viewvc/llvm-project?rev=298762=rev Log: [libc++] Update package version Make it consistent with the rest of LLVM. Modified: libcxx/trunk/CMakeLists.txt Modified: libcxx/trunk/CMakeLists.txt URL:

r298761 - __BIGGEST_ALIGNMENT__ has always been 16 on all power platforms rather

2017-03-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Mar 24 21:55:21 2017 New Revision: 298761 URL: http://llvm.org/viewvc/llvm-project?rev=298761=rev Log: __BIGGEST_ALIGNMENT__ has always been 16 on all power platforms rather than the default of 8 in clang, fix and update tests accordingly. Modified:

r298759 - Add preprocessor defines for a bare powerpc64le triple/cpu.

2017-03-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Mar 24 21:29:18 2017 New Revision: 298759 URL: http://llvm.org/viewvc/llvm-project?rev=298759=rev Log: Add preprocessor defines for a bare powerpc64le triple/cpu. The le triple didn't exist until power8, so use that as a default (this also matches what gcc does).

[PATCH] D31363: [libc++] Remove cmake glob for source files

2017-03-24 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai created this revision. Herald added a subscriber: mgorny. Globbing for source files is problematic because if a source file is added or removed, the configuration won't be run again, and so the build won't pick up on the added or removed file until the next configuration. cmake's help

[PATCH] D31210: [AMDGPU] Switch address space mapping by triple environment

2017-03-24 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Basic/Targets.cpp:2015 -static const unsigned AMDGPUAddrSpaceMap[] = { - 1,// opencl_global - 3,// opencl_local - 2,// opencl_constant - 4,// opencl_generic - 1,// cuda_device - 2,// cuda_constant - 3

r298754 - [ODRHash] Add support for array and decayed types.

2017-03-24 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Mar 24 19:48:52 2017 New Revision: 298754 URL: http://llvm.org/viewvc/llvm-project?rev=298754=rev Log: [ODRHash] Add support for array and decayed types. Modified: cfe/trunk/include/clang/Basic/DiagnosticSerializationKinds.td cfe/trunk/lib/AST/ODRHash.cpp

Re: [PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-24 Thread Eric Christopher via cfe-commits
Not sure, that's why I asked. Is it useful? Is it one of those things we want to remove since it'll be common among all of the TUs that want the text? On Fri, Mar 24, 2017 at 3:43 PM Zhizhou Yang via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Sure I can add some more tests here. > > For

[PATCH] D31005: [Objective-C] Fix "repeated use of weak" warning with -fobjc-weak

2017-03-24 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley added a comment. Sorry for missing the unnecessary LangOpts checks here. Thanks again for the feedback! https://reviews.llvm.org/D31005 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31005: [Objective-C] Fix "repeated use of weak" warning with -fobjc-weak

2017-03-24 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley updated this revision to Diff 93023. bkelley marked 4 inline comments as done. bkelley added a comment. Updated with feedback from @rjmccall https://reviews.llvm.org/D31005 Files: include/clang/AST/Type.h lib/AST/Type.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaExpr.cpp

[PATCH] D31210: [AMDGPU] Switch address space mapping by triple environment

2017-03-24 Thread Tony Tye via Phabricator via cfe-commits
t-tye accepted this revision. t-tye added a comment. This revision is now accepted and ready to land. Just a couple of suggestions, otherwise: LGTM Comment at: lib/Basic/Targets.cpp:2015 -static const unsigned AMDGPUAddrSpaceMap[] = { - 1,// opencl_global - 3,//

Re: [PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-24 Thread Zhizhou Yang via cfe-commits
Sure I can add some more tests here. For -grecord-gcc-switches itself, I think maybe we could keep it in recording, since it is also one of the options from command line? On Fri, Mar 24, 2017 at 2:54 PM, Eric Christopher via Phabricator < revi...@reviews.llvm.org> wrote: > echristo added inline

[PATCH] D31005: [Objective-C] Fix "repeated use of weak" warning with -fobjc-weak

2017-03-24 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Just a couple of minor requests. Comment at: lib/Sema/SemaExpr.cpp:708 + if (getLangOpts().ObjCWeak && E->getType().getObjCLifetime() == Qualifiers::OCL_Weak) Cleanup.setExprNeedsCleanups(true); Much like the other

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-24 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv added inline comments. Comment at: test/Driver/debug-options.c:201 // +// GRECORD: "-dwarf-debug-flags" +// GRECORD: -### -c -grecord-gcc-switches echristo wrote: > This seems a little light on the testing, would you mind adding some more >

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-24 Thread Eric Christopher via Phabricator via cfe-commits
echristo added inline comments. Comment at: test/Driver/debug-options.c:201-202 // +// GRECORD: "-dwarf-debug-flags" +// GRECORD: -### -c -grecord-gcc-switches +// This seems a little light on the testing, would you mind adding some more interesting lines

[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin

2017-03-24 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D30920#710329, @mehdi_amini wrote: > In https://reviews.llvm.org/D30920#710209, @hfinkel wrote: > > > Yes, we should do this. I don't understand why this is tricky. Actually, I > > think having these kinds of decisions explicit in the code of

r298742 - [ODRHash] Add error messages for mismatched parameters in methods.

2017-03-24 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Mar 24 16:17:48 2017 New Revision: 298742 URL: http://llvm.org/viewvc/llvm-project?rev=298742=rev Log: [ODRHash] Add error messages for mismatched parameters in methods. Modified: cfe/trunk/include/clang/Basic/DiagnosticSerializationKinds.td

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-24 Thread Zhizhou Yang via Phabricator via cfe-commits
zhizhouy updated this revision to Diff 93011. zhizhouy added a comment. Added tests into test/Driver/debug-options.c. Thanks. https://reviews.llvm.org/D30760 Files: lib/Driver/ToolChains/Clang.cpp test/Driver/debug-options.c Index: test/Driver/debug-options.c

[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin

2017-03-24 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a subscriber: joerg. mehdi_amini added a comment. In https://reviews.llvm.org/D30920#710209, @hfinkel wrote: > Yes, we should do this. I don't understand why this is tricky. Actually, I > think having these kinds of decisions explicit in the code of the > transformations

Re: [PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-24 Thread David Blaikie via cfe-commits
As Adrian mentioned, this can probably be covered/added to an existing test case in clang/test/Driver On Fri, Mar 24, 2017 at 1:57 PM Zhizhou Yang via Phabricator < revi...@reviews.llvm.org> wrote: > zhizhouy updated this revision to Diff 93003. > zhizhouy marked 3 inline comments as done. >

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-24 Thread Zhizhou Yang via Phabricator via cfe-commits
zhizhouy updated this revision to Diff 93003. zhizhouy marked 3 inline comments as done. zhizhouy added a comment. Checked both grecord-gcc-swtiches and gno-record-gcc-switches. Modified testcases for it. https://reviews.llvm.org/D30760 Files: lib/Driver/ToolChains/Clang.cpp

[PATCH] D31210: [AMDGPU] Switch address space mapping by triple environment

2017-03-24 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 92997. yaxunl retitled this revision from "[AMDGPU] Add new address space mapping" to "[AMDGPU] Switch address space mapping by triple environment". yaxunl added a comment. Use triple environment name. https://reviews.llvm.org/D31210 Files:

[PATCH] D31005: [Objective-C] Fix "repeated use of weak" warning with -fobjc-weak

2017-03-24 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley added a comment. Thanks again for the feedback. Is there anything further I should update in this diff or is it looking good? Thanks! Brian https://reviews.llvm.org/D31005 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D7375: [clang-tidy] Assert related checkers

2017-03-24 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added inline comments. Comment at: test/clang-tidy/misc-assert-side-effect.cpp:67 + + assert(freeFunction()); + // CHECK-MESSAGES: :[[@LINE-1]]:3: warning: found assert() with side effect Is it intentional that the check also warns on free functions

r298728 - Fix a test so that it actually checks the output.

2017-03-24 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Mar 24 14:32:20 2017 New Revision: 298728 URL: http://llvm.org/viewvc/llvm-project?rev=298728=rev Log: Fix a test so that it actually checks the output. Modified: cfe/trunk/test/Modules/module-impl-with-link.c Modified: cfe/trunk/test/Modules/module-impl-with-link.c

[PATCH] D30920: Do not pass -Os and -Oz to the Gold plugin

2017-03-24 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D30920#703305, @mehdi_amini wrote: > The fundamental difference, is that Os/Oz especially are treated as > `optimizations directive` that are independent of the pass pipeline: > instructing that "loop unroll should not increase size" is

[PATCH] D31183: [OpenCL] Added parsing for OpenCL vector types.

2017-03-24 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia added a comment. In https://reviews.llvm.org/D31183#709566, @echuraev wrote: > In https://reviews.llvm.org/D31183#708833, @yaxunl wrote: > > > I think this is a good feature for the convenience of user. I've seen usage > > like this. > > > I agree. I don't see any reasons why this

[PATCH] D31324: [OpenCL] Extended mapping of parcing CodeGen arguments

2017-03-24 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Thanks! https://reviews.llvm.org/D31324 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31007: [Objective-C] Miscellaneous -fobjc-weak Fixes

2017-03-24 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. LGTM, thanks! https://reviews.llvm.org/D31007 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31308: [clang-tidy] new check readability-no-alternative-tokens

2017-03-24 Thread Gonzalo BG via Phabricator via cfe-commits
gnzlbg added a comment. Thanks for working on this! > I'm not sure if it would be helpful to have this check in both ways. I did a > code search for "not_eq", "bitand" and "and_eq" on github, and their usage > seems to be a clear minority. I actually was requesting the opposite version of

[PATCH] D31210: [AMDGPU] Add new address space mapping

2017-03-24 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. Hi Tony, I have already updated with a full diff. Please take a look. Thanks. https://reviews.llvm.org/D31210 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31114: Refactor `initTargetOptions` out of `EmitAssemblyHelper::CreateTargetMachine` and use it to initialize TargetOptions for ThinLTO Backends

2017-03-24 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson added a comment. Ping - I think this just needs a test in addition to undoing the AsmHelper definition move. I have some follow on changes I want to send that set up the rest of the lto::Config fields (e.g. the RelocModel etc). https://reviews.llvm.org/D31114

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

2017-03-24 Thread Michael F. Herbst via Phabricator via cfe-commits
mfherbst updated this revision to Diff 92986. mfherbst added a comment. Fixed typos (MainFile => MainSourceFile) https://reviews.llvm.org/D31326 Files: run-clang-tidy.py Index: run-clang-tidy.py === --- run-clang-tidy.py +++

[PATCH] D31043: Update for lifetime intrinsic signature change

2017-03-24 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm updated this revision to Diff 92981. arsenm added a comment. Use existing type member variable https://reviews.llvm.org/D31043 Files: lib/CodeGen/CGDecl.cpp test/CodeGen/cleanup-destslot-simple.c test/CodeGen/lifetime-asan.c test/CodeGen/lifetime2.c

[PATCH] D31210: [AMDGPU] Add new address space mapping

2017-03-24 Thread Tony Tye via Phabricator via cfe-commits
t-tye requested changes to this revision. t-tye added a comment. This revision now requires changes to proceed. Also please upload as full diff. Comment at: lib/Basic/Targets.cpp:2026-2069 + struct AddrSpace { +unsigned Generic, Global, Local, Constant, Private; +bool

[PATCH] D31210: [AMDGPU] Add new address space mapping

2017-03-24 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 92977. yaxunl added a comment. Revised by Tony's suggestions. https://reviews.llvm.org/D31210 Files: lib/Basic/Targets.cpp test/CodeGenOpenCL/amdgpu-env-amdgiz.cl Index: test/CodeGenOpenCL/amdgpu-env-amdgiz.cl

[PATCH] D30810: Preserve vec3 type.

2017-03-24 Thread JinGu Kang via Phabricator via cfe-commits
jaykang10 added a comment. > I believe the argument lacks numbers (or at least you have them but didn't > mention). I didn't hear about performance results, or validation that this > was actually tested for correctness. Small test cases prove a point, but > can't be considered general. > >

r298712 - Fix MSVC 'not all control paths return a value' warning.

2017-03-24 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Fri Mar 24 11:59:14 2017 New Revision: 298712 URL: http://llvm.org/viewvc/llvm-project?rev=298712=rev Log: Fix MSVC 'not all control paths return a value' warning. Modified: cfe/trunk/lib/Index/IndexingContext.cpp Modified: cfe/trunk/lib/Index/IndexingContext.cpp URL:

r298709 - [OpenCL][Bug 10573] Don't set CXXOperatorNames flag

2017-03-24 Thread Anastasia Stulova via cfe-commits
Author: stulova Date: Fri Mar 24 11:43:51 2017 New Revision: 298709 URL: http://llvm.org/viewvc/llvm-project?rev=298709=rev Log: [OpenCL][Bug 10573] Don't set CXXOperatorNames flag The flag CXXOperatorNames was overwritten unconditionally after being set for OpenCL. There seems to be no

[PATCH] D31007: [Objective-C] Miscellaneous -fobjc-weak Fixes

2017-03-24 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley added inline comments. Comment at: lib/Sema/SemaInit.cpp:6681 // full-expression's cleanups. - if ((S.getLangOpts().ObjCAutoRefCount && - MTE->getType()->isObjCLifetimeType()) || + if (MTE->getType()->isNonTrivialObjCLifetimeType() ||

[PATCH] D31007: [Objective-C] Miscellaneous -fobjc-weak Fixes

2017-03-24 Thread Brian T. Kelley via Phabricator via cfe-commits
bkelley updated this revision to Diff 92966. bkelley marked an inline comment as done. bkelley added a comment. Updated with latest feedback from @rjmccall https://reviews.llvm.org/D31007 Files: lib/Sema/SemaCast.cpp lib/Sema/SemaDecl.cpp lib/Sema/SemaDeclCXX.cpp lib/Sema/SemaInit.cpp

[libcxx] r298706 - XFAIL the std::byte tests on a bunch of old clang versions, because they don't like 'std::byte b1{1}'

2017-03-24 Thread Marshall Clow via cfe-commits
Author: marshall Date: Fri Mar 24 11:17:20 2017 New Revision: 298706 URL: http://llvm.org/viewvc/llvm-project?rev=298706=rev Log: XFAIL the std::byte tests on a bunch of old clang versions, because they don't like 'std::byte b1{1}' Modified:

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-24 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added inline comments. Comment at: test/CodeGen/debug-info-grecord-gcc-switches.c:1 +// RUN: %clang -g -grecord-gcc-switches -S -emit-llvm -o - %s | FileCheck %s +int main (void) { Shouldn't this test be in the Driver/ directory? There is already a big

[PATCH] D29599: Clang Changes for alloc_align

2017-03-24 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. FWIW, the LLVM changes for this have been committed. https://reviews.llvm.org/D29599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31007: [Objective-C] Miscellaneous -fobjc-weak Fixes

2017-03-24 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/Sema/SemaInit.cpp:6681 // full-expression's cleanups. - if ((S.getLangOpts().ObjCAutoRefCount && - MTE->getType()->isObjCLifetimeType()) || + if (MTE->getType()->isNonTrivialObjCLifetimeType() ||

[PATCH] D31176: [clang-rename] Support renaming qualified symbol

2017-03-24 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: clang-rename/USRLocFinder.cpp:195 +// Find all locations identified by the given USRs. Traverse the AST and find +// every AST node whose USR is in the given USRs' set. +class RenameLocFinder hokein wrote: > ioeric

[PATCH] D31176: [clang-rename] Support renaming qualified symbol

2017-03-24 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-rename/USRLocFinder.cpp:195 +// Find all locations identified by the given USRs. Traverse the AST and find +// every AST node whose USR is in the given USRs' set. +class RenameLocFinder ioeric wrote: > I think this

[PATCH] D31176: [clang-rename] Support renaming qualified symbol

2017-03-24 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 92954. hokein marked 3 inline comments as done. hokein added a comment. Add comments and polish tests. https://reviews.llvm.org/D31176 Files: clang-rename/RenamingAction.cpp clang-rename/RenamingAction.h clang-rename/USRFinder.cpp

[PATCH] D31004: [Objective-C] Fix __weak type traits with -fobjc-weak

2017-03-24 Thread John McCall via Phabricator via cfe-commits
rjmccall accepted this revision. rjmccall added a comment. This revision is now accepted and ready to land. Looks great, thanks! https://reviews.llvm.org/D31004 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31328: [clangd] Add code completion support

2017-03-24 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 92948. krasimir added a comment. - Make Items ownership more explicit https://reviews.llvm.org/D31328 Files: clangd/ASTManager.cpp clangd/ASTManager.h clangd/ClangDMain.cpp clangd/Protocol.cpp clangd/Protocol.h clangd/ProtocolHandlers.cpp

[PATCH] D31328: [clangd] Add code completion support

2017-03-24 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Urg, I was working on this too :) I'll compare implementations and provide comments if I find anything good to suggest. https://reviews.llvm.org/D31328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31328: [clangd] Add code completion support

2017-03-24 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 92940. krasimir marked 7 inline comments as done. krasimir added a comment. - Address review comments https://reviews.llvm.org/D31328 Files: clangd/ASTManager.cpp clangd/ASTManager.h clangd/ClangDMain.cpp clangd/Protocol.cpp clangd/Protocol.h

[PATCH] D30909: [Analyzer] Finish taint propagation to derived symbols of tainted regions

2017-03-24 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Thanks again for the awesome stuff! It took years for me to even come up with the idea. Comment at: lib/StaticAnalyzer/Checkers/GenericTaintChecker.cpp:494 + SymbolManager = C.getSymbolManager(); + return SM.getDerivedSymbol(Sym, LCV.getRegion()); }

[PATCH] D31328: [clangd] Add code completion support

2017-03-24 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 92939. krasimir added a comment. - Add '.' and '>' as completion trigger characters https://reviews.llvm.org/D31328 Files: clangd/ASTManager.cpp clangd/ASTManager.h clangd/ClangDMain.cpp clangd/Protocol.cpp clangd/Protocol.h

[PATCH] D31328: [clangd] Add code completion support

2017-03-24 Thread Benjamin Kramer via Phabricator via cfe-commits
bkramer added inline comments. Comment at: clangd/ASTManager.cpp:264 +assert(CCS->getTypedText()); +Item.label = llvm::yaml::escape(CCS->getTypedText()); +if (CCS->getBriefComment()) CompletionItem::unparse should do the escaping. It's

[PATCH] D31328: [clangd] Add code completion support

2017-03-24 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 92931. krasimir added a comment. - Clean-up leftovers https://reviews.llvm.org/D31328 Files: clangd/ASTManager.cpp clangd/ASTManager.h clangd/ClangDMain.cpp clangd/Protocol.cpp clangd/Protocol.h clangd/ProtocolHandlers.cpp

[PATCH] D31328: [clangd] Add code completion support

2017-03-24 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir created this revision. Adds code completion support to clangd. https://reviews.llvm.org/D31328 Files: clangd/ASTManager.cpp clangd/ASTManager.h clangd/ClangDMain.cpp clangd/Protocol.cpp clangd/Protocol.h clangd/ProtocolHandlers.cpp clangd/ProtocolHandlers.h

[PATCH] D24886: Add [[clang::suppress(rule, ...)]] attribute

2017-03-24 Thread Matthias Gehre via Phabricator via cfe-commits
mgehre updated this revision to Diff 92923. mgehre added a comment. Thank you for the comments; all of them have been addressed. https://reviews.llvm.org/D24886 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td lib/Sema/SemaDeclAttr.cpp lib/Sema/SemaStmtAttr.cpp

[PATCH] D31308: [clang-tidy] new check readability-no-alternative-tokens

2017-03-24 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. FWIW, I'm pretty sure this can and should be done on the lexer level - it will be faster and more universal. Repository: rL LLVM https://reviews.llvm.org/D31308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D31308: [clang-tidy] new check readability-no-alternative-tokens

2017-03-24 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. > So I would propose to keep the features as-is for now, > change the name to readability-operators-representation, and then later > (someone else?) might also add an option > for making this work the other way around. Would that be ok for you? Fine by me.

[PATCH] D31308: [clang-tidy] new check readability-no-alternative-tokens

2017-03-24 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D31308#709709, @mgehre wrote: > Thanks for your feedback, Eugene! > > I'm not sure if it would be helpful to have this check in both ways. I did a > code search for "not_eq", "bitand" and "and_eq" > on github, and their usage seems to be a

[PATCH] D31308: [clang-tidy] new check readability-no-alternative-tokens

2017-03-24 Thread Matthias Gehre via Phabricator via cfe-commits
mgehre added a comment. Thanks for your feedback, Eugene! I'm not sure if it would be helpful to have this check in both ways. I did a code search for "not_eq", "bitand" and "and_eq" on github, and their usage seems to be a clear minority. So I would propose to keep the features as-is for now,

[PATCH] D29262: Fixes to modernize-use-using

2017-03-24 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D29262#709351, @krystyna wrote: > I have plan to finish this patch next week, when I finish academic year at my > school. If I will have any issues with submitting, Prazek offered to help me. Sure, no stress. Good luck with your studies!

[PATCH] D22476: [AST] Make MemberExpr non-dependent according to core issue 224

2017-03-24 Thread Matthias Gehre via Phabricator via cfe-commits
mgehre added a comment. Friendly ping https://reviews.llvm.org/D22476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31324: [OpenCL] Extended mapping of parcing CodeGen arguments

2017-03-24 Thread Egor Churaev via Phabricator via cfe-commits
echuraev created this revision. Herald added a subscriber: yaxunl. Enable cl_mad_enamle and cl_no_signed_zeros options when user turns on cl_unsafe_math_optimizations or cl_fast_relaxed_math options. https://reviews.llvm.org/D31324 Files: lib/Frontend/CompilerInvocation.cpp

r298699 - [analyzer] MisusedMovedObject: Remove deprecated callback. NFC

2017-03-24 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Fri Mar 24 05:16:08 2017 New Revision: 298699 URL: http://llvm.org/viewvc/llvm-project?rev=298699=rev Log: [analyzer] MisusedMovedObject: Remove deprecated callback. NFC wantsRegionChangeUpdate() checker callback is no longer used since recently. Fixes a buildbot

r298698 - [analyzer] Add MisusedMovedObjectChecker for detecting use-after-move errors.

2017-03-24 Thread Artem Dergachev via cfe-commits
Author: dergachev Date: Fri Mar 24 04:52:30 2017 New Revision: 298698 URL: http://llvm.org/viewvc/llvm-project?rev=298698=rev Log: [analyzer] Add MisusedMovedObjectChecker for detecting use-after-move errors. The checker currently warns on copying, moving, or calling methods on an object that

[PATCH] D31321: [OpenCL] Do not generate "kernel_arg_type_qual" metadata for non-pointer args

2017-03-24 Thread Egor Churaev via Phabricator via cfe-commits
echuraev created this revision. Herald added a subscriber: yaxunl. "kernel_arg_type_qual" metadata should contain const/volatile/restrict tags only for pointer types to match the corresponding requirement of the OpenCL specification. OpenCL 2.0 spec 5.9.3 Kernel Object Queries:

[PATCH] D31288: [libclang] Bury dead TemporaryFiles

2017-03-24 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298697: [libclang] Bury dead TemporaryFiles (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D31288?vs=92804=92908#toc Repository: rL LLVM https://reviews.llvm.org/D31288

r298697 - [libclang] Bury dead TemporaryFiles

2017-03-24 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Fri Mar 24 04:49:54 2017 New Revision: 298697 URL: http://llvm.org/viewvc/llvm-project?rev=298697=rev Log: [libclang] Bury dead TemporaryFiles Summary: AllocatedCXCodeCompleteResults::TemporaryFiles have turned into zombies. Seven years ago they used to do their job during

[PATCH] D31121: [clangd] Add support for vscode extension configuration

2017-03-24 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298696: [clangd] Add support for vscode extension configuration (authored by krasimir). Changed prior to commit: https://reviews.llvm.org/D31121?vs=92367=92907#toc Repository: rL LLVM

[clang-tools-extra] r298696 - [clangd] Add support for vscode extension configuration

2017-03-24 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Fri Mar 24 04:29:00 2017 New Revision: 298696 URL: http://llvm.org/viewvc/llvm-project?rev=298696=rev Log: [clangd] Add support for vscode extension configuration Summary: Adds vscode workspace level configuration options for path to clangd binary and its arguments.

r298695 - Revert r298491 and r298494 which changed Clang's handling of 'nonnull'

2017-03-24 Thread Chandler Carruth via cfe-commits
Author: chandlerc Date: Fri Mar 24 04:11:57 2017 New Revision: 298695 URL: http://llvm.org/viewvc/llvm-project?rev=298695=rev Log: Revert r298491 and r298494 which changed Clang's handling of 'nonnull' attributes. These patches don't work because we can't currently access the parameter

[PATCH] D30045: Remove `std::random_shuffle` in C++17

2017-03-24 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists closed this revision. mclow.lists added a comment. Committed as revision 298597 https://reviews.llvm.org/D30045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31163: Implement Pp0156r2 "Variadic Lock Guard, version 5"

2017-03-24 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists closed this revision. mclow.lists marked an inline comment as done. mclow.lists added a comment. Committed as revision 298681. https://reviews.llvm.org/D31163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org