Re: [PATCH] D19587: Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551.

2016-04-28 Thread Eric Liu via cfe-commits
ioeric updated this revision to Diff 55382. ioeric added a comment. - removed redundant '#' http://reviews.llvm.org/D19587 Files: lib/Format/AffectedRangeManager.h lib/Format/ContinuationIndenter.cpp lib/Format/ContinuationIndenter.h lib/Format/Format.cpp lib/Format/WhitespaceManager.

r267859 - Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551.

2016-04-28 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Apr 28 02:52:03 2016 New Revision: 267859 URL: http://llvm.org/viewvc/llvm-project?rev=267859&view=rev Log: Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. Summary: Make SourceManager in Environment, WhitespaceManager, and FormatTokenA

r267858 - Addressed review's comments.

2016-04-28 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Apr 28 02:51:47 2016 New Revision: 267858 URL: http://llvm.org/viewvc/llvm-project?rev=267858&view=rev Log: Addressed review's comments. Modified: cfe/trunk/lib/Format/AffectedRangeManager.h cfe/trunk/lib/Format/Format.cpp Modified: cfe/trunk/lib/Format/AffectedR

r267860 - removed redundant '#'

2016-04-28 Thread Eric Liu via cfe-commits
Author: ioeric Date: Thu Apr 28 02:52:06 2016 New Revision: 267860 URL: http://llvm.org/viewvc/llvm-project?rev=267860&view=rev Log: removed redundant '#' Modified: cfe/trunk/lib/Format/AffectedRangeManager.h Modified: cfe/trunk/lib/Format/AffectedRangeManager.h URL: http://llvm.org/viewvc/

Re: [PATCH] D19587: Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551.

2016-04-28 Thread Eric Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267859: Addressed reviewer's post-submission comments from http://reviews.llvm. (authored by ioeric). Changed prior to commit: http://reviews.llvm.org/D19587?vs=55382&id=55383#toc Repository: rL LLVM

Re: [PATCH] D18265: [clang-tidy] New: checker misc-unconventional-assign-operator replacing misc-assign-operator-signature

2016-04-28 Thread Balogh , Ádám via cfe-commits
baloghadamsoftware added a comment. I see this one is accepted, but the prerequisite is not reviewed yet (after the update). Without that this one should not be merged into the code because it will not compile. http://reviews.llvm.org/D18265 ___ c

Re: [PATCH] D19482: [include-fixer] Add a find-all-symbols tool for include-fixer.

2016-04-28 Thread Haojian Wu via cfe-commits
hokein added a comment. @chapuni, thanks! Repository: rL LLVM http://reviews.llvm.org/D19482 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267862 - [OPENMP 4.5] Codegen for 'grainsize/num_tasks' clauses of 'taskloop'

2016-04-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Apr 28 04:15:06 2016 New Revision: 267862 URL: http://llvm.org/viewvc/llvm-project?rev=267862&view=rev Log: [OPENMP 4.5] Codegen for 'grainsize/num_tasks' clauses of 'taskloop' directive. OpenMP 4.5 defines 'taskloop' directive and 2 additional clauses 'grainsize' and 'n

r267863 - [OPENMP] Simplified interface for codegen of tasks, NFC.

2016-04-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Apr 28 04:23:51 2016 New Revision: 267863 URL: http://llvm.org/viewvc/llvm-project?rev=267863&view=rev Log: [OPENMP] Simplified interface for codegen of tasks, NFC. Reduced number of arguments in member functions of runtime support library for task-based directives. Mod

Re: [PATCH] D19586: Misleading Indentation check

2016-04-28 Thread Gábor Horváth via cfe-commits
xazax.hun added a comment. In http://reviews.llvm.org/D19586#415123, @Pajesz wrote: > Both dangling else and the other check now ignore one-line if-else > statements. Corrected other reviews as well. I can not see a test case for one line if-then-else. Could you add it? http://reviews.llvm.o

Re: [PATCH] D19647: [find-all-symbols] Save absolute file path instead of relative file path in SymbolInfo.

2016-04-28 Thread Benjamin Kramer via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. lg. Repository: rL LLVM http://reviews.llvm.org/D19647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

Re: [PATCH] D19648: [include-fixer] Add Yaml database integration.

2016-04-28 Thread Benjamin Kramer via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. Nice. Ship it! Comment at: include-fixer/YamlXrefsDB.h:25 @@ +24,3 @@ +public: + YamlXrefsDB(const std::string &FilePath); + StringRef instead of std::stri

r267865 - Revert "[MSVC] PR27337: allow static_cast from private base to derived for WTL"

2016-04-28 Thread Dmitry Polukhin via cfe-commits
Author: dpolukhin Date: Thu Apr 28 04:56:22 2016 New Revision: 267865 URL: http://llvm.org/viewvc/llvm-project?rev=267865&view=rev Log: Revert "[MSVC] PR27337: allow static_cast from private base to derived for WTL" This reverts commit r267534. Removed: cfe/trunk/test/SemaCXX/ext_ms_downcast

