Re: [PATCH] D10305: [Clang Static Analyzer] Bug identification

2015-10-08 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. Thank you for the review! Before committing this I would like to have a policy regarding future changes and document it inside the IssueHash header. My proposed policy is the following: - Do not change the calculation of issue hash unless we have a very good reason t

[PATCH] D13546: [ATTR] Automatic line feed after pragma-like attribute, NFC.

2015-10-08 Thread Alexey Bataev via cfe-commits
ABataev created this revision. ABataev added a reviewer: aaron.ballman. ABataev added a subscriber: cfe-commits. Automatically insert line feed after pretty printing of all pragma-like attributes. http://reviews.llvm.org/D13546 Files: include/clang/Basic/Attr.td utils/TableGen/ClangAttrEmit

Re: [PATCH] D9888: [OPENMP] Driver support for OpenMP offloading

2015-10-08 Thread Jonas Hahnfeld via cfe-commits
Hahnfeld added a comment. In http://reviews.llvm.org/D9888#262389, @sfantao wrote: > [...] > > I assume you were trying this using the diff in > http://reviews.llvm.org/D12614. There was an inconsistency in the names of > the ELF sections and symbols defined by the linker script in these two >

r249667 - [Sema] Tweak incomplete enum types on MSVC ABI targets

2015-10-08 Thread David Majnemer via cfe-commits
Author: majnemer Date: Thu Oct 8 02:45:35 2015 New Revision: 249667 URL: http://llvm.org/viewvc/llvm-project?rev=249667&view=rev Log: [Sema] Tweak incomplete enum types on MSVC ABI targets Enums without an explicit, fixed, underlying type are implicitly given a fixed 'int' type for ABI compatibi

Re: [PATCH] D13482: Revised Initial patch for PS4 toolchain

2015-10-08 Thread Katya Romanova via cfe-commits
kromanova updated this revision to Diff 36829. kromanova added a comment. Few more changes: (1) There was a bug, where the PS4 driver didn't add input filename in the call to external assembler. Filipe fixed this problem in Tools.cpp (2) A new testcase no-integrated-as.s was added for testing

r249670 - Update a few more tests in response to the MS ABI enum semantics

2015-10-08 Thread David Majnemer via cfe-commits
Author: majnemer Date: Thu Oct 8 03:28:09 2015 New Revision: 249670 URL: http://llvm.org/viewvc/llvm-project?rev=249670&view=rev Log: Update a few more tests in response to the MS ABI enum semantics Our self hosting buildbots found a few more tests which weren't updated to reflect that the enum

Re: [PATCH] D10834: Added functions to retrieve information about variable storage in libclang and its python bindings.

2015-10-08 Thread guibufolo+l...@gmail.com via cfe-commits
RedX2501 added a subscriber: klimek. RedX2501 added a comment. Ping http://reviews.llvm.org/D10834 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D10833: Retrieve BinaryOperator::getOpcode and BinaryOperator::getOpcodeStr via libclang and its python interface

2015-10-08 Thread guibufolo+l...@gmail.com via cfe-commits
RedX2501 added a reviewer: klimek. RedX2501 added a comment. Ping http://reviews.llvm.org/D10833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r249672 - [OPENMP 4.1] Codegen for array sections/subscripts in 'reduction' clause.

2015-10-08 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Oct 8 04:10:53 2015 New Revision: 249672 URL: http://llvm.org/viewvc/llvm-project?rev=249672&view=rev Log: [OPENMP 4.1] Codegen for array sections/subscripts in 'reduction' clause. OpenMP 4.1 adds support for array sections/subscripts in 'reduction' clause. Patch adds c

r249674 - [MSVC Compat] Try to treat an implicit, fixed enum as an unfixed enum

2015-10-08 Thread David Majnemer via cfe-commits
Author: majnemer Date: Thu Oct 8 05:04:46 2015 New Revision: 249674 URL: http://llvm.org/viewvc/llvm-project?rev=249674&view=rev Log: [MSVC Compat] Try to treat an implicit, fixed enum as an unfixed enum consider the following: enum E *p; enum E { e }; The above snippet is not ANSI C because 'e

Re: [PATCH] D13549: Added new options to ClangFormat VSIX package.

2015-10-08 Thread Daniel Jasper via cfe-commits
djasper added a comment. Please always add cfe-commits as "subscriber" so that the email also goes to the list. Repository: rL LLVM http://reviews.llvm.org/D13549 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

r249676 - [Driver] Use Twine instead of itostr. NFC.

2015-10-08 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Oct 8 05:31:17 2015 New Revision: 249676 URL: http://llvm.org/viewvc/llvm-project?rev=249676&view=rev Log: [Driver] Use Twine instead of itostr. NFC. No need to construct temporary std::strings here. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Dri

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-10-08 Thread Sean Eveson via cfe-commits
seaneveson updated this revision to Diff 36845. seaneveson added a comment. Move PR21606 test into const-method-call.cpp. Added test for const calls on member objects. Added tests for inherited const methods. Changed TK_PreserveContents to be set for the base region. This is so memory is still pr

Re: [PATCH] D13453: Always generate cmake config files

