[PATCH] D52794: [analyzer][PlistMacroExpansion] Part 2.: Retrieving the macro name and primitive expansion

2018-10-31 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus planned changes to this revision. Szelethus added a comment. I'll put this patch on hold while I'm investigating the issue @xazax.hun mentioned. Mind you, again, other patches don't depend strictly on this part, I'll only need to change the for loop. Hopefully. You never know.

[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

2018-10-31 Thread George Rimar via Phabricator via cfe-commits
grimar added a comment. In https://reviews.llvm.org/D52296#1281642, @echristo wrote: > Can you elaborate on your motivations and what you're trying to do? > > Thanks! We want to see: - No extra files. The compiler produces just a .o. - The linker leaves most debug info in the .o files. That m

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp:158 + *Result.Context) + .empty()) { + diag(ArgExpr->getBeginLoc(), Message); astrelni wrote: > JonasToth wrote: > > You could ellide

[PATCH] D51949: [clang-tidy] new check 'readability-isolate-declaration'

2018-10-31 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 171947. JonasToth added a comment. - Merge branch 'master' into experiment_isolate_decl - remove unused matcher Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D51949 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/I

[PATCH] D53854: [Driver] Use -push-/-pop-state and -as-needed for libc++ on Fuchsia

2018-10-31 Thread Petr Hosek via Phabricator via cfe-commits
phosek updated this revision to Diff 171948. phosek marked 2 inline comments as done. Repository: rC Clang https://reviews.llvm.org/D53854 Files: clang/lib/Driver/ToolChains/Fuchsia.cpp clang/test/Driver/fuchsia.cpp Index: clang/test/Driver/fuchsia.cpp ===

Re: r345676 - [Win64] Handle passing i128 by value

2018-10-31 Thread Reid Kleckner via cfe-commits
On Wed, Oct 31, 2018 at 7:39 AM wrote: > Also, don't we usually put ABI changes under an ABI compatibility check? > This would be making Clang incompatible with itself. > I don't think it's worth it because nobody can use i128 in a meaningful way on x64 Windows right now. If you do i128 multipli

[clang-tools-extra] r345735 - [clang-tidy] new check 'readability-isolate-declaration'

2018-10-31 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Wed Oct 31 09:50:44 2018 New Revision: 345735 URL: http://llvm.org/viewvc/llvm-project?rev=345735&view=rev Log: [clang-tidy] new check 'readability-isolate-declaration' Summary: This patch introduces a new clang-tidy check that matches on all `declStmt` that declare more

[PATCH] D51949: [clang-tidy] new check 'readability-isolate-declaration'

2018-10-31 Thread Jonas Toth via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345735: [clang-tidy] new check 'readability-isolate-declaration' (authored by JonasToth, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D51949 F

[clang-tools-extra] r345736 - [clang-tools-extra] fix broken link in release notes

2018-10-31 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Wed Oct 31 09:59:41 2018 New Revision: 345736 URL: http://llvm.org/viewvc/llvm-project?rev=345736&view=rev Log: [clang-tools-extra] fix broken link in release notes Modified: clang-tools-extra/trunk/docs/ReleaseNotes.rst Modified: clang-tools-extra/trunk/docs/ReleaseN

r345737 - [clang] try-fix broken documentation builder

2018-10-31 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Wed Oct 31 10:00:50 2018 New Revision: 345737 URL: http://llvm.org/viewvc/llvm-project?rev=345737&view=rev Log: [clang] try-fix broken documentation builder Modified: cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/docs/ReleaseNotes.rst URL: http://llvm.org/viewv

[clang-tools-extra] r345738 - [clang-tidy] add -fexceptions to failing unit-test, unbreak buildbot

2018-10-31 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Wed Oct 31 10:08:09 2018 New Revision: 345738 URL: http://llvm.org/viewvc/llvm-project?rev=345738&view=rev Log: [clang-tidy] add -fexceptions to failing unit-test, unbreak buildbot Modified: clang-tools-extra/trunk/test/clang-tidy/readability-isolate-declaration.cpp M

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-31 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel marked 4 inline comments as done. ymandel added a comment. Aaron, Jonas, Thank you both so much for being fantastic reviewers! This was my first experience contributing to clang (upstream) and it has been extremely positive. In https://reviews.llvm.org/D53025#1282194, @aaron.ballman wr

[PATCH] D53936: [clang-tidy] More clearly separate public, check-facing APIs from internal ones.

2018-10-31 Thread Stephen Kelly via Phabricator via cfe-commits
steveire added inline comments. Comment at: clang-tidy/ClangTidy.h:11 +// +// It should remain as stable as possible, as many out-of-tree checks exist. +//===--===// Clang C++ code does not have

[PATCH] D44100: [ASTImporter] Reorder fields after structure import is finished

2018-10-31 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik added a comment. I am happy to discuss and review a revised version of this change. Repository: rC Clang https://reviews.llvm.org/D44100 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo

[PATCH] D53940: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager

2018-10-31 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus created this revision. Szelethus added a reviewer: dblaikie. Herald added subscribers: cfe-commits, dkrupp. I'm currently working on including macro expansions in the Static Analyzer's plist output, where I can only access a `const SourceManager`. Repository: rC Clang https://revie

[PATCH] D53940: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager

2018-10-31 Thread David Blaikie via Phabricator via cfe-commits
dblaikie accepted this revision. dblaikie added a comment. This revision is now accepted and ready to land. Looks fine Repository: rC Clang https://reviews.llvm.org/D53940 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

[PATCH] D53940: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager

2018-10-31 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added a comment. Thanks! That was super fast! Repository: rC Clang https://reviews.llvm.org/D53940 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

2018-10-31 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. In https://reviews.llvm.org/D52296#1282369, @grimar wrote: > In https://reviews.llvm.org/D52296#1281642, @echristo wrote: > > > Can you elaborate on your motivations and what you're trying to do? > > > > Thanks! > > > We want to see: > > - No extra files. The compiler pr

[PATCH] D53941: [clangd][wip] Add 'related information' to diagnostics. Does not work for built-in notes

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. Herald added subscribers: cfe-commits, kadircet, arphaman, jkorous, MaskRay, ioeric. A prototype that I made a while ago and never landed. Not suppossed to be a final solution and will probably merge-conflict now, publishing to not loose it. Repository: rC

[PATCH] D53940: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager

2018-10-31 Thread Umann Kristóf via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345741: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager (authored by Szelethus, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.l

r345741 - [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager

2018-10-31 Thread Kristof Umann via cfe-commits
Author: szelethus Date: Wed Oct 31 10:19:20 2018 New Revision: 345741 URL: http://llvm.org/viewvc/llvm-project?rev=345741&view=rev Log: [Lex] Make MacroDirective::findDirectiveAtLoc take const SourceManager I'm currently working on including macro expansions in the Static Analyzer's plist output,

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added a comment. Retitling to just the x86-64 case. 32-bit mode has issues on arguments too I think and will need more work. The IsIllegalVectorType function is a member of the X86_64ABIInfo so we need to refactor or add a new one for 32-bit. Repository: rC Clang https://review

[clang-tools-extra] r345742 - [clang-tidy] add missing '--' in RUN-line, unbreak buildbot

2018-10-31 Thread Jonas Toth via cfe-commits
Author: jonastoth Date: Wed Oct 31 10:26:10 2018 New Revision: 345742 URL: http://llvm.org/viewvc/llvm-project?rev=345742&view=rev Log: [clang-tidy] add missing '--' in RUN-line, unbreak buildbot Modified: clang-tools-extra/trunk/test/clang-tidy/readability-isolate-declaration.cpp Modified:

[PATCH] D53921: Compound literals and enums require constant inits

2018-10-31 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added inline comments. Comment at: lib/Sema/SemaDecl.cpp:16411 // this constant. Skip this enum since it may be ill-formed. -if (!ECD) { - return; -} +if (!ECD) return; probably don't need to adjust this line Repository:

r345746 - [analyzer] RetainCountChecker: for now, do not trust the summaries of inlined code

2018-10-31 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Oct 31 10:38:29 2018 New Revision: 345746 URL: http://llvm.org/viewvc/llvm-project?rev=345746&view=rev Log: [analyzer] RetainCountChecker: for now, do not trust the summaries of inlined code Trusting summaries of inlined code would require a more thorough work,

r345745 - [analyzer] Enable retain count checking for OSObject by defa

2018-10-31 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Oct 31 10:38:12 2018 New Revision: 345745 URL: http://llvm.org/viewvc/llvm-project?rev=345745&view=rev Log: [analyzer] Enable retain count checking for OSObject by defa The FP rate seems to be good enough now. Differential Revision: https://reviews.llvm.org/D53

r345747 - [analyzer] Re-add custom OSIterator rule for RetainCountChecker

2018-10-31 Thread George Karpenkov via cfe-commits
Author: george.karpenkov Date: Wed Oct 31 10:38:46 2018 New Revision: 345747 URL: http://llvm.org/viewvc/llvm-project?rev=345747&view=rev Log: [analyzer] Re-add custom OSIterator rule for RetainCountChecker Turns out the rule is quite ubiquitous. Revert of https://reviews.llvm.org/D53628 Modifi

[PATCH] D53902: RetainCountChecker: for now, do not trust the summaries of inlined code

2018-10-31 Thread George Karpenkov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345746: [analyzer] RetainCountChecker: for now, do not trust the summaries of inlined… (authored by george.karpenkov, committed by ). Herald added a subscriber: cfe-commits. Changed prior to commit: htt

[PATCH] D52794: [analyzer][PlistMacroExpansion] Part 2.: Retrieving the macro name and primitive expansion

2018-10-31 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus updated this revision to Diff 171962. Szelethus added a comment. Fixes according to @xazax.hun's remarks. Thanks for catching that, it was a non-trivial cornercase! - Now I'm acquiring the macro directive history, and choosing the appropriate macro definition in `getMacroNameAndInfo`

r345748 - Re-land r345676 "[Win64] Handle passing i128 by value"

2018-10-31 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Oct 31 10:43:55 2018 New Revision: 345748 URL: http://llvm.org/viewvc/llvm-project?rev=345748&view=rev Log: Re-land r345676 "[Win64] Handle passing i128 by value" Fix the unintended switch/case fallthrough to avoid changing long double behavior. Added: cfe/trunk/test/Co

[PATCH] D52794: [analyzer][PlistMacroExpansion] Part 2.: Retrieving the macro name and primitive expansion

2018-10-31 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus marked 10 inline comments as done. Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Core/PlistDiagnostics.cpp:667 + +//===--===// +// Declarations of helper functions and data structures

[PATCH] D51866: [analyzer][UninitializedObjectChecker] New flag to ignore guarded uninitialized fields

2018-10-31 Thread Umann Kristóf via Phabricator via cfe-commits
Szelethus added inline comments. Comment at: lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp:502 + + auto AssertM = callExpr(callee(functionDecl(hasName("assert"; + auto GuardM = Szelethus wrote: > NoQ wrote: > > In a lot of

[PATCH] D53882: [clang-tidy] Adding Zircon checker for std namespace

2018-10-31 Thread Eugene Zelenko via Phabricator via cfe-commits
Eugene.Zelenko added inline comments. Comment at: clang-tools-extra/docs/ReleaseNotes.rst:176 + + Warns when the `std` namespace is used, as its use is against Zircon's libc++ + policy for the kernel. JonasToth wrote: > alexfh wrote: > > JonasToth wrote: > > >

[PATCH] D52676: [clang-format] tweaked another case of lambda formatting

2018-10-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
krasimir accepted this revision. krasimir added a comment. This revision is now accepted and ready to land. Thank you! Repository: rC Clang https://reviews.llvm.org/D52676 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

r345753 - [clang-format] tweaked another case of lambda formatting

2018-10-31 Thread Krasimir Georgiev via cfe-commits
Author: krasimir Date: Wed Oct 31 10:56:57 2018 New Revision: 345753 URL: http://llvm.org/viewvc/llvm-project?rev=345753&view=rev Log: [clang-format] tweaked another case of lambda formatting Summary: This is done in order to improve cases where the lambda's body is moved too far to the right. C

[PATCH] D52676: [clang-format] tweaked another case of lambda formatting

2018-10-31 Thread Krasimir Georgiev via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345753: [clang-format] tweaked another case of lambda formatting (authored by krasimir, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D52676?

[PATCH] D53866: [Preamble] Fix preamble for circular #includes

2018-10-31 Thread Ivan Donchevskii via Phabricator via cfe-commits
yvvan added a comment. @ilya-biryukov As far as I understand the problem the same thing happens when you are in the header a.h which includes b.h and b.h includes a.h at the same time. So you get this recursion indirectly and very often because that's why include guards are there. Repository

[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

2018-10-31 Thread Paul Robinson via Phabricator via cfe-commits
probinson added a comment. In https://reviews.llvm.org/D52296#1282458, @dblaikie wrote: > I guess in that case your distributed build system would have a constraint > that it always ships all the object files back to the primary machine (where > you'd be running the debugger)? (perhaps it just

[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

2018-10-31 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. In https://reviews.llvm.org/D52296#1282587, @probinson wrote: > In https://reviews.llvm.org/D52296#1282458, @dblaikie wrote: > > > I guess in that case your distributed build system would have a constraint > > that it always ships all the object files back to the primar

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Alex Strelnikov via Phabricator via cfe-commits
astrelni updated this revision to Diff 171973. astrelni added a comment. Combine template instantiation matching into the other matcher registration. https://reviews.llvm.org/D53830 Files: clang-tidy/abseil/AbseilTidyModule.cpp clang-tidy/abseil/CMakeLists.txt clang-tidy/abseil/UpgradeDur

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Alex Strelnikov via Phabricator via cfe-commits
astrelni marked 3 inline comments as done. astrelni added inline comments. Comment at: clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp:158 + *Result.Context) + .empty()) { + diag(ArgExpr->getBeginLoc(), Message); JonasToth wro

[PATCH] D53921: Compound literals, global array decls, and enums require constant inits

2018-10-31 Thread Bill Wendling via Phabricator via cfe-commits
void updated this revision to Diff 171976. void retitled this revision from "Compound literals and enums require constant inits" to "Compound literals, global array decls, and enums require constant inits". void edited the summary of this revision. Repository: rC Clang https://reviews.llvm.or

[PATCH] D53921: Compound literals, global array decls, and enums require constant inits

2018-10-31 Thread Bill Wendling via Phabricator via cfe-commits
void added inline comments. Comment at: lib/Sema/SemaDecl.cpp:16411 // this constant. Skip this enum since it may be ill-formed. -if (!ECD) { - return; -} +if (!ECD) return; nickdesaulniers wrote: > probably don't need to adjust this line

[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

2018-10-31 Thread Paul Robinson via Phabricator via cfe-commits
probinson added a comment. In https://reviews.llvm.org/D52296#1282589, @dblaikie wrote: > In https://reviews.llvm.org/D52296#1282587, @probinson wrote: > > > Any distributed build has to make this work, so the paths in the line table > > are usable. Not clear what you're thinking might be the p

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D53025#1282423, @ymandel wrote: > Aaron, Jonas, > > Thank you both so much for being fantastic reviewers! This was my first > experience contributing to clang (upstream) and it has been extremely > positive. Congratulations on contri

[PATCH] D53946: [clangd] Signal when skipping the diagnostic rebuilds.

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov created this revision. ilya-biryukov added a reviewer: sammccall. Herald added subscribers: kadircet, jfb, arphaman, jkorous, MaskRay, ioeric, javed.absar. NFC on the LSP level, only produces notifications in the C++ API. Useful for the clients of the C++ API that provide an indicat

[PATCH] D53946: [clangd] Signal when skipping the diagnostic rebuilds.

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clangd/TUScheduler.h:77 +class DiagnosticsResult { +public: To avoid boilerplate this could be changed to: ``` using DiagnosticsResult = Optional>; ``` Would still keep it a named typedef to allow documenting wh

[PATCH] D53936: [clang-tidy] More clearly separate public, check-facing APIs from internal ones.

2018-10-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tidy/ClangTidy.h:11 +// +// It should remain as stable as possible, as many out-of-tree checks exist. +//===--===// steveire wrote: > Clang C++

[PATCH] D53697: [ASTImporter][Structural Eq] Check for isBeingDefined

2018-10-31 Thread Gabor Marton via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC345760: [ASTImporter][Structural Eq] Check for isBeingDefined (authored by martong, committed by ). Changed prior to commit: https://reviews.llvm.org/D53697?vs=171723&id=171984#toc Repository: rC Cla

r345760 - [ASTImporter][Structural Eq] Check for isBeingDefined

2018-10-31 Thread Gabor Marton via cfe-commits
Author: martong Date: Wed Oct 31 11:46:13 2018 New Revision: 345760 URL: http://llvm.org/viewvc/llvm-project?rev=345760&view=rev Log: [ASTImporter][Structural Eq] Check for isBeingDefined Summary: If one definition is currently being defined, we do not compare for equality and we assume that the

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp:167 +// likely needed. +diag(ArgExpr->getBeginLoc(), Message); +return; Minor, but you can move `diag(...)` out the if condition like this: ``` auto Di

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-31 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel updated this revision to Diff 171985. ymandel marked an inline comment as done. ymandel added a comment. Rebased patch onto trunk. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53025 Files: clang-tidy/readability/CMakeLists.txt clang-tidy/readability/ConstReturnTyp

[PATCH] D53141: [OpenMP][libomptarget] Add runtime function for pushing coalesced global records

2018-10-31 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171988. gtbercea added a comment. Address comments. Repository: rOMP OpenMP https://reviews.llvm.org/D53141 Files: libomptarget/deviceRTLs/nvptx/src/data_sharing.cu libomptarget/deviceRTLs/nvptx/src/interface.h libomptarget/deviceRTLs/nvptx/src/

[PATCH] D52296: [Clang] - Add -gsingle-file-split-dwarf option.

2018-10-31 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. In https://reviews.llvm.org/D52296#1282603, @probinson wrote: > In https://reviews.llvm.org/D52296#1282589, @dblaikie wrote: > > > In https://reviews.llvm.org/D52296#1282587, @probinson wrote: > > > > > Any distributed build has to make this work, so the paths in the lin

[PATCH] D53141: [OpenMP][libomptarget] Add runtime function for pushing coalesced global records

2018-10-31 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: libomptarget/deviceRTLs/nvptx/src/data_sharing.cu:442 +} + } while (!FrameP); Do you realy need the loop here? Seems to me it is better to have it in `else` branch of the `if (IsWarpMaster)` statement Repositor

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. As far as I know, according to the ABI docs, it's impossible to return a 256-bit vector from a function if AVX is disabled. Given that we aren't rejecting the testcase, we're effectively implementing a new "no-AVX" ABI variant. That variant is not defined anywhere, so

[PATCH] D53949: [clang][CodeGen] Implicit Conversion Sanitizer: discover the world of CompoundAssign operators

2018-10-31 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri created this revision. lebedev.ri added reviewers: rsmith, regehr, vsk, rjmccall, Sanitizers. lebedev.ri added projects: clang, Sanitizers. Not yet for an //actual// review, needs tests. As reported by @regehr (thanks!) on twitter (https://twitter.com/johnregehr/status/105768149625581

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-31 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. Thank you very much for contributing to LLVM/clang-tidy! More patches are always welcome ;) I found one issue we have overseen that should be fixed. Would you be so kind and do that before comitting? Comment at: test/clang-tidy/readability-const-re

[clang-tools-extra] r345764 - Implement the readability-const-return-type check.

2018-10-31 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 31 12:11:38 2018 New Revision: 345764 URL: http://llvm.org/viewvc/llvm-project?rev=345764&view=rev Log: Implement the readability-const-return-type check. This check flags function top-level const-qualified return types and suggests removing the mostly-superflu

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-31 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added inline comments. Comment at: test/clang-tidy/readability-const-return-type.cpp:6 + +#include + JonasToth wrote: > One nit: system headers are not allowed in clang-tidy tests. We do mock the > required content. Sorry that I overlooked that. > >

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. In https://reviews.llvm.org/D53025#1282668, @ymandel wrote: > Rebased patch onto trunk. Thanks! I've commit in r345764. If there are any issues with your patch, I'll revert and let you know what's going on. You're also welcome

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread H.J Lu via Phabricator via cfe-commits
hjl.tools added a comment. In https://reviews.llvm.org/D53919#1282692, @efriedma wrote: > As far as I know, according to the ABI docs, it's impossible to return a > 256-bit vector from a function if AVX is disabled. > > Given that we aren't rejecting the testcase, we're effectively implementing

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-31 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. Don't mind my last nit, we are doing this slight modification. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. Whatever you call it, the question remains; what specification and/or compiler are we trying to be compatible with? Repository: rC Clang https://reviews.llvm.org/D53919 ___ cfe-commits mailing list cfe-commits@lists.llv

[clang-tools-extra] r345766 - Removing a reliance on system headers from this test; NFC.

2018-10-31 Thread Aaron Ballman via cfe-commits
Author: aaronballman Date: Wed Oct 31 12:17:44 2018 New Revision: 345766 URL: http://llvm.org/viewvc/llvm-project?rev=345766&view=rev Log: Removing a reliance on system headers from this test; NFC. Modified: clang-tools-extra/trunk/test/clang-tidy/readability-const-return-type.cpp Modified:

[PATCH] D53025: [clang-tidy] implement new check for const return types.

2018-10-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In https://reviews.llvm.org/D53025#1282720, @JonasToth wrote: > Thank you very much for contributing to LLVM/clang-tidy! More patches are > always welcome ;) > > I found one issue we have overseen that should be fixed. Would you be so kind > and do that before com

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread H.J Lu via Phabricator via cfe-commits
hjl.tools added a comment. In https://reviews.llvm.org/D53919#1282734, @efriedma wrote: > Whatever you call it, the question remains; what specification and/or > compiler are we trying to be compatible with? The ABI before AVX was introduced. Repository: rC Clang https://reviews.llvm.org/

[PATCH] D53946: [clangd] Signal when skipping the diagnostic rebuilds.

2018-10-31 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Discussed offline a bit. We should be judicious with intrusive changes to support out-of-tree clients, and this interface seems a bit messy. There are alternatives with advantages: 1. less intrusive: clients can create a context before calling addDocument and observe

[PATCH] D49511: [Sema/Attribute] Check for noderef attribute

2018-10-31 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan marked 2 inline comments as done. leonardchan added inline comments. Comment at: lib/Parse/ParseStmt.cpp:102-104 + Actions.PushExpressionEvaluationContext( + Actions.ExprEvalContexts.back().Context); ParenBraceBracketBalancer BalancerRAIIObj(*this); -

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. The ABI document before AVX was introduced didn't say anything at all about 256-bit vectors. So we're talking about compatibility with some other compiler. Which compiler? Repository: rC Clang https://reviews.llvm.org/D53919 ___

[PATCH] D45444: [clang-tidy] implement new check for const-correctness

2018-10-31 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. Are you still looking at this? Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D45444 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53141: [OpenMP][libomptarget] Add runtime function for pushing coalesced global records

2018-10-31 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 171993. gtbercea added a comment. Move while on else branch. Repository: rOMP OpenMP https://reviews.llvm.org/D53141 Files: libomptarget/deviceRTLs/nvptx/src/data_sharing.cu libomptarget/deviceRTLs/nvptx/src/interface.h libomptarget/deviceRTLs/nvp

[PATCH] D45444: [clang-tidy] implement new check for const-correctness

2018-10-31 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. I am, but this revision relies on support on the analysis in the frontend. This seems currently stalled as the developer there seems busy with other stuff. Once i implement transofmration-capabilites i will evaluate if there are any false-positives that would break. Onc

[PATCH] D53541: [COFF, ARM64] Support SEH for ARM64 Windows

2018-10-31 Thread Mandeep Singh Grang via Phabricator via cfe-commits
mgrang updated this revision to Diff 171994. mgrang retitled this revision from "[COFF, ARM64] Add aarch64_seh_recoverfp intrinsic" to "[COFF, ARM64] Support SEH for ARM64 Windows". mgrang edited the summary of this revision. mgrang added a comment. Updated the patch with the following changes:

[PATCH] D53141: [OpenMP][libomptarget] Add runtime function for pushing coalesced global records

2018-10-31 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu:159 omptarget_nvptx_threadPrivateContext->Level1TaskDescr(threadId); - ASSERT0(LT_FUSSY, newTaskDescr, "expected a task descr"); newTaskDescr->InitLevelOneTaskDescr(ThreadLi

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread H.J Lu via Phabricator via cfe-commits
hjl.tools added a comment. In https://reviews.llvm.org/D53919#1282748, @efriedma wrote: > The ABI document before AVX was introduced didn't say anything at all about > 256-bit vectors. So we're talking about compatibility with some other > compiler. Which compiler? X86-64 compilers created

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp:151-152 + const auto *ArgExpr = Result.Nodes.getNodeAs("arg"); + llvm::StringRef Message = "perform explicit cast on expression getting " +"implici

[PATCH] D53724: [WebAssembly] Fix type names in truncation builtins

2018-10-31 Thread Thomas Lively via Phabricator via cfe-commits
tlively added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:12528 + case WebAssembly::BI__builtin_wasm_trunc_saturate_s_f32x4: + case WebAssembly::BI__builtin_wasm_trunc_saturate_s_f64x2: { Value *Src = EmitScalarExpr(E->getArg(0)); aheejin wrote:

[PATCH] D53724: [WebAssembly] Fix type names in truncation builtins

2018-10-31 Thread Heejin Ahn via Phabricator via cfe-commits
aheejin added inline comments. Comment at: lib/CodeGen/CGBuiltin.cpp:12528 + case WebAssembly::BI__builtin_wasm_trunc_saturate_s_f32x4: + case WebAssembly::BI__builtin_wasm_trunc_saturate_s_f64x2: { Value *Src = EmitScalarExpr(E->getArg(0)); tlively wrote:

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. I just tried clang 3.3, and as far as I can tell it behaves the same way as trunk. If the argument is that we should be compatible with gcc on Linux, that's fine, but we should explicitly state that in a comment. Repository: rC Clang https://reviews.llvm.org/D5391

[PATCH] D53541: [COFF, ARM64] Support SEH for ARM64 Windows

2018-10-31 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added inline comments. Comment at: lib/Driver/ToolChains/Clang.cpp:471 + } + EH |= SEHExceptions; + I'm suspicious about adding a new default for AArch64 specifically; why do we need this if x86-64 doesn't? https://reviews.llvm.org/D53541 ___

[PATCH] D53925: [modules] Defer emission of inline key functions.

2018-10-31 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. Seems reasonable to me. Repository: rC Clang https://reviews.llvm.org/D53925 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread H.J Lu via Phabricator via cfe-commits
hjl.tools added a comment. In https://reviews.llvm.org/D53919#1282797, @efriedma wrote: > I just tried clang 3.3, and as far as I can tell it behaves the same way as > trunk. > > If the argument is that we should be compatible with gcc on Linux, that's > fine, but we should explicitly state tha

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Alex Strelnikov via Phabricator via cfe-commits
astrelni updated this revision to Diff 172000. astrelni marked 2 inline comments as done. astrelni added a comment. Reply to review comments: - minor code reorder - improve test coverage https://reviews.llvm.org/D53830 Files: clang-tidy/abseil/AbseilTidyModule.cpp clang-tidy/abseil/CMakeLi

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Alex Strelnikov via Phabricator via cfe-commits
astrelni added inline comments. Comment at: test/clang-tidy/abseil-upgrade-duration-conversions.cpp:142 + +template void templateForOpsSpecialization(T) {} +template <> JonasToth wrote: > astrelni wrote: > > JonasToth wrote: > > > what about non-type template pa

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. No, AVX512 wasn't even announced when clang 3.3 came out. Repository: rC Clang https://reviews.llvm.org/D53919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[PATCH] D51554: [CUDA][OPENMP][NVPTX]Improve logic of the debug info support.

2018-10-31 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev updated this revision to Diff 172003. ABataev added a comment. Updated processing of the debug options. -g1 (line-tables) is considered as the regular debug directive, which may emit some useful debug info. Repository: rC Clang https://reviews.llvm.org/D51554 Files: include/clang/

[PATCH] D53919: [X86] Don't allow illegal vector types to return by direct value on x86-64.

2018-10-31 Thread H.J Lu via Phabricator via cfe-commits
hjl.tools added a comment. In https://reviews.llvm.org/D53919#1282811, @efriedma wrote: > No, AVX512 wasn't even announced when clang 3.3 came out. Try this with clang 3.3 and clang 7.0. [hjl@gnu-cfl-1 tmp]$ cat z.c typedef int __attribute__((mode(SI))) si; typedef si __attribute__((vector_siz

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Alex Strelnikov via Phabricator via cfe-commits
astrelni updated this revision to Diff 172005. astrelni marked 3 inline comments as done. astrelni added a comment. Reply to comments: - Change diagnostic message - Update documentation https://reviews.llvm.org/D53830 Files: clang-tidy/abseil/AbseilTidyModule.cpp clang-tidy/abseil/CMakeLis

[PATCH] D53830: [clang-tidy]: Abseil: new check 'abseil-upgrade-duration-conversions'

2018-10-31 Thread Alex Strelnikov via Phabricator via cfe-commits
astrelni added inline comments. Comment at: docs/clang-tidy/checks/abseil-upgrade-duration-conversions.rst:22 +prevent unintended behavior. Passing an argument of class type will result in +compile error, even if the type is implicitly convertible to an arithmetic type. + --

[PATCH] D53946: [clangd] Signal when skipping the diagnostic rebuilds.

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 172006. ilya-biryukov added a comment. - Instead of changing the interface, added a test we can rely on Context to give us what we need Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53946 Files: unittests/clangd/ClangdTests.cpp I

[PATCH] D53141: [OpenMP][libomptarget] Add runtime function for pushing coalesced global records

2018-10-31 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea updated this revision to Diff 172007. gtbercea added a comment. Reinstate assert. Repository: rOMP OpenMP https://reviews.llvm.org/D53141 Files: libomptarget/deviceRTLs/nvptx/src/data_sharing.cu libomptarget/deviceRTLs/nvptx/src/interface.h libomptarget/deviceRTLs/nvptx/src/

[PATCH] D53946: [clangd] Test Context can be used for file status. NFC

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. Added a test that the context behaves the way we want it to. Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53946 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

[PATCH] D53141: [OpenMP][libomptarget] Add runtime function for pushing coalesced global records

2018-10-31 Thread Gheorghe-Teodor Bercea via Phabricator via cfe-commits
gtbercea marked an inline comment as done. gtbercea added inline comments. Comment at: libomptarget/deviceRTLs/nvptx/src/supporti.h:191 PRINT(LD_MEM, "malloc data of size %zu for %s: 0x%llx\n", size, msg, P64(ptr)); - ASSERT(LT_SAFETY, ptr, "failed to allocate %zu bytes for

[PATCH] D53946: [clangd] Test Context can be used for file status. NFC

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov updated this revision to Diff 172008. ilya-biryukov added a comment. - Fix a typo Repository: rCTE Clang Tools Extra https://reviews.llvm.org/D53946 Files: unittests/clangd/ClangdTests.cpp Index: unittests/clangd/ClangdTests.cpp ==

r345774 - Part of PR39508: Emit an @llvm.invariant.start after storing to

2018-10-31 Thread Richard Smith via cfe-commits
Author: rsmith Date: Wed Oct 31 13:39:26 2018 New Revision: 345774 URL: http://llvm.org/viewvc/llvm-project?rev=345774&view=rev Log: Part of PR39508: Emit an @llvm.invariant.start after storing to __tls_guard. __tls_guard can only ever transition from 0 to 1, and only once. This permits LLVM to r

[PATCH] D53866: [Preamble] Fix preamble for circular #includes

2018-10-31 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. In https://reviews.llvm.org/D53866#1282582, @yvvan wrote: > @ilya-biryukov > As far as I understand the problem the same thing happens when you are in > the header a.h which includes b.h and b.h includes a.h at the same time. So > you get this recursion indirect

[PATCH] D53921: Compound literals, global array decls, and enums require constant inits

2018-10-31 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: lib/AST/ExprConstant.cpp:5266-5268 + bool VisitConstantExpr(const ConstantExpr *E) { +return Visit(E->getSubExpr()); + } This shouldn't be necessary because you changed the CRTP base class `ExprEvaluatorBase` to do

[PATCH] D53949: [clang][CodeGen] Implicit Conversion Sanitizer: discover the world of CompoundAssign operators

2018-10-31 Thread John Regehr via Phabricator via cfe-commits
regehr added a comment. I can test this and write a few test cases. Repository: rC Clang https://reviews.llvm.org/D53949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D53949: [clang][CodeGen] Implicit Conversion Sanitizer: discover the world of CompoundAssign operators

2018-10-31 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. Looks good once some tests are added. Repository: rC Clang https://reviews.llvm.org/D53949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   >