Re: [clang-tools-extra] r267828 - clang-tools-extra/test/clang-tidy/cppcoreguidelines-pro-type-member-init-cxx98.cpp: Appease ms targets with -fno-delayed-template-parsing.

2016-04-28 Thread Alexander Kornienko via cfe-commits
Thank you for the fix! We've actually tried adding -fdelayed-template-parsing and -fms-compatibility on linux, and the test passed. Not sure why it failed on Windows. Is there any other subtle difference? On Thu, Apr 28, 2016 at 2:39 AM, NAKAMURA Takumi via cfe-commits < cfe-commits@lists.llvm.org

Re: r267534 - [MSVC] PR27337: allow static_cast from private base to derived for WTL

2016-04-28 Thread Dmitry Polukhin via cfe-commits
Reverted in r267865. On Wed, Apr 27, 2016 at 10:31 PM, Dmitry Polukhin wrote: > So it seems that there is an agreement that Clang don't need this MSVC > "feature" so I'll revert my patch tomorrow when I get to the office. > > On Wed, Apr 27, 2016 at 10:09 PM, Stephan T. Lavavej < > s...@exchange

r267866 - [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)

2016-04-28 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Thu Apr 28 05:13:18 2016 New Revision: 267866 URL: http://llvm.org/viewvc/llvm-project?rev=267866&view=rev Log: [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg) Rework implementation of several MS pragmas that use internal stack: vtordisp, {bss|code|const|d

Re: r267866 - [MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)

2016-04-28 Thread Diana Picus via cfe-commits
Hi, I don't know if you've noticed, but this commit broke a lot of builds - e.g. http://lab.llvm.org:8011/builders/clang-cmake-thumbv7-a15/builds/11865. Regards, Diana On 28 April 2016 at 13:13, Denis Zobnin via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: dzobnin > Date: Thu Apr

[clang-tools-extra] r267868 - [include-fixer] Add an option to minimize include paths.

2016-04-28 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Apr 28 06:21:29 2016 New Revision: 267868 URL: http://llvm.org/viewvc/llvm-project?rev=267868&view=rev Log: [include-fixer] Add an option to minimize include paths. This will always pick the shortest possible path based on -I options. Based on the #include suggestion code fo

Re: [PATCH] D18953: [ms][dll] #26935 Defining a dllimport function should cause it to be exported

2016-04-28 Thread Andrew V. Tischenko via cfe-commits
avt77 added inline comments. Comment at: test/SemaCXX/dllimport.cpp:179 @@ -140,1 +178,3 @@ +template +int ExternVarTmplDeclInit = 1; majnemer wrote: > avt77 wrote: > > rnk wrote: > > > Can you check with MSVC 2015 update 2 actually does with definitions of >

r267869 - PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4

2016-04-28 Thread Silviu Baranga via cfe-commits
Author: sbaranga Date: Thu Apr 28 06:29:08 2016 New Revision: 267869 URL: http://llvm.org/viewvc/llvm-project?rev=267869&view=rev Log: PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4 Summary: According to the ACLE spec, "__ARM_FEATURE_FMA is defined to 1 if the hardware floating-

Re: [PATCH] D18963: PR27216: Only define __ARM_FEATURE_FMA when the target has VFPv4

2016-04-28 Thread silviu.bara...@arm.com via cfe-commits
sbaranga added a comment. Thanks, r267869! -Silviu http://reviews.llvm.org/D18963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267870 - Revert "[MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)"

2016-04-28 Thread Denis Zobnin via cfe-commits
Author: dzobnin Date: Thu Apr 28 06:32:10 2016 New Revision: 267870 URL: http://llvm.org/viewvc/llvm-project?rev=267870&view=rev Log: Revert "[MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)" This reverts commit r267866. Modified: cfe/trunk/include/clang/Sema/Sema.h cfe

Re: r267870 - Revert "[MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)"

2016-04-28 Thread Aaron Ballman via cfe-commits
On Thu, Apr 28, 2016 at 7:32 AM, Denis Zobnin via cfe-commits wrote: > Author: dzobnin > Date: Thu Apr 28 06:32:10 2016 > New Revision: 267870 > > URL: http://llvm.org/viewvc/llvm-project?rev=267870&view=rev > Log: > Revert "[MS] Improved implementation of MS stack pragmas (vtordisp, *_seg)" > > T

Re: [PATCH] D19586: Misleading Indentation check

2016-04-28 Thread Pauer Gergely via cfe-commits
Pajesz updated this revision to Diff 55389. Pajesz marked 5 inline comments as done. Pajesz added a comment. Both dangling else and the other check now ignore one-line if-else statements. Corrected other reviews as well. http://reviews.llvm.org/D19586 Files: clang-tidy/readability/CMakeLists

Re: [PATCH] D19647: [find-all-symbols] Save absolute file path instead of relative file path in SymbolInfo.