2015-10-08 Thread don hinton via cfe-commits
hintonda added a comment. Installed cmake 2.8.12 and was able to reproduce error. I'll look into it, but I'm tempted to only support newer versions of cmake, and let older versions maintain current behavior. http://reviews.llvm.org/D13453 ___ cfe-

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-10-08 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In http://reviews.llvm.org/D13099#260531, @seaneveson wrote: > There is an issue where pointers to the object (this) should cause it to be > invalidated, but don't since TK_PreserveContents has been set. > > For example: > > class B; > class A { > B b; > co

Re: [PATCH] D13383: [clang] Add flag to DeclContext to distinguish between qualified and unqualified name lookups

2015-10-08 Thread Eugene Leviant via cfe-commits
evgeny777 added a comment. Can someone look at it, please? http://reviews.llvm.org/D13383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13546: [ATTR] Automatic line feed after pragma-like attribute, NFC.

2015-10-08 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. LGTM, thanks! If you would be so kind as to add a test for #pragma init_seg("bss"), that would be great -- it seems its printPrettyPragma never put a newline in there for that at

Re: [PATCH] D13549: Added new options to ClangFormat VSIX package.

2015-10-08 Thread Marek Kurdej via cfe-commits
curdeius updated this revision to Diff 36849. curdeius added a comment. Escape XML-reserved characters. http://reviews.llvm.org/D13549 Files: tools/clang-format-vs/ClangFormat/ClangFormatPackage.cs tools/clang-format-vs/ClangFormat/Properties/AssemblyInfo.cs tools/clang-format/ClangFormat

Re: [PATCH] D13546: [ATTR] Automatic line feed after pragma-like attribute, NFC.

2015-10-08 Thread Bataev, Alexey via cfe-commits
Ok, will do Best regards, Alexey Bataev = Software Engineer Intel Compiler Team 08.10.2015 16:02, Aaron Ballman пишет: aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thanks! If you would be so kind as to a

Re: [PATCH] D12747: Implement [depr.c.headers]

2015-10-08 Thread Marshall Clow via cfe-commits
On Wed, Oct 7, 2015 at 2:38 PM, Richard Smith wrote: > Marshall: ping, does the below satisfy your concerns about the direction > here? > No, not really, because I'm worried about behavior changes with this approach. #include isdigit(c); will call different code before and after this p

Re: [PATCH] D13546: [ATTR] Automatic line feed after pragma-like attribute.

2015-10-08 Thread Alexey Bataev via cfe-commits
ABataev retitled this revision from "[ATTR] Automatic line feed after pragma-like attribute, NFC." to "[ATTR] Automatic line feed after pragma-like attribute.". ABataev updated this revision to Diff 36850. ABataev added a comment. Printing of pragma-like attributes for declarations did not worke

