[PATCH] D37808: [clang-tidy] Add new hicpp-multiway-paths-covered check for missing branches

2017-10-18 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth marked 4 inline comments as done. JonasToth added inline comments. Comment at: clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp:98 + // hold. + const std::size_t BitCount = [, ]() { +if (T->isIntegralType(Context)) JDevlieghere wrote: > Unless you

[PATCH] D38943: [ASTImporter] import SubStmt of CaseStmt

2017-10-18 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316069: [ASTImporter] Import SubStmt of CaseStmt (authored by xazax). Changed prior to commit: https://reviews.llvm.org/D38943?vs=119162=119444#toc Repository: rL LLVM

r316069 - [ASTImporter] Import SubStmt of CaseStmt

2017-10-18 Thread Gabor Horvath via cfe-commits
Author: xazax Date: Wed Oct 18 02:25:18 2017 New Revision: 316069 URL: http://llvm.org/viewvc/llvm-project?rev=316069=rev Log: [ASTImporter] Import SubStmt of CaseStmt Patch by: Rafael Stahl! Differential Revision: https://reviews.llvm.org/D38943 Modified: cfe/trunk/lib/AST/ASTImporter.cpp

[PATCH] D39043: [clang-rename] Rename alias.

2017-10-18 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. Herald added subscribers: mgorny, klimek. - Support rename alias. - Add unittests for renaming alias. - Don't generate fixes for the SourceLocations that are invalid or in temporary buffer, otherwise crash would be happened when generating AtomicChanges.

[PATCH] D35541: [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER)

2017-10-18 Thread NAKAMURA Takumi via Phabricator via cfe-commits
chapuni added a comment. @krasimir, I concluded it is trivial and committed it with the URL to close this. Feel free to revert if you had any matters. Repository: rL LLVM https://reviews.llvm.org/D35541 ___ cfe-commits mailing list

[PATCH] D39042: [Tooling] Add a factory method for CommonOptionsParser

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric created this revision. This returns error instead of exiting the program in case of error. https://reviews.llvm.org/D39042 Files: include/clang/Tooling/CommonOptionsParser.h lib/Tooling/CommonOptionsParser.cpp Index: lib/Tooling/CommonOptionsParser.cpp

[PATCH] D37808: [clang-tidy] Add new hicpp-multiway-paths-covered check for missing branches

2017-10-18 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 119440. JonasToth marked an inline comment as done. JonasToth added a comment. - address review comments https://reviews.llvm.org/D37808 Files: clang-tidy/hicpp/CMakeLists.txt clang-tidy/hicpp/HICPPTidyModule.cpp

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: include/clang/Tooling/CommonOptionsParser.h:90 /// - /// This constructor exits program in case of error. + /// If \p ExitOnError is set (default), This constructor exits program in case + /// of error; otherwise, this sets the

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 119447. ioeric added a comment. - Add a factory method for creating CommonOptionsParser. - Minor cleanup in CommonOptionsParser. - Revert CommonOptionsParser changes. - Merge branch 'option' into arcpatch-D34272 https://reviews.llvm.org/D34272 Files:

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 119449. ioeric marked 7 inline comments as done. ioeric added a comment. - Address review comments. https://reviews.llvm.org/D34272 Files: include/clang/Tooling/CommonOptionsParser.h include/clang/Tooling/Execution.h

[clang-tools-extra] r316066 - New -assume-filename=param to check_clang_tidy.py (like clang-format)

2017-10-18 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Oct 18 00:48:40 2017 New Revision: 316066 URL: http://llvm.org/viewvc/llvm-project?rev=316066=rev Log: New -assume-filename=param to check_clang_tidy.py (like clang-format) Summary: Currently, check_clang_tidy.py includes logic to select default clang flags based on the

[PATCH] D39071: [Hexagon] Fix the memory-leak in r316102

2017-10-18 Thread Sumanth Gundapaneni via Phabricator via cfe-commits
sgundapa abandoned this revision. sgundapa added a comment. This patch is already merged in a different commit Repository: rL LLVM https://reviews.llvm.org/D39071 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39079: New clang option -fno-plt to avoid PLT for external calls