2016-04-28 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55398. hokein added a comment. Don't append absolute path to build directory. We will get the absolute file paths in some cases, such as STL. http://reviews.llvm.org/D19647 Files: include-fixer/find-all-symbols/FindAllSymbols.cpp Index: include-fixer/fin

[PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-04-28 Thread Andrey Bokhanko via cfe-commits
andreybokhanko created this revision. andreybokhanko added reviewers: rnk, thakis, majnemer. andreybokhanko added a subscriber: cfe-commits. This is exactly same patch as http://reviews.llvm.org/D18596 (already reviewed and LGTMed by rnk), with a couple of changes to fix PR27367: * A check for v

Re: r267744 - Revert r267691, it caused PR27535.

2016-04-28 Thread Vassil Vassilev via cfe-commits
Hi Nico, I have a fix. What is the right way of putting it in? Shall I revert the "revert" and commit the fix afterwards? Many thanks Vassil On 27/04/16 19:26, Nico Weber via cfe-commits wrote: Author: nico Date: Wed Apr 27 12:26:08 2016 New Revision: 267744 URL: http://llvm.org/viewvc/llvm-

r267872 - [OPENMP 4.5] Initial codegen for 'taskloop simd' directive.

2016-04-28 Thread Alexey Bataev via cfe-commits
Author: abataev Date: Thu Apr 28 07:14:51 2016 New Revision: 267872 URL: http://llvm.org/viewvc/llvm-project?rev=267872&view=rev Log: [OPENMP 4.5] Initial codegen for 'taskloop simd' directive. OpenMP 4.5 defines 'taskloop simd' directive, which is combined directive for 'taskloop' and 'simd' dir

r267871 - Revert r267784, r267824 and r267830.

2016-04-28 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Apr 28 07:14:47 2016 New Revision: 267871 URL: http://llvm.org/viewvc/llvm-project?rev=267871&view=rev Log: Revert r267784, r267824 and r267830. It makes compiler-rt tests fail if the gold plugin is enabled. Revert "Rework interface for bitset-using features to use a notion

Re: [PATCH] D14274: Add alloc_size attribute to clang

2016-04-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:753 @@ +752,3 @@ + let Args = [IntArgument<"ElemSizeParam">, IntArgument<"NumElemsParam", 1>]; + let TemplateDependent = 1; + let Documentation = [AllocSizeDocs]; I don't see any C++ t

r267876 - [Clang][BuiltIn][AVX512] Adding intrinsics fot align{d|q} and palignr instruction set

2016-04-28 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Thu Apr 28 07:47:30 2016 New Revision: 267876 URL: http://llvm.org/viewvc/llvm-project?rev=267876&view=rev Log: [Clang][BuiltIn][AVX512] Adding intrinsics fot align{d|q} and palignr instruction set Differential Revision: http://reviews.llvm.org/D19588 Modified: cfe/t

Re: [PATCH] D19403: Add loop pragma for Loop Distribution

2016-04-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: docs/LanguageExtensions.rst:2161 @@ +2160,3 @@ + + #pragma clang loop distribute(enable) + for(...) { It would be nice to use a more compelling example than an empty for loop. Also, it would be helpful if the use

Re: r267744 - Revert r267691, it caused PR27535.

2016-04-28 Thread Nico Weber via cfe-commits
I'd reland with the fix, and with an additional test that catches the problem this introduced. On Apr 28, 2016 8:16 AM, "Vassil Vassilev via cfe-commits" < cfe-commits@lists.llvm.org> wrote: > Hi Nico, > I have a fix. What is the right way of putting it in? Shall I revert the > "revert" and comm

r267877 - Fix spuriously dematerializing reference bug. Fixes PR26612.

2016-04-28 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Thu Apr 28 08:37:45 2016 New Revision: 267877 URL: http://llvm.org/viewvc/llvm-project?rev=267877&view=rev Log: Fix spuriously dematerializing reference bug. Fixes PR26612. Modified: cfe/trunk/docs/CMakeLists.txt Modified: cfe/trunk/docs/CMakeLists.txt URL: http://llvm.

[PATCH] D19658: [X86] Add -m[no-]x87 and -m[no-]80387 options to control FeatureX87

2016-04-28 Thread Andrey Turetskiy via cfe-commits
aturetsk created this revision. aturetsk added reviewers: rsmith, echristo. aturetsk added subscribers: cfe-commits, zinovy.nis. Herald added a subscriber: joker.eph. Add -m[no-]x87 and -m[no-]80387 options to control FeatureX87. -m[no-]80387 options is added for compatibility with GCC. http://re

r267879 - [SystemZ] Support Swift calling convention

2016-04-28 Thread Bryan Chan via cfe-commits
Author: bryanpkc Date: Thu Apr 28 08:56:43 2016 New Revision: 267879 URL: http://llvm.org/viewvc/llvm-project?rev=267879&view=rev Log: [SystemZ] Support Swift calling convention Summary: Port rL265324 to SystemZ to allow using the 'swiftcall' attribute on that architecture. Depends on D19414.

Re: [PATCH] D19432: [SystemZ] Support Swift calling convention

2016-04-28 Thread Bryan Chan via cfe-commits
bryanpkc added a comment. Thank you for the reviews. http://reviews.llvm.org/D19432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267880 - ARMv7k: define __ARM_PCS_VFP since we're hard-float.

2016-04-28 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Thu Apr 28 08:59:55 2016 New Revision: 267880 URL: http://llvm.org/viewvc/llvm-project?rev=267880&view=rev Log: ARMv7k: define __ARM_PCS_VFP since we're hard-float. It's a little debateable because we're not truly AAPCS, so I'm certainly not going to define __ARM_PCS, but

r267881 - Add accidentally dropped test to r267880.

2016-04-28 Thread Tim Northover via cfe-commits
Author: tnorthover Date: Thu Apr 28 09:01:49 2016 New Revision: 267881 URL: http://llvm.org/viewvc/llvm-project?rev=267881&view=rev Log: Add accidentally dropped test to r267880. Forgot "git add". Modified: cfe/trunk/test/Preprocessor/arm-target-features.c Modified: cfe/trunk/test/Preproces

Re: [PATCH] D19648: [include-fixer] Add Yaml database integration.

2016-04-28 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 55412. hokein added a comment. Fix a nit. http://reviews.llvm.org/D19648 Files: include-fixer/CMakeLists.txt include-fixer/YamlXrefsDB.cpp include-fixer/YamlXrefsDB.h include-fixer/tool/ClangIncludeFixer.cpp test/include-fixer/Inputs/fake_yaml_db.y

Re: [PATCH] D19648: [include-fixer] Add Yaml database integration.

2016-04-28 Thread Haojian Wu via cfe-commits
hokein marked an inline comment as done. hokein added a comment. http://reviews.llvm.org/D19648 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18823: Implementation of VlA of GNU C++ extension

2016-04-28 Thread Vladimir Yakovlev via cfe-commits
vbyakovl added a comment. @rsmith ping http://reviews.llvm.org/D18823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r267882 - Reland r267691 fixing PR27535.

2016-04-28 Thread Vassil Vassilev via cfe-commits
Author: vvassilev Date: Thu Apr 28 09:13:28 2016 New Revision: 267882 URL: http://llvm.org/viewvc/llvm-project?rev=267882&view=rev Log: Reland r267691 fixing PR27535. Added: cfe/trunk/test/Modules/Inputs/PR27401/ cfe/trunk/test/Modules/Inputs/PR27401/a.h cfe/trunk/test/Modules/Inputs/

Re: r267744 - Revert r267691, it caused PR27535.

2016-04-28 Thread Vassil Vassilev via cfe-commits
r267882. On 28/04/16 15:23, Nico Weber wrote: I'd reland with the fix, and with an additional test that catches the problem this introduced. On Apr 28, 2016 8:16 AM, "Vassil Vassilev via cfe-commits" mailto:cfe-commits@lists.llvm.org>> wrote: Hi Nico, I have a fix. What is the ri

r267883 - Fix build.

2016-04-28 Thread Manuel Klimek via cfe-commits
Author: klimek Date: Thu Apr 28 09:28:19 2016 New Revision: 267883 URL: http://llvm.org/viewvc/llvm-project?rev=267883&view=rev Log: Fix build. Modified: cfe/trunk/docs/CMakeLists.txt Modified: cfe/trunk/docs/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/CMakeLists.

Re: [PATCH] D19385: [scan-build] fix logic error warnings emitted on clang code base

2016-04-28 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/AffectedRangeManager.cpp:103 @@ -102,1 +102,3 @@ AnnotatedLine *Line, const AnnotatedLine *PreviousLine) { + assert(Line && "does not contain any line"); + klimek wrote: > Perhaps we should change this to

[PATCH] D19662: [OpenCL] Fix bug in mergeTypes which causes equivalent types treated as different.

2016-04-28 Thread Yaxun Liu via cfe-commits
yaxunl created this revision. yaxunl added a reviewer: Anastasia. yaxunl added subscribers: cfe-commits, tstellarAMD. When comparing unqualified types, canonical types should be used, otherwise equivalent types may be treated as different type. For example, typedef int int_t; generic int* a; gl

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Paul Robinson via cfe-commits
probinson added a subscriber: probinson. Comment at: test/Modules/getSourceDescriptor-crash.cpp:1 @@ +1,2 @@ +// RUN: %clang -I %S/Inputs/getSourceDescriptor-crash -c -g -fimplicit-module-maps %s + Should run %clang_cc1 not the driver. http://reviews.llvm.org/

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Adrian Prantl via cfe-commits
> On Apr 27, 2016, at 7:27 PM, Douglas Yung wrote: > > dyung added a comment. > > In http://reviews.llvm.org/D19048#414568, @aprantl wrote: > >> Thanks! >> >> Is there anything meaningful that could be CHECKed here? >> Usually a crash means that we previously had a code path without test >>

[PATCH] D19665: [ARM] Guard the declarations of f16 to f32 vcvt intrinsics in arm_neon.h by testing __ARM_FP

2016-04-28 Thread silviu.bara...@arm.com via cfe-commits
sbaranga created this revision. sbaranga added a reviewer: rengolin. sbaranga added subscribers: t.p.northover, cfe-commits. Herald added subscribers: rengolin, aemerson. Conversions between float and half are only available when the taraget has the half-precision extension. Guard these intrinsics

Re: [PATCH] D19412: [libcxx] Refactor pthread usage - II

2016-04-28 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 55425. rmaprath added a comment. Addressing review comments by @mclow.lists: - Switched to `_LIBCPP_ALWAYS_INLINE` from `_LIBCPP_INLINE_VISIBILITY` for all `__os_xxx` functions. I've left the remaining points (naming of `__os_support` header and initializ

[PATCH] D19666: [ubsan] Add -fubsan-strip-path-components=N

2016-04-28 Thread Filipe Cabecinhas via cfe-commits
filcab created this revision. filcab added a reviewer: rsmith. filcab added a subscriber: cfe-commits. This option allows the user to control how much of the file name is emitted by UBSan. Tuning this option allows one to save space in the resulting binary, which is helpful for restricted executio

Re: [PATCH] D19403: Add loop pragma for Loop Distribution

2016-04-28 Thread Adam Nemet via cfe-commits
anemet added inline comments. Comment at: docs/LanguageExtensions.rst:2161 @@ +2160,3 @@ + + #pragma clang loop distribute(enable) + for(...) { aaron.ballman wrote: > It would be nice to use a more compelling example than an empty for loop. > Also, it would be

Re: [PATCH] D19658: [X86] Add -m[no-]x87 and -m[no-]80387 options to control FeatureX87

2016-04-28 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a subscriber: bruno. bruno added a reviewer: bruno. bruno added a comment. Hi Andrey, What about the code / tests that check for this flags? http://reviews.llvm.org/D19658 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

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

2016-04-28 Thread guibufolo+l...@gmail.com via cfe-commits
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

[PATCH] D19667: [ubsan] Minimize size of data for type_mismatch

2016-04-28 Thread Filipe Cabecinhas via cfe-commits
filcab created this revision. filcab added reviewers: kcc, samsonov, rsmith. filcab added a subscriber: cfe-commits. This patch makes the type_mismatch static data 7 bytes smaller (and it ends up being 16 bytes smaller due to alignment restrictions, at least on some x86-64 environments). Currentl

Re: [PATCH] D10834: Added functions to retrieve information about whether a vardecl is local in libclang and its python bindings.

2016-04-28 Thread guibufolo+l...@gmail.com via cfe-commits
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] D19662: [OpenCL] Fix bug in mergeTypes which causes equivalent types treated as different.

