r306948 - Un-revert "[Driver] Add -fdiagnostics-hotness-threshold"

2017-06-30 Thread Brian Gesiak via cfe-commits
Author: modocache Date: Fri Jun 30 22:45:26 2017 New Revision: 306948 URL: http://llvm.org/viewvc/llvm-project?rev=306948=rev Log: Un-revert "[Driver] Add -fdiagnostics-hotness-threshold" Summary: Un-revert https://reviews.llvm.org/D34868, but with a slight tweak to the documentation to fix an

r306946 - Revert "[Driver] Add -fdiagnostics-hotness-threshold"

2017-06-30 Thread Brian Gesiak via cfe-commits
Author: modocache Date: Fri Jun 30 21:54:53 2017 New Revision: 306946 URL: http://llvm.org/viewvc/llvm-project?rev=306946=rev Log: Revert "[Driver] Add -fdiagnostics-hotness-threshold" Summary: The commit caused a documentation breakage. Modified: cfe/trunk/docs/UsersManual.rst

[PATCH] D34868: [Driver] Add -fdiagnostics-hotness-threshold

2017-06-30 Thread Brian Gesiak via Phabricator via cfe-commits
modocache added a comment. Awesome, thank you for all the reviews! https://reviews.llvm.org/D34868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r306945 - [Driver] Add -fdiagnostics-hotness-threshold

2017-06-30 Thread Brian Gesiak via cfe-commits
Author: modocache Date: Fri Jun 30 21:44:38 2017 New Revision: 306945 URL: http://llvm.org/viewvc/llvm-project?rev=306945=rev Log: [Driver] Add -fdiagnostics-hotness-threshold Summary: Depends on https://reviews.llvm.org/D34867. Add a Clang frontend option to enable optimization remark hotness

r306944 - Fix indentation.

2017-06-30 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Fri Jun 30 21:37:54 2017 New Revision: 306944 URL: http://llvm.org/viewvc/llvm-project?rev=306944=rev Log: Fix indentation. This is an attempt to fix a failing bot: http://lab.llvm.org:8011/builders/ubuntu-gcc7.1-werror Modified:

r306928 - Update clang support for -mexecute-only/-mpure-code for backend change to use subtarget feature rather than command line option.

2017-06-30 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Jun 30 19:55:23 2017 New Revision: 306928 URL: http://llvm.org/viewvc/llvm-project?rev=306928=rev Log: Update clang support for -mexecute-only/-mpure-code for backend change to use subtarget feature rather than command line option. Added:

r306926 - [ODRHash] Revert r305104 - Skip inline namespaces when hashing.

2017-06-30 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Jun 30 19:00:05 2017 New Revision: 306926 URL: http://llvm.org/viewvc/llvm-project?rev=306926=rev Log: [ODRHash] Revert r305104 - Skip inline namespaces when hashing. Test inline namespaces and handle them in the ODR hash again. Modified:

[PATCH] D34770: [Bash-autocompletion] Auto complete cc1 options if -cc1 is specified

2017-06-30 Thread Yuka Takahashi via Phabricator via cfe-commits
yamaguchi added a comment. @teemperor > I think we want to support completing both -cc1 and normal driver invocation. > Most people use the driver, but for example during debugging people use the > cc1 version, so both are valid use cases. I just saw we actually have the > completion code in

[PATCH] D34913: [clang-tidy] Add a new Android check "android-cloexec-socket"

