r342861 - Add inherited attributes before parsed attributes.

2018-09-23 Thread Michael Kruse via cfe-commits
Author: meinersbur Date: Sun Sep 23 23:31:37 2018 New Revision: 342861 URL: http://llvm.org/viewvc/llvm-project?rev=342861&view=rev Log: Add inherited attributes before parsed attributes. Currently, attributes from previous declarations ('inherited attributes') are added to the end of a declarati

Re: [PATCH] D52344: [Clang][CodeGen][ObjC]: Fix non-bridged CoreFoundation builds on ELF targets that use `-fconstant-cfstrings`.

2018-09-23 Thread John McCall via cfe-commits
On Sun, Sep 23, 2018 at 5:39 AM David Chisnall via Phabricator < revi...@reviews.llvm.org> wrote: > theraven added a comment. > > In https://reviews.llvm.org/D52344#1242530, @rjmccall wrote: > > > In https://reviews.llvm.org/D52344#1242451, @kristina wrote: > > > > > Would you be okay with me rena

[PATCH] D52392: [X86] For lzcnt/tzcnt intrinsics use cttz/ctlz intrinsics with zero_undef flag set to false.

2018-09-23 Thread Simon Pilgrim via Phabricator via cfe-commits
RKSimon added a comment. Are there other targets that would benefit from this and if so should we provide a more generic intrinsic? Repository: rC Clang https://reviews.llvm.org/D52392 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

[PATCH] D52230: [clang-tidy] use CHECK-NOTES in tests for bugprone-macro-repeated-side-effects

2018-09-23 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. Friendly ping :) Can i land all the test changes, or do you want to review them? The pattern will be the same, I just want them in different commits to revert better if something changes on different platforms. Repository: rCTE Clang Tools Extra https://reviews.ll

[PATCH] D52344: [Clang][CodeGen][ObjC]: Fix non-bridged CoreFoundation builds on ELF targets that use `-fconstant-cfstrings`.

2018-09-23 Thread David Chisnall via Phabricator via cfe-commits
theraven added a comment. In https://reviews.llvm.org/D52344#1242530, @rjmccall wrote: > In https://reviews.llvm.org/D52344#1242451, @kristina wrote: > > > Would you be okay with me renaming `cfstring` to `.cfstring` for ELF so > > it's in line with ELF section naming conventions (I'm not entire

[PATCH] D51886: [analyzer][UninitializedObjectChecker] Using the new const methods of ImmutableList

2018-09-23 Thread Umann Kristóf via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC342834: [analyzer][UninitializedObjectChecker] Using the new const methods of… (authored by Szelethus, committed by ). Repository: rC Clang https://reviews.llvm.org/D51886 Files: lib/StaticAnalyzer/

r342834 - [analyzer][UninitializedObjectChecker] Using the new const methods of ImmutableList

2018-09-23 Thread Kristof Umann via cfe-commits
Author: szelethus Date: Sun Sep 23 02:16:27 2018 New Revision: 342834 URL: http://llvm.org/viewvc/llvm-project?rev=342834&view=rev Log: [analyzer][UninitializedObjectChecker] Using the new const methods of ImmutableList Differential Revision: https://reviews.llvm.org/D51886 Modified: cfe/t

[PATCH] D52402: [CMake][Fuchsia] Use internal_linkage rather than always_inline for libc++

2018-09-23 Thread Petr Hosek via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC342833: [CMake] Use internal_linkage rather than always_inline for libc++ (authored by phosek, committed by ). Changed prior to commit: https://reviews.llvm.org/D52402?vs=166630&id=166634#toc Repositor

r342833 - [CMake] Use internal_linkage rather than always_inline for libc++

2018-09-23 Thread Petr Hosek via cfe-commits
Author: phosek Date: Sun Sep 23 01:46:31 2018 New Revision: 342833 URL: http://llvm.org/viewvc/llvm-project?rev=342833&view=rev Log: [CMake] Use internal_linkage rather than always_inline for libc++ This is a workaround for PR39053 which was uncovered by D50652 when the default attribute has been

[PATCH] D52401: Remove redundant null pointer check in operator delete

2018-09-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. In https://reviews.llvm.org/D52401#1243054, @ldionne wrote: > Was this true pre-C11 too? If not, then this needs to be guarded by `#if > _LIBCPP_STD_VER >= 17`, because C++ is only on top of C11 in C++17 and above > (Marshall can double-check this). Thanks for the not

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-23 Thread David CARLIER via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rC342832: [CStringSyntaxChecker] Check strlcat sizeof check (authored by devnexen, committed by ). Repository: rC Clang