2016-04-28 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/CodeGenOpenCL/address-spaces-conversions.cl:52 @@ -51,3 +51,3 @@ generic void *var_gen_v; - + var_gen = var_gen ? var_gen : var_gen2; // operands of the same addr spaces and the same type Inserting a white

Re: [PATCH] D19654: PR27132: Proper mangling for __unaligned qualifier (now with PR27367 fixed)

2016-04-28 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: lib/AST/MicrosoftMangle.cpp:1446-1451 @@ -1445,5 +1445,8 @@ Out << 'E'; + if (!PointeeType.isNull() && PointeeType.getLocalQualifiers().hasUnaligned()) +Out << 'F'; + if (HasRestrict) Out << 'I'; } H

Re: [PATCH] D19667: [ubsan] Minimize size of data for type_mismatch

2016-04-28 Thread Ben Craig via cfe-commits
bcraig added a subscriber: bcraig. bcraig added a comment. Is there an associated patch on the consuming side for this data? http://reviews.llvm.org/D19667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

Re: [PATCH] D19412: [libcxx] Refactor pthread usage - II

2016-04-28 Thread Ben Craig via cfe-commits
bcraig added a comment. In http://reviews.llvm.org/D19412#414374, @rmaprath wrote: > > On a bikeshed note: is `<__os_support>` the right name? Or should it be > > something like `<__thread>` or `<__threading_support>`? > > > I went with `__os_support` in case if we'd want to group further exte

