[PATCH] D48456: [Fixed Point Arithmetic] Casting between fixed point types and other arithmetic types

2018-06-27 Thread Bevin Hansson via Phabricator via cfe-commits
ebevhan added inline comments. Comment at: include/clang/AST/ASTContext.h:1954 + llvm::APInt getFixedPointMin(QualType Ty) const; + llvm::APInt getFixedPointOne(QualType Ty) const; rjmccall wrote: > ebevhan wrote: > > rjmccall wrote: > > > Are these opaque bi

[PATCH] D44609: [Clang-Format] New option BreakBeforeLambdaBody to manage lambda line break inside function parameter call

2018-06-27 Thread Manuel Klimek via Phabricator via cfe-commits
klimek added a comment. In https://reviews.llvm.org/D44609#1143895, @Wawha wrote: > Hello, > > after my last modification (require by previous comment), I do not see any > feedback or validation for this patch. > Is their something special to do in order to go forward on this patch? > > Lambd

[PATCH] D48159: [clangd] Implement hover for "auto" and "decltype"

2018-06-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. This is so great, thank you! Comment at: clangd/XRefs.cpp:544 +/// Computes the deduced type at a given location by visiting the relevant +/// nodes. +class DeducedType

[PATCH] D48456: [Fixed Point Arithmetic] Casting between fixed point types and other arithmetic types

2018-06-27 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: lib/CodeGen/CGExprScalar.cpp:768 +if (CGF.getContext().getTargetInfo().unsignedFixedPointTypesHavePadding() && +Ty->isUnsignedFixedPointType()) { + unsigned NumBits = CGF.getContext().getTypeSize(Ty);

[PATCH] D48456: [Fixed Point Arithmetic] Casting between fixed point types and other arithmetic types

2018-06-27 Thread Bevin Hansson via Phabricator via cfe-commits
ebevhan added inline comments. Comment at: lib/CodeGen/CGExprScalar.cpp:768 +if (CGF.getContext().getTargetInfo().unsignedFixedPointTypesHavePadding() && +Ty->isUnsignedFixedPointType()) { + unsigned NumBits = CGF.getContext().getTypeSize(Ty); r

[PATCH] D48440: [NEON] Support vldNq intrinsics in AArch32 (Clang part)

2018-06-27 Thread Sjoerd Meijer via Phabricator via cfe-commits
SjoerdMeijer accepted this revision. SjoerdMeijer added a comment. This revision is now accepted and ready to land. Looks OK to me. But file "test/CodeGen/vld_dup.c" looks weird/empty. I guess you're removing it? https://reviews.llvm.org/D48440 ___

[PATCH] D47459: [ASTImporter] Eliminated some unittest warnings.

2018-06-27 Thread Balázs Kéri via Phabricator via cfe-commits
balazske updated this revision to Diff 153015. balazske added a comment. Rebase to newest master. Repository: rC Clang https://reviews.llvm.org/D47459 Files: unittests/AST/ASTImporterTest.cpp Index: unittests/AST/ASTImporterTest.cpp

[PATCH] D48368: [clangd] Sema ranking tweaks: downrank keywords and injected names.

2018-06-27 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. The code looks good to me. It'd be nicer if you can put ranking screenshots (before vs after) in the patch summary. Comment at: clangd/Quality.cpp:160 +case Keyword: /

[PATCH] D48440: [NEON] Support vldNq intrinsics in AArch32 (Clang part)

2018-06-27 Thread Ivan Kosarev via Phabricator via cfe-commits
kosarev added a comment. Yep, this patch removes `vld_dup.c` as it duplicates part of what we have in `arm-neon-vld.c`. Clicking 'Show File Contents' below the file displays its contents. Thanks for reviewing! https://reviews.llvm.org/D48440 ___ c

[PATCH] D47846: [clangd] Implementation of textDocument/documentSymbol

2018-06-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This looks great! Would like to get your thoughts on reusing/not reusing SymbolCollector. Comment at: clangd/FindSymbols.cpp:181 +/// Finds document symbols in the main file of the AST. +class DocumentSymbolsConsumer : public index::IndexDataConsumer

[PATCH] D48368: [clangd] Sema ranking tweaks: downrank keywords and injected names.

2018-06-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Added before/after Comment at: clangd/Quality.cpp:160 +case Keyword: // Often relevant, but misses most signals. + Score *= 4; // FIXME: important keywords should have specific boosts. break; hokein wrote: > I'm curi

[PATCH] D32642: [Analyzer] Iterator Checker - Part 2: Increment, decrement operators and ahead-of-begin checks

2018-06-27 Thread Balogh , Ádám via Phabricator via cfe-commits
baloghadamsoftware updated this revision to Diff 153023. baloghadamsoftware added a comment. Herald added a reviewer: george.karpenkov. Herald added a subscriber: mikhail.ramalho. Updated to work with the latest Constrain Manager patch. https://reviews.llvm.org/D32642 Files: lib/StaticAnalyze

[PATCH] D48601: Added -fcrash-diagnostics-dir flag

2018-06-27 Thread Hans Wennborg via Phabricator via cfe-commits
hans added inline comments. Comment at: clang/lib/Driver/Driver.cpp:4043-4044 +if (CCGenDiagnostics && A) { + SmallString<128> CrashDirectory; + CrashDirectory = A->getValue(); + llvm::sys::path::append(CrashDirectory, Split.first); zturner wro

[PATCH] D37035: Implement __builtin_LINE() et. al. to support source location capture.

2018-06-27 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF marked 10 inline comments as done. EricWF added inline comments. Comment at: include/clang/AST/SourceLocExprScope.h:39 +//static_assert(foo() == __LINE__); +return OldVal == nullptr || isa(DefaultExpr) || + !OldVal->isInSameContext(EvalContext); -

[PATCH] D45619: [Time-report] (1) Use special new Clang flag 'FrontendTimesIsEnabled' instead of 'llvm::TimePassesIsEnabled' inside -ftime-report feature

2018-06-27 Thread Simon Pilgrim via Phabricator via cfe-commits
RKSimon closed this revision. RKSimon added a comment. This was committed at https://reviews.llvm.org/rL330571 Repository: rL LLVM https://reviews.llvm.org/D45619 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

[PATCH] D48441: [clangd] Incorporate transitive #includes into code complete proximity scoring.

2018-06-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clangd/FileDistance.cpp:35 +: Opts(Opts) { + for (const auto &R : Roots) { +auto Canonical = canonicalize(R.getKey()); Note there was a nasty bug in FileDistance::FileDistance that failed to consider down edg

[PATCH] D48211: [clangd] Do not show namespace comments.

2018-06-27 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 153028. ilya-biryukov marked an inline comment as done. ilya-biryukov added a comment. - Move the namespace check to happen before canRequestComment call Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48211 Files: clangd/CodeComplet

[PATCH] D48211: [clangd] Do not show namespace comments.

2018-06-27 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/CodeCompletionStrings.cpp:172 // get this declaration, so we don't show documentation in that case. if (Result.Kind != CodeCompletionResult::RK_Declaration) return ""; sammccall wrote: > while her

[PATCH] D48211: [clangd] Do not show namespace comments.

2018-06-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL335718: [clangd] Do not show namespace comments. (authored by ibiryukov, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D48211 Files: clang-too

[clang-tools-extra] r335718 - [clangd] Do not show namespace comments.

2018-06-27 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jun 27 02:47:20 2018 New Revision: 335718 URL: http://llvm.org/viewvc/llvm-project?rev=335718&view=rev Log: [clangd] Do not show namespace comments. Summary: Comments from namespaces that clangd produces are too noisy and often not useful. Namespaces have too many red

[PATCH] D48436: [analyzer][UninitializedObjectChecker] Fixed a false negative by no longer filtering out certain constructor calls

2018-06-27 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. In https://reviews.llvm.org/D48436#1144380, @NoQ wrote: > I think we need to finish our dialog on who's responsible for initialization > and why do we need to filter constructors at all, cause it's kinda hanging > (i.e. https://reviews.llvm.org/D45532#inline-422673).

[PATCH] D48626: New option -fwindows-filesystem, affecting #include paths.

2018-06-27 Thread Simon Tatham via Phabricator via cfe-commits
simon_tatham created this revision. Herald added a subscriber: cfe-commits. This option interposes a wrapper implementation of VirtualFileSystem in front of the one in the CompilerInstance. The wrapper filesystem differs from the standard one in that it tolerates backslashes as a path separator ev

[PATCH] D48626: New option -fwindows-filesystem, affecting #include paths.

2018-06-27 Thread Simon Tatham via Phabricator via cfe-commits
simon_tatham added a comment. As I mentioned on llvm-dev, this is an unfinished draft. I'm interested in review comments, but I already know things like 'needs more comments / tests / careful error handling' :-) Some 'known unknowns': - I'm caching the results of every directory scan, to save

[PATCH] D48628: [AST] Structural equivalence of methods

2018-06-27 Thread Balázs Kéri via Phabricator via cfe-commits
balazske created this revision. Herald added a subscriber: cfe-commits. Added structural equivalence check for C++ methods. Improved structural equivalence tests. Added related ASTImporter tests. Repository: rC Clang https://reviews.llvm.org/D48628 Files: lib/AST/ASTStructuralEquivalence.c

[PATCH] D48116: [libclang] Allow skipping warnings from all included files

2018-06-27 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Sorry for the late response, was on vacation. Have you considered doing the same filtering in ASTUnit's `StoredDiagnosticConsumer`? It should not be more difficult and allows to avoid changing the clang's diagnostic interfaces. That's what we do in clangd. I wond

[PATCH] D48325: [analyzer][UninitializedObjectChecker] Support for MemberPointerTypes

2018-06-27 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:392 -if (T->isMemberPointerType()) { - if (isMemberPointerUninit(FR, LocalChain)) +if (T->isPointerType() || T->isReferenceType()) { + if (isPointerOrRefere

[PATCH] D48116: [libclang] Allow skipping warnings from all included files

2018-06-27 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. The idea was to ignore everything including notes and remarks so that only errors from system headers are still collected. Changing consumer might be a possible way to go as well but it requires changing (or wrapping) all consumers that we need to be affected. The advanta

[clang-tools-extra] r335723 - [clangd] Sema ranking tweaks: downrank keywords and injected names.

2018-06-27 Thread Sam McCall via cfe-commits
Author: sammccall Date: Wed Jun 27 04:43:54 2018 New Revision: 335723 URL: http://llvm.org/viewvc/llvm-project?rev=335723&view=rev Log: [clangd] Sema ranking tweaks: downrank keywords and injected names. Summary: Injected names being ranked too high was just a bug. The high boost for keywords was

[PATCH] D48368: [clangd] Sema ranking tweaks: downrank keywords and injected names.

2018-06-27 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL335723: [clangd] Sema ranking tweaks: downrank keywords and injected names. (authored by sammccall, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org

[PATCH] D48631: [ASTImporter] Added import of CXXStdInitializerListExpr

2018-06-27 Thread Balázs Kéri via Phabricator via cfe-commits
balazske created this revision. Herald added subscribers: cfe-commits, martong. Herald added a reviewer: a.sidorin. Repository: rC Clang https://reviews.llvm.org/D48631 Files: lib/AST/ASTImporter.cpp test/ASTMerge/std-initializer-list/Inputs/il.cpp test/ASTMerge/std-initializer-list/test

Re: [clang-tools-extra] r334807 - [clangd] Do not report comments that only have special chars.

2018-06-27 Thread Ilya Biryukov via cfe-commits
Hi Reid, Thanks for landing the workaround. The fact that this test didn't not work means our completion inside templates is broken on Windows by default. I'll try searching for ways to fix it. On Mon, Jun 18, 2018 at 9:00 PM Reid Kleckner wrote: > And, as soon as I sent that, I realized what

[PATCH] D48631: [ASTImporter] Added import of CXXStdInitializerListExpr

2018-06-27 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin accepted this revision. a.sidorin added a comment. This revision is now accepted and ready to land. Looks good, thank you! Repository: rC Clang https://reviews.llvm.org/D48631 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

r335725 - Add regression test for PR37935.

2018-06-27 Thread Nico Weber via cfe-commits
Author: nico Date: Wed Jun 27 05:05:06 2018 New Revision: 335725 URL: http://llvm.org/viewvc/llvm-project?rev=335725&view=rev Log: Add regression test for PR37935. Modified: cfe/trunk/test/SemaCXX/cxx-deprecated.cpp Modified: cfe/trunk/test/SemaCXX/cxx-deprecated.cpp URL: http://llvm.org/vi

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-27 Thread Nico Weber via cfe-commits
Here's another regression that was introduced by the patch: https://bugs.llvm.org/show_bug.cgi?id=37935 I landed a test for that in r335725 (in case you're wondering why there's a new test failure when you reland). Thanks for working on this! On Tue, Jun 26, 2018 at 9:03 AM Michael Kruse via cfe-

[PATCH] D48634: [clangd] Improve output of --help and --version. NFC.

2018-06-27 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: ilya-biryukov. Herald added subscribers: cfe-commits, jkorous, MaskRay, ioeric. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48634 Files: clangd/tool/ClangdMain.cpp Index: clangd/tool/ClangdMain.cpp ==

[PATCH] D48116: [libclang] Allow skipping warnings from all included files

2018-06-27 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. But this one misses a way to set this flag for everything except libclang. We can probably change that (Nikolai is in vacation till the end of summer so it's probably my part now) and add some tests outside of Index for it (probably Frontend) Repository: rC Clang htt

[PATCH] D48628: [AST] Structural equivalence of methods

2018-06-27 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin requested changes to this revision. a.sidorin added a comment. This revision now requires changes to proceed. Hi Balázs, I think that the test changes unrelated to C++ method equivalence should be moved into a separate patch. Comment at: lib/AST/ASTStructuralEquival

[PATCH] D48561: [Analyzer] Moved RangeConstraintManager to header. NFC.

2018-06-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC335726: [Analyzer] Moved RangeConstraintManager to header. NFC. (authored by mramalho, committed by ). Herald added a subscriber: cfe-commits. Repository: rC Clang https://reviews.llvm.org/D48561 File

[PATCH] D47632: [ASTImporter] Refactor Decl creation

2018-06-27 Thread Aleksei Sidorin via Phabricator via cfe-commits
a.sidorin added a comment. Hi Gabor, Let's agree on `getImportedOrCreateDecl()` :) I think it is informative enough but is still not too long. Repository: rC Clang https://reviews.llvm.org/D47632 ___ cfe-commits mailing list cfe-commits@lists.l

r335726 - [Analyzer] Moved RangeConstraintManager to header. NFC.

2018-06-27 Thread Mikhail R. Gadelha via cfe-commits
Author: mramalho Date: Wed Jun 27 05:42:48 2018 New Revision: 335726 URL: http://llvm.org/viewvc/llvm-project?rev=335726&view=rev Log: [Analyzer] Moved RangeConstraintManager to header. NFC. Summary: While at it, added a dump method to RangeSet. Reviewers: george.karpenkov, NoQ Reviewed By: geo

[PATCH] D48626: New option -fwindows-filesystem, affecting #include paths.

2018-06-27 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. There are 2 other patches out there for the case sensitivity. Neither landed, because the performance hit form this approach is pretty big, and it's not necessary: You can either put the Win SDK into a ciopfs mount (example: https://cs.chromium.org/chromium/src/build/vs_

[PATCH] D48589: [WIP] [CodeGen] Allow specifying Extend to CoerceAndExpand

2018-06-27 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 updated this revision to Diff 153070. rogfer01 added a comment. ChangeLog: - Use a `ConstantDataArray` instead of a struct of types. - Use `LLVM_IS_TRIVIALLY_COPYABLE` https://reviews.llvm.org/D48589 Files: include/clang/CodeGen/CGFunctionInfo.h lib/CodeGen/CGCall.cpp Index: lib

[PATCH] D46652: [clang-cl, PCH] Implement support for MS-style PCH through headers

2018-06-27 Thread Mike Rice via Phabricator via cfe-commits
mikerice updated this revision to Diff 153067. mikerice marked 8 inline comments as done. mikerice added a comment. Thanks for the review. Updated based on comments. https://reviews.llvm.org/D46652 Files: include/clang/Basic/DiagnosticLexKinds.td include/clang/Driver/CC1Options.td includ

[PATCH] D46652: [clang-cl, PCH] Implement support for MS-style PCH through headers

2018-06-27 Thread Mike Rice via Phabricator via cfe-commits
mikerice added inline comments. Comment at: include/clang/Driver/CC1Options.td:604 + HelpText<"When creating a pch stop at this file. When using a pch start " + "after this file.">; def fno_pch_timestamp : Flag<["-"], "fno-pch-timestamp">, hans wrote

[PATCH] D48626: New option -fwindows-filesystem, affecting #include paths.

2018-06-27 Thread Simon Tatham via Phabricator via cfe-commits
simon_tatham added a comment. No, I haven't measured it. Partly because that was one of the (many) things I was going to leave until after I //didn't// get feedback on the first draft that discouraged me from the whole idea :-) and also because I've already thought of one thing I can do to spee

[PATCH] D47554: [analyzer] Check for dead/impossible status checks

2018-06-27 Thread Tom Rix via Phabricator via cfe-commits
trixirt added a comment. Sorry for the delay, i will have something (hopefully) this weekend. Repository: rC Clang https://reviews.llvm.org/D47554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

r335731 - Re-apply: [ASTImporter] Import the whole redecl chain of functions

2018-06-27 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Jun 27 06:32:50 2018 New Revision: 335731 URL: http://llvm.org/viewvc/llvm-project?rev=335731&view=rev Log: Re-apply: [ASTImporter] Import the whole redecl chain of functions Summary: With this patch when any `FunctionDecl` of a redeclaration chain is imported then we br

[PATCH] D47532: [ASTImporter] Import the whole redecl chain of functions

2018-06-27 Thread Gabor Marton via Phabricator via cfe-commits
martong added a comment. The broken lldb tests are fixed with a minor change. We no longer load the Decls from the external source during the call of `DeclContext::containsDecl`. A new function `DeclContext::containsDeclAndLoad` is added which does a load and calls `containsDecl`. Re-apply comm

[PATCH] D48589: [WIP] [CodeGen] Allow specifying Extend to CoerceAndExpand

2018-06-27 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 added a comment. @rjmccall because we do not want to impact the clients of `ABIArgInfo` I thought of two possible approaches 1. extend `CGFunctionInfo` with a third trailing array (now it has two), with as many elements as `ABIArgInfo` (call it `ABIArgExtraInfo`) then during the creat

[PATCH] D48342: [libcxx] Optimize vectors construction of trivial types from an iterator range with const-ness mismatch.

2018-06-27 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added inline comments. Comment at: libcxx/include/memory:1479 +struct __has_construct_missing +: false_type +{ vsapsai wrote: > erik.pilkington wrote: > > Shouldn't this be true_type? > I see this is confusing and I'm still struggling how to e

[PATCH] D47532: [ASTImporter] Import the whole redecl chain of functions

2018-06-27 Thread Pavel Labath via Phabricator via cfe-commits
labath added a comment. In https://reviews.llvm.org/D47532#1144966, @martong wrote: > The broken lldb tests are fixed with a minor change. We no longer load the > Decls from the > external source during the call of `DeclContext::containsDecl`. A new > function > `DeclContext::containsDeclAnd

[PATCH] D48325: [analyzer][UninitializedObjectChecker] Support for MemberPointerTypes

2018-06-27 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:488-491 // TODO: Dereferencing should be done according to the dynamic type. while (Optional L = DerefdV.getAs()) { DerefdV = State->getSVal(*L); } --

[PATCH] D48616: Implement LWG 2946, 3075 and 3076

2018-06-27 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists added inline comments. Comment at: test/std/strings/basic.string/string.ops/string_rfind/string_size.pass.cpp:161 +std::string s = " !"; +assert(s.rfind({"abc", 1}) == std::string::npos); +} These tests don't work in C++03; they'll need t

[PATCH] D48524: [ODRHash] Rip out the registration of Type* in TypeMap

2018-06-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev updated this revision to Diff 153086. v.g.vassilev retitled this revision from "[ODRHash] Do not put elaborated types in the TypeMap" to "[ODRHash] Rip out the registration of Type* in TypeMap". v.g.vassilev added a comment. Remove the TypeMap https://reviews.llvm.org/D48524 Files

[PATCH] D48524: [ODRHash] Rip out the registration of Type* in TypeMap

2018-06-27 Thread Vassil Vassilev via Phabricator via cfe-commits
v.g.vassilev added a comment. @rtrieu, your comment was along the lines of what I was thinking of. I have updated the patch. Without testing it on large scale, I the current change seems to work for us. https://reviews.llvm.org/D48524 ___ cfe-comm

[clang-tools-extra] r335736 - [clang-tidy] Add ExprMutationAnalyzer, that analyzes whether an expression is mutated within a statement.

2018-06-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Jun 27 07:30:55 2018 New Revision: 335736 URL: http://llvm.org/viewvc/llvm-project?rev=335736&view=rev Log: [clang-tidy] Add ExprMutationAnalyzer, that analyzes whether an expression is mutated within a statement. Summary: (Originally started as a clang-tidy check but th

[PATCH] D45679: [clang-tidy] Add ExprMutationAnalyzer, that analyzes whether an expression is mutated within a statement.

2018-06-27 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rCTE335736: [clang-tidy] Add ExprMutationAnalyzer, that analyzes whether an expression is… (authored by alexfh, committed by ). Changed prior to commit: https://reviews.llvm.org/D45679?vs=151245&id=153087

[PATCH] D46951: [clang-tidy] misc-unused-parameters - retain old behavior under StrictMode

2018-06-27 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh added a comment. Ping. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D46951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r335739 - [analyzer] Fix string not being formatted with extra arguments

2018-06-27 Thread Mikhail R. Gadelha via cfe-commits
Author: mramalho Date: Wed Jun 27 07:39:41 2018 New Revision: 335739 URL: http://llvm.org/viewvc/llvm-project?rev=335739&view=rev Log: [analyzer] Fix string not being formatted with extra arguments Signed-off-by: Mikhail Ramalho Modified: cfe/trunk/utils/analyzer/SATestBuild.py Modified: c

r335740 - [analyzer] Allow registering custom statically-linked analyzer checkers

2018-06-27 Thread Alexander Kornienko via cfe-commits
Author: alexfh Date: Wed Jun 27 07:56:12 2018 New Revision: 335740 URL: http://llvm.org/viewvc/llvm-project?rev=335740&view=rev Log: [analyzer] Allow registering custom statically-linked analyzer checkers Summary: Add an extension point to allow registration of statically-linked Clang Static Anal

[PATCH] D45718: [analyzer] Allow registering custom statically-linked analyzer checkers

2018-06-27 Thread Alexander Kornienko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC335740: [analyzer] Allow registering custom statically-linked analyzer checkers (authored by alexfh, committed by ). Changed prior to commit: https://reviews.llvm.org/D45718?vs=152317&id=153091#toc Rep

[PATCH] D46951: [clang-tidy] misc-unused-parameters - retain old behavior under StrictMode

2018-06-27 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri accepted this revision. lebedev.ri added a comment. This revision is now accepted and ready to land. I would like to see some test in non-strict mode that shows that it is the child existence is what matters, e.g. with empty lines, and maybe another one with all the content commented ou

[PATCH] D48616: Implement LWG 2946, 3075 and 3076

2018-06-27 Thread Marshall Clow via Phabricator via cfe-commits
mclow.lists updated this revision to Diff 153097. mclow.lists added a comment. Update the tests from 2946 - they are removed for C++03 https://reviews.llvm.org/D48616 Files: include/memory include/string test/std/strings/basic.string/string.cons/copy_assignment.pass.cpp test/std/strings

Re: r335702 - Fix warning about unhandled enumeration in switch.

2018-06-27 Thread John Baldwin via cfe-commits
On 6/26/18 7:49 PM, Zachary Turner via cfe-commits wrote: > Author: zturner > Date: Tue Jun 26 19:49:22 2018 > New Revision: 335702 > > URL: http://llvm.org/viewvc/llvm-project?rev=335702&view=rev > Log: > Fix warning about unhandled enumeration in switch. > > Modified: > cfe/trunk/lib/Driver

r335745 - [X86] Rename llvm.x86.avx512.mask.fpclass.p* to exclude 'mask.' from the name to match llvm.

2018-06-27 Thread Craig Topper via cfe-commits
Author: ctopper Date: Wed Jun 27 08:57:57 2018 New Revision: 335745 URL: http://llvm.org/viewvc/llvm-project?rev=335745&view=rev Log: [X86] Rename llvm.x86.avx512.mask.fpclass.p* to exclude 'mask.' from the name to match llvm. Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp cfe/trunk/test/

[PATCH] D48652: [clang-tidy/ObjC] Add hashing algorithm acronyms to objc-property-declaration

2018-06-27 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton created this revision. benhamilton added a reviewer: Wizard. Herald added a subscriber: cfe-commits. This PR adds a few acronyms related to hashing algorithms to the standard list in `objc-property-declaration`. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D48652 F

[PATCH] D46951: [clang-tidy] misc-unused-parameters - retain old behavior under StrictMode

2018-06-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM aside from some documentation nits. Comment at: docs/clang-tidy/checks/misc-unused-parameters.rst:6 -Finds unused parameters and fixes them, so that `-Wunused-parameter` can be -turned on. +Finds unused

r335750 - [NEON] Remove empty test file from r335734

2018-06-27 Thread Francis Visoiu Mistrih via cfe-commits
Author: thegameg Date: Wed Jun 27 09:17:32 2018 New Revision: 335750 URL: http://llvm.org/viewvc/llvm-project?rev=335750&view=rev Log: [NEON] Remove empty test file from r335734 Fails on Green Dragon: http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-incremental/50174/consoleFull UNRESOL

Re: r335084 - Append new attributes to the end of an AttributeList.

2018-06-27 Thread Michael Kruse via cfe-commits
Thanks for adding the regression test. I'll wait for @erichkeane's work AttibuteList's linked list fix before trying to re-commit. Michael 2018-06-27 7:12 GMT-05:00 Nico Weber : > Here's another regression that was introduced by the patch: > https://bugs.llvm.org/show_bug.cgi?id=37935 I landed

[PATCH] D48352: [clang-format] Improve ObjC method expressions formatting

2018-06-27 Thread Ben Hamilton via Phabricator via cfe-commits
benhamilton requested changes to this revision. benhamilton added a comment. This revision now requires changes to proceed. It's really hard to understand reviews which change 4 different things. I hate to ask, but can you split this up into the 4 fixes? Repository: rC Clang https://reviews.

[PATCH] D48352: [clang-format] Improve ObjC method expressions formatting

2018-06-27 Thread Jacek Olesiak via Phabricator via cfe-commits
jolesiak added a comment. In https://reviews.llvm.org/D48352#1145220, @benhamilton wrote: > It's really hard to understand reviews which change 4 different things. > > I hate to ask, but can you split this up into the 4 fixes? Sure, I'll split it tomorrow. Repository: rC Clang https://revi

r335752 - Revert "[Analyzer] Moved RangeConstraintManager to header. NFC."

2018-06-27 Thread Mikhail R. Gadelha via cfe-commits
Author: mramalho Date: Wed Jun 27 09:45:58 2018 New Revision: 335752 URL: http://llvm.org/viewvc/llvm-project?rev=335752&view=rev Log: Revert "[Analyzer] Moved RangeConstraintManager to header. NFC." This broke a number of bots. This reverts commit 5e1a89912d37a21c3b49ccf30600d7f498dffa9c. Modi

[PATCH] D48325: [analyzer][UninitializedObjectChecker] Support for MemberPointerTypes

2018-06-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:392 -if (T->isMemberPointerType()) { - if (isMemberPointerUninit(FR, LocalChain)) +if (T->isPointerType() || T->isReferenceType()) { + if (isPointerOrReferenceUni

[PATCH] D48617: [Builtins][Attributes][X86] Tag all X86 builtins with their required vector width. Add a min_vector_width function attribute and tag all x86 instrinsics with it.

2018-06-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a reviewer: aaron.ballman. aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:1949 + let Args = [UnsignedArgument<"VectorWidth">]; + let Subjects = SubjectList<[Function], ErrorDiag>; + let Documentation = [Undocumented]; -

[PATCH] D48661: [Fixed Point Arithmetic] Fixed Point Constant

2018-06-27 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan created this revision. leonardchan added reviewers: phosek, mcgrathr, jakehehrlich, rsmith, ebevhan, rjmccall. leonardchan added a project: clang. This patch proposes an abstract type that represents fixed point numbers, similar to APInt or APSInt that was discussed in https://revie

r335757 - [DebugInfo] Emit ObjC methods as part of interface

2018-06-27 Thread Jonas Devlieghere via cfe-commits
Author: jdevlieghere Date: Wed Jun 27 10:31:59 2018 New Revision: 335757 URL: http://llvm.org/viewvc/llvm-project?rev=335757&view=rev Log: [DebugInfo] Emit ObjC methods as part of interface As brought up during the discussion of the DWARF5 accelerator tables, there is currently no way to associat

[PATCH] D48241: [DebugInfo] Emit ObjC methods as part of interface.

2018-06-27 Thread Jonas Devlieghere via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC335757: [DebugInfo] Emit ObjC methods as part of interface (authored by JDevlieghere, committed by ). Repository: rC Clang https://reviews.llvm.org/D48241 Files: lib/CodeGen/CGDebugInfo.cpp lib/Co

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 153124. ashi1 added a comment. I've changed the string to a more meaningful name, and also added a lit test to check that oclc_daz_opt_on.amdgcn.bc is used. https://reviews.llvm.org/D48493 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/Inputs/hip_multi

[PATCH] D35110: [Analyzer] Constraint Manager Negates Difference

2018-06-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Thank you!! Please commit. Comment at: test/Analysis/constraint_manager_negate_difference.c:95 +void negate_mixed(int m, int n) { + if (m -n > INT_MIN && m - n <= 0) +return;

[PATCH] D48616: Implement LWG 2946, 3075 and 3076

2018-06-27 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. LGTM. All comments/questions are just for my education. Other things I did: double-check that you changed all the functions changed by https://cplusplus.github.io/LWG/lwg-defects.html#2946. Comment at: include/memory:5647 + typename __void_t::ty

[PATCH] D48626: New option -fwindows-filesystem, affecting #include paths.

2018-06-27 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. The things I pointed at only do case-insensitivity. I haven't seen anything using backslashes in the builds I worked on. (Is that for -I flags?) I'd think that the backslash bits can probably be implemented with less overhead. Repository: rC Clang https://reviews.llv

[PATCH] D48616: Implement LWG 2946, 3075 and 3076

2018-06-27 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. More missed `noexcept`s. Comment at: include/string:279 +template +size_type find_first_of(const T& t, size_type pos = 0) const noexcept; // C++17 size_type find_first_of(const value_type* s, size_type pos, size_type n) const noexcep

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 153127. ashi1 added a comment. Added diff with full context. https://reviews.llvm.org/D48493 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/Inputs/hip_multiple_inputs/dev_lib/irif.amdgcn.bc test/Driver/Inputs/hip_multiple_inputs/dev_lib/ockl.amdgcn.bc

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 153131. ashi1 added a comment. Fix diff file https://reviews.llvm.org/D48493 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/Inputs/hip_multiple_inputs/dev_lib/irif.amdgcn.bc test/Driver/Inputs/hip_multiple_inputs/dev_lib/ockl.amdgcn.bc test/Driver/

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: test/Driver/hip-toolchain-flush-denorms.hip:6 +// RUN: %clang -### -target x86_64-linux-gnu \ +// RUN: -x hip --cuda-gpu-arch=gfx803 --cuda-gpu-arch=gfx900 \ +// RUN: --hip-device-lib-path=%S/Inputs/hip_multiple_inputs/dev_lib \ -

[PATCH] D48661: [Fixed Point Arithmetic] Fixed Point Constant

2018-06-27 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/FixedPoint.h:11 +/// \file +/// Defines the fixed point number interface. +// Referencing the standard here would be good, and maybe even excerpting the key parts. Comment at: inc

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: lib/Driver/ToolChains/HIP.cpp:85 "ockl.amdgcn.bc", "irif.amdgcn.bc", "ocml.amdgcn.bc", "oclc_finite_only_off.amdgcn.bc", + FlushDenormalControlBC, we need to fix t

[PATCH] D44143: [clang-tidy] Create properly seeded random generator check

2018-06-27 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/cert/ProperlySeededRandomGeneratorCheck.cpp:24 +: ClangTidyCheck(Name, Context), + RawDisallowedSeedTypes(Options.get("DisallowedSeedTypes", "")) { + StringRef(RawDisallowedSeedTypes).split(DisallowedSeedTypes,

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 153136. ashi1 added a comment. I've updated. Moved the bitcode files into hip_dev_lib and added test for both on and off flush denorms to zero option. https://reviews.llvm.org/D48493 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/Inputs/hip_dev_lib/iri

[PATCH] D46915: [Fixed Point Arithmetic] Fixed Point Precision Bits and Fixed Point Literals

2018-06-27 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/TargetInfo.h:90 + // by default. + bool SameFBits; + Sorry for the extremely late review, but this really needs to be renamed. Please remember that other compiler maintainers are not experts in t

[PATCH] D48613: [CUDA] Use atexit() to call module destructor.

2018-06-27 Thread Artem Belevich via Phabricator via cfe-commits
tra updated this revision to Diff 153138. tra added a comment. Make destructor registration conditional -- we generate no destructor with -fcuda-rdc. Updated the test to reflect changes in destructor registration. https://reviews.llvm.org/D48613 Files: clang/lib/CodeGen/CGCUDANV.cpp clang/

r335762 - [UBSan] Add silence_unsigned_overflow flag.

2018-06-27 Thread Matt Morehouse via cfe-commits
Author: morehouse Date: Wed Jun 27 11:24:46 2018 New Revision: 335762 URL: http://llvm.org/viewvc/llvm-project?rev=335762&view=rev Log: [UBSan] Add silence_unsigned_overflow flag. Summary: Setting UBSAN_OPTIONS=silence_unsigned_overflow=1 will silence all UIO reports. This feature, combined with

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 153140. https://reviews.llvm.org/D48493 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/Inputs/hip_dev_lib/irif.amdgcn.bc test/Driver/Inputs/hip_dev_lib/ockl.amdgcn.bc test/Driver/Inputs/hip_dev_lib/oclc_correctly_rounded_sqrt_on.amdgcn.bc test/Drive

[PATCH] D48342: [libcxx] Optimize vectors construction of trivial types from an iterator range with const-ness mismatch.

2018-06-27 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai added inline comments. Comment at: libcxx/include/memory:1479 +struct __has_construct_missing +: false_type +{ erik.pilkington wrote: > vsapsai wrote: > > erik.pilkington wrote: > > > Shouldn't this be true_type? > > I see this is confusing and I'm st

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. better merge these two tests and rename it as hip-device-libs.hip. We can also add other device lib tests to it later. https://reviews.llvm.org/D48493 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm

r335763 - [CUDA] Use atexit() to call module destructor.

2018-06-27 Thread Artem Belevich via cfe-commits
Author: tra Date: Wed Jun 27 11:32:51 2018 New Revision: 335763 URL: http://llvm.org/viewvc/llvm-project?rev=335763&view=rev Log: [CUDA] Use atexit() to call module destructor. This matches the way NVCC does it. Doing module cleanup at global destructor phase used to work, but is, apparently, too

[PATCH] D48427: [Analyzer] Fix for D47417 to make the tests pass

2018-06-27 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Aha, ok, yeah, we should have seen this coming. Whenever a checker tracks pairs of objects, like containers and iterators, or strings objects and their internal buffers (https://reviews.llvm.org/D48522), or return values and out-parameters of the same function call (https:/

[PATCH] D48613: [CUDA] Use atexit() to call module destructor.

2018-06-27 Thread Artem Belevich via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC335763: [CUDA] Use atexit() to call module destructor. (authored by tra, committed by ). Changed prior to commit: https://reviews.llvm.org/D48613?vs=153138&id=153144#toc Repository: rC Clang https:/

[PATCH] D48589: [WIP] [CodeGen] Allow specifying Extend to CoerceAndExpand

2018-06-27 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. In https://reviews.llvm.org/D48589#1144976, @rogfer01 wrote: > @rjmccall because we do not want to impact the clients of `ABIArgInfo` I > thought of two possible approaches > > 1. extend `CGFunctionInfo` with a third trailing array (now it has two), with > as many elem

[PATCH] D48493: [HIP] Support flush denorms bitcode

2018-06-27 Thread Aaron Enye Shi via Phabricator via cfe-commits
ashi1 updated this revision to Diff 153146. ashi1 added a comment. Merged checks for flush denorm on and off into single test hip-device-libs.hip https://reviews.llvm.org/D48493 Files: lib/Driver/ToolChains/HIP.cpp test/Driver/Inputs/hip_dev_lib/irif.amdgcn.bc test/Driver/Inputs/hip_dev_l

  1   2   >