2017-06-30 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko requested changes to this revision. Eugene.Zelenko added a comment. This revision now requires changes to proceed. Please wait for Alexander, Aaron or Haojian approval. Comment at: clang-tidy/android/CloexecOpenCheck.cpp:22 namespace { static constexpr const

r306922 - [Driver] Check that the iOS deployment target is iOS 10 or earlier if

2017-06-30 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Fri Jun 30 17:57:52 2017 New Revision: 306922 URL: http://llvm.org/viewvc/llvm-project?rev=306922=rev Log: [Driver] Check that the iOS deployment target is iOS 10 or earlier if the target is 32-bit. The following changes are made to the driver since 32-bit apps do not run

[PATCH] D34529: [Driver] Check that the iOS deployment target is iOS 10 or earlier if the target is 32-bit

2017-06-30 Thread Akira Hatanaka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL306922: [Driver] Check that the iOS deployment target is iOS 10 or earlier if (authored by ahatanak). Changed prior to commit: https://reviews.llvm.org/D34529?vs=104958=104972#toc Repository: rL

[PATCH] D34784: [OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

2017-06-30 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added inline comments. Comment at: include/clang/Driver/Options.td:453 +def Xopenmp_target : Separate<["-"], "Xopenmp-target">, + HelpText<"Pass arguments to target offloading toolchain.">; +def Xopenmp_target_EQ : JoinedAndSeparate<["-"], "Xopenmp-target=">,

[PATCH] D34510: Teach clang how to merge typedef over anonymous structs in C mode.

2017-06-30 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. Tested it locally, we actually need all these changes on top of https://reviews.llvm.org/D31778. LGTM Repository: rL LLVM https://reviews.llvm.org/D34510

[PATCH] D34671: This is to address more command from Richard Smith for my change of https://reviews.llvm.org/D33333

2017-06-30 Thread Jennifer Yu via Phabricator via cfe-commits
jyu2 updated this revision to Diff 104966. jyu2 added a comment. Hi Richard, Thank you so much for your review. I just update patch to address you new comment. Please let me know if you see more problems. Thanks. Jennifer Repository: rL LLVM https://reviews.llvm.org/D34671 Files:

[PATCH] D31778: [Modules] Implement ODR-like semantics for tag types in C/ObjC

2017-06-30 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL306918: [Modules] Implement ODR-like semantics for tag types in C/ObjC (authored by bruno). Changed prior to commit: https://reviews.llvm.org/D31778?vs=104881=104965#toc Repository: rL LLVM

r306918 - [Modules] Implement ODR-like semantics for tag types in C/ObjC

2017-06-30 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Fri Jun 30 17:06:47 2017 New Revision: 306918 URL: http://llvm.org/viewvc/llvm-project?rev=306918=rev Log: [Modules] Implement ODR-like semantics for tag types in C/ObjC Allow ODR for ObjC/C in the sense that we won't keep more that one definition around (merge them).

r306917 - Change enumerator default linkage type for C

2017-06-30 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Fri Jun 30 17:06:27 2017 New Revision: 306917 URL: http://llvm.org/viewvc/llvm-project?rev=306917=rev Log: Change enumerator default linkage type for C Redeclaration lookup should never find hidden enumerators in C, because they do not have linkage (C11 6.2.2/6) The linkage

[PATCH] D34868: [Driver] Add -fdiagnostics-hotness-threshold

2017-06-30 Thread Adam Nemet via Phabricator via cfe-commits
anemet accepted this revision. anemet added a comment. This revision is now accepted and ready to land. Looks great, thank you! https://reviews.llvm.org/D34868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34868: [Driver] Add -fdiagnostics-hotness-threshold

2017-06-30 Thread Brian Gesiak via Phabricator via cfe-commits
modocache updated this revision to Diff 104964. modocache marked 4 inline comments as done. modocache added a comment. Address comments, for the most part. As for the documentation: I think this is OK for now, but there are definitely a few more options that I'd like to document, and those will

[PATCH] D34784: [OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

2017-06-30 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea added a comment. @hfinkel I've add the flag as suggested. There is one minor change, I used "=" instead of ":" when specifying the toolchain/triple. I also support the triple being omitted when there is only one offloading toolchain specified with -fopenmp-targets.

[PATCH] D34671: This is to address more command from Richard Smith for my change of https://reviews.llvm.org/D33333

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/Sema/AnalysisBasedWarnings.cpp:409 +<< (Ty->hasExceptionSpec() ? FD->getExceptionSpecSourceRange() + : FD->getSourceRange()); +} else Underlining the entire

[PATCH] D34784: [OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

2017-06-30 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 104962. gtbercea added a comment. Check -fopenmp-targets has one entry when using default toolchain in -Xopenmp-target. https://reviews.llvm.org/D34784 Files: include/clang/Driver/Options.td lib/Driver/ToolChains/Cuda.cpp

[PATCH] D34913: [clang-tidy] Add a new Android check "android-cloexec-socket"

2017-06-30 Thread Chih-Hung Hsieh via Phabricator via cfe-commits
chh accepted this revision. chh added a comment. This revision is now accepted and ready to land. LGTM. If nobody needs this during the long weekend, it's better to submit after the long weekend. Repository: rL LLVM https://reviews.llvm.org/D34913

[PATCH] D34568: [Sema] Make BreakContinueFinder handle nested loops.

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM, thanks! I'm not particularly happy with the number of different places where we duplicate the knowledge of how break/continue bind to enclosing loops, but fixing that seems beyond the

[PATCH] D34529: [Driver] Check that the iOS deployment target is iOS 10 or earlier if the target is 32-bit

2017-06-30 Thread Bob Wilson via Phabricator via cfe-commits
bob.wilson accepted this revision. bob.wilson added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D34529 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34784: [OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

2017-06-30 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 104960. gtbercea retitled this revision from "[OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading " to "[OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading". gtbercea added a

[PATCH] D34671: This is to address more command from Richard Smith for my change of https://reviews.llvm.org/D33333

2017-06-30 Thread Jennifer Yu via Phabricator via cfe-commits
jyu2 updated this revision to Diff 104959. jyu2 added a comment. Hi Aaron, Thank you so much for your review. I just update change to address your comments. Let me kwon if you see more problems. Thanks again. Jennifer Repository: rL LLVM https://reviews.llvm.org/D34671 Files:

[PATCH] D34671: This is to address more command from Richard Smith for my change of https://reviews.llvm.org/D33333

2017-06-30 Thread Jennifer Yu via Phabricator via cfe-commits
jyu2 added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:6356-6357 +: Warning< + "%0 has a non-throwing exception specification but can " "still " + "throw">, +

[PATCH] D34529: [Driver] Check that the iOS deployment target is iOS 10 or earlier if the target is 32-bit

2017-06-30 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 104958. ahatanak marked an inline comment as done. ahatanak added a comment. Set Micro to 99 too. https://reviews.llvm.org/D34529 Files: include/clang/Basic/DiagnosticDriverKinds.td lib/Driver/ToolChains/Darwin.cpp test/Driver/darwin-version.c

r306905 - Fix PR 33189: Clang assertion on template destructor declaration

2017-06-30 Thread Hubert Tong via cfe-commits
Author: hubert.reinterpretcast Date: Fri Jun 30 15:43:54 2017 New Revision: 306905 URL: http://llvm.org/viewvc/llvm-project?rev=306905=rev Log: Fix PR 33189: Clang assertion on template destructor declaration Summary: This patch aims to fix the bug reported at

r306904 - [ODRHash] Support Type TemplateArgument

2017-06-30 Thread Richard Trieu via cfe-commits
Author: rtrieu Date: Fri Jun 30 15:40:33 2017 New Revision: 306904 URL: http://llvm.org/viewvc/llvm-project?rev=306904=rev Log: [ODRHash] Support Type TemplateArgument Modified: cfe/trunk/lib/AST/ODRHash.cpp cfe/trunk/test/Modules/odr_hash.cpp Modified: cfe/trunk/lib/AST/ODRHash.cpp

r306903 - Reinstate "Load lazily the template specialization in multi-module setups."

2017-06-30 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Fri Jun 30 15:40:17 2017 New Revision: 306903 URL: http://llvm.org/viewvc/llvm-project?rev=306903=rev Log: Reinstate "Load lazily the template specialization in multi-module setups." It was reverted in r305460 but the issue appears to only break our self-host libcxx

[PATCH] D34568: [Sema] Make BreakContinueFinder handle nested loops.

2017-06-30 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Ping Repository: rL LLVM https://reviews.llvm.org/D34568 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D34891: Replace assert(0) with llvm_unreachable.

2017-06-30 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. Sure, I can do this, as long as this semantic change is ok. Repository: rL LLVM https://reviews.llvm.org/D34891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

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

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. Thanks, do you need someone to commit this for you? https://reviews.llvm.org/D33833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34891: Replace assert(0) with llvm_unreachable.

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. You should remove the code after the `assert(0)`, or you'll trigger "unreachable code" warnings. Repository: rL LLVM https://reviews.llvm.org/D34891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r306899 - [Parse] Use normalized attr name for late-parsing checks.

2017-06-30 Thread George Burgess IV via cfe-commits
Author: gbiv Date: Fri Jun 30 15:33:24 2017 New Revision: 306899 URL: http://llvm.org/viewvc/llvm-project?rev=306899=rev Log: [Parse] Use normalized attr name for late-parsing checks. Modified: cfe/trunk/lib/Parse/ParseDecl.cpp cfe/trunk/test/Sema/diagnose_if.c Modified:

[PATCH] D34891: Replace assert(0) with llvm_unreachable.

2017-06-30 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. Ok, thanks! I was hesitant for the changes in libclang, because of the return statements. Repository: rL LLVM https://reviews.llvm.org/D34891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34891: Replace assert(0) with llvm_unreachable.

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. LGTM, post-commit review is fine for changes like this. Repository: rL LLVM https://reviews.llvm.org/D34891 ___ cfe-commits mailing list

[PATCH] D34913: [clang-tidy] Add a new Android check "android-cloexec-socket"

2017-06-30 Thread Yan Wang via Phabricator via cfe-commits
yawanng created this revision. yawanng added a project: clang-tools-extra. Herald added subscribers: xazax.hun, JDevlieghere, mgorny, srhines. socket() is better to include SOCK_CLOEXEC in its type argument to avoid the file descriptor leakage. Repository: rL LLVM

[PATCH] D34671: This is to address more command from Richard Smith for my change of https://reviews.llvm.org/D33333

2017-06-30 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:6356-6357 +: Warning< + "%0 has a non-throwing exception specification but can " "still " + "throw">, +

[PATCH] D34912: Handle cases where the value is too large to fit into the underlying type.

2017-06-30 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev planned changes to this revision. v.g.vassilev added a comment. Waiting for @karies for a test case. Repository: rL LLVM https://reviews.llvm.org/D34912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34912: Handle cases where the value is too large to fit into the underlying type.

2017-06-30 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev created this revision. Patch by Axel Naumann! Repository: rL LLVM https://reviews.llvm.org/D34912 Files: lib/AST/TemplateBase.cpp Index: lib/AST/TemplateBase.cpp === --- lib/AST/TemplateBase.cpp +++

[PATCH] D34909: Driver: consume -nostdinc++ along with -nostdinc

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. In https://reviews.llvm.org/D34909#797252, @kastiglione wrote: > There are other drivers with the same issue. If there's no opposition to > this, I can update those here as well. Yes,

[PATCH] D34909: Driver: consume -nostdinc++ along with -nostdinc

2017-06-30 Thread Dave Lee via Phabricator via cfe-commits
kastiglione added a comment. There are other drivers with the same issue. If there's no opposition to this, I can update those here as well. https://reviews.llvm.org/D34909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34909: Driver: consume -nostdinc++ along with -nostdinc

2017-06-30 Thread Dave Lee via Phabricator via cfe-commits
kastiglione created this revision. Using both -nostdinc and -nostdinc++ should not emit diagnostics. https://reviews.llvm.org/D34909 Files: lib/Driver/ToolChains/CrossWindows.cpp test/Driver/windows-cross.c Index: test/Driver/windows-cross.c

[PATCH] D31778: [Modules] Implement ODR-like semantics for tag types in C/ObjC

2017-06-30 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/SemaDecl.cpp:13693-13694 + // passes the structural compatibility check in C11 6.2.7/1. + bool AllowODR =

[PATCH] D34680: clang-cl crashes with -fprofile-instr-use flag

2017-06-30 Thread Vedant Kumar via Phabricator via cfe-commits
vsk added a comment. Thanks for the stack trace. Clang shouldn't ever be assigning counters to decls without bodies. As far as I can tell, this has only been happening when the microsoft ABI is in use, which may explain why we don't hit the issue more often. The fix required changing the way

r306882 - Fix a typo. NFC.

2017-06-30 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Fri Jun 30 14:02:14 2017 New Revision: 306882 URL: http://llvm.org/viewvc/llvm-project?rev=306882=rev Log: Fix a typo. NFC. Modified: cfe/trunk/test/Profile/cxx-structors.cpp Modified: cfe/trunk/test/Profile/cxx-structors.cpp URL:

[PATCH] D34907: fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. Committed as r306878-360881. Repository: rL LLVM https://reviews.llvm.org/D34907 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r306881 - Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR

2017-06-30 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jun 30 13:57:39 2017 New Revision: 306881 URL: http://llvm.org/viewvc/llvm-project?rev=306881=rev Log: Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR This is a short-term fix for PR33650 aimed to get the modules build bots green again. Remove

[clang-tools-extra] r306879 - Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR

2017-06-30 Thread Richard Smith via cfe-commits
Author: rsmith Date: Fri Jun 30 13:57:16 2017 New Revision: 306879 URL: http://llvm.org/viewvc/llvm-project?rev=306879=rev Log: Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR This is a short-term fix for PR33650 aimed to get the modules build bots green again. Remove

[PATCH] D34907: fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL306878: Fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR (authored by rsmith). Changed prior to commit: https://reviews.llvm.org/D34907?vs=104923=104928#toc Repository: rL

[PATCH] D34907: fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR

2017-06-30 Thread Zachary Turner via Phabricator via cfe-commits
zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. I don't have any comments, this seems fine to me. Long term I think the best solution is to get rid of these global specializations entirely, and instead provide adapters called `flow` and

[PATCH] D34907: fix ODR violations due to abuse of LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR

2017-06-30 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith created this revision. Herald added subscribers: aheejin, hiraditya, sbc100, nhaehnle, sanjoy, klimek. This is a short-term fix for PR33650 aimed to get the modules build bots green again. Remove all the places where we use the LLVM_YAML_IS_(FLOW_)?SEQUENCE_VECTOR macros to try to

[PATCH] D34206: [clang-tidy] Add "MakeSmartPtrFunction" option to modernize-make-shared/unique checks.

2017-06-30 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: test/clang-tidy/modernize-make-shared-header.cpp:1 +// RUN: cp %S/Inputs/modernize-smart-ptr/shared_ptr.h %T/shared_ptr.h +// RUN: %check_clang_tidy %s modernize-make-shared %t -- \ alexfh wrote: > Maybe just add

[PATCH] D34206: [clang-tidy] Add "MakeSmartPtrFunction" option to modernize-make-shared/unique checks.

2017-06-30 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 104922. hokein marked 2 inline comments as done. hokein added a comment. Herald added a subscriber: JDevlieghere. Rebase and address review comments. https://reviews.llvm.org/D34206 Files: clang-tidy/modernize/MakeSmartPtrCheck.cpp

[PATCH] D34158: to support gcc 4.8 (and newer) compatibility on Linux, preinclude

2017-06-30 Thread Melanie Blower via Phabricator via cfe-commits
mibintc updated this revision to Diff 104911. mibintc added a subscriber: ilya-biryukov. mibintc added a comment. The previous (n-1) version didn't work: I wanted to iterate through the system include directories to check for the existence of stdc-predef.h but clang is using a different kind of

[PATCH] D34395: clang-format: add options to merge empty record body

2017-06-30 Thread Francois Ferrand via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL306874: clang-format: add options to merge empty record body (authored by Typz). Repository: rL LLVM https://reviews.llvm.org/D34395 Files: cfe/trunk/include/clang/Format/Format.h

r306874 - clang-format: add options to merge empty record body

2017-06-30 Thread Francois Ferrand via cfe-commits
Author: typz Date: Fri Jun 30 13:25:55 2017 New Revision: 306874 URL: http://llvm.org/viewvc/llvm-project?rev=306874=rev Log: clang-format: add options to merge empty record body Summary: This patch introduces a few extra BraceWrapping options, similar to `SplitEmptyFunction`, to allow merging

r306873 - [clang-rename] Just return instead of calling exit(3) from main.

2017-06-30 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Fri Jun 30 13:24:32 2017 New Revision: 306873 URL: http://llvm.org/viewvc/llvm-project?rev=306873=rev Log: [clang-rename] Just return instead of calling exit(3) from main. Modified: cfe/trunk/tools/clang-rename/ClangRename.cpp Modified:

[PATCH] D34529: [Driver] Check that the iOS deployment target is iOS 10 or earlier if the target is 32-bit

2017-06-30 Thread Bob Wilson via Phabricator via cfe-commits
bob.wilson added inline comments. Comment at: lib/Driver/ToolChains/Darwin.cpp:1350 +Minor = 99; + } } else if (Platform == TvOS) { What about Micro = 99? https://reviews.llvm.org/D34529 ___

[PATCH] D34238: clang-format: Do not binpack initialization lists

2017-06-30 Thread Francois Ferrand via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL306868: clang-format: Do not binpack initialization lists (authored by Typz). Changed prior to commit: https://reviews.llvm.org/D34238?vs=103057=104914#toc Repository: rL LLVM

r306868 - clang-format: Do not binpack initialization lists

2017-06-30 Thread Francois Ferrand via cfe-commits
Author: typz Date: Fri Jun 30 13:00:02 2017 New Revision: 306868 URL: http://llvm.org/viewvc/llvm-project?rev=306868=rev Log: clang-format: Do not binpack initialization lists Summary: This patch tries to avoid binpacking when initializing lists/arrays, to allow things like: static int

r306862 - [ORE] Use LLVM's "diagnostics hotness" spelling

2017-06-30 Thread Brian Gesiak via cfe-commits
Author: modocache Date: Fri Jun 30 12:37:11 2017 New Revision: 306862 URL: http://llvm.org/viewvc/llvm-project?rev=306862=rev Log: [ORE] Use LLVM's "diagnostics hotness" spelling Summary: Depends on https://reviews.llvm.org/D34864. To unify Clang and LLVM's spelling of "diagnostic[s] hotness",

[PATCH] D34529: [Driver] Check that the iOS deployment target is iOS 10 or earlier if the target is 32-bit

2017-06-30 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak updated this revision to Diff 104906. ahatanak added a comment. Address review comments. - Change the error message from "invalid iOS deployment version '%0', maximum allowable version is iOS 10" to "invalid iOS deployment version '%0', iOS 10 is the maximum deployment target for

[libcxx] r306859 - Revert "[libcxx] Annotate c++17 aligned new/delete operators with availability"

2017-06-30 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Fri Jun 30 11:50:23 2017 New Revision: 306859 URL: http://llvm.org/viewvc/llvm-project?rev=306859=rev Log: Revert "[libcxx] Annotate c++17 aligned new/delete operators with availability" This reverts commit r306310. r306310 causes clang to reject a call to an aligned

r306851 - [X86] Add RDRND feature to Goldmont. Add MOVBE to all Atom CPUs.

2017-06-30 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Jun 30 11:14:04 2017 New Revision: 306851 URL: http://llvm.org/viewvc/llvm-project?rev=306851=rev Log: [X86] Add RDRND feature to Goldmont. Add MOVBE to all Atom CPUs. Diffential Revision: https://reviews.llvm.org/D34842 Modified: cfe/trunk/lib/Basic/Targets.cpp

r306850 - [X86] Add a break to the last case of a few switches to prevent accidents in the future. NFC

2017-06-30 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Jun 30 11:14:02 2017 New Revision: 306850 URL: http://llvm.org/viewvc/llvm-project?rev=306850=rev Log: [X86] Add a break to the last case of a few switches to prevent accidents in the future. NFC Modified: cfe/trunk/lib/Basic/Targets.cpp Modified:

r306849 - [X86] Move all atom CPUs to the same section of the switch and use fallthroughs like we do for other CPU generations. NFC

2017-06-30 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Jun 30 11:14:01 2017 New Revision: 306849 URL: http://llvm.org/viewvc/llvm-project?rev=306849=rev Log: [X86] Move all atom CPUs to the same section of the switch and use fallthroughs like we do for other CPU generations. NFC This is prep work to add MOVBE to all Atom

[PATCH] D34886: Add a fixit for -Wobjc-protocol-property-synthesis

2017-06-30 Thread Vedant Kumar via Phabricator via cfe-commits
vsk accepted this revision. vsk added a comment. This revision is now accepted and ready to land. lgtm with a nitpick. Comment at: include/clang/Sema/Sema.h:3351 + ObjCInterfaceDecl *IDecl, SourceRange AtEnd); + void

[PATCH] D18240: Asm preprocessor fix for unknown hash-lines

2017-06-30 Thread Andrew Zhogin via Phabricator via cfe-commits
andrew.zhogin updated this revision to Diff 104893. andrew.zhogin added a comment. Herald added a subscriber: aprantl. Updated to the current repository state. https://reviews.llvm.org/D18240 Files: lib/Frontend/PrintPreprocessedOutput.cpp test/Misc/asm_hash_comments.s Index:

Re: r306844 - Attempt to fix the linkage error caused by r306840 on the mingw-RA-on-linux bot

2017-06-30 Thread Alex L via cfe-commits
It worked! On 30 June 2017 at 18:15, Alex Lorenz via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: arphaman > Date: Fri Jun 30 10:15:48 2017 > New Revision: 306844 > > URL: http://llvm.org/viewvc/llvm-project?rev=306844=rev > Log: > Attempt to fix the linkage error caused by r306840

r306844 - Attempt to fix the linkage error caused by r306840 on the mingw-RA-on-linux bot

2017-06-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 30 10:15:48 2017 New Revision: 306844 URL: http://llvm.org/viewvc/llvm-project?rev=306844=rev Log: Attempt to fix the linkage error caused by r306840 on the mingw-RA-on-linux bot Modified: cfe/trunk/tools/clang-rename/CMakeLists.txt Modified:

[PATCH] D34896: Enable the new PM + SamlePGO + ThinLTO testing.

2017-06-30 Thread Teresa Johnson via Phabricator via cfe-commits
tejohnson accepted this revision. tejohnson added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D34896 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34696: [refactor] Move clang-rename to Clang

2017-06-30 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. I didn't notice that ClassReplacements.cpp had a dependency on clang-apply-replacements. I moved it back to clang-tools-extra to the clang-apply-replacements tests. Repository: rL LLVM https://reviews.llvm.org/D34696

[PATCH] D34510: Teach clang how to merge typedef over anonymous structs in C mode.

2017-06-30 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. Hi @v.g.vassilev, sorry for the delay. Just updated https://reviews.llvm.org/D31778. I agree with Richard's observations, do you think you can extend it to work in the same way as https://reviews.llvm.org/D31778 does? The structural checking is already abstracted there

[PATCH] D34896: Enable the new PM + SamlePGO + ThinLTO testing.

2017-06-30 Thread Dehao Chen via Phabricator via cfe-commits
danielcdh created this revision. Herald added subscribers: eraman, inglorion, mehdi_amini, sanjoy. This patch should be enabled after https://reviews.llvm.org/D34895 https://reviews.llvm.org/D34896 Files: test/CodeGen/pgo-sample-thinlto-summary.c Index:

[clang-tools-extra] r306843 - Move ClassReplacements.cpp test from clang-rename tests to the

2017-06-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 30 09:58:36 2017 New Revision: 306843 URL: http://llvm.org/viewvc/llvm-project?rev=306843=rev Log: Move ClassReplacements.cpp test from clang-rename tests to the clang-apply-replacements tests The ClassReplacements.cpp test in the clang-rename tests uses

r306843 - Move ClassReplacements.cpp test from clang-rename tests to the

2017-06-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 30 09:58:36 2017 New Revision: 306843 URL: http://llvm.org/viewvc/llvm-project?rev=306843=rev Log: Move ClassReplacements.cpp test from clang-rename tests to the clang-apply-replacements tests The ClassReplacements.cpp test in the clang-rename tests uses

[PATCH] D31778: [Modules] Implement ODR-like semantics for tag types in C/ObjC

2017-06-30 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno updated this revision to Diff 104881. bruno added a comment. > Digging into this a bit more, I think the root of the problem is that the > `ND->isExternallyVisible()` call in > `LookupResult::isHiddenDeclarationVisible` is wrong. Redeclaration lookup > should never find hidden

[PATCH] D34842: [X86] Add RDRND to Goldmont. Add MOVBE to all Atom CPUs

2017-06-30 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. There's a separate review for X86.d https://reviews.llvm.org/D34828 https://reviews.llvm.org/D34842 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r306841 - Use add_clang_unittest in the CMakeLists.txt for the moved unittest

2017-06-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 30 09:43:00 2017 New Revision: 306841 URL: http://llvm.org/viewvc/llvm-project?rev=306841=rev Log: Use add_clang_unittest in the CMakeLists.txt for the moved unittest The unittest was moved in r306840 Modified: cfe/trunk/unittests/Rename/CMakeLists.txt

[clang-tools-extra] r306840 - [refactor] Move clang-rename into the clang repository

2017-06-30 Thread Alex Lorenz via cfe-commits
Author: arphaman Date: Fri Jun 30 09:36:09 2017 New Revision: 306840 URL: http://llvm.org/viewvc/llvm-project?rev=306840=rev Log: [refactor] Move clang-rename into the clang repository The core engine of clang-rename will be used for local and global renames in the new refactoring engine, as

[PATCH] D34842: [X86] Add RDRND to Goldmont. Add MOVBE to all Atom CPUs

2017-06-30 Thread Simon Pilgrim via Phabricator via cfe-commits
RKSimon accepted this revision. RKSimon added a comment. This revision is now accepted and ready to land. LGTM with a couple of comments. On the LLVM side, X86.td GoldMont class looks like it needs RDRAND as well. Comment at: lib/Basic/Targets.cpp:3310

r306837 - [objc] Don't require null-check and don't emit memset when result is ignored for struct-returning method calls [clang part]

2017-06-30 Thread Kuba Mracek via cfe-commits
Author: kuba.brecka Date: Fri Jun 30 09:28:15 2017 New Revision: 306837 URL: http://llvm.org/viewvc/llvm-project?rev=306837=rev Log: [objc] Don't require null-check and don't emit memset when result is ignored for struct-returning method calls [clang part] This fixes an issue with the emission

[PATCH] D34714: [MS] Don't statically initialize dllimport member function pointers

2017-06-30 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Have a minute to get to this? My attempt to work around the bug in Chromium was incomplete. https://reviews.llvm.org/D34714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34891: Replace assert(0) with llvm_unreachable.

2017-06-30 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev created this revision. Repository: rL LLVM https://reviews.llvm.org/D34891 Files: include/clang/AST/Redeclarable.h lib/AST/ExprConstant.cpp lib/Basic/SourceManager.cpp lib/Lex/PreprocessingRecord.cpp lib/Sema/SemaType.cpp lib/Serialization/ASTReader.cpp

[PATCH] D34784: [OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

2017-06-30 Thread Hal Finkel via Phabricator via cfe-commits
hfinkel added a comment. ... > Okay, good, this is exactly where I was going when I said I was worried about generalization. -march seems like one of many flags I might want to pass to the target compilation. Moreover, it doesn't seem special in what regard.

r306836 - [MS] Test that deleting destructor thunks are not exported

2017-06-30 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Jun 30 09:12:14 2017 New Revision: 306836 URL: http://llvm.org/viewvc/llvm-project?rev=306836=rev Log: [MS] Test that deleting destructor thunks are not exported The MSVC linker emits the LNK4102 warning if they are. Added:

r306835 - Revert "[CodeGen] Propagate dllexport to thunks"

2017-06-30 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Fri Jun 30 09:11:49 2017 New Revision: 306835 URL: http://llvm.org/viewvc/llvm-project?rev=306835=rev Log: Revert "[CodeGen] Propagate dllexport to thunks" This reverts r306770, it causes LNK4102 warnings in MSVC builds. Modified: cfe/trunk/lib/CodeGen/CGVTables.cpp

[PATCH] D34850: [CodeGen] Propagate dllexport to thunks

2017-06-30 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added a comment. Sorry about the breakage. I'll redo this limiting it to windows-itanium (and add a comment explaining why we want it). Repository: rL LLVM https://reviews.llvm.org/D34850 ___ cfe-commits mailing list

[PATCH] D34850: [CodeGen] Propagate dllexport to thunks

2017-06-30 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. This appears to affect our behavior under the MS ABI. We still seem to use this logic from CGVTables, even though that code is primarily Itanium related. In http://crbug.com/738468 we're seeing the LNK4102 linker warning, which says: "export of deleting destructor (name);

[PATCH] D34888: [OpenMP] Fix mapping of scalars for combined directives

2017-06-30 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev accepted this revision. ABataev added a comment. This revision is now accepted and ready to land. LG https://reviews.llvm.org/D34888 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D34839: [Driver] Honor -nostdinc and -isystem-after on CrossWindows

2017-06-30 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd closed this revision. compnerd added a comment. SVN r306829 https://reviews.llvm.org/D34839 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r306830 - Driver: fix option declaration

2017-06-30 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Jun 30 08:15:39 2017 New Revision: 306830 URL: http://llvm.org/viewvc/llvm-project?rev=306830=rev Log: Driver: fix option declaration The option is a "joined" argument. Fix silly copy-paste error. This allows the parsing to work at runtime. Modified:

r306829 - Driver: honor -nostdinc and -isystem-after on CrossWindows

2017-06-30 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Fri Jun 30 08:15:38 2017 New Revision: 306829 URL: http://llvm.org/viewvc/llvm-project?rev=306829=rev Log: Driver: honor -nostdinc and -isystem-after on CrossWindows This changes CrossWindows to look for -nostdinc instead of -nostdlibinc. In addition, fixes a bug where

[PATCH] D34888: [OpenMP] Fix mapping of scalars for combined directives

2017-06-30 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld created this revision. Combined directives like 'target parallel' have two captured statements. Sema has to check the right one from the right direction. Previously, Sema::IsOpenMPCapturedByRef would return false for mapped scalars on combined directives. This results in a wrong

[PATCH] D34784: [OpenMP] Add flag for specifying the target device architecture for OpenMP device offloading

2017-06-30 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea added a comment. In https://reviews.llvm.org/D34784#795988, @hfinkel wrote: > In https://reviews.llvm.org/D34784#795980, @gtbercea wrote: > > > In https://reviews.llvm.org/D34784#795934, @hfinkel wrote: > > > > > In https://reviews.llvm.org/D34784#795871, @gtbercea wrote: > > > > > > >

[PATCH] D34886: Add a fixit for -Wobjc-protocol-property-synthesis

2017-06-30 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. The fixit inserts `@synthesize` directives into the implementation. Repository: rL LLVM https://reviews.llvm.org/D34886 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Parse/ParseObjc.cpp lib/Sema/SemaObjCProperty.cpp

  1   2   >