[PATCH] D53417: [Clang][Sema][PowerPC] Choose a better candidate in overload function call if there is a compatible vector conversion instead of ambiguous call error

2018-10-25 Thread Zixuan Wu via Phabricator via cfe-commits
wuzish added inline comments. Comment at: clang/lib/Sema/SemaOverload.cpp:3913 +for (auto Type : Types) { + if (S.Context.getCanonicalType(Type)->getTypeClass() != Type::Vector) +return false; hubert.reinterpretcast wrote: > wuzish

[PATCH] D53607: [AST] Only store the needed data in IfStmt.

2018-10-25 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. LGTM. Repository: rC Clang https://reviews.llvm.org/D53607 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D52615: Handle -fsanitize-address-poison-class-member-array-new-cookie in the driver and propagate it to cc1

2018-10-25 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Oops, sorry for the unedited comment; it's fixed on Phab. Repository: rC Clang https://reviews.llvm.org/D52615 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D52615: Handle -fsanitize-address-poison-class-member-array-new-cookie in the driver and propagate it to cc1

2018-10-25 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D52615#1275946, @filcab wrote: > In https://reviews.llvm.org/D52615#1272725, @rjmccall wrote: > > > In https://reviews.llvm.org/D52615#1266320, @filcab wrote: > > > > > In https://reviews.llvm.org/D52615#1254567, @rsmith wrote: > > > > > > >

[PATCH] D53417: [Clang][Sema][PowerPC] Choose a better candidate in overload function call if there is a compatible vector conversion instead of ambiguous call error

2018-10-25 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: clang/lib/Sema/SemaOverload.cpp:3913 +for (auto Type : Types) { + if (S.Context.getCanonicalType(Type)->getTypeClass() != Type::Vector) +return false; wuzish wrote: >

[PATCH] D53207: Fix bug 26547 - alignof should return ABI alignment, not preferred alignment

2018-10-25 Thread Nicole Mazzuca via Phabricator via cfe-commits
ubsan updated this revision to Diff 171247. ubsan added a comment. fix nits Repository: rC Clang https://reviews.llvm.org/D53207 Files: docs/ReleaseNotes.rst include/clang/AST/Stmt.h include/clang/ASTMatchers/ASTMatchers.h include/clang/Basic/DiagnosticSemaKinds.td

[PATCH] D53609: [AST] Don't store data for GNU range case statement if not needed.

2018-10-25 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. LGTM. Repository: rC Clang https://reviews.llvm.org/D53609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D53417: [Clang][Sema][PowerPC] Choose a better candidate in overload function call if there is a compatible vector conversion instead of ambiguous call error

2018-10-25 Thread Zixuan Wu via Phabricator via cfe-commits
wuzish added inline comments. Comment at: clang/lib/Sema/SemaOverload.cpp:3913 +for (auto Type : Types) { + if (S.Context.getCanonicalType(Type)->getTypeClass() != Type::Vector) +return false; hubert.reinterpretcast wrote: > wuzish

r345362 - PR31978: Don't crash if CodeGen sees a top-level BindingDecl.

2018-10-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 25 20:21:20 2018 New Revision: 345362 URL: http://llvm.org/viewvc/llvm-project?rev=345362=rev Log: PR31978: Don't crash if CodeGen sees a top-level BindingDecl. Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp cfe/trunk/test/Parser/cxx1z-decomposition.cpp

r345360 - CodeGen: correct the case for swift 4.2, 5.0

2018-10-25 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Oct 25 20:16:16 2018 New Revision: 345360 URL: http://llvm.org/viewvc/llvm-project?rev=345360=rev Log: CodeGen: correct the case for swift 4.2, 5.0 This corrects the leader for the swift names. The encoding for 4.2 and 5.0 differ by a single bit on the second

[PATCH] D53206: Allow padding checker to traverse simple class hierarchies

2018-10-25 Thread Max Bernstein via Phabricator via cfe-commits
tekknolagi added a comment. @NoQ I think @alexshap will be committing this. Thanks Repository: rC Clang https://reviews.llvm.org/D53206 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D53417: [Clang][Sema][PowerPC] Choose a better candidate in overload function call if there is a compatible vector conversion instead of ambiguous call error

2018-10-25 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: clang/lib/Sema/SemaOverload.cpp:3913 +for (auto Type : Types) { + if (S.Context.getCanonicalType(Type)->getTypeClass() != Type::Vector) +return false; wuzish wrote: >

[PATCH] D53417: [Clang][Sema][PowerPC] Choose a better candidate in overload function call if there is a compatible vector conversion instead of ambiguous call error

2018-10-25 Thread Zixuan Wu via Phabricator via cfe-commits
wuzish added inline comments. Comment at: clang/lib/Sema/SemaOverload.cpp:3913 +for (auto Type : Types) { + if (S.Context.getCanonicalType(Type)->getTypeClass() != Type::Vector) +return false; hubert.reinterpretcast wrote: >

[PATCH] D53617: [AArch64] Support Windows stack probe command-line arguments.

2018-10-25 Thread Eli Friedman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345354: [AArch64] Support Windows stack probe command-line arguments. (authored by efriedma, committed by ). Repository: rC Clang https://reviews.llvm.org/D53617 Files: lib/CodeGen/TargetInfo.cpp

r345354 - [AArch64] Support Windows stack probe command-line arguments.

2018-10-25 Thread Eli Friedman via cfe-commits
Author: efriedma Date: Thu Oct 25 18:31:57 2018 New Revision: 345354 URL: http://llvm.org/viewvc/llvm-project?rev=345354=rev Log: [AArch64] Support Windows stack probe command-line arguments. Adds support for -mno-stack-arg-probe and -mstack-probe-size. (Not really happy copy-pasting code, but

[PATCH] D53206: Allow padding checker to traverse simple class hierarchies

2018-10-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. Thanks! Also do you have commit access or do you need someone to commit this for you? Repository: rC Clang https://reviews.llvm.org/D53206 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D53206: Allow padding checker to traverse simple class hierarchies

2018-10-25 Thread Max Bernstein via Phabricator via cfe-commits
tekknolagi updated this revision to Diff 171234. tekknolagi added a comment. Add comments suggested by @NoQ and @bcraig Repository: rC Clang https://reviews.llvm.org/D53206 Files: lib/StaticAnalyzer/Checkers/PaddingChecker.cpp test/Analysis/padding_inherit.cpp Index:

[PATCH] D53457: clang-cl: Add "/clang:" pass-through arg support.

2018-10-25 Thread Neeraj K. Singh via Phabricator via cfe-commits
neerajksingh updated this revision to Diff 171233. https://reviews.llvm.org/D53457 Files: docs/UsersManual.rst include/clang/Driver/CLCompatOptions.td include/clang/Driver/Driver.h lib/Driver/Driver.cpp test/Driver/cl-options.c Index: test/Driver/cl-options.c

[PATCH] D53206: Allow padding checker to traverse simple class hierarchies

2018-10-25 Thread Max Bernstein via Phabricator via cfe-commits
tekknolagi added inline comments. Comment at: lib/StaticAnalyzer/Checkers/PaddingChecker.cpp:78-81 +// We need to be looking at a definition, not just any pointer to the +// declaration. +if (!(RD = RD->getDefinition())) + return; NoQ wrote: >

[PATCH] D53633: [AArch64] Implement FP16FML intrinsics

2018-10-25 Thread Bryan Chan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345344: [AArch64] Implement FP16FML intrinsics (authored by bryanpkc, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

r345341 - [analyzer] Fix a bug in "collapsed" graph viewer

2018-10-25 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Oct 25 16:38:58 2018 New Revision: 345341 URL: http://llvm.org/viewvc/llvm-project?rev=345341=rev Log: [analyzer] Fix a bug in "collapsed" graph viewer Nodes which have only one predecessor and only one successor can not always be hidden, even if all states are

r345338 - [analyzer] Correct modelling of OSDynamicCast: eagerly state split

2018-10-25 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Oct 25 16:38:07 2018 New Revision: 345338 URL: http://llvm.org/viewvc/llvm-project?rev=345338=rev Log: [analyzer] Correct modelling of OSDynamicCast: eagerly state split Previously, OSDynamicCast was modeled as an identity. This is not correct: the output of

r345340 - [analyzer] [RetainCountChecker] Do not invalidate references passed to constructors and operators

2018-10-25 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Oct 25 16:38:41 2018 New Revision: 345340 URL: http://llvm.org/viewvc/llvm-project?rev=345340=rev Log: [analyzer] [RetainCountChecker] Do not invalidate references passed to constructors and operators Differential Revision: https://reviews.llvm.org/D53660

[PATCH] D53628: [analyzer] Remove custom rule for OSIterator in RetainCountChecker

2018-10-25 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345339: [analyzer] Remove custom rule for OSIterator in RetainCountChecker (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit:

r345339 - [analyzer] Remove custom rule for OSIterator in RetainCountChecker

2018-10-25 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Thu Oct 25 16:38:24 2018 New Revision: 345339 URL: http://llvm.org/viewvc/llvm-project?rev=345339=rev Log: [analyzer] Remove custom rule for OSIterator in RetainCountChecker Differential Revision: https://reviews.llvm.org/D53628 Modified:

Re: r345330 - Add MS ABI mangling for operator<=>.

2018-10-25 Thread Richard Smith via cfe-commits
I've already pointed Zach at this and I think he's going to handle it. On Thu, 25 Oct 2018 at 16:00, Nico Weber via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Could you update the demangler too? > > On Thu, Oct 25, 2018 at 6:53 PM Richard Smith via cfe-commits < >

[PATCH] D53621: Support for groups of attributes in #pragma clang attribute

2018-10-25 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington updated this revision to Diff 171218. erik.pilkington marked an inline comment as done. erik.pilkington added a comment. Add documentation and release notes, `{}`s. Thanks! https://reviews.llvm.org/D53621 Files: clang/docs/LanguageExtensions.rst clang/docs/ReleaseNotes.rst

[PATCH] D53738: [Fixed Point Arithmetic] Fixed Point Addition

2018-10-25 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: clang/lib/CodeGen/CGExprScalar.cpp:3223-3247 +if (ResultWidth < CommonWidth) { + // In the event we extended the sign of both operands, the intrinsic will + // not saturate to the initial bit width of the result type.

[PATCH] D53738: [Fixed Point Arithmetic] Fixed Point Addition

2018-10-25 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: ebevhan, bjope, rjmccall. leonardchan added a project: clang. This patch covers addition between fixed point types and other fixed point types or integers, using the conversion rules described in 4.1.4 of N1169. Usual arithmetic

Re: r345330 - Add MS ABI mangling for operator<=>.

2018-10-25 Thread Nico Weber via cfe-commits
Could you update the demangler too? On Thu, Oct 25, 2018 at 6:53 PM Richard Smith via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rsmith > Date: Thu Oct 25 15:51:16 2018 > New Revision: 345330 > > URL: http://llvm.org/viewvc/llvm-project?rev=345330=rev > Log: > Add MS ABI mangling

r345330 - Add MS ABI mangling for operator<=>.

2018-10-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 25 15:51:16 2018 New Revision: 345330 URL: http://llvm.org/viewvc/llvm-project?rev=345330=rev Log: Add MS ABI mangling for operator<=>. Thanks to Cameron DaCamara at Microsoft for letting us know what their chosen mangling is here! Added:

[PATCH] D50539: [VFS] Add property 'fallthrough' that controls fallback to real file system.

2018-10-25 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai updated this revision to Diff 171210. vsapsai added a comment. - Rebase once again. - Use Doxygen comments in some places. https://reviews.llvm.org/D50539 Files: clang/lib/Frontend/CompilerInvocation.cpp clang/test/VFS/Inputs/Broken.framework/Headers/Error.h

[PATCH] D53206: Allow padding checker to traverse simple class hierarchies

2018-10-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Patch looks great, thanks! Comment at: lib/StaticAnalyzer/Checkers/PaddingChecker.cpp:78-81 +// We need to be looking at a definition, not just any pointer to the +//

[PATCH] D53621: Support for groups of attributes in #pragma clang attribute

2018-10-25 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. Thanks! It looks pretty good, just minor nit. could you also update the language extension doc and release notes? Comment at: clang/lib/Sema/SemaAttr.cpp:645 + + for (const PragmaAttributeEntry : PragmaAttributeStack.back().Entries) +if

r345328 - Avoid STMT_ and DECL_ bitcodes overlapping.

2018-10-25 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 25 15:35:16 2018 New Revision: 345328 URL: http://llvm.org/viewvc/llvm-project?rev=345328=rev Log: Avoid STMT_ and DECL_ bitcodes overlapping. This doesn't appear to matter for deserialization purposes, because we always know what kind of entity (declaration or

[PATCH] D52835: [Diagnostics] Check integer to floating point number implicit conversions

2018-10-25 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. ping https://reviews.llvm.org/D52835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53457: clang-cl: Add "/clang:" pass-through arg support.

2018-10-25 Thread Neeraj K. Singh via Phabricator via cfe-commits
neerajksingh updated this revision to Diff 171203. neerajksingh retitled this revision from "clang-cl: Add "/Xdriver:" pass-through arg support." to "clang-cl: Add "/clang:" pass-through arg support.". neerajksingh edited the summary of this revision. neerajksingh added a comment. Change the

[PATCH] D53724: [WebAssembly] Fix type names in truncation builtins

2018-10-25 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:12528 + case WebAssembly::BI__builtin_wasm_trunc_saturate_s_f32x4: + case WebAssembly::BI__builtin_wasm_trunc_saturate_s_f64x2: { Value *Src = EmitScalarExpr(E->getArg(0)); But unlike

[PATCH] D53457: clang-cl: Add "/Xdriver:" pass-through arg support.

2018-10-25 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Comment from the peanut gallery: - I like the whitelist model for gcc-style flags. It allows us to curate them (and `/?` output) since many don't make much sense in the cl world. - I like the idea behind this patch (and /clang: seems like a good spelling) Repository:

LLVM buildmaster will be restarted tonight

2018-10-25 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted after 6PM Pacific time today. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D50539: [VFS] Add property 'fallthrough' that controls fallback to real file system.

2018-10-25 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added a comment. In https://reviews.llvm.org/D50539#1273688, @dexonsmith wrote: > In https://reviews.llvm.org/D50539#1273654, @vsapsai wrote: > > > I was using `//` instead of `///` on purpose. Class > > `VFSFromYamlDirIterImpl` resides entirely in .cpp file and isn't available > >

[PATCH] D52742: [analyzer][PlistMacroExpansion] Part 1.: New expand-macros flag

2018-10-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added inline comments. This revision is now accepted and ready to land. Comment at: test/Analysis/Inputs/expected-plists/plist-macros-with-expansion.cpp.plist:17-18 + + name + expansion + NoQ wrote: > They look

[PATCH] D52742: [analyzer][PlistMacroExpansion] Part 1.: New expand-macros flag

2018-10-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Core/AnalyzerOptions.cpp:471 +DisplayMacroExpansions = +getBooleanOption("expand-macros", /*Default=*/false); + return DisplayMacroExpansions.getValue(); Yup, np, let's wait until it lands

[PATCH] D53066: [Driver] Use forward slashes in most linker arguments

2018-10-25 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. lgtm https://reviews.llvm.org/D53066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52730: [analyzer] ConversionChecker: handle floating point

2018-10-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/ConversionChecker.cpp:163 + +switch (FloatingSize) { + case 64: donat.nagy wrote: > NoQ wrote: > > Continuing the float semantics discussion on the new revision - Did you > > consider

Re: r345306 - Revert "[SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03"

2018-10-25 Thread Eric Fiselier via cfe-commits
The reason for the revert was that the assertion was triggered by a bunch of tests. It looks like we diagnose the errors later? I'm not sure yet. On Thu, Oct 25, 2018 at 4:52 PM Eric Fiselier wrote: > Ack. My bad. > > On Thu, Oct 25, 2018 at 4:02 PM Richard Smith > wrote: > >> When reverting

Re: r345306 - Revert "[SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03"

2018-10-25 Thread Eric Fiselier via cfe-commits
Ack. My bad. On Thu, Oct 25, 2018 at 4:02 PM Richard Smith wrote: > When reverting (even when reverting your own commit), please include in > the commit description a reason for the revert. > > On Thu, 25 Oct 2018 at 12:52, Eric Fiselier via cfe-commits < > cfe-commits@lists.llvm.org> wrote: >

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171180. gtbercea added a comment. Change tests. Repository: rC Clang https://reviews.llvm.org/D53448 Files: include/clang/AST/StmtOpenMP.h lib/AST/StmtOpenMP.cpp lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h

r345308 - [C++17] Reject shadowing of capture by parameter in lambda

2018-10-25 Thread Nicolas Lesser via cfe-commits
Author: rakete Date: Thu Oct 25 13:15:03 2018 New Revision: 345308 URL: http://llvm.org/viewvc/llvm-project?rev=345308=rev Log: [C++17] Reject shadowing of capture by parameter in lambda Summary: This change rejects the shadowing of a capture by a parameter in lambdas in C++17. ``` int

[PATCH] D53595: [C++17] Reject shadowing of capture by parameter in lambda

2018-10-25 Thread Nicolas Lesser via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345308: [C++17] Reject shadowing of capture by parameter in lambda (authored by Rakete, committed by ). Repository: rC Clang https://reviews.llvm.org/D53595 Files:

[PATCH] D53595: [C++17] Reject shadowing of capture by parameter in lambda

2018-10-25 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete updated this revision to Diff 171174. Rakete added a comment. Update DR list. https://reviews.llvm.org/D53595 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Sema/Sema.h lib/Sema/SemaLambda.cpp test/CXX/drs/dr22xx.cpp

Re: r345306 - Revert "[SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03"

2018-10-25 Thread Richard Smith via cfe-commits
When reverting (even when reverting your own commit), please include in the commit description a reason for the revert. On Thu, 25 Oct 2018 at 12:52, Eric Fiselier via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ericwf > Date: Thu Oct 25 12:50:43 2018 > New Revision: 345306 > >

[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

2018-10-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. In https://reviews.llvm.org/D53076#1276315, @Charusso wrote: > In https://reviews.llvm.org/D53076#1276277, @NoQ wrote: > > > I mean, the idea of checking constraints instead of matching program points > > is generally good, but the example i gave above suggests that there's

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: test/OpenMP/distribute_parallel_for_codegen.cpp:410 // LAMBDA-DAG: [[OMP_IV:%.omp.iv]] = alloca + // LAMBDA-DAG: [[OMP_CAPT_EXPR:%.capture_expr.1]] = alloca // LAMBDA-DAG: [[OMP_LB:%.omp.comb.lb]] = alloca

r345306 - Revert "[SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03"

2018-10-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Oct 25 12:50:43 2018 New Revision: 345306 URL: http://llvm.org/viewvc/llvm-project?rev=345306=rev Log: Revert "[SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03" This reverts commit b5d8d0de744d2c212bdb17d5c5fd4447dd14dbd2. Removed:

[PATCH] D53723: [clang-tidy] UppercaseLiteralSuffixCheck: bugfix: ignore implicit code

2018-10-25 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri abandoned this revision. lebedev.ri added a comment. Reverted the check, reopened https://reviews.llvm.org/D52670. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53723 ___ cfe-commits mailing list

[PATCH] D53719: [clang-tidy] UppercaseLiteralSuffixCheck: bugfix: don't cripple substNonTypeTemplateParmExpr

2018-10-25 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri abandoned this revision. lebedev.ri added a comment. Reverted the check, reopened https://reviews.llvm.org/D52670. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53719 ___ cfe-commits mailing list

[PATCH] D52670: [clang-tidy] Add new 'readability-uppercase-literal-suffix' check (CERT DCL16-C, MISRA C:2012, 7.3, MISRA C++:2008, 2-13-4)

2018-10-25 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri updated this revision to Diff 171172. lebedev.ri added a comment. Reverted in https://reviews.llvm.org/rL345305 due to multiple apparently-lurking bugs. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D52670 Files: clang-tidy/cert/CERTTidyModule.cpp

[PATCH] D53717: [AST] Only store the needed data in ForStmt.

2018-10-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D53717#1276245, @rsmith wrote: > Do you have evidence that this complexity is worthwhile? (I wouldn't imagine > we have very many `ForStmt`s per translation unit, so saving 16 bytes for > each of them seems unlikely to matter.) Strikes me

[clang-tools-extra] r345305 - [clang-tidy] Revert my readability-uppercase-literal-suffix check.

2018-10-25 Thread Roman Lebedev via cfe-commits
Author: lebedevri Date: Thu Oct 25 12:44:51 2018 New Revision: 345305 URL: http://llvm.org/viewvc/llvm-project?rev=345305=rev Log: [clang-tidy] Revert my readability-uppercase-literal-suffix check. There are some lurking issues with the handling of the SourceManager. Somehow sometimes we end up

Re: r345296 - [SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03

2018-10-25 Thread Eric Fiselier via cfe-commits
reverting On Thu., Oct. 25, 2018, 2:18 p.m. Eric Fiselier via cfe-commits < cfe-commits@lists.llvm.org wrote: > Author: ericwf > Date: Thu Oct 25 11:16:16 2018 > New Revision: 345296 > > URL: http://llvm.org/viewvc/llvm-project?rev=345296=rev > Log: > [SemaCXX] Unconfuse Clang when

[PATCH] D53674: [CodeGen] Fix assertion on referencing constexpr Obj-C object with ARC.

2018-10-25 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai marked 2 inline comments as done. vsapsai added inline comments. Comment at: clang/lib/CodeGen/CGObjC.cpp:2527 + return TryEmitResult(CGF.EmitScalarExpr(e), + !shouldRetainObjCLifetime(type.getObjCLifetime())); + } vsapsai

[PATCH] D53448: [OpenMP][NVPTX] Use single loops when generating code for distribute parallel for

2018-10-25 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171170. gtbercea added a comment. Add test for collapse. Repository: rC Clang https://reviews.llvm.org/D53448 Files: include/clang/AST/StmtOpenMP.h lib/AST/StmtOpenMP.cpp lib/CodeGen/CGOpenMPRuntime.cpp lib/CodeGen/CGOpenMPRuntime.h

[PATCH] D53725: [CodeGen] Move `emitConstant` from ScalarExprEmitter to CodeGenFunction. NFC.

2018-10-25 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai created this revision. vsapsai added reviewers: rjmccall, ahatanak. Herald added a subscriber: dexonsmith. The goal is to use `emitConstant` in more places. Didn't move `ComplexExprEmitter::emitConstant` because it returns a different type. https://reviews.llvm.org/D53725 Files:

r345303 - Rebase defect report list.

2018-10-25 Thread Nicolas Lesser via cfe-commits
Author: rakete Date: Thu Oct 25 12:27:57 2018 New Revision: 345303 URL: http://llvm.org/viewvc/llvm-project?rev=345303=rev Log: Rebase defect report list. Modified: cfe/trunk/www/cxx_dr_status.html Modified: cfe/trunk/www/cxx_dr_status.html URL:

[PATCH] D53674: [CodeGen] Fix assertion on referencing constexpr Obj-C object with ARC.

2018-10-25 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai updated this revision to Diff 171168. vsapsai added a comment. - Address review comments. https://reviews.llvm.org/D53674 Files: clang/lib/CodeGen/CGExpr.cpp clang/lib/CodeGen/CGExprScalar.cpp clang/lib/CodeGen/CGObjC.cpp clang/lib/CodeGen/CodeGenFunction.h

[PATCH] D53595: [C++17] Reject shadowing of capture by parameter in lambda

2018-10-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D53595#1276346, @Rakete wrote: > In https://reviews.llvm.org/D53595#1276330, @rsmith wrote: > > > In https://reviews.llvm.org/D53595#1273848, @Rakete wrote: > > > > > Addresed review comments :) > > > > > > I updated the dr status file

[PATCH] D38061: Set AnonymousTagLocations false for ASTContext if column info is expected not to be used

2018-10-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith requested changes to this revision. rsmith added inline comments. This revision now requires changes to proceed. Comment at: lib/Frontend/CompilerInstance.cpp:491-494 + PrintingPolicy Policy = Context->getPrintingPolicy(); + if (!getCodeGenOpts().DebugColumnInfo) +

[PATCH] D53595: [C++17] Reject shadowing of capture by parameter in lambda

2018-10-25 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete added a comment. In https://reviews.llvm.org/D53595#1276330, @rsmith wrote: > In https://reviews.llvm.org/D53595#1273848, @Rakete wrote: > > > Addresed review comments :) > > > > I updated the dr status file but a lot of unrelated changes made it in. Is > > this okay? > > >

[PATCH] D53718: Change keep-static-consts to work on static storage duration, not storage class.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane closed this revision. erichkeane added a comment. https://reviews.llvm.org/rL345302 https://reviews.llvm.org/D53718 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r345302 - Change keep-static-consts to work on static storage duration, not

2018-10-25 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Oct 25 12:13:46 2018 New Revision: 345302 URL: http://llvm.org/viewvc/llvm-project?rev=345302=rev Log: Change keep-static-consts to work on static storage duration, not storage class. To be more in line with what GCC does, switch the condition to be based on the

[PATCH] D53718: Change keep-static-consts to work on static storage duration, not storage class.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 171163. erichkeane edited the summary of this revision. erichkeane added a comment. Add to the test https://reviews.llvm.org/D53718 Files: lib/CodeGen/CodeGenModule.cpp test/CodeGen/keep-static-consts.cpp Index: test/CodeGen/keep-static-consts.cpp

[PATCH] D53685: [WebAssembly] Bitselect and min/max builtins

2018-10-25 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345301: [WebAssembly] Bitselect and min/max builtins (authored by tlively, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D53685 Files:

r345301 - [WebAssembly] Bitselect and min/max builtins

2018-10-25 Thread Thomas Lively via cfe-commits
Author: tlively Date: Thu Oct 25 12:11:41 2018 New Revision: 345301 URL: http://llvm.org/viewvc/llvm-project?rev=345301=rev Log: [WebAssembly] Bitselect and min/max builtins Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish, cfe-commits Differential Revision:

[PATCH] D53595: [C++17] Reject shadowing of capture by parameter in lambda

2018-10-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. Also please mark PR39428 as fixed once this is submitted :) Repository: rC Clang https://reviews.llvm.org/D53595 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D53595: [C++17] Reject shadowing of capture by parameter in lambda

2018-10-25 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/D53595#1273848, @Rakete wrote: > Addresed review comments :) > > I updated the dr status file but a lot of unrelated changes made it in. Is > this okay?

[PATCH] D53723: [clang-tidy] UppercaseLiteralSuffixCheck: bugfix: ignore implicit code

2018-10-25 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. Did you discover these in a real project? May I ask which one and add it to my BB? :) Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53723 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D53722: [WebAssembly] Lower to target-independent saturating add

2018-10-25 Thread Thomas Lively via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345300: [WebAssembly] Lower to target-independent saturating add (authored by tlively, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D53722

[PATCH] D53718: Change keep-static-consts to work on static storage duration, not storage class.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D53718#1276205, @zturner wrote: > Will this work for the following variable? > > constexpr int N = 3; > Yep, just confirmed that it does! Adding to the test and will update the review. Repository: rC Clang

r345300 - [WebAssembly] Lower to target-independent saturating add

2018-10-25 Thread Thomas Lively via cfe-commits
Author: tlively Date: Thu Oct 25 12:06:15 2018 New Revision: 345300 URL: http://llvm.org/viewvc/llvm-project?rev=345300=rev Log: [WebAssembly] Lower to target-independent saturating add Summary: Goes along with D53721. Reviewers: aheejin, dschuff Subscribers: sbc100, jgravelle-google, sunfish,

[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

2018-10-25 Thread Csaba Dabis via Phabricator via cfe-commits
Charusso added a comment. In https://reviews.llvm.org/D53076#1276277, @NoQ wrote: > I mean, the idea of checking constraints instead of matching program points > is generally good, but the example i gave above suggests that there's a bug > somewhere. I think it is an unimplemented feature

[PATCH] D53586: Implement Function Multiversioning for Non-ELF Systems.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345298: Implement Function Multiversioning for Non-ELF Systems. (authored by erichkeane, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

r345298 - Implement Function Multiversioning for Non-ELF Systems.

2018-10-25 Thread Erich Keane via cfe-commits
Author: erichkeane Date: Thu Oct 25 11:57:19 2018 New Revision: 345298 URL: http://llvm.org/viewvc/llvm-project?rev=345298=rev Log: Implement Function Multiversioning for Non-ELF Systems. Similar to how ICC handles CPU-Dispatch on Windows, this patch uses the resolver function directly to

[PATCH] D53724: [WebAssembly] Fix type names in truncation builtins

2018-10-25 Thread Thomas Lively via Phabricator via cfe-commits
tlively created this revision. tlively added reviewers: aheejin, dschuff. Herald added subscribers: cfe-commits, kristina, sunfish, jgravelle-google, sbc100. Use the same convention as all the other WebAssembly builtin names. Repository: rC Clang https://reviews.llvm.org/D53724 Files:

[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

2018-10-25 Thread Csaba Dabis via Phabricator via cfe-commits
Charusso added a comment. In https://reviews.llvm.org/D53076#1276270, @george.karpenkov wrote: > @NoQ has a good point: we need to preserve the distinction between the things > analyzer "assumes" and the things analyzer "knows". Yes, but I think it should be a new patch because I would like

[PATCH] D53723: [clang-tidy] UppercaseLiteralSuffixCheck: bugfix: ignore implicit code

2018-10-25 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri created this revision. lebedev.ri added reviewers: JonasToth, aaron.ballman, alexfh, hokein, xazax.hun. lebedev.ri added a project: clang-tools-extra. Herald added a subscriber: rnkovacs. lebedev.ri added a dependency: D53719: [clang-tidy] UppercaseLiteralSuffixCheck: bugfix: don't

[PATCH] D53207: Fix bug 26547 - alignof should return ABI alignment, not preferred alignment

2018-10-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In https://reviews.llvm.org/D53207#1276062, @ubsan wrote: > I don't actually know how to send this upstream, since it's been accepted... > How should I proceed? If you don't have an SVN account, you can ask someone who does to commit it for you. (In this case, I'll do

[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

2018-10-25 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. I mean, the idea of checking constraints instead of matching program points is generally good, but the example i gave above suggests that there's a bug somewhere. https://reviews.llvm.org/D53076 ___ cfe-commits mailing list

[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

2018-10-25 Thread George Karpenkov via Phabricator via cfe-commits
george.karpenkov requested changes to this revision. george.karpenkov added a comment. This revision now requires changes to proceed. Actually, apologies again: I have rushed through this too much. @NoQ has a good point: we need to preserve the distinction between the things analyzer "assumes"

[PATCH] D53722: [WebAssembly] Lower to target-independent saturating add

2018-10-25 Thread Thomas Lively via Phabricator via cfe-commits
tlively created this revision. tlively added reviewers: aheejin, dschuff. Herald added subscribers: cfe-commits, sunfish, jgravelle-google, sbc100. Goes along with https://reviews.llvm.org/D53721. Repository: rC Clang https://reviews.llvm.org/D53722 Files: lib/CodeGen/CGBuiltin.cpp

[PATCH] D53717: [AST] Only store the needed data in ForStmt.

2018-10-25 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. Do you have evidence that this complexity is worthwhile? (I wouldn't imagine we have very many `ForStmt`s per translation unit, so saving 16 bytes for each of them seems unlikely to matter.) Comment at: include/clang/AST/Stmt.h:1863 + Expr *getCond()

[PATCH] D53719: [clang-tidy] UppercaseLiteralSuffixCheck: bugfix: don't cripple substNonTypeTemplateParmExpr

2018-10-25 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth accepted this revision. JonasToth added a comment. This revision is now accepted and ready to land. > I'm basically asking "is the > `unless(hasParent(substNonTypeTemplateParmExpr()))` fix correct? or is there > something else i'm missing?" Ah ok, I am not aware of another way, but

[PATCH] D53076: [analyzer] Enhance ConditionBRVisitor to write out more information

2018-10-25 Thread Csaba Dabis via Phabricator via cfe-commits
Charusso added a comment. Thanks everyone for the review! @george.karpenkov could you commit it please? I am interested in your ideas in the little discussion started with @NoQ at the beginning of the project. https://reviews.llvm.org/D53076 ___

[PATCH] D53719: [clang-tidy] UppercaseLiteralSuffixCheck: bugfix: don't cripple substNonTypeTemplateParmExpr

2018-10-25 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In https://reviews.llvm.org/D53719#1276208, @JonasToth wrote: > What do you mean by "general way to avoid"? Templates? I'm basically asking "is the `unless(hasParent(substNonTypeTemplateParmExpr()))` fix correct? or is there something else i'm missing?"

[PATCH] D40925: Add option -fkeep-static-consts

2018-10-25 Thread Elizabeth Andrews via Phabricator via cfe-commits
eandrews added a comment. I think it makes sense to include this case just to make the flag more complete. Also, we don't really match GCC behavior for this flag. GCC emits all static constants by default (when O0). When optimized, this flag has no effect on GCC. The negation is used to not

[PATCH] D53719: [clang-tidy] UppercaseLiteralSuffixCheck: bugfix: don't cripple substNonTypeTemplateParmExpr

2018-10-25 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. What do you mean by "general way to avoid"? Templates? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D53718: Change keep-static-consts to work on static storage duration, not storage class.

2018-10-25 Thread Zachary Turner via Phabricator via cfe-commits
zturner added a comment. Will this work for the following variable? constexpr int N = 3; Repository: rC Clang https://reviews.llvm.org/D53718 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D53586: Implement Function Multiversioning for Non-ELF Systems.

2018-10-25 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In https://reviews.llvm.org/D53586#1276198, @rnk wrote: > Here's a thought. What happens if different TUs observe different overload > sets, perhaps because of ifdefs? Different TUs will generate different > resolvers, but they won't dispatch to the same sets of

[PATCH] D53586: Implement Function Multiversioning for Non-ELF Systems.

2018-10-25 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. Here's a thought. What happens if different TUs observe different overload sets, perhaps because of ifdefs? Different TUs will generate different resolvers, but they won't dispatch to the same sets of targets. I'm guessing we'd treat that as an

r345296 - [SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03

2018-10-25 Thread Eric Fiselier via cfe-commits
Author: ericwf Date: Thu Oct 25 11:16:16 2018 New Revision: 345296 URL: http://llvm.org/viewvc/llvm-project?rev=345296=rev Log: [SemaCXX] Unconfuse Clang when std::align_val_t is unscoped in C++03 Summary: When -faligned-allocation is specified in C++03 libc++ defines std::align_val_t as an

  1   2   3   >