r267903 - Re-apply r267784, r267824 and r267830.

2016-04-28 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Thu Apr 28 12:09:37 2016 New Revision: 267903 URL: http://llvm.org/viewvc/llvm-project?rev=267903&view=rev Log: Re-apply r267784, r267824 and r267830. I have updated the compiler-rt tests. Added: cfe/trunk/docs/LTOVisibility.rst cfe/trunk/test/CodeGenCXX/bitset-inferenc

Re: [PATCH] D19484: [OpenCL] Add supported OpenCL extensions to target info.

2016-04-28 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Could you export a full diff please? There are too many small bits here to review! Thanks! Comment at: test/SemaOpenCL/extensions.cl:2 @@ +1,3 @@ +// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-only +// RUN: %clang_cc1 %s -verify -pedantic -fsyntax-

Re: [PATCH] D16298: Improve test coverage of -Wdouble-promotion

2016-04-28 Thread Robert Lougher via cfe-commits
rob.lougher added a comment. Ping. http://reviews.llvm.org/D16298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19662: [OpenCL] Fix bug in mergeTypes which causes equivalent types treated as different.

2016-04-28 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 55438. yaxunl added a comment. Removed accidentally inserted blanks. http://reviews.llvm.org/D19662 Files: lib/AST/ASTContext.cpp test/CodeGenOpenCL/address-spaces-conversions.cl Index: test/CodeGenOpenCL/address-spaces-conversions.cl ==