2017-10-18 Thread Sriraman Tallam via Phabricator via cfe-commits
tmsriram created this revision. New clang option -fno-plt which avoids the PLT and lazy binding while making external calls. GCC supports -fno-plt, https://gcc.gnu.org/ml/gcc-patches/2015-05/msg1.html. This patch adds this to clang which marks all externally defined functions with the

[PATCH] D39080: [libcxx] [test] Tolerate even more [[nodiscard]] in the STL.

2017-10-18 Thread Billy Robert O'Neal III via Phabricator via cfe-commits
BillyONeal created this revision. STL reviewed my [[nodiscard]] changes and suggested a ton more places. These are the associated test changes in libcxx. https://reviews.llvm.org/D39080 Files: test/std/algorithms/alg.nonmodifying/alg.search/search_n.pass.cpp

[PATCH] D39043: [clang-rename] Rename alias.

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric accepted this revision. ioeric added a comment. This revision is now accepted and ready to land. Lg https://reviews.llvm.org/D39043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39048: Dump signed integers in SymIntExpr and IntSymExpr correctly

2017-10-18 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware created this revision. When dumping SymIntExpr or IntSymExpr signed numbers are dumped as unsigned, thus their two's complement is displayed. This small patch fixes this. https://reviews.llvm.org/D39048 Files: lib/StaticAnalyzer/Core/SymbolManager.cpp

[PATCH] D38688: [clang-tidy] Misc redundant expressions checker updated for macros

2017-10-18 Thread Barancsuk Lilla via Phabricator via cfe-commits
barancsuk updated this revision to Diff 119452. barancsuk marked 8 inline comments as done. barancsuk added a comment. Herald added a subscriber: whisperity. Address review comments. https://reviews.llvm.org/D38688 Files: clang-tidy/misc/RedundantExpressionCheck.cpp

[PATCH] D39027: [docs][refactor] Add a new tutorial that talks about how one can implement refactoring actions

2017-10-18 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: docs/RefactoringActionTutorial.rst:90 +Let's call it something like ``FlattenIfStatements.cpp``. Don't forget to add +it to the ``CMakeLists.txt`` file that's located in the +``lib/Tooling/Refactoring`` directory.

r316075 - Silence -Wimplicit-fallthrough warnings with the generated code; NFC.

2017-10-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 18 05:11:58 2017 New Revision: 316075 URL: http://llvm.org/viewvc/llvm-project?rev=316075=rev Log: Silence -Wimplicit-fallthrough warnings with the generated code; NFC. Modified: cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp Modified:

[PATCH] D30691: [analyzer] Support for naive cross translational unit analysis

2017-10-18 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun updated this revision to Diff 119458. xazax.hun marked an inline comment as done. xazax.hun added a comment. - Update the scan-build part to work correctly with the accepted version of libCrossTU https://reviews.llvm.org/D30691 Files:

[PATCH] D39043: [clang-rename] Rename alias.

2017-10-18 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316074: [clang-rename] Rename alias. (authored by hokein). Repository: rL LLVM https://reviews.llvm.org/D39043 Files: cfe/trunk/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp

r316074 - [clang-rename] Rename alias.

2017-10-18 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Oct 18 05:10:11 2017 New Revision: 316074 URL: http://llvm.org/viewvc/llvm-project?rev=316074=rev Log: [clang-rename] Rename alias. Summary: * Support rename alias. * Add unittests for renaming alias. * Don't generate fixes for the SourceLocations that are invalid or in

[PATCH] D38982: [refactor] Initial outline of implementation of "extract function" refactoring

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric added a comment. Code looks good in general. I see there are a bunch of major features missing; it might make sense to print a warning or document the major missing features in the high-level API. Comment at:

[PATCH] D39055: [refactor] Add an editor client that is used in clangd

2017-10-18 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. Herald added subscribers: mgorny, klimek. This patch adds an editor client that can do things like: - find a list of available refactoring editor commands in a particular range. - perform a particular refactoring editor command in a particular range. This editor

[PATCH] D39057: [clangd][WIP] Integrate the refactoring actions into clangd

2017-10-18 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. I think that the clangd editor plugin will have to be modified as well, but I haven't looked into that yet. Repository: rL LLVM https://reviews.llvm.org/D39057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: r315856 - Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a pr

2017-10-18 Thread Aaron Ballman via cfe-commits
I'll take a look, thank you for pointing it out (and sorry for the trouble)! ~Aaron On Tue, Oct 17, 2017 at 9:56 PM, Galina Kistanova wrote: > Hello Aaron, > > This commit broke one our builders: > > http://lab.llvm.org:8011/builders/ubuntu-gcc7.1-werror/builds/2272 > > .

[PATCH] D39042: [Tooling] Add a factory method for CommonOptionsParser

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 119465. ioeric marked 2 inline comments as done. ioeric added a comment. - Address review comments. https://reviews.llvm.org/D39042 Files: include/clang/Tooling/CommonOptionsParser.h lib/Tooling/CommonOptionsParser.cpp Index:

[PATCH] D39042: [Tooling] Add a factory method for CommonOptionsParser

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: include/clang/Tooling/CommonOptionsParser.h:115 + + static llvm::Error init(int , const char **argv, + llvm::cl::OptionCategory , hokein wrote: > We can get rid of the `static` here by calling

[PATCH] D39049: [analyzer] Fix wrong calculation of offset in ArrayBoundsV2

2017-10-18 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki created this revision. Herald added a subscriber: szepet. Example code: void test3_simplified_offset(int x, unsigned long long y) { int buf[100]; if (x < 0) x = 0; for (int i = y - x; i > 0 && i < 100; i++) buf[i] = 0; // no-warning } Without this

[PATCH] D39057: [clangd][WIP] Integrate the refactoring actions into clangd

2017-10-18 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. arphaman added a project: clang-tools-extra. Herald added a subscriber: mgorny. This WIP patch provides a sample implementation of an integration of Clang's refactoring actions from libToolingRefactor into clangd. In terms of protocol support, the patch adds: -

[PATCH] D38985: [refactor] Add support for editor commands that connect IDEs/editors to the refactoring actions

2017-10-18 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added inline comments. Comment at: include/clang/Tooling/Refactoring/RefactoringActionRule.h:58 + /// Returns the editor command that's was bound to this rule. + virtual const EditorCommand *getEditorCommand() { return nullptr; } }; ioeric wrote: >

[PATCH] D39042: [Tooling] Add a factory method for CommonOptionsParser

2017-10-18 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Looks good from my side. You might want @klimek to take a look before committing. Comment at: include/clang/Tooling/CommonOptionsParser.h:90 - /// - /// This constructor

[PATCH] D38688: [clang-tidy] Misc redundant expressions checker updated for macros

2017-10-18 Thread Barancsuk Lilla via Phabricator via cfe-commits
barancsuk added inline comments. Comment at: clang-tidy/misc/RedundantExpressionCheck.cpp:510 +// E.g.: from (X == 5) && (X == 5) retrieves 5 and 5 +static void retrieveConstExprFromBothSides(const BinaryOperator *, + BinaryOperatorKind

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

2017-10-18 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. 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 right now should definitely be in their own patches. It would be nice

[PATCH] D38922: [analyzer] LoopUnrolling: check the bitwidth of the used numbers (pr34943)

2017-10-18 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D38922 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39048: Dump signed integers in SymIntExpr and IntSymExpr correctly

2017-10-18 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D39048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39053: [Bitfield] Add more cases to making the bitfield a separate location

2017-10-18 Thread Strahinja Petrovic via Phabricator via cfe-commits
spetrovic created this revision. Herald added subscribers: arichardson, sdardis. This patch provides that bitfields are splitted even in case when current field is not legal integer type. For Example, struct S3 { unsigned long a1:28; unsigned long a2:4; unsigned long a3:12; }; struct

Re: r315856 - Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a pr

2017-10-18 Thread Aaron Ballman via cfe-commits
Thanks for pointing the breakage out -- it should be fixed with r316075. ~Aaron On Wed, Oct 18, 2017 at 7:50 AM, Aaron Ballman wrote: > I'll take a look, thank you for pointing it out (and sorry for the trouble)! > > ~Aaron > > On Tue, Oct 17, 2017 at 9:56 PM, Galina

[PATCH] D39027: [docs][refactor] Add a new tutorial that talks about how one can implement refactoring actions

2017-10-18 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. Awesome, thanks for the very well-illustrated tutorial! Comment at: docs/RefactoringActionTutorial.rst:7 + + This tutorial talks about a work-in-progress library in Clang. + Some of the described features might not be available yet in trunk, but

r316083 - Enable support for the [[fallthrough]] attribute from WG14 N2052 when enabling double square bracket attributes in C code.

2017-10-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 18 07:33:27 2017 New Revision: 316083 URL: http://llvm.org/viewvc/llvm-project?rev=316083=rev Log: Enable support for the [[fallthrough]] attribute from WG14 N2052 when enabling double square bracket attributes in C code. Added:

RE: r315984 - [CodeGen] EmitPointerWithAlignment() to generate TBAA info along with LValue base info

2017-10-18 Thread Yung, Douglas via cfe-commits
Hi Ivan, This change caused a compiler crash in one of our tests. I have put the details in PR34992, can you take a look? Douglas Yung > -Original Message- > From: cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] On Behalf Of > Ivan A. Kosarev via cfe-commits > Sent: Tuesday,

[PATCH] D38479: Make -mgeneral-regs-only more like GCC's

2017-10-18 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv updated this revision to Diff 119499. george.burgess.iv marked 2 inline comments as done. george.burgess.iv added a comment. Addressed feedback. Thanks! After looking around and internalizing a little bit of how backends in LLVM work, the path forward I have in mind is to

[PATCH] D39042: [Tooling] Add a factory method for CommonOptionsParser

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric updated this revision to Diff 119502. ioeric added a comment. - Move unique_ptr result. https://reviews.llvm.org/D39042 Files: include/clang/Tooling/CommonOptionsParser.h lib/Tooling/CommonOptionsParser.cpp Index: lib/Tooling/CommonOptionsParser.cpp

[PATCH] D38596: Implement attribute target multiversioning

2017-10-18 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. @rsmith and @rnk just a quick bump! I'd like to get your thoughts on the SEMA changes here. Thanks! -Erich https://reviews.llvm.org/D38596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r316102 - [Hexagon] Handling of new HVX flags and target-features

2017-10-18 Thread Sumanth Gundapaneni via cfe-commits
Author: sgundapa Date: Wed Oct 18 11:10:13 2017 New Revision: 316102 URL: http://llvm.org/viewvc/llvm-project?rev=316102=rev Log: [Hexagon] Handling of new HVX flags and target-features This patch has the following changes A new flag "-mhvx-length={64B|128B}" is introduced to specify the length

[PATCH] D38820: [CGExprScalar] Add missing types in function GetIntrinsic

2017-10-18 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai accepted this revision. nemanjai added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D38820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D38479: Make -mgeneral-regs-only more like GCC's

2017-10-18 Thread George Burgess IV via Phabricator via cfe-commits
george.burgess.iv added a comment. > However, the tests cover floating point, but they don't cover vector calls > (arm_neon.h). `#include ` gives me ~12,000 errors, presumably because there are so many functions that take vectors/floats defined in it. The hope was that calling `bar` and `foo`

Re: r315984 - [CodeGen] EmitPointerWithAlignment() to generate TBAA info along with LValue base info

2017-10-18 Thread Ivan Kosarev via cfe-commits
Hello Douglas, Sure, I'm on it. Thanks for reporting and sorry for the troubles. On 18/10/17 20:24, Yung, Douglas wrote: Hi Ivan, This change caused a compiler crash in one of our tests. I have put the details in PR34992, can you take a look? Douglas Yung -Original Message- From:

[PATCH] D37115: [coroutines] Do not attempt to typo-correct when coroutine is looking for required members

2017-10-18 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added a comment. @rsmith , here is a fix for the funny diagnostics you mentioned. https://reviews.llvm.org/D37115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D39042: [Tooling] Add a factory method for CommonOptionsParser

2017-10-18 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: include/clang/Tooling/CommonOptionsParser.h:95 + static llvm::Expected + create(int , const char **argv, llvm::cl::OptionCategory , worth some documentation? Comment at:

Re: r316046 - Basic: fix __{,U}INTPTR_TYPE__ on ARM

2017-10-18 Thread Joerg Sonnenberger via cfe-commits
On Wed, Oct 18, 2017 at 12:00:51AM -, Saleem Abdulrasool via cfe-commits wrote: > Author: compnerd > Date: Tue Oct 17 17:00:50 2017 > New Revision: 316046 > > URL: http://llvm.org/viewvc/llvm-project?rev=316046=rev > Log: > Basic: fix __{,U}INTPTR_TYPE__ on ARM > > Darwin and OpenBSD are

[clang-tools-extra] r316093 - [clang-tidy] Fix buildbot for msvc

2017-10-18 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Wed Oct 18 09:28:06 2017 New Revision: 316093 URL: http://llvm.org/viewvc/llvm-project?rev=316093=rev Log: [clang-tidy] Fix buildbot for msvc The testcase defined `FILE` as `unsigned long`, but MSVC expect `unsigned long long`. Modified:

[libcxx] r316095 - Fix regex bug with ^\W. Thanks to Tim Shen for the patch. Reviewed as https://reviews.llvm.org/D37955

2017-10-18 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed Oct 18 09:49:22 2017 New Revision: 316095 URL: http://llvm.org/viewvc/llvm-project?rev=316095=rev Log: Fix regex bug with ^\W. Thanks to Tim Shen for the patch. Reviewed as https://reviews.llvm.org/D37955 Added:

r316096 - Enable support for the [[maybe_unused]] attribute from WG14 N2053 when enabling double square bracket attributes in C code.

2017-10-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 18 09:59:27 2017 New Revision: 316096 URL: http://llvm.org/viewvc/llvm-project?rev=316096=rev Log: Enable support for the [[maybe_unused]] attribute from WG14 N2053 when enabling double square bracket attributes in C code. Added:

[clang-tools-extra] r316094 - [clang-tidy] Fix 32bit platform MSVC

2017-10-18 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Wed Oct 18 09:40:19 2017 New Revision: 316094 URL: http://llvm.org/viewvc/llvm-project?rev=316094=rev Log: [clang-tidy] Fix 32bit platform MSVC The previous fix only worked for 64bit MSVC, this one should fix all different architectures. Modified:

[PATCH] D37955: [libcxx] Fix invert negative bracket match.

2017-10-18 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists closed this revision. mclow.lists added a comment. Landed as revision 316095. https://reviews.llvm.org/D37955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38852: [Hexagon] Handling of new HVX flags and target-features

2017-10-18 Thread Sumanth Gundapaneni via Phabricator via cfe-commits
sgundapa added a comment. Ping Repository: rL LLVM https://reviews.llvm.org/D38852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38820: [CGExprScalar] Add missing types in function GetIntrinsic

2017-10-18 Thread Guozhi Wei via Phabricator via cfe-commits
Carrot added a comment. ping https://reviews.llvm.org/D38820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r316086 - Silencing a redefinition warning that was not germane to the test.

2017-10-18 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 18 07:48:33 2017 New Revision: 316086 URL: http://llvm.org/viewvc/llvm-project?rev=316086=rev Log: Silencing a redefinition warning that was not germane to the test. Modified: cfe/trunk/test/Sema/c2x-fallthrough.c Modified:

[PATCH] D39035: Unnamed bitfields don't block constant evaluation of constexpr constructors

2017-10-18 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. Aside from some minor nits, LGTM! Comment at: test/SemaCXX/constant-expression-cxx11.cpp:1924 + + + struct HasUnnamedBitfield { Can remove

[PATCH] D39005: [OpenMP] Clean up variable and function names for NVPTX backend

2017-10-18 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea added a comment. In https://reviews.llvm.org/D39005#900226, @jlebar wrote: > > I'd be interested to get the ball rolling in regard to coming up with a fix > > for this. I see some suggestions in past patches. Some help/clarification > > would be much appreciated. > > Happy to help,

[PATCH] D38985: [refactor] Add support for editor commands that connect IDEs/editors to the refactoring actions

2017-10-18 Thread Eric Liu via Phabricator via cfe-commits
ioeric added inline comments. Comment at: include/clang/Tooling/Refactoring/RefactoringActionRule.h:58 + /// Returns the editor command that's was bound to this rule. + virtual const EditorCommand *getEditorCommand() { return nullptr; } }; arphaman wrote: >

[PATCH] D39005: [OpenMP] Clean up variable and function names for NVPTX backend

2017-10-18 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added a comment. > The first question that comes to mind is what is the link between data layout > and name mangling conventions? I pulled up http://llvm.org/doxygen/classllvm_1_1DataLayout.html and searched for "mangling" -- presumably this is what they were referring to. We also

[clang-tools-extra] r316090 - Support Objective-C/C++ source files in check_clang_tidy.py

2017-10-18 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Oct 18 08:56:39 2017 New Revision: 316090 URL: http://llvm.org/viewvc/llvm-project?rev=316090=rev Log: Support Objective-C/C++ source files in check_clang_tidy.py check_clang_tidy.py currently only handles C and C++ source files. This extends the logic to also handle

[clang-tools-extra] r316092 - [clang-tidy] introduce legacy resource functions to 'cppcoreguidelines-owning-memory'

2017-10-18 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Wed Oct 18 09:14:15 2017 New Revision: 316092 URL: http://llvm.org/viewvc/llvm-project?rev=316092=rev Log: [clang-tidy] introduce legacy resource functions to 'cppcoreguidelines-owning-memory' Summary: This patch introduces support for legacy C-style resource functions

[PATCH] D38852: [Hexagon] Handling of new HVX flags and target-features

2017-10-18 Thread Sumanth Gundapaneni via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316102: [Hexagon] Handling of new HVX flags and target-features (authored by sgundapa). Changed prior to commit: https://reviews.llvm.org/D38852?vs=118802=119507#toc Repository: rL LLVM

Re: r315856 - Add -f[no-]double-square-bracket-attributes as new driver options to control use of [[]] attributes in all language modes. This is the initial implementation of WG14 N2165, which is a pr

2017-10-18 Thread Galina Kistanova via cfe-commits
Thank you! On Wed, Oct 18, 2017 at 7:38 AM, Aaron Ballman wrote: > Thanks for pointing the breakage out -- it should be fixed with r316075. > > ~Aaron > > On Wed, Oct 18, 2017 at 7:50 AM, Aaron Ballman > wrote: > > I'll take a look, thank you for

[PATCH] D39024: [clang-format] Sort whole block of using declarations while partially formatting

2017-10-18 Thread Daniel Jasper via Phabricator via cfe-commits
djasper added inline comments. Comment at: lib/Format/UsingDeclarationsSorter.cpp:79 const SourceManager , tooling::Replacements *Fixes) { - SmallVector SortedUsingDeclarations( - UsingDeclarations->begin(), UsingDeclarations->end()); -

r316103 - [clang-proto-fuzzer] Use ToT protobuf-mutator.

2017-10-18 Thread Matt Morehouse via cfe-commits
Author: morehouse Date: Wed Oct 18 11:38:04 2017 New Revision: 316103 URL: http://llvm.org/viewvc/llvm-project?rev=316103=rev Log: [clang-proto-fuzzer] Use ToT protobuf-mutator. Modified: cfe/trunk/cmake/modules/ProtobufMutator.cmake Modified: cfe/trunk/cmake/modules/ProtobufMutator.cmake

r316104 - [refactor] selection: new CodeRangeASTSelection represents a set of selected

2017-10-18 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Oct 18 11:48:58 2017 New Revision: 316104 URL: http://llvm.org/viewvc/llvm-project?rev=316104=rev Log: [refactor] selection: new CodeRangeASTSelection represents a set of selected consecutive statements This commit adds a CodeRangeASTSelection value to the refactoring

r316105 - [refactor] Add a doc comment to the test function in the selection

2017-10-18 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Wed Oct 18 11:51:48 2017 New Revision: 316105 URL: http://llvm.org/viewvc/llvm-project?rev=316105=rev Log: [refactor] Add a doc comment to the test function in the selection unittest. As suggested by Haojian Wu! Modified:

[PATCH] D39064: implement __has_unique_object_representations

2017-10-18 Thread Erich Keane via Phabricator via cfe-commits
erichkeane created this revision. A helper builtin to facilitate implementing the std::has_unique_object_representations type trait. Requested here: https://bugs.llvm.org/show_bug.cgi?id=34942 Also already exists in GCC and MSVC. https://reviews.llvm.org/D39064 Files:

[PATCH] D38835: [refactor] selection: new CodeRangeASTSelection represents a set of selected consecutive statements

2017-10-18 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added inline comments. Comment at: unittests/Tooling/ASTSelectionTest.cpp:688 + Source, {2, 2}, None, + [](SourceRange SelectionRange, Optional Node) { +EXPECT_TRUE(Node); hokein wrote: > arphaman wrote: > > hokein wrote: > > > I'm a

[PATCH] D38835: [refactor] selection: new CodeRangeASTSelection represents a set of selected consecutive statements

2017-10-18 Thread Alex Lorenz via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316104: [refactor] selection: new CodeRangeASTSelection represents a set of selected (authored by arphaman). Changed prior to commit: https://reviews.llvm.org/D38835?vs=119197=119514#toc Repository:

[PATCH] D35541: [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER)

2017-10-18 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir added a comment. How is this even reviewed? Repository: rL LLVM https://reviews.llvm.org/D35541 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D38549: [clang-tidy] Link targets and Asm parsers

2017-10-18 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Zachary, do you plan to commit this? I'd also suggest adding a regression test. Thanks! https://reviews.llvm.org/D38549 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D39066: [libcxx] Fix signed overflow when constructing integers from brace expressions.

2017-10-18 Thread Tim Shen via Phabricator via cfe-commits
timshen created this revision. Herald added a subscriber: sanjoy. Herald added a reviewer: EricWF. This should unblock PR24411. https://reviews.llvm.org/D39066 Files: libcxx/include/regex libcxx/test/std/re/re.grammar/excessive_brace_count.pass.cpp Index:

[PATCH] D39024: [clang-format] Sort whole block of using declarations while partially formatting

2017-10-18 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir updated this revision to Diff 119518. krasimir added a comment. - Address review comments https://reviews.llvm.org/D39024 Files: lib/Format/UsingDeclarationsSorter.cpp unittests/Format/UsingDeclarationsSorterTest.cpp Index: unittests/Format/UsingDeclarationsSorterTest.cpp

[PATCH] D34272: [Tooling] A new framework for executing clang frontend actions.

2017-10-18 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added inline comments. Comment at: include/clang/Tooling/StandaloneExecution.h:1 +//===--- Execution.h - Standalone clang action execution. -*- C++ ---*-===// +// StandaloneExecution.h? https://reviews.llvm.org/D34272

[libcxx] r316125 - Fix a think-o in the design of the stable_XXX sort tests; only shows up for test cases > 255 elements

2017-10-18 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed Oct 18 13:40:57 2017 New Revision: 316125 URL: http://llvm.org/viewvc/llvm-project?rev=316125=rev Log: Fix a think-o in the design of the stable_XXX sort tests; only shows up for test cases > 255 elements Modified: libcxx/trunk/fuzzing/fuzzing.cpp Modified:

r316136 - Don't suppress instantiation of definitions for variables subject to explicit

2017-10-18 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Oct 18 15:45:01 2017 New Revision: 316136 URL: http://llvm.org/viewvc/llvm-project?rev=316136=rev Log: Don't suppress instantiation of definitions for variables subject to explicit instantiation declarations if they are usable from constant expressions. We are permitted

[PATCH] D39064: implement __has_unique_object_representations

2017-10-18 Thread Stephan T. Lavavej via Phabricator via cfe-commits
STL_MSFT added a comment. Looks good to me modulo comments. Comment at: lib/Parse/ParseExpr.cpp:719 /// '__is_union' +/// '__has_unique_object_representations' [MS] /// Should this be marked as MS if it's cross-vendor?

[PATCH] D39075: Fix nodiscard for volatile references

2017-10-18 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: lib/AST/Expr.cpp:2302 + cast(DRE->getDecl())->hasLocalStorage()) && +!isa(CE->getSubExpr()->IgnoreParens())) { return CE->getSubExpr()->isUnusedResultAWarning(WarnE, Loc, Does

[PATCH] D38985: [refactor] Add support for editor commands that connect IDEs/editors to the refactoring actions

2017-10-18 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Hi Alex! I'm working on clangd, but am pretty new to the project, so forgive some naive questions. I'm a bit unclear at a high level what the new abstractions in this patch add, in terms of wiring refactorings up to clangd and other tools. My understanding is: we

r316132 - Fix capitalization of parameter

2017-10-18 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Wed Oct 18 15:17:16 2017 New Revision: 316132 URL: http://llvm.org/viewvc/llvm-project?rev=316132=rev Log: Fix capitalization of parameter The .cpp file has this properly capitalized, but the header does not. Simply fixed it. Modified:

[PATCH] D39064: implement __has_unique_object_representations

2017-10-18 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 119533. erichkeane marked 3 inline comments as done. https://reviews.llvm.org/D39064 Files: include/clang/AST/Type.h include/clang/Basic/TokenKinds.def include/clang/Basic/TypeTraits.h lib/AST/Type.cpp lib/Parse/ParseExpr.cpp

[PATCH] D39064: implement __has_unique_object_representations

2017-10-18 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: lib/Parse/ParseExpr.cpp:719 /// '__is_union' +/// '__has_unique_object_representations' [MS] /// STL_MSFT wrote: > Should this be marked as MS if it's cross-vendor? Ah, right

[PATCH] D39075: Fix nodiscard for volatile references

2017-10-18 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: lib/AST/Expr.cpp:2302 + cast(DRE->getDecl())->hasLocalStorage()) && +!isa(CE->getSubExpr()->IgnoreParens())) { return CE->getSubExpr()->isUnusedResultAWarning(WarnE, Loc,

[PATCH] D39071: [Hexagon] Fix the memory-leak in r316102

2017-10-18 Thread Sumanth Gundapaneni via Phabricator via cfe-commits
sgundapa created this revision. Repository: rL LLVM https://reviews.llvm.org/D39071 Files: lib/Driver/ToolChains/Hexagon.cpp Index: lib/Driver/ToolChains/Hexagon.cpp === --- lib/Driver/ToolChains/Hexagon.cpp +++

r316127 - [Driver] Fix use after free in Hexagon toolchain code.

2017-10-18 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Wed Oct 18 14:43:42 2017 New Revision: 316127 URL: http://llvm.org/viewvc/llvm-project?rev=316127=rev Log: [Driver] Fix use after free in Hexagon toolchain code. No functionality change intended. Modified: cfe/trunk/lib/Driver/ToolChains/Hexagon.cpp Modified:

r316130 - [clang-format] Sort whole block of using declarations while partially formatting

2017-10-18 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Wed Oct 18 15:13:25 2017 New Revision: 316130 URL: http://llvm.org/viewvc/llvm-project?rev=316130=rev Log: [clang-format] Sort whole block of using declarations while partially formatting Summary: This patch enables sorting the full block of using declarations when some

[PATCH] D39075: Fix nodiscard for volatile references

2017-10-18 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 119535. erichkeane added a comment. Added function-pointer test. https://reviews.llvm.org/D39075 Files: lib/AST/Expr.cpp test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p2.cpp Index: lib/AST/Expr.cpp

[PATCH] D39069: CodeGen: Fix missing debug loc due to alloca

2017-10-18 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. Builder save/restores insertion pointer when emitting addr space cast for alloca, but does not save/restore debug loc, which causes verifier failure for certain call instructions. This patch fixes that. https://reviews.llvm.org/D39069 Files:

[PATCH] D39024: [clang-format] Sort whole block of using declarations while partially formatting

2017-10-18 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316130: [clang-format] Sort whole block of using declarations while partially formatting (authored by krasimir). Repository: rL LLVM https://reviews.llvm.org/D39024 Files:

[PATCH] D39074: [libunwind][MIPS]: Add support for unwinding in N32 processes.

2017-10-18 Thread John Baldwin via Phabricator via cfe-commits
bsdjhb created this revision. Herald added subscribers: JDevlieghere, arichardson, aprantl. N32 uses the same register context as N64. However, N32 requires one change to properly fetch addresses from registers stored in memory. Since N32 is an ILP32 platform, getP() only fetches the first

[PATCH] D39075: Fix nodiscard for volatile references

2017-10-18 Thread Erich Keane via Phabricator via cfe-commits
erichkeane created this revision. As reported here https://bugs.llvm.org/show_bug.cgi?id=34988 [[nodiscard]] warnings were not being suppressed for volatile-ref return values. https://reviews.llvm.org/D39075 Files: lib/AST/Expr.cpp test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p2.cpp