r283772 - Use unique_ptr for VTableBuilder::VBaseInfo map.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:36 2016 New Revision: 283772 URL: http://llvm.org/viewvc/llvm-project?rev=283772&view=rev Log: Use unique_ptr for VTableBuilder::VBaseInfo map. Reviewers: timshen Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25424 Modified:

r283770 - Use unique_ptr for VPtrLocationsMap and VPtrInfoVector.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:29 2016 New Revision: 283770 URL: http://llvm.org/viewvc/llvm-project?rev=283770&view=rev Log: Use unique_ptr for VPtrLocationsMap and VPtrInfoVector. Reviewers: timshen Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25422 Modifi

r283775 - [Analysis] Use unique_ptr for CallGraph::FunctionMap.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:48 2016 New Revision: 283775 URL: http://llvm.org/viewvc/llvm-project?rev=283775&view=rev Log: [Analysis] Use unique_ptr for CallGraph::FunctionMap. Reviewers: timshen Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D25427 Modified

r283774 - [Analysis] Use unique_ptr in AnalyaisDeclContextManager's ContextMap.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:26:44 2016 New Revision: 283774 URL: http://llvm.org/viewvc/llvm-project?rev=283774&view=rev Log: [Analysis] Use unique_ptr in AnalyaisDeclContextManager's ContextMap. Reviewers: timshen Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/

[PATCH] D25244: [clang-tidy] Add a whitelist option in google-runtime-references.

2016-10-10 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 74138. hokein marked an inline comment as done. hokein added a comment. Address review comments. https://reviews.llvm.org/D25244 Files: clang-tidy/google/NonConstReferences.cpp clang-tidy/google/NonConstReferences.h docs/clang-tidy/checks/google-runtim

r283776 - Use StringRef in LangOptions::isNoBuiltinFunc API (NFC)

2016-10-10 Thread Mehdi Amini via cfe-commits
Author: mehdi_amini Date: Mon Oct 10 11:34:07 2016 New Revision: 283776 URL: http://llvm.org/viewvc/llvm-project?rev=283776&view=rev Log: Use StringRef in LangOptions::isNoBuiltinFunc API (NFC) Modified: cfe/trunk/include/clang/Basic/LangOptions.h cfe/trunk/lib/Basic/LangOptions.cpp Modi

[PATCH] D25437: [clang-tidy] Fix template agrument false positives in unused-using-decls.

2016-10-10 Thread Haojian Wu via cfe-commits
hokein created this revision. hokein added a subscriber: cfe-commits. - Fix a false postive when an using class is used in an explicit template instantiation. - Fix a false postive when an using template class is used as template argument. https://reviews.llvm.org/D25437 Files: clang-tidy/mi

[PATCH] D25436: [CodeCompletion] Improve completion for properties declared in Objective-C protocols

2016-10-10 Thread Alex Lorenz via cfe-commits
arphaman created this revision. arphaman added reviewers: manmanren, doug.gregor. arphaman added a subscriber: cfe-commits. arphaman set the repository for this revision to rL LLVM. This patch improves code completion for properties that are declared in Objective-C protocols by making sure that p

Re: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Alexey Bataev via cfe-commits
Hmm, I thought it must return a pointer to the element type rather than [*] kind type. Did you checked it? Best regards, Alexey Bataev On 10/10/2016 07:09 PM, Erich Keane wrote: > erichkeane added a comment. > > Andrey- > It seems that getVariableArrayDecayedType and getCanonicalParamType retur

[clang-tools-extra] r283777 - [clang-tidy] Add a whitelist option in google-runtime-references.

2016-10-10 Thread Haojian Wu via cfe-commits
Author: hokein Date: Mon Oct 10 11:38:11 2016 New Revision: 283777 URL: http://llvm.org/viewvc/llvm-project?rev=283777&view=rev Log: [clang-tidy] Add a whitelist option in google-runtime-references. Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.or

r283778 - [Examples] Fix use of sema.LateParsedTemplateMap in clang/examples.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 11:41:00 2016 New Revision: 283778 URL: http://llvm.org/viewvc/llvm-project?rev=283778&view=rev Log: [Examples] Fix use of sema.LateParsedTemplateMap in clang/examples. Modified: cfe/trunk/examples/PrintFunctionNames/PrintFunctionNames.cpp Modified: cfe/trunk/