r267904 - Debug info: Apply an artificial debug location to __cyg_profile_func.* calls.

2016-04-28 Thread Adrian Prantl via cfe-commits
Author: adrian Date: Thu Apr 28 12:21:56 2016 New Revision: 267904 URL: http://llvm.org/viewvc/llvm-project?rev=267904&view=rev Log: Debug info: Apply an artificial debug location to __cyg_profile_func.* calls. The LLVM Verifier expects all inlinable calls in debuggable functions to have a locatio

Re: [PATCH] D19662: [OpenCL] Fix bug in mergeTypes which causes equivalent types treated as different.

2016-04-28 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! http://reviews.llvm.org/D19662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

r267906 - [OpenCL] Fix bug in mergeTypes which causes equivalent types treated as different.

2016-04-28 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Thu Apr 28 12:34:57 2016 New Revision: 267906 URL: http://llvm.org/viewvc/llvm-project?rev=267906&view=rev Log: [OpenCL] Fix bug in mergeTypes which causes equivalent types treated as different. When comparing unqualified types, canonical types should be used, otherwise equ

Re: [PATCH] D19403: Add loop pragma for Loop Distribution

2016-04-28 Thread Adam Nemet via cfe-commits
anemet updated this revision to Diff 55439. anemet added a comment. Added more context to the documentation per Aaron's comments. http://reviews.llvm.org/D19403 Files: docs/LanguageExtensions.rst include/clang/Basic/Attr.td include/clang/Basic/DiagnosticParseKinds.td lib/CodeGen/CGLoopI

Re: [PATCH] D19662: [OpenCL] Fix bug in mergeTypes which causes equivalent types treated as different.

2016-04-28 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL267906: [OpenCL] Fix bug in mergeTypes which causes equivalent types treated as… (authored by yaxunl). Changed prior to commit: http://reviews.llvm.org/D19662?vs=55438&id=55440#toc Repository: rL LLV

Re: [PATCH] D19667: [ubsan] Minimize size of data for type_mismatch

2016-04-28 Thread Filipe Cabecinhas via cfe-commits
filcab added a comment. http://reviews.llvm.org/D19668 is the compiler-rt side of the patch. http://reviews.llvm.org/D19667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D19672: [clang-tidy] cppcoreguidelines-pro-type-member-init should not complain about static variables

2016-04-28 Thread Alexander Kornienko via cfe-commits
alexfh created this revision. alexfh added a reviewer: sbenza. alexfh added subscribers: cfe-commits, flx, michael_miller. Variables with static storage duration are zero-initialized per [stmt.dcl]p4 and [basic.start.init]p2. http://reviews.llvm.org/D19672 Files: clang-tidy/cppcoreguidelines/P

Re: [PATCH] D19403: Add loop pragma for Loop Distribution

2016-04-28 Thread Adam Nemet via cfe-commits
anemet updated this revision to Diff 55445. anemet added a comment. A little tweak to the example to make it clear that 'i' is the induction variable http://reviews.llvm.org/D19403 Files: docs/LanguageExtensions.rst include/clang/Basic/Attr.td include/clang/Basic/DiagnosticParseKinds.td

Re: [PATCH] D19412: [libcxx] Refactor pthread usage - II

2016-04-28 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 55443. rmaprath added a comment. Renamed `__os_support` to `__threading_support` as suggested by @mclow.lists and @bcraig. I've left the namespace name `__libcpp_os_support` untouched, can change it to `__libcpp_threading_support` if the latter is preferred

r267909 - Make the test exercise all paths modified in r267746.

2016-04-28 Thread Paul Robinson via cfe-commits
Author: probinson Date: Thu Apr 28 12:52:28 2016 New Revision: 267909 URL: http://llvm.org/viewvc/llvm-project?rev=267909&view=rev Log: Make the test exercise all paths modified in r267746. Modified: cfe/trunk/test/CodeGenCXX/debug-info-nodebug.cpp Modified: cfe/trunk/test/CodeGenCXX/debug-i