r342832 - [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-23 Thread David Carlier via cfe-commits
Author: devnexen Date: Sun Sep 23 01:30:17 2018 New Revision: 342832 URL: http://llvm.org/viewvc/llvm-project?rev=342832&view=rev Log: [CStringSyntaxChecker] Check strlcat sizeof check Assuming strlcat is used with strlcpy we check as we can if the last argument does not equal os not larger tha

[PATCH] D52401: Remove redundant null pointer check in operator delete

2018-09-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 166632. MaskRay edited the summary of this revision. MaskRay added a comment. Quote C89: "If ptr is a null pointer, no action occurs." Repository: rCXX libc++ https://reviews.llvm.org/D52401 Files: src/new.cpp Index: src/new.cpp =

[PATCH] D52331: [Index] Report specialization bases as references when IndexImplicitInstantiation is true

2018-09-23 Thread Fangrui Song via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL342831: [Index] Report specialization bases as references when… (authored by MaskRay, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D52331 Files

r342831 - [Index] Report specialization bases as references when IndexImplicitInstantiation is true

2018-09-23 Thread Fangrui Song via cfe-commits
Author: maskray Date: Sun Sep 23 01:23:48 2018 New Revision: 342831 URL: http://llvm.org/viewvc/llvm-project?rev=342831&view=rev Log: [Index] Report specialization bases as references when IndexImplicitInstantiation is true Summary: template struct B {}; template struct D : B {}; // `B

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay accepted this revision. MaskRay added a comment. LG https://reviews.llvm.org/D49722 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52402: [CMake][Fuchsia] Use internal_linkage rather than always_inline for libc++

2018-09-23 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr accepted this revision. mcgrathr added a comment. This revision is now accepted and ready to land. lgtm as long as we revert when the underlying bugs are resovled Repository: rC Clang https://reviews.llvm.org/D52402 ___ cfe-commits maili

[PATCH] D52402: [CMake][Fuchsia] Use internal_linkage rather than always_inline for libc++

2018-09-23 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. phosek added reviewers: mcgrathr, jakehehrlich. Herald added subscribers: cfe-commits, mgorny. Herald added a reviewer: EricWF. This is a workaround for PR39053 which was uncovered by https://reviews.llvm.org/D50652 when the default attribute has been changed from in

[PATCH] D52331: [Index] Report specialization bases as references when IndexImplicitInstantiation is true

2018-09-23 Thread David CARLIER via Phabricator via cfe-commits
devnexen accepted this revision. devnexen added a comment. This revision is now accepted and ready to land. LGTM to me Repository: rC Clang https://reviews.llvm.org/D52331 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D52401: Remove redundant null pointer check in operator delete

2018-09-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 166629. MaskRay edited the summary of this revision. MaskRay added a comment. Also remove the check for _aligned_free Repository: rCXX libc++ https://reviews.llvm.org/D52401 Files: src/new.cpp Index: src/new.cpp ==

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-23 Thread David CARLIER via Phabricator via cfe-commits
devnexen updated this revision to Diff 166628. https://reviews.llvm.org/D49722 Files: lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp test/Analysis/cstring-syntax.c Index: test/Analysis/cstring-syntax.c === --- test/Analysi

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-23 Thread David CARLIER via Phabricator via cfe-commits
devnexen added inline comments. Comment at: lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp:275 +os << "sizeof(" << DstName << ")"; + else +os << "sizeof()"; MaskRay wrote: > devnexen wrote: > > MaskRay wrote: > > > Why can't this `else

[PATCH] D49722: [CStringSyntaxChecker] Check strlcat sizeof check

2018-09-23 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added inline comments. Comment at: lib/StaticAnalyzer/Checkers/CStringSyntaxChecker.cpp:275 +os << "sizeof(" << DstName << ")"; + else +os << "sizeof()"; devnexen wrote: > MaskRay wrote: > > Why can't this `else if` case be folded int

[PATCH] D52401: Remove redundant null pointer check in operator delete

2018-09-23 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. Was this true pre-C11 too? If not, then this needs to be guarded by `#if _LIBCPP_STD_VER >= 17`, because C++ is only on top of C11 in C++17 and above (Marshall can double-check this). Repository: rCXX libc++ https://reviews.llvm.org/D52401 ___