RE: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Keane, Erich via cfe-commits
I did. I changed line 236 to "ArgType = getContext().getCanonicalParamType(ArgType);" (as I believe you were suggesting), and the output was identical when doing dump on ArgType: This: LValueReferenceType 0xa451620 'int (&)[*]' variably_modified `-VariableArrayType 0xa4515e0 'int [*]' vari

[libcxx] r283780 - Add tests to check that swap(std::function, std::function) is noexcept. This is LWG#2062, but we already do this. No changes to the library, just adding tests.

2016-10-10 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Oct 10 11:47:48 2016 New Revision: 283780 URL: http://llvm.org/viewvc/llvm-project?rev=283780&view=rev Log: Add tests to check that swap(std::function, std::function) is noexcept. This is LWG#2062, but we already do this. No changes to the library, just adding tests. M

[PATCH] D25338: [Driver] Make -print-libgcc-file-name print compiler-rt lib when used

2016-10-10 Thread Michał Górny via cfe-commits
mgorny closed this revision. mgorny added a comment. r283746 https://reviews.llvm.org/D25338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25439: Fixed column shift when formatting line containing bit shift operators

2016-10-10 Thread Paweł Żukowski via cfe-commits
idlecode created this revision. idlecode added a subscriber: cfe-commits. Herald added a subscriber: klimek. During clang-format source lexing >> and << operators are split and treated as two less/greater operators but column position of following tokens was not adjusted accordingly. https://rev

Re: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Alexey Bataev via cfe-commits
Aaaahhh, Now I see. We have a parameter with the type that is a reference to VLA. I think in this case we should rework this code to something like this: if (ArgType->isVariablyModifiedType()) ArgType = getContext().getCanonicalParamType(ArgType.getNonReferenceType()); Try this solutio

RE: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Keane, Erich via cfe-commits
That does turn ArgType into a PointerType int*. However, line 301 (GenerateOpenMPCapturedStmtFunction) attempts to cast it to a reference type a bit later, resulting in a SIGABRT there. Do I need to re-add the reference there? Is removing the array type REALLY what we wish to do? -Origin

[libcxx] r283781 - Updated notes about issues; marked 2062, 2223, 2394, 2460 and 2540 as complete.

2016-10-10 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Oct 10 12:11:37 2016 New Revision: 283781 URL: http://llvm.org/viewvc/llvm-project?rev=283781&view=rev Log: Updated notes about issues; marked 2062, 2223, 2394, 2460 and 2540 as complete. Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/u

[PATCH] D25439: Fixed column shift when formatting line containing bit shift operators

2016-10-10 Thread Martin Probst via cfe-commits
mprobst added a comment. Looks good to me, but Daniel is a better owner for this code. https://reviews.llvm.org/D25439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D23765: Fix for clang PR 29087

2016-10-10 Thread Taewook Oh via cfe-commits
twoh added a comment. ping https://reviews.llvm.org/D23765 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25308: [Sema] Ignore transparent_union attributes in C++

2016-10-10 Thread Hal Finkel via cfe-commits
hfinkel added a comment. In https://reviews.llvm.org/D25308#566176, @arphaman wrote: > The updated patch now makes clang warn every time it encounters this > attribute in C++ mode. Would that be the desired behaviour? As I understand it, transparent_union was designed for use in system headers

[PATCH] D25439: Fixed column shift when formatting line containing bit shift operators

2016-10-10 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: test/Format/bitshift-operator-width.cpp:1 +// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -style=LLVM \ +// RUN: | FileCheck -strict-whitespace %s Could you move this test into unittests/Format/FormatTest.cpp? htt

Re: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Alexey Bataev via cfe-commits
Add a check to line 299: if (!VarTy->isReferenceType() && !(FD->getType()->isVariablyModifiedType() && ArgLVal.getType()->isPointerType())) Best regards, Alexey Bataev On 10/10/2016 08:19 PM, Keane, Erich wrote: > That does turn ArgType into a PointerType int*. However, line 301 > (Generate

[PATCH] D25238: [clang-tidy] Ignore empty members and bases in cppcoreguidelines-pro-type-member-init

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. LG https://reviews.llvm.org/D25238 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

LLVM buildmaster will be updated and restarted tonight

2016-10-10 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be updated and restarted after 6 PM 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] D25353: Implement __emul, __emulu, _mul128 and _umul128 MS intrinsics

2016-10-10 Thread Albert Gutowski via cfe-commits
agutowski updated this revision to Diff 74147. agutowski added a comment. address comments https://reviews.llvm.org/D25353 Files: include/clang/Basic/BuiltinsX86.def include/clang/Basic/BuiltinsX86_64.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h test/CodeGen/ms-intrinsics.c te

r283785 - Implement __emul, __emulu, _mul128 and _umul128 MS intrinsics

2016-10-10 Thread Albert Gutowski via cfe-commits
Author: agutowski Date: Mon Oct 10 13:09:27 2016 New Revision: 283785 URL: http://llvm.org/viewvc/llvm-project?rev=283785&view=rev Log: Implement __emul, __emulu, _mul128 and _umul128 MS intrinsics Reviewers: rnk, thakis, majnemer, hans Subscribers: cfe-commits Differential Revision: https://re

[PATCH] D25204: Register Calling Convention, Clang changes

2016-10-10 Thread Erich Keane via cfe-commits
erichkeane added a comment. I'm going to need to pump-the-brakes on this for a little bit. The name-decoration work I did here highlighted a number of issues with that section of the spec. We're currently considering rev'ing the spec to properly name mangle/decorate when C++ and Microsoft is

[PATCH] D25436: [CodeCompletion] Improve completion for properties declared in Objective-C protocols

2016-10-10 Thread Manman Ren via cfe-commits
manmanren added a comment. Thanks for working on this! Manman Comment at: lib/Sema/SemaCodeComplete.cpp:3723 } } else if (!IsArrow && BaseType->getAsObjCInterfacePointerType()) { // Objective-C property reference. I feel like the added logic belong

RE: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Keane, Erich via cfe-commits
This causes a massive number of openmp test failures (obviously), and I'm not terribly comfortable with how OpenMP works. I can update the tests (and will), but would like it if you could be extra diligent in confirming the correct behavior for me. Failing Tests (6): Clang :: OpenMP/for_re

Re: r283540 - [analyzer] Re-apply r283092, attempt no.3, in small chunks this time.

2016-10-10 Thread Galina Kistanova via cfe-commits
Hi Artem, This revision broke one our our builders: http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/21910 Please have a look at it. Thanks Galina On Fri, Oct 7, 2016 at 4:26 AM, Artem Dergachev via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: dergachev > Da

[PATCH] D25442: Implement MS read/write barriers and __faststorefence intrinsic

2016-10-10 Thread Albert Gutowski via cfe-commits
agutowski created this revision. agutowski added reviewers: majnemer, hans, rnk. agutowski added a subscriber: cfe-commits. https://reviews.llvm.org/D25442 Files: include/clang/Basic/BuiltinsX86.def include/clang/Basic/BuiltinsX86_64.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h te

[PATCH] D24954: [ToolChains] Disable OpenSUSE rules for SLES10

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a reviewer: bruno. bruno added inline comments. Comment at: lib/Driver/ToolChains.cpp:3915 - if (D.getVFS().exists("/etc/SuSE-release")) -return OpenSUSE; + File = llvm::MemoryBuffer::getFile("/etc/SuSE-release"); + if (File) You should keep

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:331 +void UseAutoCheck::replaceExpr(const DeclStmt *D, ASTContext *Context, + Ty

Re: r283540 - [analyzer] Re-apply r283092, attempt no.3, in small chunks this time.

2016-10-10 Thread Artem Dergachev via cfe-commits
Hi Galina, Hmm, this sounds strange to me, because this commit has been instantly reverted three days ago (replaced with correct code later), and current errors on this buildbot do not seem to be related. On 10/10/16 9:36 PM, Galina Kistanova wrote: Hi Artem, This revision broke one our our

[libcxx] r283788 - [libcxx] Add support for Fuchsia

2016-10-10 Thread Petr Hosek via cfe-commits
Author: phosek Date: Mon Oct 10 13:53:32 2016 New Revision: 283788 URL: http://llvm.org/viewvc/llvm-project?rev=283788&view=rev Log: [libcxx] Add support for Fuchsia Fuchsia is a new operating system which uses musl as the standard C library, libc++ and libc++abi as the C++ standard library. Dif

r283789 - Re-commit r283722, reverted in r283750, with a fix for a CUDA-specific use of

2016-10-10 Thread Richard Smith via cfe-commits
Author: rsmith Date: Mon Oct 10 13:54:32 2016 New Revision: 283789 URL: http://llvm.org/viewvc/llvm-project?rev=283789&view=rev Log: Re-commit r283722, reverted in r283750, with a fix for a CUDA-specific use of past-the-end iterator. Original commit message: P0035R4: Semantic analysis and code g

[PATCH] D25334: Implement __stosb intrinsic as a volatile memset

2016-10-10 Thread Albert Gutowski via cfe-commits
agutowski updated this revision to Diff 74157. agutowski added a comment. remove nullptr check; don't repeat EmitScalarExpr https://reviews.llvm.org/D25334 Files: include/clang/Basic/BuiltinsX86.def lib/CodeGen/CGBuiltin.cpp lib/Headers/intrin.h test/CodeGen/ms-intrinsics.c test/Heade

[PATCH] D25442: Implement MS read/write barriers and __faststorefence intrinsic

2016-10-10 Thread David Majnemer via cfe-commits
majnemer accepted this revision. majnemer added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D25442 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

[PATCH] D25334: Implement __stosb intrinsic as a volatile memset

2016-10-10 Thread Albert Gutowski via cfe-commits
agutowski marked 2 inline comments as done. agutowski added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:7610 +Value *SizeVal = EmitScalarExpr(E->getArg(2)); +EmitNonNullArgCheck(RValue::get(Dest.getPointer()), E->getArg(0)->getType(), +

[PATCH] D24656: [clang-tidy] Add check readability-redundant-declaration

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added inline comments. This revision now requires changes to proceed. Comment at: clang-tidy/readability/RedundantDeclarationCheck.cpp:39 + bool MultiVar = false; + if (const auto *VD = dyn_cast(D)) { +if (VD && VD->getPrevi

Re: [PATCH] D25308: [Sema] Ignore transparent_union attributes in C++

2016-10-10 Thread Richard Smith via cfe-commits
On Mon, Oct 10, 2016 at 10:45 AM, Hal Finkel via cfe-commits < cfe-commits@lists.llvm.org> wrote: > hfinkel added a comment. > > In https://reviews.llvm.org/D25308#566176, @arphaman wrote: > > > The updated patch now makes clang warn every time it encounters this > attribute in C++ mode. Would tha

Re: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Alexey Bataev via cfe-commits
Could you send the new results for these tests? Best regards, Alexey Bataev On 10/10/2016 09:22 PM, Keane, Erich wrote: > This causes a massive number of openmp test failures (obviously), and I'm not > terribly comfortable with how OpenMP works. I can update the tests (and > will), but would l

[PATCH] D24572: [clang-tidy] Clean up code after applying replacements.

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh updated this revision to Diff 74160. alexfh marked 6 inline comments as done. alexfh added a comment. Herald added subscribers: mgorny, beanz. - Addressed review comments https://reviews.llvm.org/D24572 Files: clang-tidy/CMakeLists.txt clang-tidy/ClangTidy.cpp clang-tidy/ClangTidyD

[PATCH] D24799: [XRay] Check in Clang whether XRay supports the target when -fxray-instrument is passed

2016-10-10 Thread Serge Rogatch via cfe-commits
rSerge added a comment. I have extended this feature to check for OS support too (currently Linux only). I can't commit it so far because I don't know how to implement a test. XFAIL cannot check for both CPU and OS: it can only check for one of them. I tried to implement 2 tests instead like th

Re: [PATCH] D25308: [Sema] Ignore transparent_union attributes in C++

2016-10-10 Thread Hal Finkel via cfe-commits
- Original Message - > From: "Richard Smith" > To: reviews+d25308+public+96c9b20dd11b9...@reviews.llvm.org, "Hal > Finkel" > Cc: "Alex L" , "Reid Kleckner" , > "Aaron Ballman" , "cfe-commits" > > Sent: Monday, October 10, 2016 2:16:13 PM > Subject: Re: [PATCH] D25308: [Sema] Ignore tran

[PATCH] D25334: Implement __stosb intrinsic as a volatile memset

2016-10-10 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:7610 +Value *SizeVal = EmitScalarExpr(E->getArg(2)); +EmitNonNullArgCheck(RValue::get(Dest.getPointer()), E->getArg(0)->getType(), +E->getArg(0)->getExprLoc(), FD, 0); -

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 74162. malcolm.parsons added a comment. Use std::function https://reviews.llvm.org/D25316 Files: clang-tidy/modernize/UseAutoCheck.cpp clang-tidy/modernize/UseAutoCheck.h docs/clang-tidy/checks/modernize-use-auto.rst test/clang-tidy/moderniz

r283790 - [AST] Don't use make_pointee_iterator in VTableBuilder.

2016-10-10 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Mon Oct 10 14:26:22 2016 New Revision: 283790 URL: http://llvm.org/viewvc/llvm-project?rev=283790&view=rev Log: [AST] Don't use make_pointee_iterator in VTableBuilder. Our implementation of make_pointee_iterator seems to be causing MSVC 2015 to crash, so I'm going to remove i

[PATCH] D25429: [analyzer] Link libStaticAnalyzerCheckers to libASTMatchers.

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. The change seems to be reasonable, and the size increase is not huge. However, I'm not sure who should make the call. https://reviews.llvm.org/D25429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Malcolm Parsons via cfe-commits
malcolm.parsons updated this revision to Diff 74163. malcolm.parsons added a comment. Really mention in release notes. https://reviews.llvm.org/D25316 Files: clang-tidy/modernize/UseAutoCheck.cpp clang-tidy/modernize/UseAutoCheck.h docs/ReleaseNotes.rst docs/clang-tidy/checks/modernize-

[PATCH] D25389: Fix std::pair on FreeBSD

2016-10-10 Thread Dimitry Andric via cfe-commits
dim accepted this revision. dim added a comment. This revision is now accepted and ready to land. Yes, this looks good to me. For trunk r283783, this brought the number of unexpected failures down from 61 to 41. Tests fixed by this change: libc++ :: std/algorithms/alg.sorting/alg.min.max/min

[PATCH] D25283: AvailabilityAttrs: Refactor context checking when diagnosing an availability violation

2016-10-10 Thread Manman Ren via cfe-commits
manmanren added a comment. This is a nice cleanup! Manman Comment at: lib/Sema/SemaDeclAttr.cpp:6348 + + auto IsContextGreater = [&](const Decl *C) { +if (K == AR_NotYetIntroduced) { Can you add a comment for the lambda? Comment at: lib

r283793 - Implement MS read/write barriers and __faststorefence intrinsic

2016-10-10 Thread Albert Gutowski via cfe-commits
Author: agutowski Date: Mon Oct 10 14:40:51 2016 New Revision: 283793 URL: http://llvm.org/viewvc/llvm-project?rev=283793&view=rev Log: Implement MS read/write barriers and __faststorefence intrinsic Reviewers: hans, rnk, majnemer Subscribers: cfe-commits Differential Revision: https://reviews.

[PATCH] D25429: [analyzer] Link libStaticAnalyzerCheckers to libASTMatchers.

2016-10-10 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. I am in support of this as well. https://reviews.llvm.org/D25429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25448: [ubsan] Disable -fsanitize=vptr checks for devirtualized calls

2016-10-10 Thread Vedant Kumar via cfe-commits
vsk created this revision. vsk added reviewers: pcc, rjmccall. vsk added subscribers: krasin, cfe-commits. ubsan reports a false positive 'invalid member call' diagnostic on the following example (PR30478): struct Base1 { virtual int f1() { return 1; } }; struct Base2 { virtual i

[PATCH] D25316: [clang-tidy] Enhance modernize-use-auto to casts

2016-10-10 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:252-254 + anyOf(hasType(autoType()), +hasType(pointerType(pointee(autoType(, +hasType(referenceType(pointee(autoType())

[PATCH] D10840: clang-format: Add Block{Begin,End}Macros option

2016-10-10 Thread Nico Weber via cfe-commits
thakis added a comment. I noticed that using this slows down clang-format about 300% -- https://llvm.org/bugs/show_bug.cgi?id=30656 Repository: rL LLVM https://reviews.llvm.org/D10840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:

Re: patch: clean up in EmitValueForIvarAtOffset

2016-10-10 Thread Akira Hatanaka via cfe-commits
LGTM > On Oct 9, 2016, at 2:39 PM, Nick Lewycky via cfe-commits > wrote: > > The attached patch makes the LValue created in EmitValueForIvarAtOffset have > the same Qualifiers in the LValue as the QualType in the LValue. Noticed when > auditing for reasons the QualType would different from th

r283795 - Make the LValue created in EmitValueForIvarAtOffset have the same Qualifiers in the LValue as the QualType in the LValue. No functionality change intended.

2016-10-10 Thread Nick Lewycky via cfe-commits
Author: nicholas Date: Mon Oct 10 15:07:13 2016 New Revision: 283795 URL: http://llvm.org/viewvc/llvm-project?rev=283795&view=rev Log: Make the LValue created in EmitValueForIvarAtOffset have the same Qualifiers in the LValue as the QualType in the LValue. No functionality change intended. Modif

Re: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Alexey Bataev via cfe-commits
I mean, could you send new .ll files, which you get after these changes? Best regards, Alexey Bataev > 10 окт. 2016 г., в 22:26, Keane, Erich написал(а): > > Sure, attached. So far, there are a few changes that seem curious and > concerning. A few cases of loads going missing, and a few more

[PATCH] D15075: No error for conflict between inputs\outputs and clobber list

2016-10-10 Thread Akira Hatanaka via cfe-commits
ahatanak accepted this revision. ahatanak added a comment. LGTM with a few nits. Please fix lib/Headers/intrin.h too and commit it as a separate patch. Comment at: lib/Sema/SemaStmtAsm.cpp:142 +// Extracting the register name from the Expression value, +// if there is no regis

RE: [PATCH] D25373: Fix for Bug 30639: CGDebugInfo Null dereference with OpenMP array access

2016-10-10 Thread Keane, Erich via cfe-commits
I don't see any .ll files for the tests. I see the directory build/tools/clang/test/OpenMP/Output has a bunch of .script and .tmp(binary files), but no obvious .ll files. -Original Message- From: Alexey Bataev [mailto:a.bat...@hotmail.com] Sent: Monday, October 10, 2016 1:22 PM To: Ke

[PATCH] D25308: [Sema] Ignore transparent_union attributes in C++

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. In https://reviews.llvm.org/D25308#566176, @arphaman wrote: > The updated patch now makes clang warn every time it encounters this > attribute in C++ mode. Would that be the desi

[PATCH] D25449: Disable trivial pair copy/move tests when unsupported

2016-10-10 Thread Dimitry Andric via cfe-commits
dim created this revision. dim added reviewers: EricWF, emaste, rsmith, theraven. dim added a subscriber: cfe-commits. On FreeBSD, for ABI compatibility reasons, the pair trivial copy constructor is disabled, using the aptly-named `_LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR` define. Di

[PATCH] D25406: Fix doubled whitespace in modernize-use-auto fixit

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/modernize/UseAutoCheck.cpp:378 + Lexer::getLocForEndOfToken(Range.getEnd(), 0, SM, Context->getLangOpts()); + bool Whitespace = isWhitespace(*FullSourceLoc(Next, SM).getCharacterData()); + malcolm

[PATCH] D25249: [libc++] Many any test fixes

2016-10-10 Thread Casey Carter via cfe-commits
CaseyCarter abandoned this revision. CaseyCarter added a comment. Ignoring the assignment from in_place_t issue for now, r283606 is good modulo a couple of tiny things that I'll just email you directly. https://reviews.llvm.org/D25249 ___ cfe-commi

[PATCH] D22973: [libcxx] [test] Add TEST_STACK_ALLOCATOR_WORKAROUND.

2016-10-10 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT abandoned this revision. STL_MSFT added a comment. Abandoning, as this machinery has been replaced. https://reviews.llvm.org/D22973 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[PATCH] D25450: [clang-tidy] Fix identifier naming in macro args.

2016-10-10 Thread Jason Henline via cfe-commits
jhen created this revision. jhen added a reviewer: alexfh. jhen added a subscriber: cfe-commits. Herald added a subscriber: jlebar. clang-tidy should fix identifier naming even when the identifier is referenced inside a macro expansion, provided that the identifier enters the macro expansion compl

[PATCH] D25450: [clang-tidy] Fix identifier naming in macro args.

2016-10-10 Thread Jason Henline via cfe-commits
jhen added a comment. alexfh, sorry if you are not the right person to review this change. I based my choice on this history of this file. https://reviews.llvm.org/D25450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org

[PATCH] D25451: [libcxx] [test] limited_allocator should be limited_allocator's best friend forever

2016-10-10 Thread Stephan T. Lavavej via cfe-commits
STL_MSFT created this revision. STL_MSFT added reviewers: EricWF, mclow.lists. STL_MSFT added a subscriber: cfe-commits. limited_allocator must grant friendship in order to be rebindable. Found by MSVC, which rebinds allocators in more situations than libc++ does. This raises an interesting ques

[PATCH] D25263: [Driver] Allow setting the default linker during build

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: CMakeLists.txt:198 +set(CLANG_DEFAULT_LINKER "" CACHE STRING + "Default linker to use (\"bfd\" or \"gold\" or \"lld\", empty for platform default") mgorny wrote: > Is there a reason not to allow using the absolute path

[PATCH] D25442: Implement MS read/write barriers and __faststorefence intrinsic

2016-10-10 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko closed this revision. Eugene.Zelenko added a comment. Committed in rL283793. https://reviews.llvm.org/D25442 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25353: Implement __emul, __emulu, _mul128 and _umul128 MS intrinsics

2016-10-10 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko closed this revision. Eugene.Zelenko added a comment. Committed in rL283785. https://reviews.llvm.org/D25353 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25426: [Analysis] Use unique_ptr in AnalyaisDeclContextManager's ContextMap.

2016-10-10 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko closed this revision. Eugene.Zelenko added a comment. Committed in rL283774. https://reviews.llvm.org/D25426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25453: Add -fno-sanitize-address-use-after-scope flag

2016-10-10 Thread Evgeniy Stepanov via cfe-commits
eugenis accepted this revision. eugenis added a comment. This revision is now accepted and ready to land. LGTM Comment at: lib/Frontend/CompilerInvocation.cpp:739 + UasArg && + UasArg->getOption().matches(OPT_fsanitize_address_use_after_scope); Opts.SSPBufferSize =

[PATCH] D25437: [clang-tidy] Fix template agrument false positives in unused-using-decls.

2016-10-10 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: test/clang-tidy/misc-unused-using-decls.cpp:191 +// n::N is using in the explicit template instantiations. +template void h(n::M* t); Can you add a test using a non-type template argument, like an integer literal?

[libcxx] r283799 - Update with the rest of the results from the 7-Oct Telecom

2016-10-10 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Oct 10 16:00:12 2016 New Revision: 283799 URL: http://llvm.org/viewvc/llvm-project?rev=283799&view=rev Log: Update with the rest of the results from the 7-Oct Telecom Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html

Re: r283766 - [Sema] Use unique_ptr instead of raw pointers in the late-parsed templates map.

2016-10-10 Thread Galina Kistanova via cfe-commits
Hello Justin, Some of your resent commits broke the next builder: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/12710 Please have a look at it? Thanks Galina On Mon, Oct 10, 2016 at 9:26 AM, Justin Lebar via cfe-commits < cfe-commits@lists.llvm.org

Re: r283766 - [Sema] Use unique_ptr instead of raw pointers in the late-parsed templates map.

2016-10-10 Thread Justin Lebar via cfe-commits
Galina, I've already reverted the offending changes in iterator.h. The MSVC build is now broken due to a different change. Sorry for the noise (but not really sorry, MSVC shouldn't crash :). On Mon, Oct 10, 2016 at 2:15 PM, Galina Kistanova wrote: > Hello Justin, > > Some of your resent commits

[PATCH] D24954: [ToolChains] Disable OpenSUSE rules for SLES10

2016-10-10 Thread Michał Górny via cfe-commits
mgorny added inline comments. Comment at: lib/Driver/ToolChains.cpp:3915 - if (D.getVFS().exists("/etc/SuSE-release")) -return OpenSUSE; + File = llvm::MemoryBuffer::getFile("/etc/SuSE-release"); + if (File) bruno wrote: > You should keep using the VFS t

[PATCH] D25426: [Analysis] Use unique_ptr in AnalyaisDeclContextManager's ContextMap.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar added a comment. Do you know why phab didn't pick up this change when I pushed it? https://reviews.llvm.org/D25426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D25426: [Analysis] Use unique_ptr in AnalyaisDeclContextManager's ContextMap.

2016-10-10 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a comment. Look like problem with Phabricator itself. I noticed several other reviews which were not closed with valid reference to review in commit summary. Weirdly, **https://reviews.llvm.org/diffusion/L/** prefix doesn't work too. https://reviews.llvm.org/D25426

[PATCH] D25426: [Analysis] Use unique_ptr in AnalyaisDeclContextManager's ContextMap.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar added a comment. Heh, all right. So long as I didn't screw anything up, I'm happy with it being a mystery. https://reviews.llvm.org/D25426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[PATCH] D24954: [ToolChains] Disable OpenSUSE rules for SLES10

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: lib/Driver/ToolChains.cpp:3915 - if (D.getVFS().exists("/etc/SuSE-release")) -return OpenSUSE; + File = llvm::MemoryBuffer::getFile("/etc/SuSE-release"); + if (File) mgorny wrote: > bruno wrote: > > You should kee

[PATCH] D25453: Add -fno-sanitize-address-use-after-scope flag

2016-10-10 Thread Vitaly Buka via cfe-commits
vitalybuka marked an inline comment as done. vitalybuka added inline comments. Comment at: test/Driver/fsanitize.c:124 +// RUN: %clang -target x86_64-linux-gnu -fsanitize=address %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ASAN-WITHOUT-USE-AFTER-SCOPE +// CHECK-ASAN-WITHOUT

[PATCH] D25453: Add -fno-sanitize-address-use-after-scope flag

2016-10-10 Thread Vitaly Buka via cfe-commits
vitalybuka updated this revision to Diff 74176. vitalybuka added a comment. resolved comments https://reviews.llvm.org/D25453 Files: include/clang/Driver/Options.td lib/Driver/SanitizerArgs.cpp lib/Frontend/CompilerInvocation.cpp test/Driver/fsanitize.c Index: test/Driver/fsanitize.c

r283801 - Add -fno-sanitize-address-use-after-scope flag

2016-10-10 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Mon Oct 10 16:31:50 2016 New Revision: 283801 URL: http://llvm.org/viewvc/llvm-project?rev=283801&view=rev Log: Add -fno-sanitize-address-use-after-scope flag Reviewers: eugenis Differential Revision: https://reviews.llvm.org/D25453 Modified: cfe/trunk/include/clang

r283802 - Change Builtins name to be stored as StringRef instead of raw pointers (NFC)

2016-10-10 Thread Mehdi Amini via cfe-commits
Author: mehdi_amini Date: Mon Oct 10 16:34:29 2016 New Revision: 283802 URL: http://llvm.org/viewvc/llvm-project?rev=283802&view=rev Log: Change Builtins name to be stored as StringRef instead of raw pointers (NFC) Modified: cfe/trunk/include/clang/Basic/Builtins.h cfe/trunk/lib/CodeGen/C

[libcxx] r283804 - Mark 2777 as complete

2016-10-10 Thread Marshall Clow via cfe-commits
Author: marshall Date: Mon Oct 10 16:37:16 2016 New Revision: 283804 URL: http://llvm.org/viewvc/llvm-project?rev=283804&view=rev Log: Mark 2777 as complete Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL: http://llvm.org/viewvc/llvm-pro

[PATCH] D24669: {Sema] Gcc compatibility of vector shift.

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: llvm/tools/clang/lib/Sema/SemaExpr.cpp:8787 } +if (!S.LangOpts.OpenCL && !S.LangOpts.ZVector) { + const BuiltinType *LHSBT = LHSEleType->getAs(); vbyakovlcl wrote: > bruno wrote: > > Besides `__ext_vector_typ