Re: [PATCH] D19412: [libcxx] Refactor pthread usage - II

2016-04-28 Thread Ben Craig via cfe-commits
bcraig added a comment. LGTM. You'll still need to wait for one of the other reviewers though (probably @mclow.lists ) http://reviews.llvm.org/D19412 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

Re: [PATCH] D16298: Improve test coverage of -Wdouble-promotion

2016-04-28 Thread George Burgess IV via cfe-commits
george.burgess.iv added a subscriber: george.burgess.iv. george.burgess.iv accepted this revision. george.burgess.iv added a reviewer: george.burgess.iv. george.burgess.iv added a comment. This revision is now accepted and ready to land. Hey -- I'm really sorry about the latency on this; I recentl

r267914 - Fix use of uninitialized value exposed by r267802. Accessors of an invalid

2016-04-28 Thread Richard Smith via cfe-commits
Author: rsmith Date: Thu Apr 28 13:26:32 2016 New Revision: 267914 URL: http://llvm.org/viewvc/llvm-project?rev=267914&view=rev Log: Fix use of uninitialized value exposed by r267802. Accessors of an invalid PresumedLoc should not be called. Modified: cfe/trunk/include/clang/Basic/SourceLocat

Re: [PATCH] D19665: [ARM] Guard the declarations of f16 to f32 vcvt intrinsics in arm_neon.h by testing __ARM_FP

2016-04-28 Thread Tim Northover via cfe-commits
t.p.northover added a comment. Couple of issues, as far as I can see: Comment at: include/clang/Basic/arm_neon.td:710-711 @@ +709,4 @@ + def VCVT_F32_F16 : SInst<"vcvt_f32_f16", "wd", "h">; + def VCVT_HIGH_F16_F32 : SOpInst<"vcvt_high_f16", "hmj", "Hf", OP_VCVT_NA_HI_F16>; +

Re: [PATCH] D19666: [ubsan] Add -fubsan-strip-path-components=N

2016-04-28 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: include/clang/Driver/Options.td:1102 @@ -1101,1 +1101,3 @@ def Wlarge_by_value_copy_EQ : Joined<["-"], "Wlarge-by-value-copy=">, Flags<[CC1Option]>; +def fubsan_strip_path_components_EQ : Joined<["-"], "fubsan-strip-path-components=">,

Re: [PATCH] D19175: Fix for PR27015 (variable template initialized with a generic lambda expression)

2016-04-28 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 55453. ahatanak added a comment. Use ParseScopeFlags to clear the TemplateParamScope rather than calling setFlags directly. I tried calling Init(AnyParent, F) is Scope::setFlags, but it caused a lot of test cases to fail, which I'm currently investigating.

Re: [PATCH] D18136: boost-use-to-string check

2016-04-28 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. Looks good with a couple of nits. Please submit this as a single patch, there's no need to add an empty "boost" module separately. Comment at: clang-tidy/boost/UseToStringChe

Re: [PATCH] D19672: [clang-tidy] cppcoreguidelines-pro-type-member-init should not complain about static variables

