Re: [PATCH] D20150: clang-rename: fix renaming of field with implicit initializers

2016-05-12 Thread Miklos Vajna via cfe-commits
vmiklos added a comment. Hi, > Also: should we add a check that the token of the source location we find > actually has the old name? Hmm, how do I get the token at a specific SourceLocation? The best I found so far is SourceManager::getBuffer(), but that looks more like looking up raw bytes

Re: [PATCH] D20150: clang-rename: fix renaming of field with implicit initializers

2016-05-12 Thread Manuel Klimek via cfe-commits
On Thu, May 12, 2016 at 9:22 AM Miklos Vajna wrote: > vmiklos added a comment. > > Hi, > > > Also: should we add a check that the token of the source location we > find actually has the old name? > > > Hmm, how do I get the token at a specific SourceLocation? The best I found > so far is SourceMa

Re: [PATCH] D20197: [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks.

2016-05-12 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:38 @@ -37,1 +37,3 @@ +// Ignores using-declarations defined in macro. +if (Result.SourceManager->

Re: [PATCH] D20197: [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks.

2016-05-12 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:39 @@ +38,3 @@ +// Ignores using-declarations defined in macro. +if (Result.SourceManager->isMacroBodyExpansion(TargetDecl->getLocStart()), +Result.SourceManager->isMacroBodyExpans

Re: [PATCH] D19156: [ms][dll] #27212: Generating of implicit special members should take into account MSVC compatibility version

2016-05-12 Thread Andrew V. Tischenko via cfe-commits
avt77 marked 2 inline comments as done. Comment at: lib/Sema/SemaDeclCXX.cpp:4813 @@ +4812,3 @@ +// and move constructor, so don't attempt to import/export them if +// we have a definition. +auto *CXXC = dyn_cast(MD); rnk wrote: > Oh, so we

Re: [PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.

2016-05-12 Thread Xiuli PAN via cfe-commits
pxli168 accepted this revision. pxli168 added a comment. This revision is now accepted and ready to land. LGTM Comment at: test/SemaOpenCL/to_addr_builtin.cl:26 @@ +25,3 @@ +#if __OPENCL_C_VERSION__ < CL_VERSION_2_0 + // expected-error@-2{{'to_global' needs OpenCL version 2.0 o

Re: [PATCH] D18919: [Clang-tidy] Add check "modernize use using"

2016-05-12 Thread Krystyna via cfe-commits
krystyna updated this revision to Diff 57007. krystyna marked 8 inline comments as done. Repository: rL LLVM http://reviews.llvm.org/D18919 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseUsingCheck.cpp clang-tidy/moderniz

Re: [PATCH] D18919: [Clang-tidy] Add check "modernize use using"

2016-05-12 Thread Piotr Padlewski via cfe-commits
Prazek added inline comments. Comment at: clang-tidy/modernize/UseUsingCheck.cpp:13 @@ +12,3 @@ +#include "clang/ASTMatchers/ASTMatchFinder.h" +#include + Is this required? Repository: rL LLVM http://reviews.llvm.org/D18919 ___

Re: [PATCH] D20197: [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks.

2016-05-12 Thread Haojian Wu via cfe-commits
hokein updated this revision to Diff 57008. hokein added a comment. Address review comments. http://reviews.llvm.org/D20197 Files: clang-tidy/misc/UnusedUsingDeclsCheck.cpp test/clang-tidy/misc-unused-using-decls.cpp Index: test/clang-tidy/misc-unused-using-decls.cpp ==

Re: [PATCH] D20197: [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks.

2016-05-12 Thread Haojian Wu via cfe-commits
hokein marked 3 inline comments as done. Comment at: clang-tidy/misc/UnusedUsingDeclsCheck.cpp:39 @@ +38,3 @@ +// Ignores using-declarations defined in macros. +if (TargetDecl->getLocation().isMacroID()) + return; Good point. Using `isMacroID` is enou

[PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added a reviewer: djasper. mprobst added a subscriber: cfe-commits. Herald added a subscriber: klimek. This change automatically sorts ES6 imports and exports into four groups: absolute imports, parent imports, relative imports, and then exports. Exports are

[clang-tools-extra] r269278 - [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks.

2016-05-12 Thread Haojian Wu via cfe-commits
Author: hokein Date: Thu May 12 05:00:49 2016 New Revision: 269278 URL: http://llvm.org/viewvc/llvm-project?rev=269278&view=rev Log: [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks. Reviewers: djasper Subscribers: cfe-commits Differential Revision: ht

Re: [PATCH] D20197: [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using-decls checks.

2016-05-12 Thread Haojian Wu via cfe-commits
This revision was automatically updated to reflect the committed changes. hokein marked an inline comment as done. Closed by commit rL269278: [clang-tidy] Ignore using-declarations defined in marcro in misc-unused-using… (authored by hokein). Changed prior to commit: http://reviews.llvm.org/D20

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-12 Thread Daniel Jasper via cfe-commits
djasper added a comment. Just two high-level comments. Will review in more depth later. Comment at: include/clang/Format/Format.h:770 @@ +769,3 @@ +/// ``export`` blocks are affected by ``Ranges``. +tooling::Replacements sortJavaScriptIncludes(const FormatStyle &Style, +

r269279 - [Driver] Squash misleading indentation warning.

2016-05-12 Thread Marcin Koscielnicki via cfe-commits
Author: koriakin Date: Thu May 12 05:27:59 2016 New Revision: 269279 URL: http://llvm.org/viewvc/llvm-project?rev=269279&view=rev Log: [Driver] Squash misleading indentation warning. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.org/viewv

[PATCH] D20200: clang-format: [JS] respect clang-format off when requoting strings.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added a reviewer: djasper. mprobst added a subscriber: cfe-commits. Herald added a subscriber: klimek. http://reviews.llvm.org/D20200 Files: lib/Format/Format.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp ===

Re: [PATCH] D20200: clang-format: [JS] respect clang-format off when requoting strings.

2016-05-12 Thread Daniel Jasper via cfe-commits
djasper accepted this revision. djasper added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D20200 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

Re: [PATCH] D19274: Compilation for Intel MCU (Part 2/3)

2016-05-12 Thread Andrey Turetskiy via cfe-commits
aturetsk updated this revision to Diff 57017. aturetsk added a comment. Fix the remarks. http://reviews.llvm.org/D19274 Files: include/clang/Basic/DiagnosticDriverKinds.td include/clang/Driver/ToolChain.h lib/Driver/Driver.cpp lib/Driver/ToolChain.cpp lib/Driver/ToolChains.cpp lib/D

r269282 - clang-format: [JS] respect clang-format off when requoting strings.

2016-05-12 Thread Martin Probst via cfe-commits
Author: mprobst Date: Thu May 12 06:20:32 2016 New Revision: 269282 URL: http://llvm.org/viewvc/llvm-project?rev=269282&view=rev Log: clang-format: [JS] respect clang-format off when requoting strings. Reviewers: djasper Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llv

Re: [PATCH] D20200: clang-format: [JS] respect clang-format off when requoting strings.

2016-05-12 Thread Martin Probst via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269282: clang-format: [JS] respect clang-format off when requoting strings. (authored by mprobst). Changed prior to commit: http://reviews.llvm.org/D20200?vs=57014&id=57018#toc Repository: rL LLVM h

Re: [PATCH] D19274: Compilation for Intel MCU (Part 2/3)

2016-05-12 Thread Andrey Turetskiy via cfe-commits
aturetsk added a comment. Hi Bruno, Thanks for the review. Comment at: include/clang/Basic/DiagnosticDriverKinds.td:157 @@ -156,1 +156,3 @@ +def err_drv_cxx_not_supported : Error< + "C++ is not supported for target '%0'">; Yes. I've found nothing similar. ==

Re: [PATCH] D16962: clang-tidy: avoid std::bind

2016-05-12 Thread Jonathan B Coe via cfe-commits
jbcoe updated this revision to Diff 57022. jbcoe marked 6 inline comments as done. jbcoe added a comment. Apply fixes from review. http://reviews.llvm.org/D16962 Files: clang-tidy/modernize/AvoidBindCheck.cpp clang-tidy/modernize/AvoidBindCheck.h clang-tidy/modernize/CMakeLists.txt clan

Re: [PATCH] D20168: [CodeGen] Handle structs directly in AMDGPUABIInfo

2016-05-12 Thread Vedran Miletić via cfe-commits
rivanvx updated this revision to Diff 57023. rivanvx added a comment. Now with 100% more tests. http://reviews.llvm.org/D20168 Files: lib/CodeGen/TargetInfo.cpp test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl Index: test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-12 Thread Alexander Makarov via cfe-commits
a.makarov added inline comments. Comment at: lib/AST/ASTContext.cpp:8604-8606 @@ -8603,5 +8603,5 @@ bool IsCXXMethod) const { // Pass through to the C++ ABI object if (IsCXXMethod) return ABI->getDefaultMethodCallConv

Re: [PATCH] D16962: clang-tidy: avoid std::bind

2016-05-12 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. Thank you! Do you need someone to submit the patch for you? Comment at: clang-tidy/modernize/AvoidBindCheck.cpp:28 @@ +27,3 @@ + BindArgumentKind Kind = BK_Other

Re: [PATCH] D16962: clang-tidy: avoid std::bind

2016-05-12 Thread Jonathan B Coe via cfe-commits
jbcoe added a comment. I can submit the patch myself, thanks. Thanks again for taking the time to give such a thorough review. http://reviews.llvm.org/D16962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [PATCH] D19703: [clang-tidy] Improve misc-redundant-expression and decrease false-positive

2016-05-12 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/misc/RedundantExpressionCheck.cpp:139 @@ +138,3 @@ + const LangOptions &LO = Finder->getASTContext().getLangOpts(); + SourceLocation Loc = Node.getExprLoc(); + while (Loc.isMacroID()) { Ah, found it: `llvm/AD

Re: [PATCH] D20170: [clang-tidy] TypeTraits - Type is not expensive to copy when it has a deleted copy constructor.

2016-05-12 Thread Felix Berger via cfe-commits
flx added inline comments. Comment at: clang-tidy/utils/TypeTraits.cpp:32 @@ +31,3 @@ + auto *Record = Type->getAsCXXRecordDecl(); + if (Record == nullptr || !Record->hasDefinition()) +return false; aaron.ballman wrote: > `!Record` instead of explicit compar

Re: [PATCH] D20170: [clang-tidy] TypeTraits - Type is not expensive to copy when it has a deleted copy constructor.

2016-05-12 Thread Felix Berger via cfe-commits
flx removed rL LLVM as the repository for this revision. flx updated this revision to Diff 57035. flx marked 5 inline comments as done. http://reviews.llvm.org/D20170 Files: clang-tidy/utils/TypeTraits.cpp test/clang-tidy/performance-unnecessary-value-param.cpp Index: test/clang-tidy/perform

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 57037. mprobst added a comment. - extract TokenAnalyzer.h and SortJavaScriptImports.h/cpp - clean up imports http://reviews.llvm.org/D20198 Files: lib/Format/CMakeLists.txt lib/Format/Format.cpp lib/Format/FormatToken.h lib/Format/FormatTokenLexer.h

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst marked 2 inline comments as done. mprobst added a comment. http://reviews.llvm.org/D20198 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20134: [libclang] Fixed bug where ranges in spelling locations (in macro expansions) would get mangled

2016-05-12 Thread Cameron via cfe-commits
cameron314 added a comment. You're right, this breaks that test. The corner case that it exercises is arguably less important than breaking all spelling ranges, though. But I'm going to see if I can fix both with a little wizardry (ideally there wouldn't be open ranges in the first place, since

Re: [PATCH] D20170: [clang-tidy] TypeTraits - Type is not expensive to copy when it has a deleted copy constructor.

2016-05-12 Thread Aaron Ballman via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/utils/TypeTraits.cpp:31 @@ +30,3 @@ + +bool hasDeletedCopyConstructor(QualType Type, ASTContext &Context) { + auto *Record = Type->getAsCXXRecordDecl(); No need to pass in `Context` any longer.

Re: [PATCH] D20014: [libc++] Explicit return in non-void function

2016-05-12 Thread Marshall Clow via cfe-commits
mclow.lists added a subscriber: mclow.lists. mclow.lists accepted this revision. mclow.lists added a reviewer: mclow.lists. mclow.lists added a comment. This revision is now accepted and ready to land. LGTM. `C` and `D` are different failure modes for `uses_allocator`, since the standard says th

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 57039. mprobst added a comment. - extract TokenAnalyzer.h and SortJavaScriptImports.h/cpp - clean up imports/ - includes http://reviews.llvm.org/D20198 Files: lib/Format/CMakeLists.txt lib/Format/Format.cpp lib/Format/FormatToken.h lib/Format/Format

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-12 Thread Alexander Makarov via cfe-commits
a.makarov added inline comments. Comment at: lib/AST/ASTContext.cpp:8616-8619 @@ +8615,6 @@ + return CC_C; +case LangOptions::DCC_FastCall: + return CC_X86FastCall; +case LangOptions::DCC_StdCall: + return CC_X86StdCall; +case LangOptions::DCC_VectorCall

[libcxx] r269298 - Apply D20014 - fix a missing return in a test. Fixes PR#27720

2016-05-12 Thread Marshall Clow via cfe-commits
Author: marshall Date: Thu May 12 09:31:35 2016 New Revision: 269298 URL: http://llvm.org/viewvc/llvm-project?rev=269298&view=rev Log: Apply D20014 - fix a missing return in a test. Fixes PR#27720 Modified: libcxx/trunk/test/std/utilities/memory/allocator.uses/allocator.uses.trait/uses_alloc

Re: [PATCH] D20053: [clang-tidy] Add misc-unnecessary-mutable check.

2016-05-12 Thread Piotr Padlewski via cfe-commits
Prazek added a reviewer: Prazek. Comment at: clang-tidy/misc/UnnecessaryMutableCheck.cpp:152 @@ +151,3 @@ +// it is the only declaration in a declaration chain. +static bool CheckRemoval(SourceManager &SM, const SourceLocation &LocStart, + const SourceLocat

[PATCH] D20207: [AST] Move operations enum to a definition file.

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added reviewers: klimek, aaron.ballman. etienneb added subscribers: cfe-commits, alexfh, sbenza. This patch moves the enum definitions to a definition (.def) file. These modifications provide way to list enumerator of a given type. As an example, this all

Re: [PATCH] D20119: [libunwind] Improve unwinder stack usage

2016-05-12 Thread Asiri Rathnayake via cfe-commits
rmaprath added a comment. Gentle ping. http://reviews.llvm.org/D20119 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18919: [Clang-tidy] Add check "modernize use using"

2016-05-12 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added inline comments. Comment at: clang-tidy/modernize/UseUsingCheck.cpp:13 @@ +12,3 @@ +#include "clang/ASTMatchers/ASTMatchFinder.h" +#include + Prazek wrote: > Is this required? It'll be reasonable to run Include What You Use at least on new fi

Re: [PATCH] D17981: [clang-tidy] Fix clang-tidy to support parsing of assembly statements.

2016-05-12 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Manuel, ping. http://reviews.llvm.org/D17981 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20207: [AST] Move operations enum to a definition file.

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 57043. etienneb added a comment. Herald added a subscriber: klimek. rebase over AST modifications http://reviews.llvm.org/D20207 Files: include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/Dynamic/Marshallers.h lib/ASTMatchers/Dynamic/Registry.cpp

Re: Patch submission for bug 27400

2016-05-12 Thread Mads Ravn via cfe-commits
Hi, I have fixed the things you mentioned now. I have attached the new patch to this email. Best regards, Mads Ravn On Wed, May 11, 2016 at 11:54 PM Vedant Kumar wrote: > Hi, > > Thanks for the patch! > > This patch is missing a small, lit-style test case. You can find examples > of test cases

Re: [PATCH] D19871: Add an AST matcher for CastExpr kind

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 57044. etienneb marked an inline comment as done. etienneb added a comment. rebase over AST modifications http://reviews.llvm.org/D19871 Files: include/clang/ASTMatchers/ASTMatchers.h lib/ASTMatchers/Dynamic/Marshallers.h lib/ASTMatchers/Dynamic/Regi

Re: [PATCH] D20207: [AST] Move operations enum to a definition file.

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb updated this revision to Diff 57045. etienneb added a comment. remove incorrect patch upload (sorry) http://reviews.llvm.org/D20207 Files: include/clang/AST/OperationKinds.def include/clang/AST/OperationKinds.h include/clang/module.modulemap lib/AST/Expr.cpp Index: lib/AST/Exp

[PATCH] D20208: clang-format: [JS] fix template string width counting.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst created this revision. mprobst added reviewers: djasper, bkramer. mprobst added a subscriber: cfe-commits. Herald added a subscriber: klimek. Simply looking at the final text greatly simplifies the algorithm and also fixes a reported issue. This requires duplicating the "actual encoding wi

Re: [PATCH] D19871: Add an AST matcher for CastExpr kind

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb marked 3 inline comments as done. etienneb added a comment. This patch has been modified to support dynamic matchers. It rely on : http://reviews.llvm.org/D20207 Comments? Comment at: lib/ASTMatchers/Dynamic/Marshallers.h:102 @@ +101,3 @@ + static clang::CastKind getC

Re: [PATCH] D20205: [include-fixer] Use scope contexts information to improve query.

2016-05-12 Thread Benjamin Kramer via cfe-commits
bkramer requested changes to this revision. bkramer added a comment. This revision now requires changes to proceed. This needs more tests (check that using stuff from a different namespace in namespace scope still works). It's also better written as a unit test against the in-memory database, th

Re: [PATCH] D20203: [find-all-symbols] Add enum type support.

2016-05-12 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/D20203 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

Re: [PATCH] D20170: [clang-tidy] TypeTraits - Type is not expensive to copy when it has a deleted copy constructor.

2016-05-12 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-tidy/utils/TypeTraits.cpp:22 @@ +21,3 @@ + +using namespace ::clang::ast_matchers; + Now seems to be unused. http://reviews.llvm.org/D20170 ___ cfe-commits mailing lis

Re: [PATCH] D20207: [AST] Move operations enum to a definition file.

2016-05-12 Thread Aaron Ballman via cfe-commits
aaron.ballman added a reviewer: rsmith. aaron.ballman added a comment. Generally, I think this looks good. It will definitely help with AST matchers. Richard, do you have any problems with this approach? Comment at: include/clang/AST/OperationKinds.def:15 @@ +14,3 @@ +// +/// @

Re: [PATCH] D20196: [clang-tidy] Inefficient string operation

2016-05-12 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). Comment at: docs/clang-tidy/checks/performance-inefficient-string-addition.rst:8 @@ +7,3 @@ +-- +This ch

[PATCH] D20213: [Clang] Fix Clang-tidy modernize-use-bool-literals in generated code.

2016-05-12 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko created this revision. Eugene.Zelenko added reviewers: hans, aaron.ballman. Eugene.Zelenko added a subscriber: cfe-commits. Eugene.Zelenko set the repository for this revision to rL LLVM. Reduce space in empty constructors and between data members and first public section. Fix som

r269305 - [OpenCL] Output OpenCL version in diagnostics.

2016-05-12 Thread Anastasia Stulova via cfe-commits
Author: stulova Date: Thu May 12 11:28:25 2016 New Revision: 269305 URL: http://llvm.org/viewvc/llvm-project?rev=269305&view=rev Log: [OpenCL] Output OpenCL version in diagnostics. Diagnostics should note version dependent issues by giving a hint about current version being compiled for. This pa

Re: [PATCH] D19780: Output OpenCL version in Clang diagnostics

2016-05-12 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. Sure. Committed in r269305! Thanks! http://reviews.llvm.org/D19780 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19815: Support '#pragma once' in headers when using PCH

2016-05-12 Thread Warren Ristow via cfe-commits
wristow added a comment. Ping http://reviews.llvm.org/D19815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D19932: [OpenCL] Add to_{global|local|private} builtin functions.

2016-05-12 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:501 @@ -500,1 +500,3 @@ def err_builtin_needs_feature : Error<"%0 needs target feature %1">; +def err_builtin_needs_opencl_version +: Error<"%0 needs OpenCL version %1%select{| or above}2"

Re: [PATCH] D19804: Make clang-format cleaner remove redundant commas in list and redundant colon in constructor initializer.

2016-05-12 Thread Daniel Jasper via cfe-commits
djasper added a comment. I experimented a bit. What do you think of this? Comment at: lib/Format/Format.cpp:1822 @@ +1821,3 @@ +cleanupRight(Line->First, Line->Last, tok::comma, tok::comma); +checkConstructorInitList(*Line); + } You could tu

Re: [PATCH] D20213: [Clang] Fix Clang-tidy modernize-use-bool-literals in generated code.

2016-05-12 Thread Hans Wennborg via cfe-commits
hans added inline comments. Comment at: utils/TableGen/ClangAttrEmitter.cpp:338 @@ -310,1 +337,3 @@ +OS << "\n\n static const " << getType() << " Default" << getUpperName() + << " = " << Default << ";"; } Everything up to the " = " part is

Re: [PATCH] D20207: [AST] Move operations enum to a definition file.

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb marked an inline comment as done. etienneb added a comment. Comment at: include/clang/AST/OperationKinds.def:15 @@ +14,3 @@ +// +/// @file OperationKinds.def +/// aaron.ballman wrote: > Do we use @file doxygen comments usually? I'm not certain if I've

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-12 Thread Alexander Makarov via cfe-commits
a.makarov updated this revision to Diff 57062. a.makarov added a comment. Thanks for the review! I've updated the patch, please take a look. Modifications: - the dependency from MS compatibility mode is removed; - the option is renamed into '-fdefault-calling-conv' (since it's not in MS compatib

r269309 - [ubsan] Add -fsanitize-undefined-strip-path-components=N

2016-05-12 Thread Filipe Cabecinhas via cfe-commits
Author: filcab Date: Thu May 12 11:51:36 2016 New Revision: 269309 URL: http://llvm.org/viewvc/llvm-project?rev=269309&view=rev Log: [ubsan] Add -fsanitize-undefined-strip-path-components=N Summary: This option allows the user to control how much of the file name is emitted by UBSan. Tuning this

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

2016-05-12 Thread Filipe Cabecinhas via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL269309: [ubsan] Add -fsanitize-undefined-strip-path-components=N (authored by filcab). Changed prior to commit: http://reviews.llvm.org/D19666?vs=56396&id=57063#toc Repository: rL LLVM http://review

Re: [PATCH] D18369: [OpenCL] Upstreaming khronos OpenCL header file.

2016-05-12 Thread Anastasia Stulova via cfe-commits
Anastasia added a comment. In http://reviews.llvm.org/D18369#424617, @yaxunl wrote: > In http://reviews.llvm.org/D18369#424347, @pxli168 wrote: > > > In http://reviews.llvm.org/D18369#422367, @yaxunl wrote: > > > > > In http://reviews.llvm.org/D18369#421963, @pxli168 wrote: > > > > > > > If we wa

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-12 Thread Daniel Jasper via cfe-commits
djasper added inline comments. Comment at: lib/Format/Format.cpp:21 @@ -19,1 +20,3 @@ #include "TokenAnnotator.h" +#include "FormatTokenLexer.h" +#include "TokenAnalyzer.h" Use clang-format to fix the order :-) Comment at: lib/Format/FormatToken

Re: [PATCH] D20090: [OPENCL] Fix wrongly vla error for OpenCL array.

2016-05-12 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: lib/Sema/SemaType.cpp:2055 @@ -2054,3 +2054,3 @@ - return S.VerifyIntegerConstantExpression(ArraySize, &SizeVal, Diagnoser, - S.LangOpts.GNUMode).isInvalid(); + return S + .VerifyIntege

Re: [PATCH] D19084: [scan-build] fix warnings emitted on Clang AST code base

2016-05-12 Thread Apelete Seketeli via cfe-commits
apelete added inline comments. Comment at: lib/AST/ASTDiagnostic.cpp:1686 @@ -1685,3 +1685,3 @@ -if (Same) { +if (Same && FromTD) { OS << "template " << FromTD->getNameAsString(); rtrieu wrote: > dblaikie wrote: > > Should this be a condition, or

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-12 Thread David Majnemer via cfe-commits
majnemer added inline comments. Comment at: include/clang/Basic/LangOptions.def:175 @@ -174,2 +174,3 @@ ENUM_LANGOPT(MSPointerToMemberRepresentationMethod, PragmaMSPointersToMembersKind, 2, PPTMK_BestCase, "member-pointer representation method") +ENUM_LANGOPT(DefaultMSCallingCo

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 57065. hintonda added a comment. - Renamed private helper method http://reviews.llvm.org/D18575 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseNoexceptCheck.cpp clang-tidy/modernize/U

Re: [PATCH] D20208: clang-format: [JS] fix template string width counting.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 57066. mprobst added a comment. - simplify logic by parsing forward, reduce complexity to O(n) from O(n^2) http://reviews.llvm.org/D20208 Files: lib/Format/Format.cpp unittests/Format/FormatTestJS.cpp Index: unittests/Format/FormatTestJS.cpp ==

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/ReleaseNotes.rst:197 @@ +196,3 @@ + + Replaces dynamic exception specifications with noexcept. + Please highlight noexcept with ``. Comment at: docs/clang-tidy/checks/modernize-use-noexcept.

Re: [PATCH] D16962: clang-tidy: avoid std::bind

2016-05-12 Thread Jonathan B Coe via cfe-commits
jbcoe updated this revision to Diff 57067. jbcoe added a comment. update diff to allow arc to apply patch. http://reviews.llvm.org/D16962 Files: clang-tidy/modernize/AvoidBindCheck.cpp clang-tidy/modernize/AvoidBindCheck.h clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/Moderni

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 57070. hintonda added a comment. - Added 's around keywords in docs. http://reviews.llvm.org/D18575 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseNoexceptCheck.cpp clang-tidy/moderni

Re: [PATCH] D19156: [ms][dll] #27212: Generating of implicit special members should take into account MSVC compatibility version

2016-05-12 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm I've been trying to say that ABI compatibility is not the same thing as generating the same set of exported symbols, but it really doesn't matter. If MSVC 2013 and 2015 are not ABI compatible

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/clang-tidy/checks/modernize-use-noexcept.rst:32 @@ +31,3 @@ +``noexcept(false)``. Additinally, users can also use +:option:``ReplacementString`` to specify a macro to use instead of +``noexcept``. This is useful when maintai

Re: [PATCH] D19815: Support '#pragma once' in headers when using PCH

2016-05-12 Thread Richard Smith via cfe-commits
rsmith added a comment. Rather than threading through a new flag, can you test the existing `TUKind` field? http://reviews.llvm.org/D19815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

Re: [PATCH] D20171: Support for MSVS default calling convention options (/Gd, /Gz, /Gv, /Gr)

2016-05-12 Thread Alexander Makarov via cfe-commits
a.makarov updated this revision to Diff 57071. a.makarov added a comment. Renamed option 'DefaultMSCallingConv' into 'DefaultCallingConv' and enum 'DefaultMSCallingConvention' into 'DefaultCallingConvention'. http://reviews.llvm.org/D20171 Files: include/clang/Basic/LangOptions.def include

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst updated this revision to Diff 57073. mprobst marked 9 inline comments as done. mprobst added a comment. - extract TokenAnalyzer.h and SortJavaScriptImports.h/cpp - clean up imports/ - includes - address review comments - pull out implementations from header files. http://reviews.llvm.org

Re: [PATCH] D20198: clang-format: [JS] sort ES6 imports.

2016-05-12 Thread Martin Probst via cfe-commits
mprobst added a comment. PTAL. Comment at: lib/Format/SortJavaScriptImports.cpp:162 @@ +161,3 @@ +std::string ImportsText; +for (unsigned i = 0, e = Indices.size(); i != e; ++i) { + JsImportExport ImpExp = Imports[Indices[i]]; djasper wrote: > Is th

Re: [PATCH] D20207: [AST] Move operations enum to a definition file.

2016-05-12 Thread Richard Smith via cfe-commits
rsmith added a comment. In http://reviews.llvm.org/D20207#428486, @aaron.ballman wrote: > Generally, I think this looks good. It will definitely help with AST > matchers. Richard, do you have any problems with this approach? Not at all. This would be a nice improvement even if it didn't also p

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread don hinton via cfe-commits
hintonda added inline comments. Comment at: docs/clang-tidy/checks/modernize-use-noexcept.rst:32 @@ +31,3 @@ +``noexcept(false)``. Additinally, users can also use +:option:``ReplacementString`` to specify a macro to use instead of +``noexcept``. This is useful when maintaining s

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/clang-tidy/checks/modernize-use-noexcept.rst:32 @@ +31,3 @@ +``noexcept(false)``. Additinally, users can also use +:option:``ReplacementString`` to specify a macro to use instead of +``noexcept``. This is useful when maintai

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread don hinton via cfe-commits
hintonda added inline comments. Comment at: docs/clang-tidy/checks/modernize-use-noexcept.rst:32 @@ +31,3 @@ +``noexcept(false)``. Additinally, users can also use +:option:``ReplacementString`` to specify a macro to use instead of +``noexcept``. This is useful when maintaining s

[PATCH] D20216: clang-rename: check that the source location we find actually has the old name

2016-05-12 Thread Miklos Vajna via cfe-commits
vmiklos created this revision. vmiklos added subscribers: cfe-commits, klimek. This more general check could have prevented the specific problem "getSourceOrder() == -1" guards. http://reviews.llvm.org/D20216 Files: clang-rename/RenamingAction.cpp clang-rename/USRLocFinder.cpp clang-rename

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 57078. hintonda added a comment. - Fix quote problem in docs. http://reviews.llvm.org/D18575 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseNoexceptCheck.cpp clang-tidy/modernize/UseN

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added inline comments. Comment at: docs/clang-tidy/checks/modernize-use-noexcept.rst:50 @@ +49,2 @@ + +if the `ReplacementString` option is set to `NOEXCEPT`. Actually :option: still need to prepend `ReplacementString`. http://reviews.llvm.org/D18

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread don hinton via cfe-commits
hintonda updated this revision to Diff 57080. hintonda added a comment. - Add :option: prefix for clarity. http://reviews.llvm.org/D18575 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/ModernizeTidyModule.cpp clang-tidy/modernize/UseNoexceptCheck.cpp clang-tidy/moderniz

Re: [PATCH] D18575: [clang-tidy] New checker to replace deprecated throw() specifications

2016-05-12 Thread don hinton via cfe-commits
hintonda added inline comments. Comment at: docs/clang-tidy/checks/modernize-use-noexcept.rst:50 @@ +49,2 @@ + +if the :option:`ReplacementString` option is set to `NOEXCEPT`. I'll get it eventually... ;-) http://reviews.llvm.org/D18575 _

r269326 - [Unittests] Reverse the order of arguments for correct debug output

2016-05-12 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Thu May 12 14:13:04 2016 New Revision: 269326 URL: http://llvm.org/viewvc/llvm-project?rev=269326&view=rev Log: [Unittests] Reverse the order of arguments for correct debug output Modified: cfe/trunk/unittests/Basic/VirtualFileSystemTest.cpp Modified: cfe/trunk/unittests/

r269327 - [VFS] Reapply #2: Reconstruct the VFS overlay tree for more accurate lookup

2016-05-12 Thread Bruno Cardoso Lopes via cfe-commits
Author: bruno Date: Thu May 12 14:13:07 2016 New Revision: 269327 URL: http://llvm.org/viewvc/llvm-project?rev=269327&view=rev Log: [VFS] Reapply #2: Reconstruct the VFS overlay tree for more accurate lookup Reapply r269100 and r269270, reverted due to https://llvm.org/bugs/show_bug.cgi?id=27725.

Re: [PATCH] D20196: [clang-tidy] Inefficient string operation

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb added a subscriber: etienneb. etienneb added a comment. drive-by, some nits. Comment at: clang-tidy/performance/InefficientStringAdditionCheck.cpp:31 @@ +30,3 @@ +void InefficientStringAdditionCheck::registerMatchers(MatchFinder *Finder) { + auto BasicStringType = has

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

2016-05-12 Thread Alexey Bader via cfe-commits
bader accepted this revision. bader added a comment. This revision is now accepted and ready to land. LGTM. Comment at: test/CodeGenOpenCL/as_type.cl:6 @@ +5,3 @@ + +//CHECK: define spir_func <3 x i8> @f1(<4 x i8> %[[x:.*]]) +//CHECK: %[[astype:.*]] = shufflevector <4 x i8> %[[x

[PATCH] D20218: [Tooling] Fix broken dependency for shared build

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb created this revision. etienneb added a reviewer: alexfh. etienneb added a subscriber: cfe-commits. There virtual destructor can't be found and cause a compilation error on a shared build. To repro: [Release + Shared] ``` -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON ``` Which produ

Re: [PATCH] D20218: [Tooling] Fix broken dependency for shared build

2016-05-12 Thread Etienne Bergeron via cfe-commits
etienneb added a comment. note: To repro, you must compile the tests. % ninja check-all http://reviews.llvm.org/D20218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20218: [Tooling] Fix broken dependency for shared build

2016-05-12 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. This revision is now accepted and ready to land. LG http://reviews.llvm.org/D20218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

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

2016-05-12 Thread Alexey Bader via cfe-commits
bader added inline comments. Comment at: include/clang/Basic/OpenCLExtensions.def:64 @@ +63,3 @@ +OPENCLEXT_INTERNAL(cl_khr_initialize_memory, 200, ~0U) +OPENCLEXT_INTERNAL(cl_khr_spir, 200, ~0U) +OPENCLEXT_INTERNAL(cl_khr_srgb_image_writes, 200, ~0U) Minimum requ

Re: [PATCH] D20045: [ObjC][CodeGen] Remove an assert that is no longer correct.

2016-05-12 Thread Akira Hatanaka via cfe-commits
ahatanak updated this revision to Diff 57088. ahatanak added a comment. Add a comment explaining why it is OK to return early if the global variable has an initializer. http://reviews.llvm.org/D20045 Files: lib/CodeGen/CGExpr.cpp test/CodeGenObjCXX/arc-cxx11-init-list.mm Index: test/CodeG

[PATCH] D20219: [CodeGen] Clang does not choose aapcs-vfp calling convention for ARM bare metal target with hard float (EABIHF)

2016-05-12 Thread Oleg Ranevskyy via cfe-commits
iid_iunknown created this revision. iid_iunknown added reviewers: rengolin, t.p.northover, compnerd. iid_iunknown added subscribers: cfe-commits, asl. iid_iunknown set the repository for this revision to rL LLVM. Herald added subscribers: rengolin, aemerson. Clang does not detect `aapcs-vfp` for t

Re: [PATCH] D19708: [CGDebugInfo] Generate debug info for member calls in the context of the callee expression

2016-05-12 Thread David Blaikie via cfe-commits
On Mon, May 2, 2016 at 1:17 PM, Hal Finkel wrote: > - Original Message - > > From: "David Blaikie" > > To: reviews+d19708+public+e9ddc42503732...@reviews.llvm.org, "Hal > Finkel" > > Cc: "Richard Smith" , "Adrian Prantl" < > apra...@apple.com>, "Duncan P. N. Exon Smith" > > , "Eric Chri

  1   2   >