Re: [PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

2015-10-08 Thread Aaron Ballman via cfe-commits
(Removing llvm-commits, adding cfe-commits) On Wed, Oct 7, 2015 at 8:07 PM, Adrian Zgorzalek via llvm-commits wrote: > Hey, > > Here is an attempt to fix https://llvm.org/bugs/show_bug.cgi?id=25067. Thank you for working on this! > > Summary: > > After introducing no_sanitize, we try to map no_

Fwd: [modules] PR24954

2015-10-08 Thread Vassil Vassilev via cfe-commits
Forwarding to cfe-commits Forwarded Message Subject:[modules] PR24954 Date: Thu, 8 Oct 2015 15:53:55 +0200 From: Vassil Vassilev To: Richard Smith , cfe-...@cs.uiuc.edu CC: Ben Langmuir Hi Richard, I started working on https://llvm.org/bugs/show_bug.c

Re: [PATCH] D13482: Revised Initial patch for PS4 toolchain

2015-10-08 Thread Filipe Cabecinhas via cfe-commits
filcab accepted this revision. filcab added a comment. This revision is now accepted and ready to land. LGTM. But let's wait for a !Sony dev to say something too. Repository: rL LLVM http://reviews.llvm.org/D13482 ___ cfe-commits mailing list cfe

Re: [PATCH] D13546: [ATTR] Automatic line feed after pragma-like attribute.

2015-10-08 Thread Aaron Ballman via cfe-commits
aaron.ballman added a comment. Wow, good catch on the fact that this didn't work at all! Thank you for tackling it. Comment at: lib/AST/DeclPrinter.cpp:197 @@ -196,3 +196,3 @@ -void DeclPrinter::prettyPrintAttributes(Decl *D) { +void DeclPrinter::prettyPrintAttributes(Decl *D

r249692 - [Myriad]: default the Dwarf version to 2

2015-10-08 Thread Douglas Katzman via cfe-commits
Author: dougk Date: Thu Oct 8 09:18:02 2015 New Revision: 249692 URL: http://llvm.org/viewvc/llvm-project?rev=249692&view=rev Log: [Myriad]: default the Dwarf version to 2 Modified: cfe/trunk/lib/Driver/ToolChains.h cfe/trunk/test/Driver/myriad-toolchain.c Modified: cfe/trunk/lib/Driver

r249693 - [VFS] Use VFS instead of virtual files in PPCallbacks test.

2015-10-08 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Oct 8 09:20:14 2015 New Revision: 249693 URL: http://llvm.org/viewvc/llvm-project?rev=249693&view=rev Log: [VFS] Use VFS instead of virtual files in PPCallbacks test. Modified: cfe/trunk/unittests/Lex/PPCallbacksTest.cpp Modified: cfe/trunk/unittests/Lex/PPCallbacksTes

Re: [PATCH] D12747: Implement [depr.c.headers]

2015-10-08 Thread Marshall Clow via cfe-commits
On Tue, Oct 6, 2015 at 3:36 PM, Richard Smith wrote: > Split out of . This is a big change, but the same pattern > as the prior ones. > > In this patch, you replicate the #ifdef XXX, __libcpp_XXX, #undef XXX dance for all the isXXX functions. Is that because they're not required to be actual fun

Re: [PATCH] D12747: Implement [depr.c.headers]

2015-10-08 Thread Marshall Clow via cfe-commits
On Tue, Oct 6, 2015 at 3:42 PM, Richard Smith wrote: > , an easy one. We guarantee a setjmp macro exists even if this > header is somehow included from C (the C standard allows that, so it's not > worth checking for __cplusplus). > > This looks fine to me. -- Marshall ___

[PATCH] D13554: [X86] Enable soft float ABI for x86

2015-10-08 Thread Michael Kuperstein via cfe-commits
mkuper created this revision. mkuper added reviewers: rafael, rnk. mkuper added a subscriber: cfe-commits. The Intel MCU psABI is a new soft-float ABI, based on the IA32 psABI. The document describing the ABI can be found here: https://github.com/hjl-tools/x86-psABI/wiki/iamcu-psABI-0.7.pdf Pe

Re: r249692 - [Myriad]: default the Dwarf version to 2

2015-10-08 Thread David Blaikie via cfe-commits
On Oct 8, 2015 7:19 AM, "Douglas Katzman via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > > Author: dougk > Date: Thu Oct 8 09:18:02 2015 > New Revision: 249692 > > URL: http://llvm.org/viewvc/llvm-project?rev=249692&view=rev > Log: > [Myriad]: default the Dwarf version to 2 Just out of cu

Re: [PATCH] D12901: [Static Analyzer] Assertion "System is over constrained" after truncating 64 bits integers to 32 bits. (PR25078)

2015-10-08 Thread pierre gousseau via cfe-commits
pgousseau added a comment. In http://reviews.llvm.org/D12901#262270, @zaks.anna wrote: > I agree with Gabor. We should investigate how we can model the overflow on a > cast correctly. Yes I agree with Gabor too. I meant this change as a temporary workaround only, I will investigate the modell

[PATCH] D13557: Make locale code compile on Linux without GLIBC.

2015-10-08 Thread Vasileios Kalintiris via cfe-commits
vkalintiris created this revision. vkalintiris added a reviewer: mclow.lists. vkalintiris added a subscriber: cfe-commits. Most of the #ifdefs in the locale code would check for the existence of GLIBC or for operating systems other than Linux. This patch considers the case where GLIBC isn't availa

Re: [PATCH] D13407: [libcxx] Capture configuration information when installing the libc++ headers

2015-10-08 Thread Vasileios Kalintiris via cfe-commits
vkalintiris added a subscriber: vkalintiris. Comment at: include/CMakeLists.txt:9 @@ -7,2 +8,3 @@ PATTERN ".svn" EXCLUDE + PATTERN "__config_site.in" EXCLUDE ${LIBCXX_SUPPORT_HEADER_PATTERN} Kind of silly but I believe that the files used for auto-generated

Re: [PATCH] D13557: Make locale code compile on Linux without GLIBC.

2015-10-08 Thread Jonathan Roelofs via cfe-commits
jroelofs added a subscriber: jroelofs. jroelofs added a comment. I don't think it's correct to say that `!defined(__GLIBC__) && defined(__linux__) ==> Musl` (nor is the converse true). Unfortunately, Musl intentionally doesn't provide that sort of macro [1], so to provide support for Musl in l

Re: [PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

2015-10-08 Thread Adrian Zgorzalek via cfe-commits
Great! I did not notice, that we already have exactly the same logic in SemaDeclAttr.cpp. Maybe it would be possible even to refactor it in such a way that this code is written only once. Adrian > On Oct 8, 2015, at 6:53 AM, Aaron Ballman wrote: > > (Removing llvm-commits, adding cfe-commits)

r249698 - CGStmtOpenMP.cpp: Prune redundant \param. [-Wdocumentation]

2015-10-08 Thread NAKAMURA Takumi via cfe-commits
Author: chapuni Date: Thu Oct 8 11:41:42 2015 New Revision: 249698 URL: http://llvm.org/viewvc/llvm-project?rev=249698&view=rev Log: CGStmtOpenMP.cpp: Prune redundant \param. [-Wdocumentation] Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp Modified: cfe/trunk/lib/CodeGen/CGStmtOpenMP.cpp

Re: [PATCH] D13557: Make locale code compile on Linux without GLIBC.

2015-10-08 Thread Vasileios Kalintiris via cfe-commits
vkalintiris abandoned this revision. vkalintiris added a comment. In http://reviews.llvm.org/D13557#262801, @jroelofs wrote: > Unfortunately, Musl intentionally doesn't provide that sort of macro [1], so > to provide support for Musl in libc++, we need to make note of it at > configure-time via

Re: [PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

2015-10-08 Thread Adrian Zgorzalek via cfe-commits
Feedback applied, new patch in the attachment. Adrian > On Oct 8, 2015, at 8:48 AM, Adrian Zgorzalek wrote: > > Great! I did not notice, that we already have exactly the same logic in > SemaDeclAttr.cpp. > Maybe it would be possible even to refactor it in such a way that this code > is writte

r249699 - Simplify DefaultCPU in ARMTargetInfo

2015-10-08 Thread Renato Golin via cfe-commits
Author: rengolin Date: Thu Oct 8 11:43:26 2015 New Revision: 249699 URL: http://llvm.org/viewvc/llvm-project?rev=249699&view=rev Log: Simplify DefaultCPU in ARMTargetInfo Simplifying the convoluted CPU handling in ARMTargetInfo. The default base CPU on ARM is ARM7TDMI, arch ARMv4T, and ARMTarge

Re: [PATCH] D13304: Avoid inlining in throw statement

2015-10-08 Thread via cfe-commits
> I think this actually makes it less general. You would presumably perform > different inlining for: > > throw f(x, y); > > versus > > auto k = f(x, y); > throw k; We need to differentiate between these two. For the second case, we should not add any attribute because it’s not invoked in th

Re: [PATCH] D12832: [Driver] Add support for Windows 10 SDK

2015-10-08 Thread Reid Kleckner via cfe-commits
rnk added a comment. Looks like this got committed. Sorry for the delay, I was travelling. http://reviews.llvm.org/D12832 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r249704 - [clang-cl] Make /EHs turn on C++ EH once again

2015-10-08 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Oct 8 12:29:07 2015 New Revision: 249704 URL: http://llvm.org/viewvc/llvm-project?rev=249704&view=rev Log: [clang-cl] Make /EHs turn on C++ EH once again C++ exceptions are still off by default, which is similar to how C++ cleanups are off by default in MSVC. If you use cl

Re: [PATCH] D13099: [Analyzer] Don’t invalidate CXXThis when conservatively evaluating const methods (PR 21606)

2015-10-08 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > Even if you do not deal with this case I think it would be great to have an > XFAIL test with a fixme that describes this limitation. Yes! Every time we have a test case that shows known limitations, we should add it to the regression tests with a TODO explaining t

Re: [PATCH] D13453: Always generate cmake config files

2015-10-08 Thread Reid Kleckner via cfe-commits
rnk added a comment. I added this conditional check in r221415, with this message: cmake: Only export targets in the standalone build Trying to fix bots that didn't like the fact that I exported targets that depended on LLVM without exporting targets from LLVM. I assume this has already

Re: [PATCH] D13399: [CMake] Bug 14109 - CMake build for compiler-rt should use just-built clang

2015-10-08 Thread Chris Bieneman via cfe-commits
beanz added inline comments. Comment at: runtime/CMakeLists.txt:41 @@ +40,3 @@ + + add_custom_target(compiler-rt-clear +DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt-cleared samsonov wrote: > So, that's the target that you can invoke manually to clean compi

[PATCH] D13567: [PATCH] Add checker discouraging use of setjmp/longjmp in C++

2015-10-08 Thread Aaron Ballman via cfe-commits
aaron.ballman created this revision. aaron.ballman added reviewers: alexfh, sbenza. aaron.ballman added a subscriber: cfe-commits. setjmp and longjmp facilities in C++ are unsafe due to the likelihood of triggering undefined behavior with nontrivial type destruction, etc. Instead, exception hand

Re: [PATCH] D12614: [OpenMP] Offloading descriptor registration and device codegen.

2015-10-08 Thread Samuel Antao via cfe-commits
sfantao updated this revision to Diff 36880. sfantao added a comment. Use class instead of structs if aggregate have private or protected fields. http://reviews.llvm.org/D12614 Files: include/clang/Basic/DiagnosticDriverKinds.td include/clang/Basic/LangOptions.def include/clang/Basic/Lang

Re: [PATCH] D12614: [OpenMP] Offloading descriptor registration and device codegen.

2015-10-08 Thread Samuel Antao via cfe-commits
sfantao added a comment. Thanks for the comments! Comment at: lib/CodeGen/CGOpenMPRuntime.h:323 @@ +322,3 @@ + /// far. + struct OffloadEntriesInfoManagerTy { +CodeGenModule &CGM; ABataev wrote: > Maybe it is better to make it a class if it has some non-pu

Re: [PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

2015-10-08 Thread Aaron Ballman via cfe-commits
On Thu, Oct 8, 2015 at 12:46 PM, Adrian Zgorzalek wrote: > Feedback applied, new patch in the attachment. Thank you for working on this! A few comments: > From 13f4df6def5f26768f9ea048e013f779bb4a7814 Mon Sep 17 00:00:00 2001 > From: =?UTF-8?q?Adrian=20Zgorza=C5=82ek?= > Date: Wed, 7 Oct 2015 1

Re: [PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

2015-10-08 Thread Aaron Ballman via cfe-commits
On Thu, Oct 8, 2015 at 2:33 PM, Adrian Zgorzalek wrote: > I so much like this fast review cycle :) I aim to please. ;-) > > Comments applied. LGTM with one nit: +static bool normalizeName(StringRef& AttrName) { Should be (StringRef &AttrName) per style guidelines. A good idea is to run clang-

Re: [PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

2015-10-08 Thread Adrian Zgorzalek via cfe-commits
I so much like this fast review cycle :) Comments applied. Adrian > On Oct 8, 2015, at 11:24 AM, Aaron Ballman wrote: > > On Thu, Oct 8, 2015 at 12:46 PM, Adrian Zgorzalek wrote: >> Feedback applied, new patch in the attachment. > > Thank you for working on this! A few comments: > >> From 13f

Re: [PATCH] D12747: Implement [depr.c.headers]

2015-10-08 Thread Marshall Clow via cfe-commits
On Tue, Oct 6, 2015 at 3:57 PM, Richard Smith wrote: > . This one is tricky: > > 1) There's an (undocumented) interface between the C standard library and > this header, where the macros __need_ptrdiff_t, __need_size_t, > __need_wchar_t, __need_NULL, __need_wint_t request just a piece of this > h

Re: [PATCH] D13525: [CodeGen] Attach function attributes to functions created in CGBlocks.cpp.

2015-10-08 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 36886. ahatanak added a comment. Changed CodeGenModule::SetLLVMFunctionAttributesForDefinition to use early return. I'll first commit the NFC patch to fix CodeGenModule::SetLLVMFunctionAttributesForDefinition and commit the rest after that. http://revie

Re: [PATCH] D13453: Always generate cmake config files

2015-10-08 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 36889. hintonda added a comment. - add back check for standalone and add cmake version http://reviews.llvm.org/D13453 Files: CMakeLists.txt Index: CMakeLists.txt === --- CMakeLists.txt +++

Re: [PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

2015-10-08 Thread Adrian Zgorzalek via cfe-commits
Run clang-format, diff is in SVN format. Please, can you commit on behalf of me unless you are willing to grant me write permission to the repo ;-) Adrian > On Oct 8, 2015, at 11:40 AM, Aaron Ballman wrote: > > On Thu, Oct 8, 2015 at 2:33 PM, Adrian Zgorzalek wrote: >> I so much like this fa

r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Oct 8 14:24:08 2015 New Revision: 249721 URL: http://llvm.org/viewvc/llvm-project?rev=249721&view=rev Log: When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usa

Re: [PATCH] Fix ICE in Clang when dealing with attribute(__no_sanitize_*__)

2015-10-08 Thread Aaron Ballman via cfe-commits
On Thu, Oct 8, 2015 at 2:50 PM, Adrian Zgorzalek wrote: > Run clang-format, diff is in SVN format. > > Please, can you commit on behalf of me unless you are willing to grant me > write permission to the repo ;-) Thanks! I've commit in r249721. As for repo permissions, if you are intending to cont

r249722 - [CodeGen] Check if the Decl pointer passed is null, and if so, return

2015-10-08 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Thu Oct 8 14:30:57 2015 New Revision: 249722 URL: http://llvm.org/viewvc/llvm-project?rev=249722&view=rev Log: [CodeGen] Check if the Decl pointer passed is null, and if so, return early. This is needed in a patch I plan to commit later, in which a null Decl pointer is pas

Re: [PATCH] D13567: [PATCH] Add checker discouraging use of setjmp/longjmp in C++

2015-10-08 Thread Samuel Benzaquen via cfe-commits
sbenza added inline comments. Comment at: clang-tidy/cert/SetLongJmpCheck.cpp:31 @@ +30,3 @@ +public: + explicit SetJmpMacroCallbacks(Preprocessor *PP, SetLongJmpCheck &Check) + : PP(PP), Check(Check) {} Why do you pass one as a pointer and one as a referenc

Re: [PATCH] D13567: [PATCH] Add checker discouraging use of setjmp/longjmp in C++

2015-10-08 Thread Aaron Ballman via cfe-commits
On Thu, Oct 8, 2015 at 3:47 PM, Samuel Benzaquen wrote: > sbenza added inline comments. > > > Comment at: clang-tidy/cert/SetLongJmpCheck.cpp:31 > @@ +30,3 @@ > +public: > + explicit SetJmpMacroCallbacks(Preprocessor *PP, SetLongJmpCheck &Check) > + : PP(PP), Check(Check) {}

Re: [PATCH] D13567: [PATCH] Add checker discouraging use of setjmp/longjmp in C++

2015-10-08 Thread Aaron Ballman via cfe-commits
aaron.ballman updated this revision to Diff 36890. aaron.ballman marked an inline comment as done. aaron.ballman added a comment. Corrected a simple copy-paste error. http://reviews.llvm.org/D13567 Files: clang-tidy/cert/CERTTidyModule.cpp clang-tidy/cert/CMakeLists.txt clang-tidy/cert/Se

Re: [PATCH] D13567: [PATCH] Add checker discouraging use of setjmp/longjmp in C++

2015-10-08 Thread Aaron Ballman via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. Thank you for the fast turn-around! I've commit in r249727. ~Aaron http://reviews.llvm.org/D13567 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[clang-tools-extra] r249727 - Adding a checker (cert-err52-cpp) that detects use of setjmp or longjmp in C++ code. Corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/con

2015-10-08 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Thu Oct 8 14:54:43 2015 New Revision: 249727 URL: http://llvm.org/viewvc/llvm-project?rev=249727&view=rev Log: Adding a checker (cert-err52-cpp) that detects use of setjmp or longjmp in C++ code. Corresponds to the CERT C++ secure coding rule: https://www.securecoding

r249733 - Handle sse turning on mmx, but no -mmx not turning off SSE.

2015-10-08 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Oct 8 15:10:18 2015 New Revision: 249733 URL: http://llvm.org/viewvc/llvm-project?rev=249733&view=rev Log: Handle sse turning on mmx, but no -mmx not turning off SSE. Rationale : // sse3 __m128d test_mm_addsub_pd(__m128d A, __m128d B) { return _mm_addsub_pd(A, B); }

r249732 - Migrate most feature map inclusion to initFeatureMap for the x86 target so

2015-10-08 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Oct 8 15:10:14 2015 New Revision: 249732 URL: http://llvm.org/viewvc/llvm-project?rev=249732&view=rev Log: Migrate most feature map inclusion to initFeatureMap for the x86 target so that we can build up an accurate set of features rather than relying on TargetInfo initi

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Richard Smith via cfe-commits
On Thu, Oct 8, 2015 at 12:24 PM, Aaron Ballman via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: aaronballman > Date: Thu Oct 8 14:24:08 2015 > New Revision: 249721 > > URL: http://llvm.org/viewvc/llvm-project?rev=249721&view=rev > Log: > When mapping no_sanitize_* attributes to no_s

Re: [PATCH] D12747: Implement [depr.c.headers]

2015-10-08 Thread Richard Smith via cfe-commits
On Thu, Oct 8, 2015 at 6:27 AM, Marshall Clow wrote: > On Wed, Oct 7, 2015 at 2:38 PM, Richard Smith > wrote: > >> Marshall: ping, does the below satisfy your concerns about the direction >> here? >> > > No, not really, because I'm worried about behavior changes with this > approach. > > #in

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Aaron Ballman via cfe-commits
On Thu, Oct 8, 2015 at 4:16 PM, Richard Smith wrote: > On Thu, Oct 8, 2015 at 12:24 PM, Aaron Ballman via cfe-commits > wrote: >> >> Author: aaronballman >> Date: Thu Oct 8 14:24:08 2015 >> New Revision: 249721 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=249721&view=rev >> Log: >> When ma

r249735 - [CodeGen] [CodeGen] Attach function attributes to functions created in

2015-10-08 Thread Akira Hatanaka via cfe-commits
Author: ahatanak Date: Thu Oct 8 15:26:34 2015 New Revision: 249735 URL: http://llvm.org/viewvc/llvm-project?rev=249735&view=rev Log: [CodeGen] [CodeGen] Attach function attributes to functions created in CGBlocks.cpp. This commit fixes a bug in clang's code-gen where it creates the following fu

Re: [PATCH] D13525: [CodeGen] Attach function attributes to functions created in CGBlocks.cpp.

2015-10-08 Thread Akira Hatanaka via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL249735: [CodeGen] [CodeGen] Attach function attributes to functions created in (authored by ahatanak). Changed prior to commit: http://reviews.llvm.org/D13525?vs=36886&id=36891#toc Repository: rL LLV

Re: [PATCH] D12747: Implement [depr.c.headers]

2015-10-08 Thread Richard Smith via cfe-commits
On Thu, Oct 8, 2015 at 7:23 AM, Marshall Clow wrote: > On Tue, Oct 6, 2015 at 3:36 PM, Richard Smith > wrote: > >> Split out of . This is a big change, but the same pattern >> as the prior ones. >> >> In this patch, you replicate the #ifdef XXX, __libcpp_XXX, #undef XXX > dance for all the isXX

[libcxx] r249737 - Factor definition of std::nullptr_t out of into a header that can also be used by .

2015-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 8 15:34:11 2015 New Revision: 249737 URL: http://llvm.org/viewvc/llvm-project?rev=249737&view=rev Log: Factor definition of std::nullptr_t out of into a header that can also be used by . Added: libcxx/trunk/include/__nullptr - copied, changed from r249736

[libcxx] r249738 - Split out of .

2015-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 8 15:36:30 2015 New Revision: 249738 URL: http://llvm.org/viewvc/llvm-project?rev=249738&view=rev Log: Split out of . Added: libcxx/trunk/include/ctype.h - copied, changed from r249736, libcxx/trunk/include/cctype Modified: libcxx/trunk/include/cctype

[libcxx] r249740 - Split out of .

2015-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 8 15:37:44 2015 New Revision: 249740 URL: http://llvm.org/viewvc/llvm-project?rev=249740&view=rev Log: Split out of . Added: libcxx/trunk/include/float.h - copied, changed from r249736, libcxx/trunk/include/cfloat Modified: libcxx/trunk/include/cfloat

[libcxx] r249739 - Split out of .

2015-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 8 15:37:11 2015 New Revision: 249739 URL: http://llvm.org/viewvc/llvm-project?rev=249739&view=rev Log: Split out of . Added: libcxx/trunk/include/errno.h - copied, changed from r249736, libcxx/trunk/include/cerrno Modified: libcxx/trunk/include/cerrno

[libcxx] r249741 - Split out of .

2015-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 8 15:38:53 2015 New Revision: 249741 URL: http://llvm.org/viewvc/llvm-project?rev=249741&view=rev Log: Split out of . Added: libcxx/trunk/include/inttypes.h - copied, changed from r249736, libcxx/trunk/include/cinttypes Modified: libcxx/trunk/include/c

[PATCH] D13572: Use Triple.isAndroid() where possible.

2015-10-08 Thread Evgeniy Stepanov via cfe-commits
eugenis created this revision. eugenis added a reviewer: echristo. eugenis added a subscriber: cfe-commits. eugenis set the repository for this revision to rL LLVM. Herald added subscribers: srhines, danalbert, tberghammer. Depends on http://reviews.llvm.org/D13571 Repository: rL LLVM http://r

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Adrian Zgorzalek via cfe-commits
Hey! I think you are right. This will not regress any of the cases, because previous behaviour either checked str.size() >= 4 OR didn’t check it at all, but then called .substr(2, str.size() - 4), which would crash. I think, though, that explicitly checking str.size() >= 4 makes sense. See comm

[libcxx] r249743 - Split out of .

2015-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 8 15:41:26 2015 New Revision: 249743 URL: http://llvm.org/viewvc/llvm-project?rev=249743&view=rev Log: Split out of . Added: libcxx/trunk/include/setjmp.h - copied, changed from r249736, libcxx/trunk/include/csetjmp Modified: libcxx/trunk/include/csetj

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Richard Smith via cfe-commits
On Thu, Oct 8, 2015 at 1:21 PM, Aaron Ballman wrote: > On Thu, Oct 8, 2015 at 4:16 PM, Richard Smith > wrote: > > On Thu, Oct 8, 2015 at 12:24 PM, Aaron Ballman via cfe-commits > > wrote: > >> > >> Author: aaronballman > >> Date: Thu Oct 8 14:24:08 2015 > >> New Revision: 249721 > >> > >> URL:

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Aaron Ballman via cfe-commits
On Thu, Oct 8, 2015 at 4:49 PM, Richard Smith wrote: > On Thu, Oct 8, 2015 at 1:21 PM, Aaron Ballman > wrote: >> >> On Thu, Oct 8, 2015 at 4:16 PM, Richard Smith >> wrote: >> > On Thu, Oct 8, 2015 at 12:24 PM, Aaron Ballman via cfe-commits >> > wrote: >> >> >> >> Author: aaronballman >> >> Date

Re: [PATCH] D13546: [ATTR] Automatic line feed after pragma-like attribute.

2015-10-08 Thread Alexey Bataev via cfe-commits
ABataev marked 2 inline comments as done. Comment at: lib/AST/DeclPrinter.cpp:197 @@ -196,3 +196,3 @@ -void DeclPrinter::prettyPrintAttributes(Decl *D) { +void DeclPrinter::prettyPrintAttributes(Decl *D, bool PrintPragmas) { if (Policy.PolishForDeclaration) a

Re: [PATCH] D13572: Use Triple.isAndroid() where possible.

2015-10-08 Thread Stephen Hines via cfe-commits
srhines added a comment. LGTM Repository: rL LLVM http://reviews.llvm.org/D13572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D13572: Use Triple.isAndroid() where possible.

2015-10-08 Thread Eric Christopher via cfe-commits
Pending naming from llvm review, LGTM. On Thu, Oct 8, 2015 at 1:55 PM Stephen Hines wrote: > srhines added a comment. > > LGTM > > > Repository: > rL LLVM > > http://reviews.llvm.org/D13572 > > > > ___ cfe-commits mailing list cfe-commits@lists.llvm.

Re: [PATCH] D13572: Use Triple.isAndroid() where possible.

2015-10-08 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. Pending naming from llvm review, LGTM. Repository: rL LLVM http://reviews.llvm.org/D13572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

Re: [PATCH] D13304: Avoid inlining in throw statement

2015-10-08 Thread Richard Smith via cfe-commits
On Thu, Oct 8, 2015 at 9:54 AM, wrote: > > I think this actually makes it less general. You would presumably perform > > different inlining for: > > > > throw f(x, y); > > > > versus > > > > auto k = f(x, y); > > throw k; > > We need to differentiate between these two. For the second case,

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Adrian Zgorzalek via cfe-commits
You are right, my bad, I thought this if covers all the cases, but part could be empty. Here is the fix: Adrian > On Oct 8, 2015, at 1:52 PM, Aaron Ballman wrote: > > On Thu, Oct 8, 2015 at 4:49 PM, Richard Smith wrote: >> On Thu, Oct 8, 2015 at 1:21 PM, Aaron Ballman >> wrote: >>> >>> On

r249748 - [WinEH] Push cleanupendpad scopes around exceptional cleanups

2015-10-08 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Thu Oct 8 16:14:56 2015 New Revision: 249748 URL: http://llvm.org/viewvc/llvm-project?rev=249748&view=rev Log: [WinEH] Push cleanupendpad scopes around exceptional cleanups We were only doing this for SEH as a special case. Generalize it to all cleanups. Modified: cfe/trun

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Richard Smith via cfe-commits
On Thu, Oct 8, 2015 at 2:10 PM, Adrian Zgorzalek via cfe-commits < cfe-commits@lists.llvm.org> wrote: > You are right, my bad, I thought this if covers all the cases, but > part could be empty. > > Here is the fix > Please add a testcase ("__attribute__((ownership_takes(__))) void f();" maybe?).

[libcxx] r249749 - Fix incorrect file header. This is not .

2015-10-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Oct 8 16:17:21 2015 New Revision: 249749 URL: http://llvm.org/viewvc/llvm-project?rev=249749&view=rev Log: Fix incorrect file header. This is not . Modified: libcxx/trunk/include/cfenv Modified: libcxx/trunk/include/cfenv URL: http://llvm.org/viewvc/llvm-project/l

r249751 - Use Triple.isAndroid() where possible.

2015-10-08 Thread Evgeniy Stepanov via cfe-commits
Author: eugenis Date: Thu Oct 8 16:21:44 2015 New Revision: 249751 URL: http://llvm.org/viewvc/llvm-project?rev=249751&view=rev Log: Use Triple.isAndroid() where possible. Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/lib/Driver/SanitizerArgs.cpp cfe/trunk/lib/Driver/ToolChain.

Re: [PATCH] D13572: Use Triple.isAndroid() where possible.

2015-10-08 Thread Evgeniy Stepanov via cfe-commits
eugenis closed this revision. eugenis added a comment. r249751 Repository: rL LLVM http://reviews.llvm.org/D13572 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12726: [analyzer] A fix for symbolic element region index lifetime.

2015-10-08 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. Now that we have a way to test symbol reaper, please, add more coverage to the symbol-reaper.c test, including the test that Jordan mentioned. Even if it is not fixed, it's good to include it with a FIXME note. What is the performance impact of this change? The chang

Re: Implict casts disappeared from syntactic init list expressions in C++

2015-10-08 Thread Richard Smith via cfe-commits
There are some other open problems in this area: - RecursiveASTVisitor on nested InitListExprs is currently worst-case exponential time because it walks the syntactic and semantic forms separately - Tools such as "find all references to this function" need the semantic form of every initializer, w

Re: [PATCH] D12821: Allow for C's "writing off the end" idiom in __builtin_object_size

2015-10-08 Thread George Burgess IV via cfe-commits
george.burgess.iv added a comment. Friendly Ping™ http://reviews.llvm.org/D12821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Adrian Zgorzalek via cfe-commits
On Oct 8, 2015, at 2:17 PM, Richard Smith mailto:rich...@metafoo.co.uk>> wrote: On Thu, Oct 8, 2015 at 2:10 PM, Adrian Zgorzalek via cfe-commits mailto:cfe-commits@lists.llvm.org>> wrote: You are right, my bad, I thought this if covers all the cases, but part could be empty. Here is the fix

Re: r249721 - When mapping no_sanitize_* attributes to no_sanitize attributes, handle GNU-style formatting that involves prefix and suffix underscores. Cleans up other usages of similar functionality.

2015-10-08 Thread Richard Smith via cfe-commits
On Thu, Oct 8, 2015 at 2:45 PM, Adrian Zgorzalek wrote: > > On Oct 8, 2015, at 2:17 PM, Richard Smith wrote: > > On Thu, Oct 8, 2015 at 2:10 PM, Adrian Zgorzalek via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> You are right, my bad, I thought this if covers all the cases, but >> par

Re: [PATCH] D13399: [CMake] Bug 14109 - CMake build for compiler-rt should use just-built clang

2015-10-08 Thread Chris Bieneman via cfe-commits
beanz updated this revision to Diff 36897. beanz added a comment. Updates to fix dependency mapping. Compiler-rt will be cleaned and rebuilt if clang changes and reconfigured if llvm-config or clang changes. http://reviews.llvm.org/D13399 Files: runtime/CMakeLists.txt Index: runtime/CMakeL

Re: [PATCH] D13304: Avoid inlining in throw statement

2015-10-08 Thread via cfe-commits
Yes, these are functionally equivalent. However, the difference between these two is that the call to f() in 1st is in sub-expression of throw statement, while the call in 2nd is not. If the call is in the sub-expression of throw statements, we can guarantee that the call is only invoked to be thr

  1   2   >