Re: [PATCH] D21134: clang-tidy: new check readability-misplaced-array-index

2016-06-08 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Please mention this check in docs/ReleaseNotes.rst (in alphabetical order). Repository: rL LLVM http://reviews.llvm.org/D21134 ___ cfe-commits mailing list

Re: [PATCH] D21113: Add support for case-insensitive header lookup

2016-06-08 Thread Hans Wennborg via cfe-commits
hans updated this revision to Diff 60054. hans marked 2 inline comments as done. hans added a comment. Addressing Saleem's comments, and renaming the flag to -fcase-insensitive-paths, since this doesn't apply just to includes, but anything that goes through vfs, including the main source

Re: [PATCH] D21132: [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Benjamin Kramer via cfe-commits
bkramer accepted this revision. bkramer added a comment. This revision is now accepted and ready to land. Ok, let's try this. Maybe it will solve our path problems once and for all. ONCE AND FOR ALL. http://reviews.llvm.org/D21132 ___ cfe-commits

[libcxx] r272150 - Patch ready for #2436

2016-06-08 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed Jun 8 09:54:35 2016 New Revision: 272150 URL: http://llvm.org/viewvc/llvm-project?rev=272150=rev Log: Patch ready for #2436 Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL:

r272153 - [OpenCL] Fix __builtin_astype for vec3 types.

2016-06-08 Thread Yaxun Liu via cfe-commits
Author: yaxunl Date: Wed Jun 8 10:11:21 2016 New Revision: 272153 URL: http://llvm.org/viewvc/llvm-project?rev=272153=rev Log: [OpenCL] Fix __builtin_astype for vec3 types. __builtin_astype does not generate correct LLVM IR for vec3 types. This patch inserts bitcasts to/from vec4 when

Re: [PATCH] D21132: [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272152: [include-fixer] Keep dot dot in SymbolInfo file paths. (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D21132?vs=60041=60042#toc Repository: rL LLVM

Re: [PATCH] D20732: Don't use static variables in LambdaCapture

2016-06-08 Thread John Brawn via cfe-commits
john.brawn added a comment. In http://reviews.llvm.org/D20732#452055, @faisalv wrote: > I'm assuming you've given some thought to any existing pathological code that > might break if the actual compile-time alignment of Decl itself is changed > (since currently it seems to be that the

Re: [PATCH] D20948: [OpenCL] Fix access qualifiers handling for typedefs

2016-06-08 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaType.cpp:6494 @@ +6493,3 @@ +default: + assert(0 && "unable to find corresponding image type"); +} Please start the assert message from the upper case and finish with .

[clang-tools-extra] r272152 - [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Haojian Wu via cfe-commits
Author: hokein Date: Wed Jun 8 10:10:18 2016 New Revision: 272152 URL: http://llvm.org/viewvc/llvm-project?rev=272152=rev Log: [include-fixer] Keep dot dot in SymbolInfo file paths. Summary: Currently, removing dot dot in header's path doesn't make include-fixer minimize path correctly in some

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-08 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/readability/IdentifierNamingCheck.cpp:142 @@ +141,3 @@ +SourceManager (PP->getSourceManager()); +if (!SM.isInMainFile(MacroNameTok.getLocation())) + return; I'm not sure the check currently refuses

Re: [clang-tools-extra] r272152 - [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Benjamin Kramer via cfe-commits
Turns out that this is causing weirdness when path minimization is disabled, we will insert includes with .. in that case. I don't know how to solve that, maybe still clean up the path in the fixer if minimization is off? On Wed, Jun 8, 2016 at 5:10 PM, Haojian Wu via cfe-commits

Re: [PATCH] D20933: Preallocate ExplodedNode hash table

2016-06-08 Thread Anna Zaks via cfe-commits
zaks.anna added a comment. > For the pile of LLVM projects that I am currently building (llvm, clang, > libcxx, libcxxabi), 18.9% of all analyzed > functions hit the maximum step count. For the previously discussed large .C > file, 37% of the analyzed functions hit the maximum step count.

Virtual patch: `svn mv lib/Headers/Intrin.h lib/Headers/intrin.h`

2016-06-08 Thread Nico Weber via cfe-commits
It looks like we're starting to be more careful about header case. MSVC's intrin.h is called intrin.h with a lower-case 'i'; ours starts with an upper-case 'I' for no good reason. It looks like file-only renames work fine as of svn 1.7 without any workarounds (

[clang-tools-extra] r272155 - [clang-tidy] misc-argument-comment: don't bail out when an argument is a macro expansion (e.g. NULL).

2016-06-08 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Jun 8 10:27:46 2016 New Revision: 272155 URL: http://llvm.org/viewvc/llvm-project?rev=272155=rev Log: [clang-tidy] misc-argument-comment: don't bail out when an argument is a macro expansion (e.g. NULL). Add CHECK-FIX tests. Modified:

r272156 - Prune away some unused using decls. NFC.

2016-06-08 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Wed Jun 8 10:34:36 2016 New Revision: 272156 URL: http://llvm.org/viewvc/llvm-project?rev=272156=rev Log: Prune away some unused using decls. NFC. Found by clang's misc-unused-using-decls. Modified: cfe/trunk/lib/StaticAnalyzer/Checkers/MallocOverflowSecurityChecker.cpp

Re: [PATCH] D20979: [OpenCL] Use function attribute/metadata to represent kernel attributes

2016-06-08 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Looking good generally, I am just not sure about mixing two different representations. http://reviews.llvm.org/D20979 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20133: [OpenCL] Fix __builtin_astype for vec3 types.

2016-06-08 Thread Yaxun Liu via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272153: [OpenCL] Fix __builtin_astype for vec3 types. (authored by yaxunl). Changed prior to commit: http://reviews.llvm.org/D20133?vs=59630=60043#toc Repository: rL LLVM

r272149 - [Sparc] Complex return value ABI compliance.

2016-06-08 Thread Chris Dewhurst via cfe-commits
Author: lerochris Date: Wed Jun 8 09:47:25 2016 New Revision: 272149 URL: http://llvm.org/viewvc/llvm-project?rev=272149=rev Log: [Sparc] Complex return value ABI compliance. According to the Sparc V8 ABI, complex numbers should be passed and returned as pairs of registers:

Re: [PATCH] D21132: [include-fixer] Keep dot dot in SymbolInfo file paths.

2016-06-08 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 60041. hokein added a comment. Rebase. http://reviews.llvm.org/D21132 Files: include-fixer/find-all-symbols/PathConfig.cpp include-fixer/find-all-symbols/tool/FindAllSymbolsMain.cpp test/include-fixer/include_path.cpp

r272148 - [Sparc] Complex return value ABI compliance.

2016-06-08 Thread Chris Dewhurst via cfe-commits
Author: lerochris Date: Wed Jun 8 09:46:05 2016 New Revision: 272148 URL: http://llvm.org/viewvc/llvm-project?rev=272148=rev Log: [Sparc] Complex return value ABI compliance. According to the Sparc V8 ABI, complex numbers should be passed and returned as pairs of registers:

Re: [PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

2016-06-08 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: test/Headers/opencl-c-header.cl:50 @@ +49,3 @@ +// RUN: %clang_cc1 -cc1 -triple spir-unknown-unknown -emit-llvm -o - -finclude-default-header -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -fdisable-module-hash %s |

r272159 - [Sema] Don't permit catching variably modified types

2016-06-08 Thread David Majnemer via cfe-commits
Author: majnemer Date: Wed Jun 8 11:05:07 2016 New Revision: 272159 URL: http://llvm.org/viewvc/llvm-project?rev=272159=rev Log: [Sema] Don't permit catching variably modified types Variably modified types shouldn't be permitted in catch clauses. This fixes PR28047. Modified:

[clang-tools-extra] r272151 - [include-fixer] explicitly set minimize-paths in test.

2016-06-08 Thread Eric Liu via cfe-commits
Author: ioeric Date: Wed Jun 8 09:57:43 2016 New Revision: 272151 URL: http://llvm.org/viewvc/llvm-project?rev=272151=rev Log: [include-fixer] explicitly set minimize-paths in test. Modified: clang-tools-extra/trunk/test/include-fixer/include_path.cpp Modified:

[PATCH] D21141: [DebugInfo] Add calling conventions to DISubroutineType

2016-06-08 Thread Reid Kleckner via cfe-commits
rnk created this revision. rnk added reviewers: aprantl, dblaikie. rnk added a subscriber: cfe-commits. rnk added a dependency: D21114: [DebugInfo] Add calling convention support for DWARF and CodeView. This should have been a very simple change, but it was greatly complicated by the

Re: [PATCH] D21113: Add support for case-insensitive header lookup

2016-06-08 Thread Nico Weber via cfe-commits
thakis added a comment. For performance: Can you check how build times for some large target in Chromium on Linux targeting Windows compares with this vs having the sdk in a fat mount? That would give us some data. The discussion in the include case warning thread sounds like MS might update

Re: [PATCH] D19843: Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Eric Niebler via cfe-commits
eric_niebler reopened this revision. eric_niebler added a subscriber: bogner. eric_niebler added a comment. This revision is now accepted and ready to land. Reopening. I would like some eyes on the updated patch before we merge. @rsmith Would you prefer this (and http://reviews.llvm.org/D19842)

Re: r271708 - Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Nico Weber via cfe-commits
On Wed, Jun 8, 2016 at 1:56 PM, Eric Niebler wrote: > (adding back cfe-commits, answers inline) > > On 6/8/16, 10:11 AM, "tha...@google.com on behalf of Nico Weber" < > tha...@google.com on behalf of tha...@chromium.org> wrote: > >Sounds like "commit to the current file case and

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-08 Thread James Reynolds via cfe-commits
JamesReynolds updated this revision to Diff 60058. JamesReynolds marked an inline comment as not done. JamesReynolds added a comment. Missed one modification in last update. http://reviews.llvm.org/D21020 Files: clang-tidy/readability/IdentifierNamingCheck.cpp

Re: [PATCH] D20748: Handle recursion in LLVMIRGeneration Timer

2016-06-08 Thread Vedant Kumar via cfe-commits
vsk added a comment. Ping, any updates on this patch? http://reviews.llvm.org/D20748 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20681: Add target-specific pre-linking passes to Clang

2016-06-08 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In http://reviews.llvm.org/D20681#450073, @yaxunl wrote: > In http://reviews.llvm.org/D20681#448443, @Anastasia wrote: > > > Do you think we could add any test for this change? > > > We have prelinking passes in amdgpu backend but it requires the llvm change > to be

Re: Virtual patch: `svn mv lib/Headers/Intrin.h lib/Headers/intrin.h`

2016-06-08 Thread Nico Weber via cfe-commits
On Wed, Jun 8, 2016 at 1:27 PM, Hans Wennborg wrote: > On Wed, Jun 8, 2016 at 10:20 AM, Nico Weber wrote: > > It looks like we're starting to be more careful about header case. MSVC's > > intrin.h is called intrin.h with a lower-case 'i'; ours starts with

r272185 - Specify target in lifetime-asan test.

2016-06-08 Thread Vitaly Buka via cfe-commits
Author: vitalybuka Date: Wed Jun 8 13:18:08 2016 New Revision: 272185 URL: http://llvm.org/viewvc/llvm-project?rev=272185=rev Log: Specify target in lifetime-asan test. Summary: Some target platforms -fsanitize=address. Reviewers: pcc, eugenis Subscribers: cfe-commits, christof, chapuni,

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-08 Thread James Reynolds via cfe-commits
JamesReynolds added inline comments. Comment at: clang-tidy/readability/IdentifierNamingCheck.h:89 @@ +88,3 @@ + + typedef std::pair NamingCheckId; + I think I thought that this wouldn't get picked up by the specialization machinery

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-08 Thread James Reynolds via cfe-commits
JamesReynolds marked an inline comment as done. JamesReynolds added a comment. http://reviews.llvm.org/D21020 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-08 Thread James Reynolds via cfe-commits
JamesReynolds marked an inline comment as done. JamesReynolds added a comment. http://reviews.llvm.org/D21020 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-08 Thread James Reynolds via cfe-commits
JamesReynolds updated this revision to Diff 60056. JamesReynolds marked 5 inline comments as done. JamesReynolds added a comment. Applied suggested code changes. http://reviews.llvm.org/D21020 Files: clang-tidy/readability/IdentifierNamingCheck.cpp

[PATCH] D21145: [Sema] Fix crash on valid where instantiation of lambda cannot access type of 'this'

2016-06-08 Thread Erik Pilkington via cfe-commits
erik.pilkington created this revision. erik.pilkington added reviewers: faisalv, rsmith, ahatanak. erik.pilkington added a subscriber: cfe-commits. Clang crashes during the instantiation of a lambda call operator where a `VarDecl` is initialized with an expression that requires the `this` type

Re: [PATCH] D21141: [DebugInfo] Add calling conventions to DISubroutineType

2016-06-08 Thread Reid Kleckner via cfe-commits
rnk added a comment. In http://reviews.llvm.org/D21141#452517, @aprantl wrote: > Assuming that we could usually get the calling convention from the Function — > what's the motivation for emitting the calling convention of a subprogram > that has been optimized away? I don't have any

Re: [PATCH] D21113: Add support for case-insensitive header lookup

2016-06-08 Thread Hans Wennborg via cfe-commits
hans added a comment. In http://reviews.llvm.org/D21113#452431, @thakis wrote: > For performance: Can you check how build times for some large target in > Chromium on Linux targeting Windows compares with this vs having the sdk in a > fat mount? That would give us some data. I measured

Re: [PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

2016-06-08 Thread Yaxun Liu via cfe-commits
yaxunl marked 5 inline comments as done. Comment at: test/Headers/opencl-c-header.cl:50 @@ +49,3 @@ + +// === +// Compile for OpenCL 1.0 for the second time. The module should not be re-created. I changed the module to read only. If Clang tries to create a new

Re: [PATCH] D21113: Add support for case-insensitive header lookup

2016-06-08 Thread Hans Wennborg via cfe-commits
hans added a comment. In http://reviews.llvm.org/D21113#452558, @thakis wrote: > Can you try building a few more files? Say, v8_base? Well, that was depressing: Putting the sdk on a vfat fs: real2m26.077s user68m31.476s sys 1m25.702s Using the flag: real9m5.179s

Re: Virtual patch: `svn mv lib/Headers/Intrin.h lib/Headers/intrin.h`

2016-06-08 Thread Hans Wennborg via cfe-commits
On Wed, Jun 8, 2016 at 10:20 AM, Nico Weber wrote: > It looks like we're starting to be more careful about header case. MSVC's > intrin.h is called intrin.h with a lower-case 'i'; ours starts with an > upper-case 'I' for no good reason. > > It looks like file-only renames

Re: [PATCH] D20880: [Coverage] Push a region and propagate counts through try blocks

2016-06-08 Thread Vedant Kumar via cfe-commits
vsk added a comment. Ping. http://reviews.llvm.org/D20880 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: r271708 - Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Eric Niebler via cfe-commits
On 6/8/16, 11:12 AM, "tha...@google.com on behalf of Nico Weber" wrote: >On Wed, Jun 8, 2016 at 1:56 PM, Eric Niebler  wrote: >> >>(adding back cfe-commits, answers inline) >> >>On 6/8/16, 10:11 AM, "tha...@google.com on behalf

RE: r269670 - [OpenCL] Add supported OpenCL extensions to target info.

2016-06-08 Thread Anastasia Stulova via cfe-commits
> I still think it would be good if the extensions that only affect the > host-side are removed, in particular cl_khr_icd and cl_khr_terminate_context. > We have a runtime that indirectly includes both Clang’s OpenCLExtensions.def > and the Khronos extension header, and we run into problems

Re: [PATCH] D21117: Specify target in lifetime-asan test.

2016-06-08 Thread Vitaly Buka via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272185: Specify target in lifetime-asan test. (authored by vitalybuka). Changed prior to commit: http://reviews.llvm.org/D21117?vs=59987=60071#toc Repository: rL LLVM http://reviews.llvm.org/D21117

Re: [PATCH] D21113: Add support for case-insensitive header lookup

2016-06-08 Thread Nico Weber via cfe-commits
thakis added a comment. Can you try building a few more files? Say, v8_base? http://reviews.llvm.org/D21113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20933: Preallocate ExplodedNode hash table

2016-06-08 Thread Ben Craig via cfe-commits
bcraig added a comment. In http://reviews.llvm.org/D20933#452352, @zaks.anna wrote: > > For the pile of LLVM projects that I am currently building (llvm, clang, > > libcxx, libcxxabi), 18.9% of all analyzed > > > functions hit the maximum step count. For the previously discussed large > > .C

Re: [PATCH] D21141: [DebugInfo] Add calling conventions to DISubroutineType

2016-06-08 Thread Adrian Prantl via cfe-commits
aprantl accepted this revision. aprantl added a comment. This revision is now accepted and ready to land. Function pointers make sense to me, thanks! LGTM Comment at: lib/CodeGen/CGDebugInfo.cpp:834 @@ -833,1 +833,3 @@ +static unsigned getDwarfCC(CallingConv CC) { + switch

Re: [PATCH] D20444: [OpenCL] Include opencl-c.h by default as a clang module

2016-06-08 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 60078. yaxunl marked 2 inline comments as done. yaxunl added a comment. Modified the test for module as Anastasia suggested. http://reviews.llvm.org/D20444 Files: include/clang/Basic/DiagnosticSemaKinds.td include/clang/Basic/LangOptions.def

Re: [PATCH] D20979: [OpenCL] Use function attribute/metadata to represent kernel attributes

2016-06-08 Thread Yaxun Liu via cfe-commits
yaxunl added a comment. In http://reviews.llvm.org/D20979#452463, @Anastasia wrote: > Looking good generally, I am just not sure about mixing two different > representations. If we choose only one form of representation, would you suggest to use function metadata or function attribute?

Re: [PATCH] D20681: Add target-specific pre-linking passes to Clang

2016-06-08 Thread Yaxun Liu via cfe-commits
yaxunl marked 2 inline comments as done. yaxunl added a comment. > > We have prelinking passes in amdgpu backend but it requires the llvm change > > to be committed first. We can add a test for this after that. > > > Sure. Could you subscribe me to the relevant backend reviews if possible

Re: r271708 - Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Eric Niebler via cfe-commits
(adding back cfe-commits, answers inline) On 6/8/16, 10:11 AM, "tha...@google.com on behalf of Nico Weber" wrote: >Sounds like "commit to the current file case and fix all the world's includes" >then :-) (MinGW's windows headers have

[clang-tools-extra] r272188 - clang-rename: implement renaming of classes inside dynamic_cast

2016-06-08 Thread Miklos Vajna via cfe-commits
Author: vmiklos Date: Wed Jun 8 13:38:23 2016 New Revision: 272188 URL: http://llvm.org/viewvc/llvm-project?rev=272188=rev Log: clang-rename: implement renaming of classes inside dynamic_cast Refactor to do the same as what is done already for static_cast. Reviewers: klimek Differential

Re: [PATCH] D21120: clang-rename: implement renaming of classes inside dynamic_cast

2016-06-08 Thread Miklos Vajna via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272188: clang-rename: implement renaming of classes inside dynamic_cast (authored by vmiklos). Changed prior to commit: http://reviews.llvm.org/D21120?vs=60001=60073#toc Repository: rL LLVM

[PATCH] D21150: [OpenMP] Cast captures by copy when passed to fork call so that they are compatible to what the runtime library expects.

2016-06-08 Thread Samuel Antao via cfe-commits
sfantao created this revision. sfantao added reviewers: ABataev, hfinkel, arpith-jacob, carlo.bertolli, kkwli0. sfantao added subscribers: caomhin, cfe-commits. This patch fixes an issue detected when firstprivate variables are passed to an OpenMP outlined function vararg list. Currently they

Re: [PATCH] D19843: Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Bruno Cardoso Lopes via cfe-commits
bruno added a comment. Before this goes in again, I want to double check that this doesn't affect compile time on darwin + frameworks. Will get back to you asap. Comment at: lib/Lex/PPDirectives.cpp:218 @@ +217,3 @@ + SmallString<32> LowerInclude{Include}; + for (char& Ch :

Re: [PATCH] D21113: Add support for case-insensitive header lookup

2016-06-08 Thread Nico Weber via cfe-commits
thakis added a comment. Not sure if we want a flag that adds 50% overhead, no matter how convenient it might be :-/ http://reviews.llvm.org/D21113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20428: Tracking exception specification source locations

2016-06-08 Thread Richard Smith via cfe-commits
rsmith accepted this revision. This revision is now accepted and ready to land. Comment at: lib/AST/Decl.cpp:2938-2948 @@ -2937,1 +2937,13 @@ +SourceRange FunctionDecl::getExceptionSpecSourceRange() const { + const TypeSourceInfo *TSI = getTypeSourceInfo(); + if (!TSI) +

Re: [PATCH] D19843: Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Richard Smith via cfe-commits
rsmith added a comment. Looks OK to me, pending Bruno's confirmation that performance is acceptable. Comment at: lib/Lex/PPDirectives.cpp:102 Can you use `llvm::StringSwitch` for this? I'd be interested to see how the performance compares.

Re: [PATCH] D20681: Add target-specific pre-linking passes to Clang

2016-06-08 Thread Yaxun Liu via cfe-commits
yaxunl updated this revision to Diff 60105. yaxunl marked an inline comment as done. yaxunl added a comment. Refactor to eliminate lambda function argument. http://reviews.llvm.org/D20681 Files: include/clang/CodeGen/BackendUtil.h lib/CodeGen/BackendUtil.cpp lib/CodeGen/CodeGenAction.cpp

Re: [PATCH] D19843: Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Eric Niebler via cfe-commits
eric_niebler added inline comments. Comment at: lib/Lex/PPDirectives.cpp:33 @@ -28,2 +32,2 @@ #include "llvm/Support/Path.h" #include "llvm/Support/SaveAndRestore.h" You mean, instead of the `StringSet` below? Looks like `StringSwitch` just turns into

Re: r272198 - [DebugInfo] Add calling conventions to DISubroutineType

2016-06-08 Thread David Blaikie via cfe-commits
At least in theory it'd be nice to have test cases for the other call sites this change adds CC to. On Wed, Jun 8, 2016 at 1:41 PM, Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rnk > Date: Wed Jun 8 15:41:54 2016 > New Revision: 272198 > > URL:

Re: [PATCH] D20428: Tracking exception specification source locations

2016-06-08 Thread don hinton via cfe-commits
hintonda added a comment. The comment says to rebuild TypeSourceInfo, but isn't that what this does? if (TSInfo->getType() != FD->getType()) Updated = getFunctionTypeWithExceptionSpec(*this, TSInfo->getType(), ESI); TSInfo->overrideType(Updated); If so, could you fix this by either

Re: [PATCH] D21141: [DebugInfo] Add calling conventions to DISubroutineType

2016-06-08 Thread Reid Kleckner via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272198: [DebugInfo] Add calling conventions to DISubroutineType (authored by rnk). Changed prior to commit: http://reviews.llvm.org/D21141?vs=60055=60101#toc Repository: rL LLVM

Re: [PATCH] D20933: Preallocate ExplodedNode hash table

2016-06-08 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. A 6% speed improvement could be a big win! Do we have a sense of what the expected increased memory cost (as a % of average use over the lifetime of the process) is? My guess is it would be relatively low. I suspect most analyzer users run relatively few concurrent

Re: [PATCH] D19843: Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Eric Niebler via cfe-commits
eric_niebler added inline comments. Comment at: lib/Lex/PPDirectives.cpp:220 @@ +219,3 @@ +// In the ASCII range? +if (Ch < 0 || Ch > 0xff) + return false; // Can't be a standard header rsmith wrote: > Comment doesn't match code: the ASCII range ends

Re: [PATCH] D19843: Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Richard Smith via cfe-commits
rsmith added inline comments. Comment at: lib/Lex/PPDirectives.cpp:33 @@ -28,2 +32,2 @@ #include "llvm/Support/Path.h" #include "llvm/Support/SaveAndRestore.h" eric_niebler wrote: > You mean, instead of the `StringSet` below? Looks like `StringSwitch` just >

Re: [PATCH] D21113: Add support for case-insensitive header lookup

2016-06-08 Thread Hans Wennborg via cfe-commits
hans added a comment. In http://reviews.llvm.org/D21113#452673, @thakis wrote: > Not sure if we want a flag that adds 50% overhead, no matter how convenient > it might be :-/ I now have a version of the patch that caches directory contents that it lists: real2m31.461s user

[PATCH] D21162: [CUDA] Implement __shfl* intrinsics in clang headers.

2016-06-08 Thread Justin Lebar via cfe-commits
jlebar created this revision. jlebar added a reviewer: tra. jlebar added subscribers: cfe-commits, jholewinski. Clang changes to make use of the LLVM intrinsics added in D21160. http://reviews.llvm.org/D21162 Files: include/clang/Basic/BuiltinsNVPTX.def lib/Headers/__clang_cuda_intrinsics.h

r272233 - Update to match LLVM r272232.

2016-06-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Jun 8 19:53:41 2016 New Revision: 272233 URL: http://llvm.org/viewvc/llvm-project?rev=272233=rev Log: Update to match LLVM r272232. Modified: cfe/trunk/tools/arcmt-test/arcmt-test.cpp cfe/trunk/tools/c-index-test/c-index-test.c

[clang-tools-extra] r272235 - Update to match LLVM r272232.

2016-06-08 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Jun 8 19:54:42 2016 New Revision: 272235 URL: http://llvm.org/viewvc/llvm-project?rev=272235=rev Log: Update to match LLVM r272232. Modified: clang-tools-extra/trunk/clang-query/tool/ClangQuery.cpp clang-tools-extra/trunk/tool-template/ToolTemplate.cpp

r272215 - [docs] Coverage: Clarify return value of __llvm_profile_write_file

2016-06-08 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Wed Jun 8 17:32:03 2016 New Revision: 272215 URL: http://llvm.org/viewvc/llvm-project?rev=272215=rev Log: [docs] Coverage: Clarify return value of __llvm_profile_write_file Modified: cfe/trunk/docs/SourceBasedCodeCoverage.rst Modified:

Re: [PATCH] D19843: Use the name of the file on disk to issue a new diagnostic about non-portable #include and #import paths.

2016-06-08 Thread Bruno Cardoso Lopes via cfe-commits
bruno added inline comments. Comment at: lib/Lex/PPDirectives.cpp:179 @@ +178,3 @@ +"exception", "iterator", "random", "strstream", "vector", +"forward_list", "limits", "ratio", "system_error", + Applying your patch reveled a bunch of ^M (carriage-return)

[libcxx] r272216 - Add notes for 2688

2016-06-08 Thread Marshall Clow via cfe-commits
Author: marshall Date: Wed Jun 8 17:33:25 2016 New Revision: 272216 URL: http://llvm.org/viewvc/llvm-project?rev=272216=rev Log: Add notes for 2688 Modified: libcxx/trunk/www/upcoming_meeting.html Modified: libcxx/trunk/www/upcoming_meeting.html URL:

[libcxx] r272212 - [CMake] Cleanup uses of USES_TERMINAL

2016-06-08 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Wed Jun 8 17:20:28 2016 New Revision: 272212 URL: http://llvm.org/viewvc/llvm-project?rev=272212=rev Log: [CMake] Cleanup uses of USES_TERMINAL Now that we are on CMake 3.4.3 we no longer need a version check around this. This is the libcxx side of r272211. Modified:

r272213 - [CMake] Cleanup uses of USES_TERMINAL

2016-06-08 Thread Chris Bieneman via cfe-commits
Author: cbieneman Date: Wed Jun 8 17:20:43 2016 New Revision: 272213 URL: http://llvm.org/viewvc/llvm-project?rev=272213=rev Log: [CMake] Cleanup uses of USES_TERMINAL Now that we are on CMake 3.4.3 we no longer need a version check around this. This is the clang side of r272211. Modified:

r272214 - [docs] Coverage: Flesh out instructions for avoiding static initializeres

2016-06-08 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Wed Jun 8 17:24:52 2016 New Revision: 272214 URL: http://llvm.org/viewvc/llvm-project?rev=272214=rev Log: [docs] Coverage: Flesh out instructions for avoiding static initializeres Modified: cfe/trunk/docs/SourceBasedCodeCoverage.rst Modified:

Re: [PATCH] D15926: Do not print certain warnings when input is a header.

2016-06-08 Thread Erik Verbruggen via cfe-commits
erikjv updated this revision to Diff 60023. http://reviews.llvm.org/D15926 Files: include/clang/Basic/LangOptions.h lib/Frontend/CompilerInvocation.cpp lib/Lex/PPDirectives.cpp lib/Lex/PPMacroExpansion.cpp lib/Lex/Pragma.cpp test/Preprocessor/header_is_main_file.c Index:

Re: [PATCH] D20561: Warn when taking address of packed member

2016-06-08 Thread Roger Ferrer Ibanez via cfe-commits
rogfer01 added a comment. Ping? Thanks a lot. http://reviews.llvm.org/D20561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r272123 - [Clang][AVX512][BUILTIN]Adding intrinsics for range_round_{sd|ss}

2016-06-08 Thread Michael Zuckerman via cfe-commits
Author: mzuckerm Date: Wed Jun 8 03:19:27 2016 New Revision: 272123 URL: http://llvm.org/viewvc/llvm-project?rev=272123=rev Log: [Clang][AVX512][BUILTIN]Adding intrinsics for range_round_{sd|ss} Differential Revision: http://reviews.llvm.org/D21002 Modified:

Re: [PATCH] D21002: [Clang][AVX512][BUILTIN]Adding intrinsics for range_round_{sd|ss}

2016-06-08 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272123: [Clang][AVX512][BUILTIN]Adding intrinsics for range_round_{sd|ss} (authored by mzuckerm). Changed prior to commit: http://reviews.llvm.org/D21002?vs=59664=60009#toc Repository: rL LLVM

r272121 - Add doxygen comments to xmmintrin.h's intrinsics.

2016-06-08 Thread Ekaterina Romanova via cfe-commits
Author: kromanova Date: Wed Jun 8 02:34:31 2016 New Revision: 272121 URL: http://llvm.org/viewvc/llvm-project?rev=272121=rev Log: Add doxygen comments to xmmintrin.h's intrinsics. Only half of the intrinsics in this file is documented here. The patch for the o ther half will be sent out later.

r272124 - clang-format: Fix bug in function ref qualifier identification.

2016-06-08 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Wed Jun 8 03:23:46 2016 New Revision: 272124 URL: http://llvm.org/viewvc/llvm-project?rev=272124=rev Log: clang-format: Fix bug in function ref qualifier identification. .. and simplify it. Before: void A::f()&& {} void f() && {} After: void A::f() && {} void f()

Re: [PATCH] D21120: clang-rename: implement renaming of classes inside dynamic_cast

2016-06-08 Thread Manuel Klimek via cfe-commits
klimek accepted this revision. klimek added a comment. This revision is now accepted and ready to land. lg http://reviews.llvm.org/D21120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D21117: Specify target in lifetime-asan test.

2016-06-08 Thread Christof Douma via cfe-commits
christof accepted this revision. christof added a reviewer: christof. christof added a comment. I've tested it and it removes the issue I saw. The following error is gone: clang-3.9: error: unsupported option '-fsanitize=address' for target 'aarch64-arm-none-eabi’ Thanks

r272125 - clang-format: Fix incorrect calculation of "length" of /**/ comments.

2016-06-08 Thread Daniel Jasper via cfe-commits
Author: djasper Date: Wed Jun 8 04:45:08 2016 New Revision: 272125 URL: http://llvm.org/viewvc/llvm-project?rev=272125=rev Log: clang-format: Fix incorrect calculation of "length" of /**/ comments. This could lead to column limit violations. Modified:

Re: [PATCH] D21117: Specify target in lifetime-asan test.

2016-06-08 Thread Yaron Keren via cfe-commits
yaron.keren added a subscriber: yaron.keren. yaron.keren accepted this revision. yaron.keren added a reviewer: yaron.keren. yaron.keren added a comment. This revision is now accepted and ready to land. You mean Some target platforms do not support -fsanitize=address.

Re: [PATCH] D20867: [PCH] Fix timestamp check on windows hosts.

2016-06-08 Thread pierre gousseau via cfe-commits
pgousseau added a comment. > > Are you asking for the 2 seconds tolerance to be part of this patch? > > > Or, as it seems the main problem here is the lack of a reproducible, are > > you ok with the idea of committing this patch first, to see if the > > inconsistent time stamps is still an

Re: [PATCH] D21082: Do not assume that -fsanitize=address is valid option in clang tests

2016-06-08 Thread Christof Douma via cfe-commits
christof added a comment. In http://reviews.llvm.org/D21082#451393, @kubabrecka wrote: > This doesn’t make sense to me, Clang is able to produce ASanified code even > when the compiler itself isn’t ASanified (that’s what LLVM_USE_SANITIZER > does). Where exactly is this test failing? Right.

Re: [PATCH] D20853: [clang-tidy] misc-macro-parentheses: Don't insert parentheses in variable declarations. Fixes bugzilla 26273

2016-06-08 Thread Daniel Marjamäki via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL272128 (authored by danielmarjamaki). Changed prior to commit: http://reviews.llvm.org/D20853?vs=59208=60013#toc Repository: rL LLVM http://reviews.llvm.org/D20853 Files:

[clang-tools-extra] r272128 - [clang-tidy] misc-macro-parentheses - avoid adding parentheses in variable declarations

2016-06-08 Thread Daniel Marjamaki via cfe-commits
Author: danielmarjamaki Date: Wed Jun 8 05:30:24 2016 New Revision: 272128 URL: http://llvm.org/viewvc/llvm-project?rev=272128=rev Log: [clang-tidy] misc-macro-parentheses - avoid adding parentheses in variable declarations Fixes bugzilla issues 26273 and 27399 Reviewers: alexfh

r272136 - Correcting a typo in a comment; NFC.

2016-06-08 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Jun 8 07:33:18 2016 New Revision: 272136 URL: http://llvm.org/viewvc/llvm-project?rev=272136=rev Log: Correcting a typo in a comment; NFC. Modified: cfe/trunk/lib/Sema/TypeLocBuilder.h Modified: cfe/trunk/lib/Sema/TypeLocBuilder.h URL:

[PATCH] D21126: Fix crash when rewriting call to match placeholder

2016-06-08 Thread Alyssa Milburn via cfe-commits
amilburn created this revision. amilburn added a reviewer: rsmith. amilburn added a subscriber: cfe-commits. If an argument is a placeholder, rewriteBuiltinFunctionDecl should skip it when trying to rewrite address spaces. This situation can happen because not all placeholders are rejected by

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-08 Thread James Reynolds via cfe-commits
JamesReynolds updated this revision to Diff 60010. JamesReynolds added a comment. Changed the clang-tidy release notes addition to be in alphabetical order. http://reviews.llvm.org/D21020 Files: clang-tidy/readability/IdentifierNamingCheck.cpp clang-tidy/readability/IdentifierNamingCheck.h

Re: [PATCH] D20732: Don't use static variables in LambdaCapture

2016-06-08 Thread Faisal Vali via cfe-commits
faisalv added a comment. Seems reasonable to me if we have the bit to spare. I wasn't a huge fan of the sentinel approach - but i appreciated Richard showing me that trick. I don't think I realized that Decl has to be aligned on an 8 byte boundary. I'm not too familiar with the alignment

Re: [PATCH] D20328: [libcxx] Externally threaded libc++ variant

2016-06-08 Thread Asiri Rathnayake via cfe-commits
rmaprath updated this revision to Diff 60017. rmaprath added a comment. Addressed comments from @mclow.lists. http://reviews.llvm.org/D20328 Files: CMakeLists.txt include/__config include/__config_site.in include/__dynamic_threading include/__threading_support include/thread

Re: [PATCH] D21081: MPI-Checker patch for Clang Static Analyzer

2016-06-08 Thread Alexander Droste via cfe-commits
Alexander_Droste added a comment. Hi Devin, thanks for fixing the GCC build errors and setting up the commit! Unfortunately, creating an `MPIBugReporter` instance only when a bug occurs does cause a separate issue. The instance seems to be freed, before the reports get flushed. void

Re: [PATCH] D21020: [clang-tidy] readability-identifier-naming - Support for Macros

2016-06-08 Thread James Reynolds via cfe-commits
JamesReynolds marked an inline comment as done. JamesReynolds added a comment. http://reviews.llvm.org/D21020 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20328: [libcxx] Externally threaded libc++ variant

2016-06-08 Thread Asiri Rathnayake via cfe-commits
rmaprath marked 2 inline comments as done. rmaprath added a comment. http://reviews.llvm.org/D20328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >