Re: [PATCH] D16579: Warn if friend function depends on template parameters.

2016-02-25 Thread Serge Pavlov via cfe-commits
Could someone provide a feedback? Thanks, --Serge 2016-01-26 20:55 GMT+06:00 Serge Pavlov : > sepavloff created this revision. > sepavloff added a subscriber: cfe-commits. > > Declaration of friend function may depend on template parameters, > however it does not become a template function: > >

Re: [PATCH] D17621: [clang-format] Detect constructor initializers preceded by `noexcept`.

2016-02-25 Thread Daniel Jasper via cfe-commits
djasper added a comment. Thanks for looking at this. Please also add a test in unittests/Format/FormatTest.cpp. Comment at: lib/Format/TokenAnnotator.cpp:507 @@ -506,3 +506,3 @@ !Line.First->isOneOf(tok::kw_enum, tok::kw_case)) { -if (Tok->Previous->is

Re: [PATCH] D17622: [PGO] clang cc1 option change to enable IR level instrumenation

2016-02-25 Thread Sean Silva via cfe-commits
silvas added a comment. Thanks for splitting this out. I think the `-fprofile-instrument=llvm` is straightforward and uncontroversial. Let's focus this review on that and split the others into a separate review. But a quick preview of my thoughs about `-fprofile-instrument={llvm,clang}-use`: I

Re: [PATCH] D17627: Fix false positives for for-loop-analysis warning

2016-02-25 Thread Richard Trieu via cfe-commits
rtrieu added a comment. This seems rather strange. Usually, a OpaqueValueExpr will hold an expression that is held elsewhere in the AST. However, in this case, it appears that all the references to --i are all behind OpaqueValueExpr's, so they aren't processed. `-CStyleCastExpr 0x5675d30

Re: [PATCH] D17412: PR19957: [OpenCL] incorrectly accepts implicit address space conversion with ternary operator

2016-02-25 Thread Xiuli PAN via cfe-commits
pxli168 added inline comments. Comment at: lib/Sema/SemaExpr.cpp:6194-6203 @@ +6193,12 @@ + + incompatTy = S.Context.getPointerType( + S.Context.getAddrSpaceQualType(S.Context.VoidTy, ResultAddrSpace)); + LHS = S.ImpCastExprToType(LHS.get(), incompatTy, +

r261976 - [Driver] Disable frame pointer elimination by default if target is

2016-02-25 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Thu Feb 25 23:07:00 2016 New Revision: 261976 URL: http://llvm.org/viewvc/llvm-project?rev=261976&view=rev Log: [Driver] Disable frame pointer elimination by default if target is x86_64-pc-win32-macho. rdar://problem/24470634 Modified: cfe/trunk/lib/Driver/Tools.cpp

Re: [PATCH] D15636: Reduce false positives in printf/scanf format checker

2016-02-25 Thread Richard Trieu via cfe-commits
rtrieu accepted this revision. rtrieu added a comment. This revision is now accepted and ready to land. LGTM The other issues brought up in this review can go in follow up patches. http://reviews.llvm.org/D15636 ___ cfe-commits mailing list cfe-comm

Re: [PATCH] D17619: [MSVC Compat] Don't evaluate member base expressions w/o side effects

2016-02-25 Thread David Majnemer via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261975: [MSVC Compat] Don't evaluate member base expressions w/o side effects (authored by majnemer). Changed prior to commit: http://reviews.llvm.org/D17619?vs=49109&id=49150#toc Repository: rL LLVM

r261975 - [MSVC Compat] Don't evaluate member base expressions w/o side effects

2016-02-25 Thread David Majnemer via cfe-commits
Author: majnemer Date: Thu Feb 25 22:23:19 2016 New Revision: 261975 URL: http://llvm.org/viewvc/llvm-project?rev=261975&view=rev Log: [MSVC Compat] Don't evaluate member base expressions w/o side effects A member expression's base doesn't always have an impact on what the member decl would evalu

Re: [PATCH] D17367: [OpenMP] Code generation for target data directive

2016-02-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Comment at: lib/CodeGen/CGStmtOpenMP.cpp:2736-2738 @@ +2735,5 @@ + const Expr *IfCond = nullptr; + if (auto *C = S.getSingleClause()) { +IfCond = C->getCondition();

Re: [PATCH] D17368: [OpenMP] Code generation for target enter data directive

2016-02-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Comment at: lib/CodeGen/CGStmtOpenMP.cpp:2758-2760 @@ +2757,5 @@ + const Expr *IfCond = nullptr; + if (auto *C = S.getSingleClause()) { +IfCond = C->getCondition();

Re: [PATCH] D17629: [OpenMP] Fix parsing of delete map clause modifier in C++ mode.

2016-02-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D17629 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Re: [PATCH] D17369: [OpenMP] Code generation for target exit data directive

2016-02-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. This revision is now accepted and ready to land. Comment at: lib/CodeGen/CGStmtOpenMP.cpp:2781-2783 @@ +2780,5 @@ + const Expr *IfCond = nullptr; + if (auto *C = S.getSingleClause()) { +IfCond = C->getCondition(); + } + Remov

r261970 - [analyzer] Prune some incorrect \param doc comment annotations.

2016-02-25 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Feb 25 21:41:31 2016 New Revision: 261970 URL: http://llvm.org/viewvc/llvm-project?rev=261970&view=rev Log: [analyzer] Prune some incorrect \param doc comment annotations. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp cfe/trunk/lib/Static

Re: [PATCH] D17170: [OPENMP] Codegen for distribute directive

2016-02-25 Thread Alexey Bataev via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG Repository: rL LLVM http://reviews.llvm.org/D17170 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

Re: [PATCH] D17019: [OpenMP] Code generation for teams - kernel launching

2016-02-25 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: lib/CodeGen/CGOpenMPRuntime.cpp:4002 @@ +4001,3 @@ +static llvm::Value * +emitNumTeamsClauseForTargetDirective(CodeGenFunction &CGF, + const OMPExecutableDirective &D, I still don't lik

Re: r261767 - Add whole-program vtable optimization feature to Clang.

2016-02-25 Thread Steven Wu via cfe-commits
Thanks a lot! Steven > On Feb 25, 2016, at 7:12 PM, Peter Collingbourne wrote: > > (I don't understand why this flag needs to exist, but) I've implemented a > fix in r261960. > > Peter > > On Thu, Feb 25, 2016 at 06:50:52PM -0800, Steven Wu wrote: >> Hi Peter >> >> I notice after this comm

Re: [PATCH] D17547: [OpenMP] Add support for multidimensional array sections in map clause SEMA.

2016-02-25 Thread Alexey Bataev via cfe-commits
ABataev added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7767-7768 @@ -7766,4 +7766,4 @@ "bit fields cannot be used to specify storage in a map clause">; -def err_omp_array_section_in_rightmost_expression : Error< - "array section can only be assoc

r261962 - OpenMPClause.h: Fix typo in \param. [-Wdocumentation]

2016-02-25 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Thu Feb 25 21:15:09 2016 New Revision: 261962 URL: http://llvm.org/viewvc/llvm-project?rev=261962&view=rev Log: OpenMPClause.h: Fix typo in \param. [-Wdocumentation] Modified: cfe/trunk/include/clang/AST/OpenMPClause.h Modified: cfe/trunk/include/clang/AST/OpenMPClause.

r261963 - Checkers/CheckObjCDealloc.cpp: Prune "\param". [-Wdocumentation]

2016-02-25 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Thu Feb 25 21:15:13 2016 New Revision: 261963 URL: http://llvm.org/viewvc/llvm-project?rev=261963&view=rev Log: Checkers/CheckObjCDealloc.cpp: Prune "\param". [-Wdocumentation] Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp Modified: cfe/trunk/lib/

r261961 - [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr

2016-02-25 Thread Xiuli Pan via cfe-commits
Author: pxl Date: Thu Feb 25 21:13:03 2016 New Revision: 261961 URL: http://llvm.org/viewvc/llvm-project?rev=261961&view=rev Log: [OpenCL] Refine OpenCLImageAccessAttr to OpenCLAccessAttr Summary: OpenCL access qualifiers are now not only used for image types, refine it to avoid misleading, Add

Re: r261767 - Add whole-program vtable optimization feature to Clang.

2016-02-25 Thread Peter Collingbourne via cfe-commits
(I don't understand why this flag needs to exist, but) I've implemented a fix in r261960. Peter On Thu, Feb 25, 2016 at 06:50:52PM -0800, Steven Wu wrote: > Hi Peter > > I notice after this commit, I can no longer use cmake option > -DCLANG_TOOL_DRIVER_BUILD=OFF to choose not to build and link

r261960 - Make vtables_blacklist dependency conditional on existence of clang target.

2016-02-25 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Thu Feb 25 21:07:33 2016 New Revision: 261960 URL: http://llvm.org/viewvc/llvm-project?rev=261960&view=rev Log: Make vtables_blacklist dependency conditional on existence of clang target. Modified: cfe/trunk/runtime/CMakeLists.txt Modified: cfe/trunk/runtime/CMakeLists.txt

Re: r261767 - Add whole-program vtable optimization feature to Clang.

2016-02-25 Thread Steven Wu via cfe-commits
Hi Peter I notice after this commit, I can no longer use cmake option -DCLANG_TOOL_DRIVER_BUILD=OFF to choose not to build and link the clang driver. When using -DCLANG_TOOL_DRIVER_BUILD=OFF, clang target will not exist so cmake will error on the line: > +add_dependencies(clang vtables_blacklis

Re: [PATCH] D17596: [OpenCL] Add ocl and spir version for spir target

2016-02-25 Thread Xiuli PAN via cfe-commits
pxli168 marked an inline comment as done. pxli168 added a comment. I think this is just a small change to help identify the which standard llvm-ir is using. And there is a SPIRV branch from Khronos https://github.com/KhronosGroup/SPIRV-LLVM We can start there and try to merge the spir-v support

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-25 Thread David Blaikie via cfe-commits
On Tue, Feb 16, 2016 at 10:45 PM, David Blaikie wrote: > > > On Tue, Feb 16, 2016 at 10:01 PM, Ryan Yee via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> ryee88 updated this revision to Diff 48149. >> ryee88 added a comment. >> >> Keeping the number of test files to a minimum makes sens

Re: [PATCH] D17596: [OpenCL] Add ocl and spir version for spir target

2016-02-25 Thread Xiuli PAN via cfe-commits
pxli168 updated this revision to Diff 49136. http://reviews.llvm.org/D17596 Files: lib/CodeGen/TargetInfo.cpp test/CodeGenOpenCL/spir_version.cl Index: test/CodeGenOpenCL/spir_version.cl === --- /dev/null +++ test/CodeGenOpenCL/

Re: [PATCH] D16949: Fix for: Bug 5941 - improve diagnostic for * vs & confusion

2016-02-25 Thread Ryan Yee via cfe-commits
ryee88 added a comment. any comments? http://reviews.llvm.org/D16949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D17629: [OpenMP] Fix parsing of delete map clause modifier in C++ mode.

2016-02-25 Thread Samuel Antao via cfe-commits
sfantao created this revision. sfantao added reviewers: ABataev, hfinkel, carlo.bertolli, arpith-jacob, kkwli0. sfantao added subscribers: caomhin, fraggamuffin, cfe-commits. The map modifier 'delete' is parser in c++ mode as a delete keyword, which requires special handling in the map clause par

[PATCH] D17627: Fix false positives for for-loop-analysis warning

2016-02-25 Thread Steven Wu via cfe-commits
steven_wu created this revision. steven_wu added reviewers: rtrieu, thakis. steven_wu added a subscriber: cfe-commits. -Wfor-loop-analysis was incorrectly warning about certain cases because the DeclMatcher is not looking pass OpaqueValueExpr. http://reviews.llvm.org/D17627 Files: lib/Sema/Sem

r261945 - [analyzer] Shorten ObjcSuperDeallocChecker diagnostics.

2016-02-25 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Feb 25 18:47:42 2016 New Revision: 261945 URL: http://llvm.org/viewvc/llvm-project?rev=261945&view=rev Log: [analyzer] Shorten ObjcSuperDeallocChecker diagnostics. Change "use of 'self' after it has been freed with call to [super dealloc]" to "use of 'self' after it ha

Re: [PATCH] D17619: [MSVC Compat] Don't evaluate member base expressions w/o side effects

2016-02-25 Thread Richard Smith via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Looks terrible, please commit :) http://reviews.llvm.org/D17619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

r261944 - [analyzer] Fix a memory error in r261935 caught by the Windows bots.

2016-02-25 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Feb 25 18:23:41 2016 New Revision: 261944 URL: http://llvm.org/viewvc/llvm-project?rev=261944&view=rev Log: [analyzer] Fix a memory error in r261935 caught by the Windows bots. It was using a temporary StringRef after its underlying storage was freed. Modified: cf

Re: [PATCH] D17002: [lanai] Add Lanai backend to clang driver

2016-02-25 Thread Jacques Pienaar via cfe-commits
jpienaar added reviewers: eliben, jyknight, chandlerc. jpienaar updated this revision to Diff 49119. jpienaar added a comment. Updated preprocessor test init.c to use -match-full-lines. http://reviews.llvm.org/D17002 Files: lib/Basic/Targets.cpp lib/CodeGen/TargetInfo.cpp lib/Driver/Drive

[clang-tools-extra] r261940 - Remove a blank line at EOF. NFC

2016-02-25 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Feb 25 17:57:30 2016 New Revision: 261940 URL: http://llvm.org/viewvc/llvm-project?rev=261940&view=rev Log: Remove a blank line at EOF. NFC Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/readability-redundant-string-init.rst Modified: clang-tools-extra/tr

[clang-tools-extra] r261939 - Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Feb 25 17:57:23 2016 New Revision: 261939 URL: http://llvm.org/viewvc/llvm-project?rev=261939&view=rev Log: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations. Reviewers: hokein, alexfh Subscribers: cfe-commits Patch by S

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Alexander Kornienko via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261939: Add a new check, readability-redundant-string-init, that checks unnecessary… (authored by alexfh). Changed prior to commit: http://reviews.llvm.org/D17586?vs=49114&id=49118#toc Repository: rL

Re: [PATCH] D17528: [analyzer] Warn on use of 'self' after call to to [super dealloc].

2016-02-25 Thread Devin Coughlin via cfe-commits
This revision was automatically updated to reflect the committed changes. dcoughlin marked an inline comment as done. Closed by commit rL261935: [analyzer] Warn on use of 'self' after call to to [super dealloc]. (authored by dcoughlin). Changed prior to commit: http://reviews.llvm.org/D17528?vs

r261935 - [analyzer] Warn on use of 'self' after call to to [super dealloc].

2016-02-25 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Feb 25 17:36:52 2016 New Revision: 261935 URL: http://llvm.org/viewvc/llvm-project?rev=261935&view=rev Log: [analyzer] Warn on use of 'self' after call to to [super dealloc]. Referring to 'self' after a call to [super dealloc] is a use-after-free in Objective-C because

Re: [PATCH] D17528: [analyzer] Warn on use of 'self' after call to to [super dealloc].

2016-02-25 Thread Devin Coughlin via cfe-commits
dcoughlin added inline comments. Comment at: lib/StaticAnalyzer/Checkers/ObjCSuperDeallocChecker.cpp:165 @@ +164,3 @@ + if (Desc.empty()) +Desc = "use of 'self' after it is freed with call to [super dealloc]"; + zaks.anna wrote: > Does "has been freed" sound

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. Looks good! I'll commit the patch for you. http://reviews.llvm.org/D17586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17360: [cfi] Fix handling of sanitize trap/recover flags in the cross-DSO CFI mode.

2016-02-25 Thread Evgeniy Stepanov via cfe-commits
eugenis updated the summary for this revision. eugenis updated this revision to Diff 49115. eugenis added a comment. OK, done. Please take another look. This is inferior to the original patch in terms of functionality, but the implementation is a lot simpler. Repository: rL LLVM http://revie

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Shuai Wang via cfe-commits
shuaiwang marked an inline comment as done. shuaiwang added a comment. http://reviews.llvm.org/D17586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Shuai Wang via cfe-commits
shuaiwang updated this revision to Diff 49114. shuaiwang added a comment. CHECK-FIXES for macro tests http://reviews.llvm.org/D17586 Files: clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h clang-tidy/readability/CMakeLists.txt clang-tidy/readability/Re

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: test/clang-tidy/readability-redundant-string-init.cpp:69 @@ +68,3 @@ +#define M(x) x +#define N { std::string s = ""; } + Please add a CHECK-FIXES to ensure the macro definition hasn't changed and that the macro invocatio

Re: [PATCH] D15829: [PGO] Clang Option that enables IR level PGO instrumentation

2016-02-25 Thread Rong Xu via cfe-commits
Create a new review here: http://reviews.llvm.org/D17622 Thanks, -Rong On Wed, Feb 24, 2016 at 9:22 PM, Sean Silva wrote: > silvas added a comment. > > In http://reviews.llvm.org/D15829#360006, @xur wrote: > >> Here is the new patch that removes the auto detection of profile kind. >> >> In this

Re: [PATCH] D15829: [PGO] Clang Option that enables IR level PGO instrumentation

2016-02-25 Thread Rong Xu via cfe-commits
xur added a comment. Create a new review here: http://reviews.llvm.org/D17622 Thanks, -Rong http://reviews.llvm.org/D15829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D17622: [PGO] clang cc1 option change to enable IR level instrumenation

2016-02-25 Thread Rong Xu via cfe-commits
xur created this revision. xur added reviewers: davidxl, silvas, justinruggles. xur added subscribers: cfe-commits, xur, mcrosier, davidxl, slingn. This patch expands cc1 option -fprofile-instrument= with three new values: (1) -fprofile-instrument=llvm This enables IR PGO instrumentation. (2) -fpr

r261929 - [analyzer] Reapply r261917 with a fix.

2016-02-25 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Feb 25 15:15:16 2016 New Revision: 261929 URL: http://llvm.org/viewvc/llvm-project?rev=261929&view=rev Log: [analyzer] Reapply r261917 with a fix. This reapplies "[analyzer] Make ObjCDeallocChecker path sensitive." (r261917) with a fix for an error on some bots about s

Re: [PATCH] D17619: [MSVC Compat] Don't evaluate member base expressions w/o side effects

2016-02-25 Thread David Majnemer via cfe-commits
majnemer updated this revision to Diff 49109. majnemer added a comment. - Refactor this change. http://reviews.llvm.org/D17619 Files: lib/AST/ExprConstant.cpp test/SemaCXX/ms-const-member-expr.cpp Index: test/SemaCXX/ms-const-member-expr.cpp

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Shuai Wang via cfe-commits
shuaiwang updated this revision to Diff 49108. shuaiwang added a comment. more test cases http://reviews.llvm.org/D17586 Files: clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ReadabilityTid

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Shuai Wang via cfe-commits
shuaiwang marked 3 inline comments as done. shuaiwang added a comment. http://reviews.llvm.org/D17586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] r261926 - more status updates

2016-02-25 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Feb 25 14:17:03 2016 New Revision: 261926 URL: http://llvm.org/viewvc/llvm-project?rev=261926&view=rev Log: more status updates Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL: http://llvm.org/viewvc/llvm-proje

[libcxx] r261925 - Added tests to make sure that the categorization traits work on incomplete types

2016-02-25 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Feb 25 14:15:47 2016 New Revision: 261925 URL: http://llvm.org/viewvc/llvm-project?rev=261925&view=rev Log: Added tests to make sure that the categorization traits work on incomplete types Modified: libcxx/trunk/test/std/utilities/meta/meta.unary/meta.unary.cat/arr

[PATCH] D17621: [clang-format] Detect constructor initializers preceded by `noexcept`.

2016-02-25 Thread Erik Kessler via cfe-commits
erik65536 created this revision. erik65536 added reviewers: djasper, klimek. erik65536 added a subscriber: cfe-commits. Herald added a subscriber: klimek. http://reviews.llvm.org/D17621 Files: lib/Format/TokenAnnotator.cpp Index: lib/Format/TokenAnnotator.cpp ==

Re: [PATCH] D17619: [MSVC Compat] Don't evaluate member base expressions w/o side effects

2016-02-25 Thread David Majnemer via cfe-commits
majnemer updated this revision to Diff 49103. majnemer added a comment. - Add support for static data members too. http://reviews.llvm.org/D17619 Files: lib/AST/ExprConstant.cpp test/SemaCXX/ms-const-member-expr.cpp Index: test/SemaCXX/ms-const-member-expr.cpp =

[PATCH] D17619: [MSVC Compat] Don't evaluate member base expressions w/o side effects

2016-02-25 Thread David Majnemer via cfe-commits
majnemer created this revision. majnemer added reviewers: rsmith, andreybokhanko. majnemer added a subscriber: cfe-commits. A member expression's base doesn't always have an impact on what the member decl would evaluate to. In such a case, the base is used as a poor man's scope qualifier. This f

r261921 - Revert "[analyzer] Make ObjCDeallocChecker path sensitive."

2016-02-25 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Feb 25 13:13:43 2016 New Revision: 261921 URL: http://llvm.org/viewvc/llvm-project?rev=261921&view=rev Log: Revert "[analyzer] Make ObjCDeallocChecker path sensitive." This reverts commit r261917. It broke the bots. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/

Re: [PATCH] D17511: [analyzer] Make ObjCDeallocChecker path sensitive.

2016-02-25 Thread Devin Coughlin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261917: [analyzer] Make ObjCDeallocChecker path sensitive. (authored by dcoughlin). Changed prior to commit: http://reviews.llvm.org/D17511?vs=48995&id=49097#toc Repository: rL LLVM http://reviews.l

r261917 - [analyzer] Make ObjCDeallocChecker path sensitive.

2016-02-25 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Feb 25 12:55:24 2016 New Revision: 261917 URL: http://llvm.org/viewvc/llvm-project?rev=261917&view=rev Log: [analyzer] Make ObjCDeallocChecker path sensitive. Convert the ObjCDeallocChecker to be path sensitive. The primary motivation for this change is to prevent fals

r261911 - [CMake] Fixing install-clang-headers dependencies to depend on generating the headers.

2016-02-25 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Thu Feb 25 12:39:19 2016 New Revision: 261911 URL: http://llvm.org/viewvc/llvm-project?rev=261911&view=rev Log: [CMake] Fixing install-clang-headers dependencies to depend on generating the headers. Modified: cfe/trunk/lib/Headers/CMakeLists.txt Modified: cfe/trunk/l

Re: [PATCH] D17511: [analyzer] Make ObjCDeallocChecker path sensitive.

2016-02-25 Thread Devin Coughlin via cfe-commits
dcoughlin added inline comments. Comment at: lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp:804 @@ +803,3 @@ +/// Returns true if there is a call to -dealloc anywhere on the stack and false +/// otherwise. If true, it also sets \param SelfValOut to the value of +/// 'self' in th

Re: [PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-25 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good. Thank you for fixing this! http://reviews.llvm.org/D17335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

Re: [clang-tools-extra] r261814 - check-clang-tools: Introduce the feature "target-headers".

2016-02-25 Thread NAKAMURA Takumi via cfe-commits
Thanks! r261897. On Fri, Feb 26, 2016 at 1:55 AM Alexander Kornienko wrote: > I've committed r261893 that adds stub headers and points the tool to the > right search directory. If the solution works, this commit can be reverted. > > On Thu, Feb 25, 2016 at 2:12 AM, NAKAMURA Takumi via cfe-commit

Re: [PATCH] D16876: [OpenCL] Refine pipe builtin support

2016-02-25 Thread Yaxun Liu via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. LGTM. Thanks. http://reviews.llvm.org/D16876 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r261897 - Revert r261814, "check-clang-tools: Introduce the feature target-headers", corresponding to r261893.

2016-02-25 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Thu Feb 25 10:59:59 2016 New Revision: 261897 URL: http://llvm.org/viewvc/llvm-project?rev=261897&view=rev Log: Revert r261814, "check-clang-tools: Introduce the feature target-headers", corresponding to r261893. Modified: clang-tools-extra/trunk/test/clang-tidy/modern

[libcxx] r261896 - Update the status of a N4089 and a couple issues

2016-02-25 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Feb 25 10:55:58 2016 New Revision: 261896 URL: http://llvm.org/viewvc/llvm-project?rev=261896&view=rev Log: Update the status of a N4089 and a couple issues Modified: libcxx/trunk/www/cxx1z_status.html Modified: libcxx/trunk/www/cxx1z_status.html URL: http://llvm.

[libcxx] r261894 - Another chunk of N4089

2016-02-25 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Feb 25 10:50:51 2016 New Revision: 261894 URL: http://llvm.org/viewvc/llvm-project?rev=261894&view=rev Log: Another chunk of N4089 Modified: libcxx/trunk/include/memory Modified: libcxx/trunk/include/memory URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/inc

Re: [clang-tools-extra] r261814 - check-clang-tools: Introduce the feature "target-headers".

2016-02-25 Thread Alexander Kornienko via cfe-commits
I've committed r261893 that adds stub headers and points the tool to the right search directory. If the solution works, this commit can be reverted. On Thu, Feb 25, 2016 at 2:12 AM, NAKAMURA Takumi via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: chapuni > Date: Wed Feb 24 19:12:57

Re: [clang-tools-extra] r261737 - [clang-tidy] Added a check for forward declaration in the potentially wrong namespace

2016-02-25 Thread Alexander Kornienko via cfe-commits
Let's see if r261893 fixes this. On Thu, Feb 25, 2016 at 4:31 PM, Alexander Kornienko wrote: > Yes, I know. Trying to come up with a good solution. > > On Thu, Feb 25, 2016 at 4:59 AM, Sean Silva wrote: > >> This or r261737 seem to be causing a bot failure: >> http://lab.llvm.org:8011/builders/

[clang-tools-extra] r261893 - [clang-tidy] Adding headers needed in modernize-deprecated-headers tests

2016-02-25 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Thu Feb 25 10:46:54 2016 New Revision: 261893 URL: http://llvm.org/viewvc/llvm-project?rev=261893&view=rev Log: [clang-tidy] Adding headers needed in modernize-deprecated-headers tests Added: clang-tools-extra/trunk/test/clang-tidy/Inputs/modernize-deprecated-headers/

r261887 - Add FieldNames to __NSConstantString_tag

2016-02-25 Thread Ben Langmuir via cfe-commits
Author: benlangmuir Date: Thu Feb 25 10:36:26 2016 New Revision: 261887 URL: http://llvm.org/viewvc/llvm-project?rev=261887&view=rev Log: Add FieldNames to __NSConstantString_tag Since consumers of the AST may expect fields to be named. Patch by Brad King! Modified: cfe/trunk/lib/AST/ASTCon

Re: r244989 - Avoid iteration invalidation issues around MaterializedTemporaryExpr

2016-02-25 Thread David Blaikie via cfe-commits
Seems like this test got flagged as 'slow' by Google's internal infrastructure - and that makes me wonder about whether it's appropriate to have in the lit test suite - we really want to keep these tests as fast as possible. I think we're generally OK committing iterator invalidation fixes without

Re: [PATCH] D17596: [OpenCL] Add ocl and spir version for spir target

2016-02-25 Thread Yaxun Liu via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. Pls revise by Anastasia's comments. Otherwise LGTM. We have two options about SPIR-V support: 1. drop SPIR support and move on to SPIR-V 2. keep supporting both SPIR and SPIR-V Option 1 is cl

Re: [PATCH] D17511: [analyzer] Make ObjCDeallocChecker path sensitive.

2016-02-25 Thread David Kilzer via cfe-commits
ddkilzer added inline comments. Comment at: lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp:804 @@ +803,3 @@ +/// Returns true if there is a call to -dealloc anywhere on the stack and false +/// otherwise. If true, it also sets \param SelfValOut to the value of +/// 'self' in the

Re: [PATCH] D17511: [analyzer] Make ObjCDeallocChecker path sensitive.

2016-02-25 Thread David Kilzer via cfe-commits
ddkilzer added inline comments. Comment at: lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp:804 @@ +803,3 @@ +/// Returns true if there is a call to -dealloc anywhere on the stack and false +/// otherwise. If true, it also sets \param SelfValOut to the value of +/// 'self' in the

Re: [PATCH] D12761: MPI-Checker patch for Clang Static Analyzer

2016-02-25 Thread Alexander Droste via cfe-commits
Alexander_Droste added inline comments. Comment at: lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp:46 @@ +45,3 @@ +ExplodedNode *ErrorNode = Ctx.generateNonFatalErrorNode(State, &Tag); +BReporter->reportDoubleNonblocking(PreCallEvent, *Req, MR, ExplNode); +Ctx.

Re: [PATCH] D17596: [OpenCL] Add ocl and spir version for spir target

2016-02-25 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. I was just wondering with SPIRV coming these days, how long should we be supporting and maintaining previous SPIR versions. Might be worth clarifying that... Comment at: lib/CodeGen/TargetInfo.cpp:7022 @@ -7021,1 +7021,3 @@ +class SPIRTargetCodeGen

Re: [PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-25 Thread Haojian Wu via cfe-commits
hokein marked 3 inline comments as done. Comment at: test/clang-tidy/clang-tidy-run-with-database.cpp:16 @@ +15,3 @@ +// RUN: FileCheck -input-file=%T/compilation-database-test/a/b.cpp %s -check-prefix=CHECK-FIX2 +// RUN: FileCheck -input-file=%T/compilation-database-test/b/b.cpp

Re: [PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-25 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49060. hokein added a comment. Address review comments. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h test/clang-tidy/Inputs/compilation-database/tem

[libcxx] r261875 - No, really - test the constructor

2016-02-25 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Feb 25 09:27:13 2016 New Revision: 261875 URL: http://llvm.org/viewvc/llvm-project?rev=261875&view=rev Log: No, really - test the constructor Modified: libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.dltr/unique.ptr.dltr.dflt1/convert_ctor.pass.cpp Mo

Re: [clang-tools-extra] r261737 - [clang-tidy] Added a check for forward declaration in the potentially wrong namespace

2016-02-25 Thread Alexander Kornienko via cfe-commits
Yes, I know. Trying to come up with a good solution. On Thu, Feb 25, 2016 at 4:59 AM, Sean Silva wrote: > This or r261737 seem to be causing a bot failure: > http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/636 > > -- Sean Silva > > On Wed, Feb 24, 2016 a

Re: [PATCH] D15636: Reduce false positives in printf/scanf format checker

2016-02-25 Thread Andy Gibbs via cfe-commits
AndyG added inline comments. Comment at: lib/Sema/SemaChecking.cpp:3923-3924 @@ +3922,4 @@ + PartialDiagnostic PDiag = S.PDiag(diag::warn_printf_data_arg_not_used); + for (unsigned i = 1; i < DiagnosticExprs.size(); ++i) +PDiag << DiagnosticExprs[i]->getSourceRange(); +

[libcxx] r261874 - Add test to ensure that the converting constructor in N4089 is present and working

2016-02-25 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu Feb 25 09:25:29 2016 New Revision: 261874 URL: http://llvm.org/viewvc/llvm-project?rev=261874&view=rev Log: Add test to ensure that the converting constructor in N4089 is present and working Added: libcxx/trunk/test/std/utilities/memory/unique.ptr/unique.ptr.dltr/

Re: [PATCH] D17586: Add a new check, readability-redundant-string-init, that checks unnecessary string initializations.

2016-02-25 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/RedundantStringInitCheck.cpp:26 @@ +25,3 @@ +void RedundantStringInitCheck::registerMatchers( +ast_matchers::MatchFinder *Finder) { + if (!getLangOpts().CPlusPlus) nit: `ast_matchers::` can be o

Re: [PATCH] D15636: Reduce false positives in printf/scanf format checker

2016-02-25 Thread Andy Gibbs via cfe-commits
AndyG updated this revision to Diff 49058. AndyG marked 5 inline comments as done. AndyG added a comment. Updated patch according to the comments made. Also spotted a corner-case where a double-diagnostic was produced, for example in the following where one string has too few arguments and the

Re: [PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-25 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: test/clang-tidy/clang-tidy-run-with-database.cpp:2 @@ +1,3 @@ +// REQUIRES: shell +// RUN: mkdir -p %T/compilation-database-test +// RUN: mkdir -p %T/compilation-database-test/include You don't need to create the root dire

Re: [PATCH] D17575: Determine if there's a getDecl member function using less hacks

2016-02-25 Thread Aaron Ballman via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Thanks! I've commit in r261872. http://reviews.llvm.org/D17575 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r261872 - Replace a compiler-specific approach to determining the presence of a getDecl() member function with one that does not require compiler-specific workarounds; NFC.

2016-02-25 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Feb 25 09:14:09 2016 New Revision: 261872 URL: http://llvm.org/viewvc/llvm-project?rev=261872&view=rev Log: Replace a compiler-specific approach to determining the presence of a getDecl() member function with one that does not require compiler-specific workarounds;

Re: [PATCH] D15883: Add ARM EHABI-related constants to unwind.h.

2016-02-25 Thread Logan Chien via cfe-commits
logan added inline comments. Comment at: lib/Headers/unwind.h:61 @@ +60,3 @@ +#define _UNWIND_ARM_EHABI 0 +#endif + compnerd wrote: > logan wrote: > > logan wrote: > > > compnerd wrote: > > > > logan wrote: > > > > > compnerd wrote: > > > > > > logan wrote: > > >

Re: [PATCH] D17335: [clang-tidy] Fix a crash issue when clang-tidy runs with compilation database.

2016-02-25 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 49054. hokein added a comment. Simplify test code. http://reviews.llvm.org/D17335 Files: clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyDiagnosticConsumer.cpp clang-tidy/ClangTidyDiagnosticConsumer.h test/clang-tidy/Inputs/compilation-database/template

Re: [PATCH] D17149: Consolidate and improve the handling of built-in feature-like macros

2016-02-25 Thread Andy Gibbs via cfe-commits
AndyG added a comment. Second bump :o) http://reviews.llvm.org/D17149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r261868 - [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu Feb 25 08:31:10 2016 New Revision: 261868 URL: http://llvm.org/viewvc/llvm-project?rev=261868&view=rev Log: [clang-tidy] update links to Google Code Style in docs Summary: Because of the recent Google Code shutdown links to the Google Code Style up there are no longer re

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL261868: [clang-tidy] update links to Google Code Style in docs (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D17602?vs=49048&id=49052#toc Repository: rL LLVM http://reviews.

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added inline comments. Comment at: docs/clang-tidy/checks/readability-named-parameter.rst:13 @@ -13,2 +12,3 @@ +https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions All parameters should be named, with identical names in the declaratio

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
hokein added inline comments. Comment at: docs/clang-tidy/checks/readability-named-parameter.rst:13 @@ -13,2 +12,3 @@ +https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions All parameters should be named, with identical names in the declaration

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. Thank you very much, @hokein! http://reviews.llvm.org/D17602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Haojian Wu via cfe-commits
hokein accepted this revision. hokein added a comment. LGTM. I will commit the patch for you @omtcyf0. http://reviews.llvm.org/D17602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added inline comments. Comment at: docs/clang-tidy/checks/readability-named-parameter.rst:13 @@ -13,2 +12,3 @@ +https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions All parameters should be named, with identical names in the declaratio

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Hajian, if you have no concerns, could you commit the patch? Thanks! http://reviews.llvm.org/D17602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >