r304653 - Added missing break.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:40:10 2017 New Revision: 304653 URL: http://llvm.org/viewvc/llvm-project?rev=304653&view=rev Log: Added missing break. Modified: cfe/trunk/lib/Basic/IdentifierTable.cpp Modified: cfe/trunk/lib/Basic/IdentifierTable.cpp URL: http://llvm.org/viewvc/llvm-

r304652 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:38:22 2017 New Revision: 304652 URL: http://llvm.org/viewvc/llvm-project?rev=304652&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/Basic/TargetInfo.cpp Modified: cfe/trunk/lib/Basic

r304651 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:35:06 2017 New Revision: 304651 URL: http://llvm.org/viewvc/llvm-project?rev=304651&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp cfe/trunk/lib/Sema/Se

r304650 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:31:42 2017 New Revision: 304650 URL: http://llvm.org/viewvc/llvm-project?rev=304650&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/AST/ASTContext.cpp cfe/trunk/lib/AST/ASTDiagnos

r304649 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:30:46 2017 New Revision: 304649 URL: http://llvm.org/viewvc/llvm-project?rev=304649&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp cfe/trunk/lib/CodeGen/CGC

r304648 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:30:08 2017 New Revision: 304648 URL: http://llvm.org/viewvc/llvm-project?rev=304648&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/Edit/RewriteObjCFoundationAPI.cpp Modified: cfe/tr

r304647 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:29:40 2017 New Revision: 304647 URL: http://llvm.org/viewvc/llvm-project?rev=304647&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/Rewrite/HTMLRewrite.cpp Modified: cfe/trunk/lib/Re

r304646 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:29:16 2017 New Revision: 304646 URL: http://llvm.org/viewvc/llvm-project?rev=304646&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/Parse/Parser.cpp Modified: cfe/trunk/lib/Parse/Par

r304645 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:27:16 2017 New Revision: 304645 URL: http://llvm.org/viewvc/llvm-project?rev=304645&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp cfe/trunk/lib/Fro

r304644 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:26:27 2017 New Revision: 304644 URL: http://llvm.org/viewvc/llvm-project?rev=304644&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp c

r304643 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:25:47 2017 New Revision: 304643 URL: http://llvm.org/viewvc/llvm-project?rev=304643&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/Lex/Lexer.cpp Modified: cfe/trunk/lib/Lex/Lexer.cp

r304642 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through + formatted. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:25:29 2017 New Revision: 304642 URL: http://llvm.org/viewvc/llvm-project?rev=304642&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through + formatted. NFC. Modified: cfe/trunk/lib/Lex/LiteralSupport.cpp Modified: cfe/

r304641 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:23:51 2017 New Revision: 304641 URL: http://llvm.org/viewvc/llvm-project?rev=304641&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/Analysis/PrintfFormatString.cpp cfe/trunk/lib/A

r304640 - Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC.

2017-06-02 Thread Galina Kistanova via cfe-commits
Author: gkistanova Date: Sat Jun 3 01:23:19 2017 New Revision: 304640 URL: http://llvm.org/viewvc/llvm-project?rev=304640&view=rev Log: Added LLVM_FALLTHROUGH to address warning: this statement may fall through. NFC. Modified: cfe/trunk/lib/ARCMigrate/TransRetainReleaseDealloc.cpp cfe/tr

[PATCH] D32111: [modules] Attempt to fix PR31905 - #include "stddef.h" breaks module map search paths; causes redefinitions.

2017-06-02 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 101307. EricWF edited the summary of this revision. EricWF added reviewers: rtrieu, dexonsmith, dblaikie, aprantl, v.g.vassilev. EricWF added a comment. - Only allow the top level header search directories to be search for `module.modulemap` files when loadin

[PATCH] D30963: Fix crash when an 'import a module' TypoCorrection has its CorrectionDecls replaced by visible decls.

2017-06-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added inline comments. This revision is now accepted and ready to land. Comment at: lib/Sema/SemaLookup.cpp:3792-3793 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { if (TC.begin() == TC.end()) return; --

r304631 - [sanitizer-coverage] one more flavor of coverage: -fsanitize-coverage=inline-8bit-counters. Experimental so far, not documenting yet. (clang part)

2017-06-02 Thread Kostya Serebryany via cfe-commits
Author: kcc Date: Fri Jun 2 20:36:23 2017 New Revision: 304631 URL: http://llvm.org/viewvc/llvm-project?rev=304631&view=rev Log: [sanitizer-coverage] one more flavor of coverage: -fsanitize-coverage=inline-8bit-counters. Experimental so far, not documenting yet. (clang part) Modified: cfe/

[libcxx] r304629 - Fix the recently introduced test to work on C++03

2017-06-02 Thread Marshall Clow via cfe-commits
Author: marshall Date: Fri Jun 2 20:21:29 2017 New Revision: 304629 URL: http://llvm.org/viewvc/llvm-project?rev=304629&view=rev Log: Fix the recently introduced test to work on C++03 Modified: libcxx/trunk/test/libcxx/containers/unord/next_pow2.pass.cpp Modified: libcxx/trunk/test/libcxx/c

[PATCH] D30963: Fix crash when an 'import a module' TypoCorrection has its CorrectionDecls replaced by visible decls.

2017-06-02 Thread Jorge Gorbe via Phabricator via cfe-commits
jgorbe added inline comments. Comment at: lib/Sema/SemaLookup.cpp:3792-3793 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { if (TC.begin() == TC.end()) return; rsmith wrote: > Do we need to clear the flag on this path too? (T

[PATCH] D30963: Fix crash when an 'import a module' TypoCorrection has its CorrectionDecls replaced by visible decls.

2017-06-02 Thread Jorge Gorbe via Phabricator via cfe-commits
jgorbe updated this revision to Diff 101302. jgorbe added a comment. Also clear the 'requires import' flag when the TypoCorrection has no decls at all. https://reviews.llvm.org/D30963 Files: lib/Sema/SemaLookup.cpp test/Modules/Inputs/crash-typo-correction-visibility/module.h test/Module

[PATCH] D30963: Fix crash when an 'import a module' TypoCorrection has its CorrectionDecls replaced by visible decls.

2017-06-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaLookup.cpp:3792-3793 static void checkCorrectionVisibility(Sema &SemaRef, TypoCorrection &TC) { if (TC.begin() == TC.end()) return; Do we need to clear the flag on this path too? (This might happen

Buildbot numbers for the last week of 05/21/2017 - 05/27/2017

2017-06-02 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the last week of 05/21/2017 - 05/27/2017. Please see the same data in attached csv files: The longest time each builder was red during the last week; "Status change ratio" by active builder (percent of builds that changed the builder status fro

Buildbot numbers for the week of 05/14/2017 - 05/20/2017

2017-06-02 Thread Galina Kistanova via cfe-commits
Hello everyone, Below are some buildbot numbers for the week of 05/14/2017 - 05/20/2017. Please see the same data in attached csv files: The longest time each builder was red during the last week; "Status change ratio" by active builder (percent of builds that changed the builder status from gre

r304620 - [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Fri Jun 2 19:22:18 2017 New Revision: 304620 URL: http://llvm.org/viewvc/llvm-project?rev=304620&view=rev Log: [coroutines] Fix rebuilding of dependent coroutine parameters Summary: We were not handling correctly rebuilding of parameter and were not creating copies for them

[PATCH] D33797: [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: lib/Sema/SemaCoroutine.cpp:1285 + // We needed to check it, but we don't need to generate code for it. + if (!paramDecl->getIdentifier()) +continue; rsmith wrote: > EricWF wrote: > > @rsmith Is there a b

r304618 - Revert r304592

2017-06-02 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Jun 2 19:11:23 2017 New Revision: 304618 URL: http://llvm.org/viewvc/llvm-project?rev=304618&view=rev Log: Revert r304592 r304592 - [ODRHash] Add support for TemplateArgument types. Possibly causing one of the errors in modules build bot. Modified: cfe/trunk/lib/AST

[PATCH] D33588: Fix two sources of UB in __next_hash_pow2 (from __hash_table)

2017-06-02 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists accepted this revision. mclow.lists added inline comments. This revision is now accepted and ready to land. Comment at: include/__hash_table:140 +return (__n > 1) ? (size_t(1) << (std::numeric_limits::digits - __clz(__n-1))) : __n; } I turned

[libcxx] r304617 - Fix some undefined behavior in __hash_table. Thanks to vsk for the report and the patch. Reviewed as https://reviews.llvm.org/D33588.

2017-06-02 Thread Marshall Clow via cfe-commits
Author: marshall Date: Fri Jun 2 19:08:32 2017 New Revision: 304617 URL: http://llvm.org/viewvc/llvm-project?rev=304617&view=rev Log: Fix some undefined behavior in __hash_table. Thanks to vsk for the report and the patch. Reviewed as https://reviews.llvm.org/D33588. Added: libcxx/trunk/tes

[PATCH] D30963: Fix crash when an 'import a module' TypoCorrection has its CorrectionDecls replaced by visible decls.

2017-06-02 Thread Jorge Gorbe via Phabricator via cfe-commits
jgorbe added a comment. Ping? https://reviews.llvm.org/D30963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33797: [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 101293. EricWF added a comment. - No longer unnamed parameters from the AST. https://reviews.llvm.org/D33797 Files: lib/Sema/CoroutineStmtBuilder.h lib/Sema/SemaCoroutine.cpp lib/Sema/TreeTransform.h test/CodeGenCoroutines/coro-params.cpp test/Sema

[PATCH] D33797: [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/SemaCoroutine.cpp:1285 + // We needed to check it, but we don't need to generate code for it. + if (!paramDecl->getIdentifier()) +continue; EricWF wrote: > @rsmith Is there a better way to check

[PATCH] D33852: Enable __declspec(selectany) on linux

2017-06-02 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. OK, I will try to make it work on linux and windows only https://reviews.llvm.org/D33852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33841: [clang-tidy] redundant keyword check

2017-06-02 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. extern on function definition is also redundant, right? Also, what about: inline extern void foo(); (you check if it startswith extern) Repository: rL LLVM https://reviews.llvm.org/D33841 ___ cfe-commits mailing list cfe-

[PATCH] D33797: [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added inline comments. Comment at: lib/Sema/SemaCoroutine.cpp:1285 + // We needed to check it, but we don't need to generate code for it. + if (!paramDecl->getIdentifier()) +continue; @rsmith Is there a better way to check if the move wou

[PATCH] D33797: [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 101291. EricWF added a comment. - Diagnose non-moveable but otherwise unnamed parameters. - Have TreeTransform.h check if building the move params is successful. https://reviews.llvm.org/D33797 Files: lib/Sema/CoroutineStmtBuilder.h lib/Sema/SemaCoroutin

[PATCH] D33841: [clang-tidy] redundant keyword check

2017-06-02 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. In https://reviews.llvm.org/D33841#771944, @Prazek wrote: > Feature request: removing "void" from int main(void) This will duplicate modernize-redundant-void-arg. Repository: rL LLVM https://reviews.llvm.org/D33841

[PATCH] D33841: [clang-tidy] redundant keyword check

2017-06-02 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek added a comment. Feature request: removing "void" from int main(void) Repository: rL LLVM https://reviews.llvm.org/D33841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D33841: [clang-tidy] redundant keyword check

2017-06-02 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added a comment. Please mention this check in docs/ReleaseNotes.rst (in alphabetical order). Comment at: docs/clang-tidy/checks/readability-redundant-keyword.rst:6 + +This checker removes the redundant `extern` and `inline` keywords from code. +

[PATCH] D33833: Fix PR 33189: Clang assertion on template destructor declaration

2017-06-02 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: lib/AST/DeclCXX.cpp:1420 DeclContext::lookup_result R = lookup(Name); - if (R.empty()) + if (R.empty() || !isa(R.front())) return nullptr; As it is, ``` return R.empty() ? nullptr : dyn_cast(R.fr

r304604 - Fix assertion failure if we can't deduce a template argument for a variable

2017-06-02 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jun 2 17:53:06 2017 New Revision: 304604 URL: http://llvm.org/viewvc/llvm-project?rev=304604&view=rev Log: Fix assertion failure if we can't deduce a template argument for a variable template partial specialization. In passing, fix the deduction-crash.cpp test to actuall

[PATCH] D33852: Enable __declspec(selectany) on linux

2017-06-02 Thread Davide Italiano via Phabricator via cfe-commits
davide added a comment. If you take my example, and you pass `-target x86_64-pc-win32-macho`: On clang-3.8, `TinkyWinky` is lowered to a GV with `weak_odr` linkage: $ clang++ 1.cpp -o - -emit-llvm -S -fms-extensions -target x86_64-pc-win32-macho ; ModuleID = '1.cpp' target datalayout = "e

[PATCH] D33852: Enable __declspec(selectany) on linux

2017-06-02 Thread Davide Italiano via Phabricator via cfe-commits
davide added a comment. I think lowering `__declspec(selectany)` to a `comdat` for GVs on ELF platform is actually reasonable. I don't know what happens on Mach-O (as far as I can tell they don't have a real notion of COMDAT, they use coalesced symbols, but I'm not an expert of the format so yo

Re: r304376 - PR33232: implement support for MSVC's __is_trivially_destructible trait.

2017-06-02 Thread Richard Smith via cfe-commits
I think it comes down to a question of whether we want to guarantee that these traits are treated as not being identifiers. In some sense, it's an implementation detail that we model them as keywords -- and as it happens, there are some circumstances in which we *don't* model them as keywords. For

[PATCH] D33797: [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov updated this revision to Diff 101282. GorNishanov added a comment. test updated to use %[[copy_x]] instead of %x1 https://reviews.llvm.org/D33797 Files: lib/Sema/CoroutineStmtBuilder.h lib/Sema/SemaCoroutine.cpp lib/Sema/TreeTransform.h test/CodeGenCoroutines/coro-params.cpp

[PATCH] D33852: Enable __declspec(selectany) on linux)

2017-06-02 Thread Piotr Padlewski via Phabricator via cfe-commits
Prazek created this revision. This feature was disabled probably by mistake in https://reviews.llvm.org/rL300562 This fixes bug https://bugs.llvm.org/show_bug.cgi?id=33285 https://reviews.llvm.org/D33852 Files: include/clang/Basic/Attr.td test/Sema/attr-selectany.c test/SemaCXX/attr-sele

[PATCH] D33797: [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF added a comment. @GorNishanov I think we should be transforming the move parameters, instead of re-building them entirely. I'll put together a different set of changes. https://reviews.llvm.org/D33797 ___ cfe-commits mailing list cfe-commits

[PATCH] D33304: [clang-tidy][Part1] Add a new module Android and three new checks.

2017-06-02 Thread Yan Wang via Phabricator via cfe-commits
yawanng updated this revision to Diff 101279. yawanng added a comment. Format changes. https://reviews.llvm.org/D33304 Files: clang-tidy/CMakeLists.txt clang-tidy/android/AndroidTidyModule.cpp clang-tidy/android/CMakeLists.txt clang-tidy/android/FileOpenFlagCheck.cpp clang-tidy/androi

[PATCH] D33797: [coroutines] Fix rebuilding of dependent coroutine parameters

2017-06-02 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added inline comments. Comment at: test/CodeGenCoroutines/coro-params.cpp:103 + // CHECK: call i8* @llvm.coro.begin + // CHECK-NEXT: call void @_ZN1AC1EOS_(%struct.A* %x1, %struct.A* dereferenceable(512) %x) + // CHECK-NEXT: call void @_ZNSt12experimental16corout

[PATCH] D30170: Function definition may have uninstantiated body

2017-06-02 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: include/clang/AST/Decl.h:1868-1871 bool isThisDeclarationADefinition() const { -return IsDeleted || Body || IsLateTemplateParsed; +return IsDeleted || IsDefaulted || Body || IsLateTemplateParsed || + hasDefiningAttr();

Re: [libcxx] r304591 - Mark two coroutine tests as unsupported under ubsan, again

2017-06-02 Thread Gor Nishanov via cfe-commits
Cool. Thanks for checking. On Fri, Jun 2, 2017 at 1:12 PM, Vedant Kumar wrote: > Hm, sorry, the compiler on the bot could not have picked up r304518, so I > jumped the gun here. I'll try again later and report back in PR33271. > > vedant > > > On Jun 2, 2017, at 1:09 PM, Vedant Kumar via cfe-com

Re: r304376 - PR33232: implement support for MSVC's __is_trivially_destructible trait.

2017-06-02 Thread Eric Fiselier via cfe-commits
I've been using !__is_identifier to test for things like that. It seems to be the most consistent way. Is there some problem with this? /Eric On Thu, Jun 1, 2017 at 6:46 PM, Richard Smith wrote: > On 31 May 2017 at 17:41, Eric Fiselier wrote: > >> I'm assuming libc++ should move to this trait

[PATCH] D33304: [clang-tidy][Part1] Add a new module Android and three new checks.

2017-06-02 Thread Yan Wang via Phabricator via cfe-commits
yawanng updated this revision to Diff 101267. https://reviews.llvm.org/D33304 Files: clang-tidy/CMakeLists.txt clang-tidy/android/AndroidTidyModule.cpp clang-tidy/android/CMakeLists.txt clang-tidy/android/FileOpenFlagCheck.cpp clang-tidy/android/FileOpenFlagCheck.h clang-tidy/plugin/C

r304592 - [ODRHash] Add support for TemplateArgument types.

2017-06-02 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Jun 2 15:35:29 2017 New Revision: 304592 URL: http://llvm.org/viewvc/llvm-project?rev=304592&view=rev Log: [ODRHash] Add support for TemplateArgument types. Modified: cfe/trunk/lib/AST/ODRHash.cpp cfe/trunk/test/Modules/odr_hash.cpp Modified: cfe/trunk/lib/AST/O

[PATCH] D33732: Catch invalid bitwise operation on vector of floats

2017-06-02 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. Hi, Comment at: test/Sema/types.c:92 + +typedef float __attribute__((ext_vector_type(4))) float4; +float4 test3(float4 x) { Can you also add a test for the `vector_type` variant? It might be more appropriate to put this at test/Sema/ext

Re: [PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Richard Smith via cfe-commits
On 2 June 2017 at 12:26, Aaron Ballman wrote: > On Fri, Jun 2, 2017 at 3:22 PM, Richard Smith > wrote: > > On 2 June 2017 at 12:04, Richard Smith wrote: > >> > >> On 2 June 2017 at 11:39, Aaron Ballman via Phabricator via cfe-commits > >> wrote: > >>> > >>> aaron.ballman added a comment. > >>>

[PATCH] git-clang-format: Add --cached option to format index

2017-06-02 Thread Kevin Locke via cfe-commits
Add --cached option to git-clang-format which behaves analogously to --cached for other git subcommands, by causing the operation to work against the index state rather than the working directory state. This can be particularly useful for hook scripts which need to check or change the formatting o

Re: [libcxx] r304591 - Mark two coroutine tests as unsupported under ubsan, again

2017-06-02 Thread Vedant Kumar via cfe-commits
Hm, sorry, the compiler on the bot could not have picked up r304518, so I jumped the gun here. I'll try again later and report back in PR33271. vedant > On Jun 2, 2017, at 1:09 PM, Vedant Kumar via cfe-commits > wrote: > > Hi Gor, > > This is just a heads-up that I tried re-enabling ubsan fo

Re: [libcxx] r304591 - Mark two coroutine tests as unsupported under ubsan, again

2017-06-02 Thread Vedant Kumar via cfe-commits
Hi Gor, This is just a heads-up that I tried re-enabling ubsan for the two tests affected by PR33271, but saw some similar failures. The commit message below has more details about what was tested and what went wrong. best, vedant > On Jun 2, 2017, at 1:06 PM, Vedant Kumar via cfe-commits >

[libcxx] r304591 - Mark two coroutine tests as unsupported under ubsan, again

2017-06-02 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Fri Jun 2 15:06:49 2017 New Revision: 304591 URL: http://llvm.org/viewvc/llvm-project?rev=304591&view=rev Log: Mark two coroutine tests as unsupported under ubsan, again This reverts commit r304580, making bool_await_suspend.pass.cpp and generator.pass.cpp unsupported on ub

[PATCH] D33827: [clang-tidy] misc-static-assert shouldn't flag assert(!"msg")

2017-06-02 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG. Thank you! Repository: rL LLVM https://reviews.llvm.org/D33827 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.o

[PATCH] D33735: [DebugInfo] Add ThisOrSelf attribute for emission of FlagObjectPointer.

2017-06-02 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev updated this revision to Diff 101262. ABataev added a comment. Herald added a subscriber: jholewinski. Added different kinds of ImplicitParamDecl. https://reviews.llvm.org/D33735 Files: include/clang/AST/Decl.h lib/AST/ASTImporter.cpp lib/AST/Decl.cpp lib/AST/DeclObjC.cpp lib/

Re: [PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Aaron Ballman via cfe-commits
On Fri, Jun 2, 2017 at 3:22 PM, Richard Smith wrote: > On 2 June 2017 at 12:04, Richard Smith wrote: >> >> On 2 June 2017 at 11:39, Aaron Ballman via Phabricator via cfe-commits >> wrote: >>> >>> aaron.ballman added a comment. >>> >>> In https://reviews.llvm.org/D33788#771671, @bruno wrote: >>>

Re: [PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Aaron Ballman via cfe-commits
On Fri, Jun 2, 2017 at 3:04 PM, Richard Smith wrote: > On 2 June 2017 at 11:39, Aaron Ballman via Phabricator via cfe-commits > wrote: >> >> aaron.ballman added a comment. >> >> In https://reviews.llvm.org/D33788#771671, @bruno wrote: >> >> > > I'm unaware of any other API that canonicalizes the

[PATCH] D30170: Function definition may have uninstantiated body

2017-06-02 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff updated this revision to Diff 101260. sepavloff added a comment. Do not call getCanonicalDecl for deleted functions https://reviews.llvm.org/D30170 Files: include/clang/AST/Decl.h lib/AST/Decl.cpp lib/Sema/SemaDecl.cpp test/SemaCXX/cxx0x-cursory-default-delete.cpp test/SemaC

Re: [PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Richard Smith via cfe-commits
On 2 June 2017 at 12:04, Richard Smith wrote: > On 2 June 2017 at 11:39, Aaron Ballman via Phabricator via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> aaron.ballman added a comment. >> >> In https://reviews.llvm.org/D33788#771671, @bruno wrote: >> >> > > I'm unaware of any other API t

Re: [PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Richard Smith via cfe-commits
On 2 June 2017 at 11:39, Aaron Ballman via Phabricator via cfe-commits < cfe-commits@lists.llvm.org> wrote: > aaron.ballman added a comment. > > In https://reviews.llvm.org/D33788#771671, @bruno wrote: > > > > I'm unaware of any other API that canonicalizes the path, which is > what users of this

[PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno accepted this revision. bruno added a comment. This revision is now accepted and ready to land. > Yes, but that does not canonicalize the path. For instance, it won't handle > doubled-up slashes or symlinks. Right. > Ultimately, the value returned from this API gets passed to POSIX func

[clang-tools-extra] r304583 - [clang-tidy] Add `const` to operator() to fix a warning.

2017-06-02 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Jun 2 13:47:50 2017 New Revision: 304583 URL: http://llvm.org/viewvc/llvm-project?rev=304583&view=rev Log: [clang-tidy] Add `const` to operator() to fix a warning. Modified: clang-tools-extra/trunk/clang-tidy/misc/LambdaFunctionNameCheck.h Modified: clang-tools-extr

[clang-tools-extra] r304581 - Fix formatting in docs.

2017-06-02 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Jun 2 13:44:32 2017 New Revision: 304581 URL: http://llvm.org/viewvc/llvm-project?rev=304581&view=rev Log: Fix formatting in docs. Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/v

[PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D33788#771671, @bruno wrote: > > I'm unaware of any other API that canonicalizes the path, which is what > > users of this API are going to expect. > > You can also call `sys::path::remove_dots(Path, /*remove_dot_dot=*/true);` Yes, but

[libcxx] r304580 - Revert "Mark two coroutine tests as unsupported under ubsan"

2017-06-02 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Fri Jun 2 13:30:16 2017 New Revision: 304580 URL: http://llvm.org/viewvc/llvm-project?rev=304580&view=rev Log: Revert "Mark two coroutine tests as unsupported under ubsan" This reverts commit r304462, thereby re-enabling two tests under ubsan. We expect these tests to pass

[PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. > I'm unaware of any other API that canonicalizes the path, which is what users > of this API are going to expect. You can also call `sys::path::remove_dots(Path, /*remove_dot_dot=*/true);` > There's already a test case that covers this: Index/pch-from-libclang.c -- it

[PATCH] D33842: [AMDGPU] Fix address space of global variable

2017-06-02 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:360 + CGF.getContext().getTargetAddressSpace(LangAS::opencl_constant); +} auto *GV = new llvm::GlobalVariable( This is not an appropriate place to stick target-specif

[PATCH] D33827: [clang-tidy] misc-static-assert shouldn't flag assert(!"msg")

2017-06-02 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. While not directly related to this Differential, i wonder if it would make sense to also not warn on calls to (especially non-member) functions marked with `__attribute__((const))`, maybe `__attribute__((pure))` too. At least i'm not sure what side-effects such calls

[PATCH] D33821: [OpenCL] Harden function pointer diagnostics.

2017-06-02 Thread Alexey Bader via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304575: [OpenCL] Harden function pointer diagnostics. (authored by bader). Changed prior to commit: https://reviews.llvm.org/D33821?vs=101181&id=101242#toc Repository: rL LLVM https://reviews.llvm.o

r304575 - [OpenCL] Harden function pointer diagnostics.

2017-06-02 Thread Alexey Bader via cfe-commits
Author: bader Date: Fri Jun 2 13:08:58 2017 New Revision: 304575 URL: http://llvm.org/viewvc/llvm-project?rev=304575&view=rev Log: [OpenCL] Harden function pointer diagnostics. Summary: Improve OpenCL type checking by rejecting function pointer types. Reviewers: Anastasia, yaxunl Reviewed By:

[PATCH] D33597: [OpenCL] Fix pipe size in TypeInfo.

2017-06-02 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! https://reviews.llvm.org/D33597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

[PATCH] D33821: [OpenCL] Harden function pointer diagnostics.

2017-06-02 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! https://reviews.llvm.org/D33821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D33497: [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-06-02 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL304570: [clang-tidy] check for __func__/__FUNCTION__ in lambdas (authored by alexfh). Changed prior to commit: https://reviews.llvm.org/D33497?vs=101224&id=101237#toc Repository: rL LLVM https://rev

[clang-tools-extra] r304570 - [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-06-02 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Fri Jun 2 12:36:32 2017 New Revision: 304570 URL: http://llvm.org/viewvc/llvm-project?rev=304570&view=rev Log: [clang-tidy] check for __func__/__FUNCTION__ in lambdas Add a clang-tidy check for using func__/FUNCTION__ inside lambdas. This evaluates to the string operator(),

[PATCH] D33842: [AMDGPU] Fix address space of global variable

2017-06-02 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl created this revision. Herald added subscribers: t-tye, tpr, dstuttard, wdng, kzhuravl. amdgcn target requires global variable to stay in global or constant address space. In C or C++ global variables are emitted in the default (generic) address space which the amdgcn backend cannot handle

[PATCH] D33597: [OpenCL] Fix pipe size in TypeInfo.

2017-06-02 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia updated this revision to Diff 101236. Anastasia added a comment. Added RUN line for AMD https://reviews.llvm.org/D33597 Files: lib/AST/ASTContext.cpp test/Index/pipe-size.cl Index: test/Index/pipe-size.cl === --- /d

Re: r304515 - Support lazy stat'ing of files referenced by module maps.

2017-06-02 Thread Benjamin Kramer via cfe-commits
I committed a workaround in r304568. On Fri, Jun 2, 2017 at 6:59 PM, Alexander Kornienko via cfe-commits wrote: > I've not yet figured out exactly, but I have a suspicion that this commit > causes crashes when run under asan. Specifically, when running > test/Modules/preprocess-module.cpp > > The

r304568 - [Modules] Fix use after scope.

2017-06-02 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Fri Jun 2 12:30:24 2017 New Revision: 304568 URL: http://llvm.org/viewvc/llvm-project?rev=304568&view=rev Log: [Modules] Fix use after scope. Found by asan. Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp Modified: cfe/trunk/lib/Serialization/ASTWriter.cpp URL: http:

[PATCH] D33825: [clang-tidy] signal handler must be plain old function check

2017-06-02 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: clang-tidy/cert/CERTTidyModule.cpp:64 +"cert-msc54-cpp"); // C checkers // DCL checker -> check. Comment at: docs/ReleaseNotes.rst:73 + + Checks if a signal handler is not a p

[PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Argyrios Kyrtzidis via Phabricator via cfe-commits
akyrtzi added a comment. I retract my comment, I see that `getMainExecutable` on OSX calls realpath as well, so it's good to use realpath in this code to make sure they are in-sync with how the compiler will determine the path. https://reviews.llvm.org/D33788 ___

[PATCH] D33497: [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-06-02 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good! https://reviews.llvm.org/D33497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-06-02 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D33102#767291, @dblaikie wrote: > Still seems like an awful lot more testing than I'd expect for this warning. > (eg: testing all the many variations of C++ const_cast - when they all > provide basically the same coverage I think, that al

[PATCH] D33102: [clang] Implement -Wcast-qual for C++

2017-06-02 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 101232. lebedev.ri marked an inline comment as done. lebedev.ri added a subscriber: cfe-commits. lebedev.ri added a comment. Address review notes. Repository: rL LLVM https://reviews.llvm.org/D33102 Files: docs/ReleaseNotes.rst lib/Sema/SemaCast.c

[PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D33788#771504, @akyrtzi wrote: > Getting the real path is notoriously slow (at least it's horrible in OSX, not > sure about linux). Since this is about dropping the '/../' part, could we do > some simple canonicalization of removing the

[PATCH] D33478: [libclang] When getting platform availabilities, merge multiple declarations if possible

2017-06-02 Thread Ronald Wampler via Phabricator via cfe-commits
rdwampler added inline comments. Comment at: tools/libclang/CIndex.cpp:7322 + + for (int I = 0, E = AvailabilityAttrs.size(); I < E && I < availability_size; + ++I) { arphaman wrote: > You can use a ranged for loop here if you use `take_front`, e.g. > > `

[PATCH] D33788: Return a canonical path from getClangResourcePath()

2017-06-02 Thread Argyrios Kyrtzidis via Phabricator via cfe-commits
akyrtzi added a comment. Getting the real path is notoriously slow (at least it's horrible in OSX, not sure about linux). Since this is about dropping the '/../' part, could we do some simple canonicalization of removing the dots ? Not sure if there is an existing function that does that. htt

[PATCH] D33706: CodeGen: Cast temporary variable to proper address space

2017-06-02 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. Thanks! https://reviews.llvm.org/D33706 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D33735: [DebugInfo] Add ThisOrSelf attribute for emission of FlagObjectPointer.

2017-06-02 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/AST/Decl.h:1388 SourceLocation IdLoc, IdentifierInfo *Id, - QualType T); + QualType T, bool IsThisOrSelf = false); -

[PATCH] D33304: [clang-tidy][Part1] Add a new module Android and three new checks.

2017-06-02 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. In https://reviews.llvm.org/D33304#771215, @hokein wrote: > Thanks for the contributions. > > All your three checks are not android specific -- because they are checking > POSIX APIs (`open`, `creat`, `fopen`), which are more likely related to > POSIX. So personally, I'm

[PATCH] D33706: CodeGen: Cast temporary variable to proper address space

2017-06-02 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 101227. yaxunl added a comment. Fix a comment. https://reviews.llvm.org/D33706 Files: lib/CodeGen/CGCall.cpp lib/CodeGen/CGDecl.cpp lib/CodeGen/CGExpr.cpp lib/CodeGen/CodeGenFunction.h test/CodeGen/address-space.c test/CodeGen/default-address-spa

[PATCH] D33706: CodeGen: Cast temporary variable to proper address space

2017-06-02 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Thanks. One tweak and then LGTM. Comment at: lib/CodeGen/CodeGenFunction.h:1937 + /// to the stack. + + /// Because the address of a temporary is often exposed to the program in This line should have ///. https://reviews.llvm.org/

[PATCH] D33497: [clang-tidy] check for __func__/__FUNCTION__ in lambdas

2017-06-02 Thread Bryce Liu via Phabricator via cfe-commits
brycel updated this revision to Diff 101224. brycel added a comment. Move namespace-level types to class-level to avoid potential future name conflicts. https://reviews.llvm.org/D33497 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/LambdaFunctionNameCheck.cpp clang-tidy/misc/Lambd

[PATCH] D33333: Emit warning when throw exception in destruct or dealloc functions which has a (possible implicit) noexcept specifier

2017-06-02 Thread Jennifer Yu via Phabricator via cfe-commits
jyu2 marked 2 inline comments as done. jyu2 added inline comments. Comment at: lib/Sema/AnalysisBasedWarnings.cpp:334 + continue; +else + HasThrowOutFunc = true; jyu2 wrote: > aaron.ballman wrote: > > You can drop the `else` here and just set `HasTh

[libclc] r304556 - generic: add missing get_work_dim include

2017-06-02 Thread Jan Vesely via cfe-commits
Author: jvesely Date: Fri Jun 2 10:58:35 2017 New Revision: 304556 URL: http://llvm.org/viewvc/llvm-project?rev=304556&view=rev Log: generic: add missing get_work_dim include Fixes few piglits since clang r304193 Signed-off-by: Jan Vesely Reviewed-by: Aaron Watry Modified: libclc/trunk/g

  1   2   >