[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-10-10 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a reviewer: vsk. bruno added a comment. Ping!! https://reviews.llvm.org/D24516 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D24516: [Driver][Diagnostics] Make 'show option names' default for driver warnings

2016-10-10 Thread Vedant Kumar via cfe-commits
vsk added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:965 + Opts.ShowOptionNames = Args.hasArg(OPT_fdiagnostics_show_option) || + (DefaultShowOpt && !Args.hasArg(OPT_fno_diagnostics_show_option)); Does it make sense to use: hasFlag (O

r283810 - [Driver] Let -gline-tables-only win when it comes after -gmodules.

2016-10-10 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Mon Oct 10 16:56:20 2016 New Revision: 283810 URL: http://llvm.org/viewvc/llvm-project?rev=283810&view=rev Log: [Driver] Let -gline-tables-only win when it comes after -gmodules. The -gmodules option is all about putting debug type info into clang modules and for line tables t

[PATCH] D25450: [clang-tidy] Fix identifier naming in macro args.

2016-10-10 Thread Jason Henline via cfe-commits
jhen updated this revision to Diff 74181. jhen added a comment. - Return to original checking for macro in range https://reviews.llvm.org/D25450 Files: clang-tidy/readability/IdentifierNamingCheck.cpp test/clang-tidy/readability-identifier-naming.cpp Index: test/clang-tidy/readability-iden

[PATCH] D25450: [clang-tidy] Fix identifier naming in macro args.

2016-10-10 Thread Jason Henline via cfe-commits
jhen added a comment. I found a bug in my first patch that I have fixed now. I was trying to iterate over the source range by using `SourceLocation::getLocWithOffset`, but I realized that doesn't work, so I removed it and went back to the original method of checking `SourceRange.getBegin().isMa

[PATCH] D25427: [Analysis] Use unique_ptr for CallGraph::FunctionMap.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar accepted this revision. jlebar added a reviewer: jlebar. jlebar marked an inline comment as done. jlebar added a comment. This revision is now accepted and ready to land. https://github.com/llvm-mirror/clang/commit/b28828e8b38c7e208386f783e6502305c42cb479 https://reviews.llvm.org/D25427

[PATCH] D25424: Use unique_ptr for VTableBuilder::VBaseInfo map.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar closed this revision. jlebar added a comment. Phab seemed to be having trouble closing revisions today. https://github.com/llvm-mirror/clang/commit/c4e9e7b35a2d113c8aa3bcdaf858c5bac4d78b03 https://reviews.llvm.org/D25424 ___ cfe-commits mail

[PATCH] D25422: Use unique_ptr for VPtrLocationsMap and VPtrInfoVector.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar closed this revision. jlebar added a comment. https://github.com/llvm-mirror/clang/commit/dd0969a0ae3b6421685a9d78953bb1127a8cfe9c https://reviews.llvm.org/D25422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

[PATCH] D25423: Use unique_ptr for VTableBuilder::VFTableLayouts map.

2016-10-10 Thread Justin Lebar via cfe-commits
jlebar closed this revision. jlebar added a comment. https://github.com/llvm-mirror/clang/commit/be96a853a5dd33cce210617fb11575d33df7 https://reviews.llvm.org/D25423 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

<    1   2   3   >