[PATCH] D88472: [clangd] Don't set the Underlying bit on targets of UsingDecls.

2020-10-06 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. LG, thanks for all the iterations here. I do want to solve the regression but we can land without that. Comment at: clang-tools-extra/clangd/FindTarget.cpp:345 }

[PATCH] D88833: [clang-tidy] Do not warn on pointer decays in system macros

2020-10-06 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. Can you please upload this diff with full context `-U99` Comment at: clang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.cpp:50 + +AST_MATCHER(ImplicitCastExpr, isArrayToPointerDecay) { + return Node.getCastKind() ==

Re: Upcoming upgrade of LLVM buildbot

2020-10-06 Thread Galina Kistanova via cfe-commits
Hello everyone, The staging buildbot was up and running for 6 days now, and looks good. Tomorrow at 12:00 PM PDT we will switch the production buildbot to the new version. If you are a bot owner, you do not need to do anything at this point, unless I'll ask you to help. The buildbot will go down

[PATCH] D88680: Add ability to turn off -fpch-instantiate-templates in clang-cl

2020-10-06 Thread Luboš Luňák via Phabricator via cfe-commits
llunak added a comment. LGTM, although I'm not sure if me saying that is enough. I'll commit this in few days if nobody says anything else. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88680/new/ https://reviews.llvm.org/D88680 _

[PATCH] D84322: [AST][RecoveryExpr] Part3: Suppress spurious "typecheck_cond_expect_scalar" diagnostic

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 296374. hokein added a comment. rebase and add ast-dump test. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D84322/new/ https://reviews.llvm.org/D84322 Files: clang/lib/Sema/SemaExpr.cpp clang/test/AST/ast-d

[PATCH] D84322: [AST][RecoveryExpr] Part3: Suppress spurious "typecheck_cond_expect_scalar" diagnostic

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang/test/Sema/error-dependence.c:18 + // type is required" is not emitted. + ptr > f ? ptr : f; // expected-error {{invalid operands to binary expression}} +} sammccall wrote: > nit: parens would help me understand h

[PATCH] D86959: [clang-format] Fix formatting of _Atomic() qualifier

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Sorry to be really late here, but this patch regressed some macro definitions like: #define lambda [](const decltype(x) &ptr) {} which now formats as #define lambda [](const decltype(x) & ptr) {} (extra space around ampersand) It looks like the generalization o

[PATCH] D87449: [clang-tidy] Add new check for SEI CERT rule SIG30-C

2020-10-06 Thread Balázs Kéri via Phabricator via cfe-commits
balazske marked 3 inline comments as done. balazske added inline comments. Comment at: clang-tools-extra/clang-tidy/cert/SignalHandlerCheck.cpp:117-118 +FunctionCallCollector Collector{[&CalledFunctions](const CallExpr *CE) { + if (isa(CE->getCalleeDecl())) +Call

[PATCH] D84322: [AST][RecoveryExpr] Part3: Suppress spurious "typecheck_cond_expect_scalar" diagnostic

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang/test/AST/ast-dump-recovery.c:75 + + // conditional operator + float f; add to comment: (comparison is invalid) ==

[PATCH] D88844: [clangd] Add `score` extension to workspace/symbol response.

2020-10-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/FindSymbols.cpp:125 +Info.score = Score / Relevance.NameMatch; Top.push({Score, std::move(Info)}); ni

[clang-tools-extra] 77d3b14 - [clangd] Fix an inconsistent ReasonToReject enum usage, NFC.

2020-10-06 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2020-10-06T10:17:47+02:00 New Revision: 77d3b14458dd2aaafa20e6172a893cf0abab6453 URL: https://github.com/llvm/llvm-project/commit/77d3b14458dd2aaafa20e6172a893cf0abab6453 DIFF: https://github.com/llvm/llvm-project/commit/77d3b14458dd2aaafa20e6172a893cf0abab6453.diff LO

[PATCH] D54222: [clang-tidy] Add a check to detect returning static locals in public headers

2020-10-06 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. I am confused now, but richard knows this stuff very well! The patches you referenced showed only cases where the static was defined in an inline-header definition (and templates). Does this make a difference on the semantics? This should be clear before we continue.

[PATCH] D88875: [clangd] Add basic keyword-name-validation in rename.

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: usaxena95, kadircet, arphaman. Herald added a project: clang. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. Repository: rG LLVM Github Monorepo https://revie

[PATCH] D88828: [clangd] Verify the diagnostic code in include-fixer diagnostic tests, NFC.

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein added a comment. In D88828#2311679 , @kadircet wrote: > LGTM, but can you add some description about why you've decided to do it now > :D yeah, this comes up when I read the code, I think it is easier to spot which diagnostics in the include-fixe

[clang-tools-extra] 48a82c4 - [clangd] Verify the diagnostic code in include-fixer diagnostic tests, NFC.

2020-10-06 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2020-10-06T11:02:22+02:00 New Revision: 48a82c42457b47936d8e1f4b2af6a1f3cbb6e992 URL: https://github.com/llvm/llvm-project/commit/48a82c42457b47936d8e1f4b2af6a1f3cbb6e992 DIFF: https://github.com/llvm/llvm-project/commit/48a82c42457b47936d8e1f4b2af6a1f3cbb6e992.diff LO

[PATCH] D88828: [clangd] Verify the diagnostic code in include-fixer diagnostic tests, NFC.

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG48a82c42457b: [clangd] Verify the diagnostic code in include-fixer diagnostic tests, NFC. (authored by hokein). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/

[PATCH] D88881: [clangd] Add a NewName optional parameter to clangdServer::prepareRename.

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added subscribers: usaxena95, kadircet, arphaman. Herald added a project: clang. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. so that our embedders can implement customized behav

[PATCH] D88680: Add ability to turn off -fpch-instantiate-templates in clang-cl

2020-10-06 Thread Hans Wennborg via Phabricator via cfe-commits
hans added inline comments. Comment at: clang/test/Driver/pch-instantiate-templates.c:2 +// CL driver test cases +// RUN: %clang_cl -### /Yc /Fpfoo.pch /Fofoo.obj %s 2>&1 | FileCheck --check-prefix=CLANG_CL_YC %s +// RUN: %clang -### --driver-mode=cl /Yc /Fpfoo.pch /Fofoo.obj %s

[PATCH] D88154: Initial support for vectorization using Libmvec (GLIBC vector math library).

2020-10-06 Thread Venkataramanan Kumar via Phabricator via cfe-commits
venkataramanan.kumar.llvm added a comment. Pinging for review comments. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88154/new/ https://reviews.llvm.org/D88154 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[PATCH] D88680: Add ability to turn off -fpch-instantiate-templates in clang-cl

2020-10-06 Thread Shivanshu Goyal via Phabricator via cfe-commits
shivanshu3 updated this revision to Diff 296393. shivanshu3 added a comment. Address Hans' comments - Prepend %s with "--" for clang-cl - Remove a redundant test case Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88680/new/ https://reviews.llvm.or

[PATCH] D88881: [clangd] Add a NewName optional parameter to clangdServer::prepareRename.

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/ClangdLSPServer.cpp:797 Server->prepareRename( - Params.textDocument.uri.file(), Params.position, Opts.Rename, + P

[PATCH] D88881: [clangd] Add a NewName optional parameter to clangdServer::prepareRename.

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Can you add a bit more context to the commit message? And should we expose this as an extension on `textDocument/prepareRename`? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D1/new/ https://reviews.llvm.org/D1 _

[PATCH] D88875: [clangd] Add basic keyword-name-validation in rename.

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:124 + + // name validation. + RenameToKeywords, nit: not sure we need a separate section for these, I can imagine at most keyword/conflict/shadow Comme

[PATCH] D88844: [clangd] Add `score` extension to workspace/symbol response.

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG3cb1220709fa: [clangd] Add `score` extension to workspace/symbol response. (authored by sammccall). Changed prior to commit: https://reviews.llvm.

[clang-tools-extra] 3cb1220 - [clangd] Add `score` extension to workspace/symbol response.

2020-10-06 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2020-10-06T11:57:38+02:00 New Revision: 3cb1220709fa556d4d29ce0e25fd30a16895ae24 URL: https://github.com/llvm/llvm-project/commit/3cb1220709fa556d4d29ce0e25fd30a16895ae24 DIFF: https://github.com/llvm/llvm-project/commit/3cb1220709fa556d4d29ce0e25fd30a16895ae24.diff LO

[PATCH] D88415: [clangd] Introduce memory usage dumping to TUScheduler, for Preambles and ASTCache

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/TUScheduler.cpp:1445 +void TUScheduler::attachMemoryUsage(MemoryTree &MT) const { + IdleASTs->attachMemoryUsage(*MT.addChild("ast_cahe")); + // Otherwise preambles are stored on disk and we only keep filename

[PATCH] D88814: [clangd] Enable partial namespace matches for workspace symbols

2020-10-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet updated this revision to Diff 296402. kadircet marked 6 inline comments as done. kadircet added a comment. - Perform sub-scope matching rather than substring match for partial namespaces. - Apply a penalty for partially matching namespaces. Repository: rG LLVM Github Monorepo CHANGES

[clang] f0a78bd - [AArch64] Correct parameter type for unsigned Neon scalar shift intrinsics

2020-10-06 Thread David Spickett via cfe-commits
Author: David Spickett Date: 2020-10-06T11:34:58+01:00 New Revision: f0a78bdfdc6d56b25e0081884580b3960a3c2429 URL: https://github.com/llvm/llvm-project/commit/f0a78bdfdc6d56b25e0081884580b3960a3c2429 DIFF: https://github.com/llvm/llvm-project/commit/f0a78bdfdc6d56b25e0081884580b3960a3c2429.diff

[PATCH] D88013: [AArch64] Correct parameter type for unsigned Neon scalar shift intrinsics

2020-10-06 Thread David Spickett via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGf0a78bdfdc6d: [AArch64] Correct parameter type for unsigned Neon scalar shift intrinsics (authored by DavidSpickett). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llv

[PATCH] D88814: [clangd] Enable partial namespace matches for workspace symbols

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/FindSymbols.cpp:44 +// Returns true if \p Query can be found as a sub-scope inside \p Scope. +bool approximateScopeMatch(llvm

[PATCH] D88885: [clangd] Disambiguate overloads of std::move for header insertion.

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: kadircet. Herald added subscribers: cfe-commits, usaxena95, arphaman. Herald added a project: clang. sammccall requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. Up until now, we relied on matching the f

[PATCH] D88886: [Clang][unittests][NFC] Break up test in Callbacks.cpp

2020-10-06 Thread Stefan Pintilie via Phabricator via cfe-commits
stefanp created this revision. stefanp added a reviewer: nemanjai. Herald added a subscriber: mgorny. Herald added a project: clang. stefanp requested review of this revision. The Callbacks.cpp test was taking a long time to compile on some build bots causing timeouts. This patch splits up that te

[PATCH] D88886: [Clang][unittests][NFC] Break up test in Callbacks.cpp

2020-10-06 Thread Stefan Pintilie via Phabricator via cfe-commits
stefanp added a comment. Related to this please see Nemanja's comment on https://reviews.llvm.org/D82485. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D6/new/ https://reviews.llvm.org/D6 ___ cfe-

[PATCH] D88831: [clang-tidy] Remove obsolete checker google-runtime-references

2020-10-06 Thread Balogh , Ádám via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGd6c9dc3c17e4: [clang-tidy] Remove obsolete checker google-runtime-references (authored by baloghadamsoftware). Changed prior to commit: https://reviews.llvm.org/D88831?vs=296170&id=296416#toc Repositor

[clang-tools-extra] d6c9dc3 - [clang-tidy] Remove obsolete checker google-runtime-references

2020-10-06 Thread Adam Balogh via cfe-commits
Author: Adam Balogh Date: 2020-10-06T14:03:55+02:00 New Revision: d6c9dc3c17e444e007758c01507bb5280532c9f8 URL: https://github.com/llvm/llvm-project/commit/d6c9dc3c17e444e007758c01507bb5280532c9f8 DIFF: https://github.com/llvm/llvm-project/commit/d6c9dc3c17e444e007758c01507bb5280532c9f8.diff L

[PATCH] D87279: [clang] Fix handling of physical registers in inline assembly operands.

2020-10-06 Thread Jonas Paulsson via Phabricator via cfe-commits
jonpa added reviewers: RKSimon, jyu2, t.p.northover, echristo, dylanmckay, aaron.ballman. jonpa added a comment. Herald added a subscriber: pengfei. Ping! Last chance for anyone to speak up about any objections to committing this... CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87279/n

[PATCH] D88885: [clangd] Disambiguate overloads of std::move for header insertion.

2020-10-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:563 if (auto Header = getIncludeHeader(QName, Entry.second)) { +// Hack: there are two std::move() overloads from different headers. +// CanonicalIncludes returns

[clang] 8fa45e1 - Convert diagnostics about multi-character literals from extension to warning

2020-10-06 Thread Aaron Ballman via cfe-commits
Author: Chuyang Chen Date: 2020-10-06T08:47:17-04:00 New Revision: 8fa45e1fd527269140c4e2a1652fef5500da16fd URL: https://github.com/llvm/llvm-project/commit/8fa45e1fd527269140c4e2a1652fef5500da16fd DIFF: https://github.com/llvm/llvm-project/commit/8fa45e1fd527269140c4e2a1652fef5500da16fd.diff

[PATCH] D87962: [clang] Change the multi-character character constants from extension to implementation-defined.

2020-10-06 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. In D87962#2313363 , @nomanous wrote: > In D87962#2312617 , @aaron.ballman > wrote: > >> LGTM! Do you need someone to commit on your behalf? > > Yes

[PATCH] D88737: [AIX] Turn -fdata-sections on by default in Clang

2020-10-06 Thread Digger via Phabricator via cfe-commits
DiggerLin added inline comments. Comment at: clang/test/Driver/aix-data-sections.c:7 +// RUN: | FileCheck %s +// CHECK: "-fdata-sections" may be good to check the whether other OS platform behavior be changed or not? CHANGES SINCE LAST ACTION https://revie

[PATCH] D88875: [clangd] Add basic keyword-name-validation in rename.

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 296438. hokein marked an inline comment as done. hokein added a comment. address comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88875/new/ https://reviews.llvm.org/D88875 Files: clang-tools-extra/cla

[PATCH] D88875: [clangd] Add basic keyword-name-validation in rename.

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:124 + + // name validation. + RenameToKeywords, sammccall wrote: > nit: not sure we need a separate section for these, I can imagine at most > keyword/conflict/shadow yeah,

[PATCH] D88875: [clangd] Add basic keyword-name-validation in rename.

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/clangd/ClangdServer.cpp:416 +auto Results = clangd::rename( +{Pos, /*NewName=*/"__clangd_rename_dummy", InpAST->AST, File,

[PATCH] D88885: [clangd] Disambiguate overloads of std::move for header insertion.

2020-10-06 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:563 if (auto Header = getIncludeHeader(QName, Entry.second)) { +// Hack: there are two std::move() overloads from different headers. +// CanonicalIncludes return

[PATCH] D88845: [SystemZ][z/OS] Set default alignment rules for z/OS target

2020-10-06 Thread Abhina Sree via Phabricator via cfe-commits
abhina.sreeskantharajan accepted this revision. abhina.sreeskantharajan added a comment. This revision is now accepted and ready to land. lgtm Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88845/new/ https://reviews.llvm.org/D88845 ___

[PATCH] D88875: [clangd] Add basic keyword-name-validation in rename.

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/clangd/ClangdServer.cpp:416 +auto Results = clangd::rename( +{Pos, /*NewName=*/"__clangd_rename_dummy", InpAST->AST, File, + RenameOpts.AllowCrossFile ? nullptr : Index, RenameOpts});

[clang-tools-extra] 8a3cbb1 - [clangd] Add basic keyword-name-validation in rename.

2020-10-06 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2020-10-06T15:47:57+02:00 New Revision: 8a3cbb1535a92dcc0ac3bd8fc64216a465b8506a URL: https://github.com/llvm/llvm-project/commit/8a3cbb1535a92dcc0ac3bd8fc64216a465b8506a DIFF: https://github.com/llvm/llvm-project/commit/8a3cbb1535a92dcc0ac3bd8fc64216a465b8506a.diff LO

[PATCH] D88875: [clangd] Add basic keyword-name-validation in rename.

2020-10-06 Thread Haojian Wu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG8a3cbb1535a9: [clangd] Add basic keyword-name-validation in rename. (authored by hokein). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[clang] 37c74df - Revert "[c++17] Implement P0145R3 during constant evaluation."

2020-10-06 Thread Dmitri Gribenko via cfe-commits
Author: Dmitri Gribenko Date: 2020-10-06T15:49:44+02:00 New Revision: 37c74dfe72ecf4e7def22702c5a944682a7865df URL: https://github.com/llvm/llvm-project/commit/37c74dfe72ecf4e7def22702c5a944682a7865df DIFF: https://github.com/llvm/llvm-project/commit/37c74dfe72ecf4e7def22702c5a944682a7865df.dif

[PATCH] D88154: Initial support for vectorization using Libmvec (GLIBC vector math library).

2020-10-06 Thread Sanjay Patel via Phabricator via cfe-commits
spatel added a comment. In D88154#2310653 , @venkataramanan.kumar.llvm wrote: > In D88154#2290205 , @abique wrote: > >> Looks good to me. >> Regarding the tests, it seems that you check if auto-vectorization takes

[PATCH] D88833: [clang-tidy] Do not warn on pointer decays in system macros

2020-10-06 Thread fiesh via Phabricator via cfe-commits
fiesh updated this revision to Diff 296452. fiesh added a comment. Applied changes to address code review Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88833/new/ https://reviews.llvm.org/D88833 Files: clang-tools-extra/clang-tidy/cppcoreguidel

[PATCH] D78902: [Driver] Add output file to properties of Command

2020-10-06 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff updated this revision to Diff 296451. sepavloff added a comment. Use MakeArgString to get persistent string Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D78902/new/ https://reviews.llvm.org/D78902 Files: clang/include/clang/Driver/Job.

[PATCH] D88833: [clang-tidy] Do not warn on pointer decays in system macros

2020-10-06 Thread fiesh via Phabricator via cfe-commits
fiesh marked 6 inline comments as done. fiesh added a comment. @njames93 Thank you for your review, I hopefully addressed all your points. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88833/new/ https://reviews.llvm.org/D88833 ___

[PATCH] D78902: [Driver] Add output file to properties of Command

2020-10-06 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff marked an inline comment as done. sepavloff added inline comments. Comment at: clang/lib/Driver/ToolChains/HIP.cpp:135 + Bundler, BundlerArgs, Inputs, + InputInfo(&JA, Output.c_str(; }

[PATCH] D88886: [Clang][unittests][NFC] Break up test in Callbacks.cpp

2020-10-06 Thread Dmitri Gribenko via Phabricator via cfe-commits
gribozavr2 accepted this revision. gribozavr2 added a reviewer: gribozavr2. gribozavr2 added a comment. Thank you! LGTM assuming you only moved the tests into separate cpp files (I didn't verify that the text is exactly the same). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D88886: [Clang][unittests][NFC] Break up test in Callbacks.cpp

2020-10-06 Thread Dmitri Gribenko via Phabricator via cfe-commits
gribozavr2 added inline comments. Comment at: clang/unittests/Tooling/RecursiveASTVisitorTests/CallbacksCommon.h:1 + +using namespace clang; Please add a license comment and all necessary includes. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTIO

[PATCH] D88680: Add ability to turn off -fpch-instantiate-templates in clang-cl

2020-10-06 Thread Hans Wennborg via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG66e4f0719876: Add ability to turn off -fpch-instantiate-templates in clang-cl (authored by shivanshu3, committed by hans). Repository: rG LLVM Gi

[clang] 66e4f07 - Add ability to turn off -fpch-instantiate-templates in clang-cl

2020-10-06 Thread Hans Wennborg via cfe-commits
Author: Shivanshu Goyal Date: 2020-10-06T16:23:23+02:00 New Revision: 66e4f07198761bbb4dcd55235024c1081ed15c75 URL: https://github.com/llvm/llvm-project/commit/66e4f07198761bbb4dcd55235024c1081ed15c75 DIFF: https://github.com/llvm/llvm-project/commit/66e4f07198761bbb4dcd55235024c1081ed15c75.dif

[PATCH] D88680: Add ability to turn off -fpch-instantiate-templates in clang-cl

2020-10-06 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. I've committed this as 66e4f07198761bbb4dcd55235024c1081ed15c75 so it has a chance to make it into the 11.0.0 release. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.

[PATCH] D88900: check before accessing possibly null node

2020-10-06 Thread Ding Fei via Phabricator via cfe-commits
danix800 created this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. danix800 requested review of this revision. Testcase: (main.cpp) int foo(int i); int main() { int i = 1; while (i-- >= 0) { return 3 / foo(i); } } run with clang -

[clang] aa2b593 - [HIP] Restructure hip headers to add cmath

2020-10-06 Thread Aaron En Ye Shi via cfe-commits
Author: Aaron En Ye Shi Date: 2020-10-06T14:48:53Z New Revision: aa2b593f1495a972a4a592952760ec9d5f7c01f1 URL: https://github.com/llvm/llvm-project/commit/aa2b593f1495a972a4a592952760ec9d5f7c01f1 DIFF: https://github.com/llvm/llvm-project/commit/aa2b593f1495a972a4a592952760ec9d5f7c01f1.diff LO

[PATCH] D87528: Enable '#pragma STDC FENV_ACCESS' in frontend cf. D69272 - Work in Progress

2020-10-06 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added a comment. In D87528#2312230 , @mibintc wrote: > For the LIT test clang/test/AST/const-fpfeatures.cpp, currently failing in > this patch, the variables V1 and others are initialized via call to "global > var init" which performs the round

[PATCH] D61989: [clang-tidy] enable modernize-concat-nested-namespaces on header files

2020-10-06 Thread Collin Jackson via Phabricator via cfe-commits
collinjackson added a comment. Are there any updates on this change? I see there's a comment that hasn't been addressed yet. Is that the only roadblock stopping this from getting merged? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D61989/new/ htt

[PATCH] D88905: [Clang] Allow "ext_vector_type" applied to Booleans

2020-10-06 Thread Simon Moll via Phabricator via cfe-commits
simoll created this revision. simoll added reviewers: hfinkel, erichkeane, craig.topper, rsandifo-arm, kaz7, k-ishizaka, rengolin. Herald added subscribers: cfe-commits, pengfei, kristof.beyls. Herald added a project: clang. simoll requested review of this revision. This is the `ext_vector_type`

[clang] 8d2a0c1 - [HIP] NFC Add comments to cmath functions

2020-10-06 Thread Aaron En Ye Shi via cfe-commits
Author: Aaron En Ye Shi Date: 2020-10-06T15:26:56Z New Revision: 8d2a0c115e245e86bba4ea1c70e6d34b552031a9 URL: https://github.com/llvm/llvm-project/commit/8d2a0c115e245e86bba4ea1c70e6d34b552031a9 DIFF: https://github.com/llvm/llvm-project/commit/8d2a0c115e245e86bba4ea1c70e6d34b552031a9.diff LO

[PATCH] D81083: [Clang] Allow "vector_size" applied to Booleans

2020-10-06 Thread Simon Moll via Phabricator via cfe-commits
simoll added a comment. D88905 uses ext_vector_type instead of vector_size following up on @rsmith 's suggestion . The review should continue there. I'll keep D81083 around for reference

[PATCH] D88885: [clangd] Disambiguate overloads of std::move for header insertion.

2020-10-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added a comment. This revision is now accepted and ready to land. Thanks, LGTM! As you mentioned I believe `std::move` is common enough to deserve the special casing. Comment at: clang-tools-extra/clangd/index/SymbolCollector.cpp:563

[PATCH] D78902: [Driver] Add output file to properties of Command

2020-10-06 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added inline comments. Comment at: clang/include/clang/Driver/Job.h:165 + const llvm::opt::ArgStringList &Arguments, ArrayRef Inputs, + ArrayRef Outputs); // FIXME: This really shouldn't be copyable, but is currently copied in some Is

[PATCH] D87163: [DSE] Switch to MemorySSA-backed DSE by default.

2020-10-06 Thread Florian Hahn via Phabricator via cfe-commits
fhahn added a comment. FYI this has been temporarily reverted again roughly a week ago, because there seems to be a mis-compile, that is caused by LLVM introducing invalid lifetime.end calls and exposed by the more powerful DSE, which @asbirlea is currently trying to narrow down. Repository:

[PATCH] D88814: [clangd] Enable partial namespace matches for workspace symbols

2020-10-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/clangd/FindSymbols.cpp:44 +// Returns true if \p Query can be found as a sub-scope inside \p Scope. +bool approximateScopeMatch(llvm::StringRef Scope, sammccall wrote: > I had a little trouble follow

[PATCH] D88845: [SystemZ][z/OS] Set default alignment rules for z/OS target

2020-10-06 Thread Abhina Sree via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGc781dc74a8b2: [SystemZ][z/OS] Set default alignment rules for z/OS target (authored by fanbo-meng, committed by abhina.sreeskantharajan). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] c781dc7 - [SystemZ][z/OS] Set default alignment rules for z/OS target

2020-10-06 Thread Abhina Sreeskantharajan via cfe-commits
Author: Fanbo Meng Date: 2020-10-06T13:16:15-04:00 New Revision: c781dc74a8b282eb4c6f3aa48982c5de898611a2 URL: https://github.com/llvm/llvm-project/commit/c781dc74a8b282eb4c6f3aa48982c5de898611a2 DIFF: https://github.com/llvm/llvm-project/commit/c781dc74a8b282eb4c6f3aa48982c5de898611a2.diff LO

[PATCH] D88845: [SystemZ][z/OS] Set default alignment rules for z/OS target

2020-10-06 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: clang/test/CodeGen/zos-alignment.c:114 +union u2 { + long :0; + short a; The testing for no-attribute potentially 8-byte aligning zero-width bitfields in a non-initial position is missing. ``

[PATCH] D87029: [AIX] Implement AIX special bitfield related alignment rules

2020-10-06 Thread Xiangling Liao via Phabricator via cfe-commits
Xiangling_L updated this revision to Diff 296497. Xiangling_L marked 4 inline comments as done. Xiangling_L added a comment. - Fixed the bug of getting underlying type of enum; - Fixed the bug to respect align attribute; - Add more testcases; Repository: rG LLVM Github Monorepo CHANGES SINCE

[PATCH] D54222: [clang-tidy] Add a check to detect returning static locals in public headers

2020-10-06 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In D54222#2313686 , @JonasToth wrote: > I am confused now, but richard knows this stuff very well! The patches you > referenced showed only cases where the static was defined in an inline-header > definition (and templates). Does

[clang] 43cd0a9 - [SystemZ][z/OS] Set default alignment rules for z/OS target

2020-10-06 Thread Abhina Sreeskantharajan via cfe-commits
Author: Fanbo Meng Date: 2020-10-06T14:21:21-04:00 New Revision: 43cd0a98d1b1cbbbab38591badbe11a995844cf7 URL: https://github.com/llvm/llvm-project/commit/43cd0a98d1b1cbbbab38591badbe11a995844cf7 DIFF: https://github.com/llvm/llvm-project/commit/43cd0a98d1b1cbbbab38591badbe11a995844cf7.diff LO

[clang] 00d3e6c - [c++17] Implement P0145R3 during constant evaluation.

2020-10-06 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-10-06T12:30:26-07:00 New Revision: 00d3e6c1b4d0b7879afc6002b72b49ecf755 URL: https://github.com/llvm/llvm-project/commit/00d3e6c1b4d0b7879afc6002b72b49ecf755 DIFF: https://github.com/llvm/llvm-project/commit/00d3e6c1b4d0b7879afc6002b72b49ecf755.diff

Re: [clang] 37c74df - Revert "[c++17] Implement P0145R3 during constant evaluation."

2020-10-06 Thread Richard Smith via cfe-commits
Thanks, fixed and re-committed as 00d3e6c1b4d0b7879afc6002b72b49ecf755. On Tue, 6 Oct 2020 at 06:50, Dmitri Gribenko via cfe-commits < cfe-commits@lists.llvm.org> wrote: > > Author: Dmitri Gribenko > Date: 2020-10-06T15:49:44+02:00 > New Revision: 37c74dfe72ecf4e7def22702c5a944682a7865df > >

[PATCH] D87528: Enable '#pragma STDC FENV_ACCESS' in frontend cf. D69272 - Work in Progress

2020-10-06 Thread Melanie Blower via Phabricator via cfe-commits
mibintc updated this revision to Diff 296520. mibintc added a comment. I added a sentence in the clang UserManual pointing out that ffp-model=strict automatically enables FENV_ACCESS. I changed checkFloatingPointResult the way @sepavloff suggested to solve the LIT failure in clang/test/AST/cons

[PATCH] D87451: add new option -mignore-xcoff-visibility

2020-10-06 Thread David Tenty via Phabricator via cfe-commits
daltenty added inline comments. Comment at: llvm/lib/CodeGen/CommandFlags.cpp:339 + "ignore-xcoff-visibility", + cl::desc("Not emit the visibility attribute for asm in AIX OS or give " + "all symbols 'unspecified' visibility in xcoff object file"), ---

[PATCH] D87451: add new option -mignore-xcoff-visibility

2020-10-06 Thread David Tenty via Phabricator via cfe-commits
daltenty added inline comments. Comment at: clang/docs/ClangCommandLineReference.rst:2622 + +Do not emit any visibility attribute for asm on AIX or give all symbols 'unspecified' visibility in xcoff object file (XCOFF only) + nit: plural. capitalization. =

[PATCH] D87451: add new option -mignore-xcoff-visibility

2020-10-06 Thread David Tenty via Phabricator via cfe-commits
daltenty accepted this revision. daltenty added a comment. This revision is now accepted and ready to land. LGTM, other minor nit Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87451/new/ https://reviews.llvm.org/D87451

[PATCH] D87853: [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation

2020-10-06 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. Ping! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87853/new/ https://reviews.llvm.org/D87853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D87029: [AIX] Implement AIX special bitfield related alignment rules

2020-10-06 Thread Sean Fertile via Phabricator via cfe-commits
sfertile added inline comments. Comment at: clang/lib/Sema/SemaDecl.cpp:16447 + +bool AIXBitfieldViolation = false; +if (const BuiltinType *BTy = FieldTy.getTypePtr()->getAs()) { Xiangling_L wrote: > sfertile wrote: > > Can this change can be split out i

[PATCH] D88724: [clangd] Make the tweak filter a parameter to enumerateTweaks. NFC

2020-10-06 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev accepted this revision. kbobyrev added a comment. This revision is now accepted and ready to land. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88724/new/ https://reviews.llvm.org/D88724 _

[PATCH] D88666: DirectoryWatcher: add an implementation for Windows

2020-10-06 Thread Adrian McCarthy via Phabricator via cfe-commits
amccarth requested changes to this revision. amccarth added a comment. This revision now requires changes to proceed. Some of this is nitpicky/opinionated, but the race condition is real. We need a reliable way to signal the watcher thread when it's time to exit. Options I see are: 1. Use the

[PATCH] D87853: [SemaTemplate] Stop passing insertion position around during VarTemplate instantiation

2020-10-06 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added a comment. This revision is now accepted and ready to land. Thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87853/new/ https://reviews.llvm.org/D87853 ___ cfe-commits mailing list cfe-commits@

[PATCH] D87163: [DSE] Switch to MemorySSA-backed DSE by default.

2020-10-06 Thread Florian Hahn via Phabricator via cfe-commits
fhahn added a comment. I put up an impromptu round-table to discuss MemorySSA related topics, including potential new transformations like MemCpyOpt using MemorySSA: https://whova.com/portal/webapp/llvm_202010/CommunityBoard/topic/342030/ If there's any interest, I think it would be great to sy

[PATCH] D88088: WIP [clang] improve accuracy of ExprMutAnalyzer

2020-10-06 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 296546. JonasToth added a comment. Herald added a subscriber: steakhal. - document sections in the testcases, hopefully little more structure for comprehension - fix derived-to-base-cast OUTSIDE of an conditional operator - improve type-dependent callexpr,

[PATCH] D88088: WIP [clang] improve accuracy of ExprMutAnalyzer

2020-10-06 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. @aaron.ballman I update the code a bit. This stuff is just a hydra :/ But i think incrementally the current version is better, but still not perfect. I update the clang-tidy part, too. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews

[PATCH] D70284: Constant strings emitted when `-fno-constant-cfstrings` is passed should allow dead stripping

2020-10-06 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. > Hmm ok should I redo this completely then? Not sure what is up but it shows > you as a reviewer hmm... This revision is old at this point, and I can't remember if you created a new revision with a separate D-number? I still can't "request changes". If you've

[PATCH] D54943: WIP [clang-tidy] implement const-transformation for cppcoreguidelines-const-correctness

2020-10-06 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth updated this revision to Diff 296549. JonasToth added a comment. rebase to newest expmutanalyzer patch Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D54943/new/ https://reviews.llvm.org/D54943 Files: clang-tools-extra/clang-tidy/cppcore

[PATCH] D88929: [OpenMP] Change CMake Configuration to Build for Highest CUDA Architecture by Default

2020-10-06 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 created this revision. jhuber6 added a reviewer: jdoerfert. jhuber6 added projects: clang, OpenMP. Herald added subscribers: openmp-commits, cfe-commits, guansong, yaxunl, mgorny. jhuber6 requested review of this revision. Herald added a subscriber: sstefan1. This patch changes the CMake f

[PATCH] D70284: Constant strings emitted when `-fno-constant-cfstrings` is passed should allow dead stripping

2020-10-06 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith requested changes to this revision. dexonsmith added a comment. This revision now requires changes to proceed. Ah, I think it's because you filled in the "project" field which I think we usually leave blank. Maybe now I can "request changes". Comment at: clang/lib/C

[PATCH] D66782: SourceManager: Prefer Optional over MemoryBuffer*

2020-10-06 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. Herald added a subscriber: usaxena95. ping: Besides rebasing, any concerns here? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D66782/new/ https://reviews.llvm.org/D66782 ___ cfe-commits mailing list cfe-commits@lis

[PATCH] D67029: SourceManager: Prefer Optional over MemoryBuffer*

2020-10-06 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith abandoned this revision. dexonsmith added a comment. Herald added subscribers: usaxena95, rnkovacs. This appears to be a duplicate of https://reviews.llvm.org/D66782. Abandon the newer copy. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67029/new/ https://reviews.llvm.org/D6

[PATCH] D67030: ContentCache: Simplify by always owning the MemoryBuffer

2020-10-06 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. ping: Besides rebasing, any concerns here? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D67030/new/ https://reviews.llvm.org/D67030 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[PATCH] D62457: Frontend: Create basic CompilerInstanceBuilder

2020-10-06 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. Herald added a subscriber: ributzka. @rsmith ping -- Besides rebasing, any concerns about this? Alternatively, any more follow-ups on this thread from last year? - thread: http://lists.llvm.org/pipermail/cfe-dev/2019-May/062369.html CHANGES SINCE LAST ACTION https

[PATCH] D88929: [OpenMP] Change CMake Configuration to Build for Highest CUDA Architecture by Default

2020-10-06 Thread Ye Luo via Phabricator via cfe-commits
ye-luo added a comment. FindCUDA has been deprecated. Please explore the following feature without directly calling FindCUDA. https://gitlab.kitware.com/cmake/cmake/-/merge_requests/1856 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88929/new/ http

[PATCH] D54943: WIP [clang-tidy] implement const-transformation for cppcoreguidelines-const-correctness

2020-10-06 Thread Jonas Toth via Phabricator via cfe-commits
JonasToth added a comment. In D54943#2302315 , @0x8000- wrote: > In D54943#2292377 , @0x8000- > wrote: > >> In D54943#2291969 , @JonasToth >> wrote: >> >>> @Alexand

  1   2   >