2016-04-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:284 @@ -283,2 +283,3 @@ varDecl(isDefinition(), HasDefaultConstructor, + hasAutomaticStorageDuration(), hasType(recordDecl(has(fieldDecl()),

Re: [PATCH] D19672: [clang-tidy] cppcoreguidelines-pro-type-member-init should not complain about static variables

2016-04-28 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:284 @@ -283,2 +283,3 @@ varDecl(isDefinition(), HasDefaultConstructor, + hasAutomaticStorageDuration(), hasType(recordDecl(has(fieldDecl()), ---

Re: [PATCH] D19672: [clang-tidy] cppcoreguidelines-pro-type-member-init should not complain about static variables

2016-04-28 Thread Michael Miller via cfe-commits
michael_miller added inline comments. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:284 @@ -283,2 +283,3 @@ varDecl(isDefinition(), HasDefaultConstructor, + hasAutomaticStorageDuration(), hasType(recordDecl(has(fieldDecl()),

Re: [PATCH] D19672: [clang-tidy] cppcoreguidelines-pro-type-member-init should not complain about static variables

2016-04-28 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:284 @@ -283,2 +283,3 @@ varDecl(isDefinition(), HasDefaultConstructor, + hasAutomaticStorageDuration(), hasType(recordDecl(has(fieldDecl()),

[PATCH] D19678: Annotated-source optimization reports (a.k.a. "listing" files)

2016-04-28 Thread Hal Finkel via cfe-commits
hfinkel created this revision. hfinkel added reviewers: rsmith, chandlerc, rcox2, jmolloy, anemet, silviu.baranga, mzolotukhin, spatel, rengolin, delena, Carrot, congh, echristo. hfinkel added a subscriber: cfe-commits. Herald added subscribers: joker.eph, mcrosier. This patch implements support

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Douglas Yung via cfe-commits
dyung updated this revision to Diff 55457. dyung added a comment. Modified the test to emit llvm assembly and check for the presence of a DIModule in the output. http://reviews.llvm.org/D19048 Files: test/Modules/Inputs/getSourceDescriptor-crash/h1.h test/Modules/Inputs/getSourceDescriptor

Re: r267904 - Debug info: Apply an artificial debug location to __cyg_profile_func.* calls.

2016-04-28 Thread David Blaikie via cfe-commits
Should these have no/artificial location? It seems like perhaps they should have the same location as the scope they're for? (well, the beginning or end of that scope, respectively, etc) On Thu, Apr 28, 2016 at 10:21 AM, Adrian Prantl via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author:

[PATCH] D19679: Method pool in modules: sync up out of date selectors before writing the module

2016-04-28 Thread Manman Ren via cfe-commits
manmanren created this revision. manmanren added a reviewer: doug.gregor. manmanren added a subscriber: cfe-commits. Method Pool in modules: we make sure that if a module contains an entry for a selector, the entry should be complete, containing everything introduced by that module and all modul

Re: [PATCH] D19048: Test for a module related crash in CGDebugInfo.cpp

2016-04-28 Thread Douglas Yung via cfe-commits
dyung updated this revision to Diff 55460. dyung added a comment. Change test to not use the driver. http://reviews.llvm.org/D19048 Files: test/Modules/Inputs/getSourceDescriptor-crash/h1.h test/Modules/Inputs/getSourceDescriptor-crash/module.modulemap test/Modules/getSourceDescriptor-cra

Re: [PATCH] D19403: Add loop pragma for Loop Distribution

2016-04-28 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, but you should wait in case @rsmith has feedback. http://reviews.llvm.org/D19403 ___ cfe-commits mailing list cfe-commits@lis

r267924 - [analyzer] Add path note for localizability checker.

2016-04-28 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Apr 28 14:44:40 2016 New Revision: 267924 URL: http://llvm.org/viewvc/llvm-project?rev=267924&view=rev Log: [analyzer] Add path note for localizability checker. Add a path note indicating the location of the non-localized string literal in NonLocalizedStringChecker. r

Re: r267904 - Debug info: Apply an artificial debug location to __cyg_profile_func.* calls.

2016-04-28 Thread Adrian Prantl via cfe-commits
> On Apr 28, 2016, at 12:34 PM, David Blaikie wrote: > > Should these have no/artificial location? It seems like perhaps they should > have the same location as the scope they're for? (well, the beginning or end > of that scope, respectively, etc) While there is usually a single source locati

Re: [PATCH] D19678: Annotated-source optimization reports (a.k.a. "listing" files)

2016-04-28 Thread John McCall via cfe-commits
rjmccall added a comment. I see what you're going for with "listing file", but I like ICC's option name much better, or at least something along those lines. http://reviews.llvm.org/D19678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

Re: r267904 - Debug info: Apply an artificial debug location to __cyg_profile_func.* calls.

2016-04-28 Thread David Blaikie via cfe-commits
On Thu, Apr 28, 2016 at 12:50 PM, Adrian Prantl wrote: > > On Apr 28, 2016, at 12:34 PM, David Blaikie wrote: > > Should these have no/artificial location? It seems like perhaps they > should have the same location as the scope they're for? (well, the > beginning or end of that scope, respective

Re: [PATCH] D19412: [libcxx] Refactor pthread usage - II

2016-04-28 Thread Eric Fiselier via cfe-commits
EricWF added a comment. The patch looks good for the most part. Nit picking I would rather have `__libcpp_thread_foo` instead of `__libcpp_os_support::__os_thread_foo`. IMO the namespace is undeeded. @mclow.lists can you weigh in on this? Comment at: include/__mutex_base:43 @@

Re: [PATCH] D19672: [clang-tidy] cppcoreguidelines-pro-type-member-init should not complain about static variables

2016-04-28 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:284 @@ -283,2 +283,3 @@ varDecl(isDefinition(), HasDefaultConstructor, + hasAutomaticStorageDuration(), hasType(recordDecl(has(fieldDecl()), ---

Re: [PATCH] D19678: Annotated-source optimization reports (a.k.a. "listing" files)

2016-04-28 Thread Hal Finkel via cfe-commits
hfinkel added a comment. > My primary inspiration here is the reports generated by Cray's tools > (http://docs.cray.com/books/S-2496-4101/html-S-2496-4101/z1112823641oswald.html). http://docs.cray.com/books/S-2315-52/html-S-2315-52/fixedds0jdeh38.html is a better link. http://reviews.llvm.or

Re: [PATCH] D19672: [clang-tidy] cppcoreguidelines-pro-type-member-init should not complain about static variables

2016-04-28 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. This revision is now accepted and ready to land. Comment at: clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp:284 @@ -283,2 +283,3 @@ varDecl(isDefinition(), HasDefaultConstructor, + hasAutomaticStorageDuration(),

  1   2   3   >