[PATCH] D121683: Emit a warning if -xc/-xc++ is after the last input file

2022-03-15 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added inline comments. Comment at: clang/test/Driver/x-args.c:1 +// RUN: %clang -fsyntax-only -Werror -xc %s +// RUN: %clang -fsyntax-only -Werror %s -xc %s MaskRay wrote: > The first two RUN lines are unneeded Sorry, they are needed because of -Werror.

[PATCH] D119040: Fix LookupTest where it was missing an assertion

2022-03-15 Thread Paul Robinson via Phabricator via cfe-commits
probinson abandoned this revision. probinson added a comment. In D119040#3363406 , @kadircet wrote: > Thanks for the change, but the test is actually checking for rename in > presence of using-decls. I beleive https://reviews.llvm.org/D121103 is the > p

[PATCH] D120305: [Driver] Default CLANG_DEFAULT_PIE_ON_LINUX to ON

2022-03-15 Thread Tom Stellard via Phabricator via cfe-commits
tstellar added a comment. @xbolva00 I've removed your comment due to inappropriate language and tone. Please find a more constructive way to communicate your point. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D120305/new/ https://reviews.llvm.or

[PATCH] D121497: Lex: add support for `{,u}i128` Microsoft extension

2022-03-15 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a comment. Seems reasonable, this could use far more testing. Comment at: clang/test/Lexer/ms-extensions.c:27 +#define INT128_MAX 170141183460469231731687303715884105727i128 +#define UINT128_MAX 0xui128 + This seems li

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

2022-03-15 Thread Simon Moll via Phabricator via cfe-commits
simoll updated this revision to Diff 415509. simoll added a comment. Check IR generated for constexpr of bool vectors. This actually revealed a bug in the bool vector sema (bool vector comparisons would result in byte sized elements). Thx! Repository: rG LLVM Github Monorepo CHANGES SINCE L

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

2022-03-15 Thread Simon Moll via Phabricator via cfe-commits
simoll added inline comments. Comment at: clang/test/SemaCXX/constexpr-vectors.cpp:680 +using FourBoolsExtVec __attribute__((ext_vector_type(4))) = bool; +void BoolVecUsage() { @erichkeane This is the constexpr test you were looking for Repository: rG LLVM

[PATCH] D121709: [NFC][AIX] Disable precompiled module file test on AIX

2022-03-15 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, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121709/new/ https://reviews.llvm.org/D121709 __

[PATCH] D121723: [clang] CWG 2354: prohibit alignas for enums

2022-03-15 Thread Vlad Serebrennikov via Phabricator via cfe-commits
Endill created this revision. Herald added a reviewer: aaron.ballman. Herald added a project: All. Endill requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D121723 Files: clan

[PATCH] D121497: Lex: add support for `{,u}i128` Microsoft extension

2022-03-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. > The Windows SDK has occurrences of the i128 and ui128 suffix (at least in the > 10.0.22000.0 SDK, see intsafe.h). This adds support for the extension to > properly lex the literal. Something fishy is still going on here. I definitely see the use in intsafe.h, b

[clang-tools-extra] 2b21fc5 - Allow newline characters as separators for checks in Clang-Tidy configurations

2022-03-15 Thread Aaron Ballman via cfe-commits
Author: Danny Mösch Date: 2022-03-15T14:30:13-04:00 New Revision: 2b21fc5520b39fba555f4e5f2480a5651056be84 URL: https://github.com/llvm/llvm-project/commit/2b21fc5520b39fba555f4e5f2480a5651056be84 DIFF: https://github.com/llvm/llvm-project/commit/2b21fc5520b39fba555f4e5f2480a5651056be84.diff L

[PATCH] D120187: [clang-tidy] Allow newline characters as separators for checks in Clang-Tidy configurations

2022-03-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman closed this revision. aaron.ballman added a comment. In D120187#3382973 , @SimplyDanny wrote: > In D120187#3375610 , @aaron.ballman > wrote: > >> LGTM, but please wait a day or two before landing i

[PATCH] D121723: [clang] CWG 2354: prohibit alignas for enums

2022-03-15 Thread Erich Keane via Phabricator via cfe-commits
erichkeane accepted this revision. erichkeane added a comment. This revision is now accepted and ready to land. Please just note in the comment for the C++11 bit that it is modified by CWG2354, otherwise I think this is good. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:4291

[PATCH] D85649: [AArch64] PAC/BTI code generation for LLVM generated functions

2022-03-15 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc added a comment. Herald added a project: All. In D85649#2281439 , @chill wrote: > It looks like the only value that makes sense is `Error` - any other policy > (existing or not) would potentially lead to meaningfully different code > generated with o

[PATCH] D111400: [Clang] Implement P2242R3

2022-03-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D111400#3383006 , @hubert.reinterpretcast wrote: > @aaron.ballman @cor3ntin, are we confident that testing the non-lambda cases > is sufficient to cover the lambda cases as well? I think lambdas are just odd enough tha

[PATCH] D121723: [clang] CWG 2354: prohibit alignas for enums

2022-03-15 Thread Vlad Serebrennikov via Phabricator via cfe-commits
Endill updated this revision to Diff 415524. Endill added a comment. Fix warning about clang-format being missing Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121723/new/ https://reviews.llvm.org/D121723 Files: clang/include/clang/Basic/Diagnos

[PATCH] D121283: [Clang] Support multiple attributes in a single pragma

2022-03-15 Thread Egor Zhdan via Phabricator via cfe-commits
egorzhdan updated this revision to Diff 415527. egorzhdan added a comment. Merge two test files into one to speed up testing Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121283/new/ https://reviews.llvm.org/D121283 Files: clang/docs/LanguageExt

[PATCH] D121283: [Clang] Support multiple attributes in a single pragma

2022-03-15 Thread Egor Zhdan via Phabricator via cfe-commits
egorzhdan added a comment. Thanks for the review @aaron.ballman! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121283/new/ https://reviews.llvm.org/D121283 ___ cfe-commits mailing list cfe-commits@lists.

[PATCH] D121723: [clang] CWG 2354: prohibit alignas for enums

2022-03-15 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM aside from a tiny testing nit. It's interesting that WG14 doesn't seem to have a similar DR reported them that I can find (nothing for you to do about it). Comment at: clang/test/CXX/drs/dr2354.cpp:1 +/

[PATCH] D121723: [clang] CWG 2354: prohibit alignas for enums

2022-03-15 Thread Vlad Serebrennikov via Phabricator via cfe-commits
Endill updated this revision to Diff 415529. Endill added a comment. Add a quote from CWG 2354 after a quote from C++11 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121723/new/ https://reviews.llvm.org/D121723 Files: clang/include/clang/Basic/D

[PATCH] D121723: [clang] CWG 2354: prohibit alignas for enums

2022-03-15 Thread Vlad Serebrennikov via Phabricator via cfe-commits
Endill added inline comments. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:4291 // declared with the register storage class specifier. An // alignment-specifier may also be applied to the declaration of a class // or enumeration type. erichkea

[clang] 5791e28 - Complete the list of single-underscore keywords for MSVC compat.

2022-03-15 Thread Eli Friedman via cfe-commits
Author: Eli Friedman Date: 2022-03-15T11:58:40-07:00 New Revision: 5791e28f30168a5a930c1f869529b03b95405afe URL: https://github.com/llvm/llvm-project/commit/5791e28f30168a5a930c1f869529b03b95405afe DIFF: https://github.com/llvm/llvm-project/commit/5791e28f30168a5a930c1f869529b03b95405afe.diff

[PATCH] D121412: Complete the list of single-underscore keywords for MSVC compat.

2022-03-15 Thread Eli Friedman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG5791e28f3016: Complete the list of single-underscore keywords for MSVC compat. (authored by efriedma). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121412/n

[clang] d1873d3 - [NFC][AIX] Disable precompiled module file test on AIX

2022-03-15 Thread Jake Egan via cfe-commits
Author: Jake Egan Date: 2022-03-15T15:16:15-04:00 New Revision: d1873d395d5799fe7344d08de7f2b01e53697eca URL: https://github.com/llvm/llvm-project/commit/d1873d395d5799fe7344d08de7f2b01e53697eca DIFF: https://github.com/llvm/llvm-project/commit/d1873d395d5799fe7344d08de7f2b01e53697eca.diff LOG

[PATCH] D121709: [NFC][AIX] Disable precompiled module file test on AIX

2022-03-15 Thread Jake Egan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGd1873d395d57: [NFC][AIX] Disable precompiled module file test on AIX (authored by Jake-Egan). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121709/new/ http

[clang] 8bd0055 - [clang][parser] Allow GNU attributes before namespace identifier

2022-03-15 Thread Aleksandr Platonov via cfe-commits
Author: Aleksandr Platonov Date: 2022-03-15T22:30:22+03:00 New Revision: 8bd00557e3f43b46a96cf0e357d5e65624c85a2b URL: https://github.com/llvm/llvm-project/commit/8bd00557e3f43b46a96cf0e357d5e65624c85a2b DIFF: https://github.com/llvm/llvm-project/commit/8bd00557e3f43b46a96cf0e357d5e65624c85a2b.

[PATCH] D121245: [clang][parser] Allow GNU attributes before namespace identifier

2022-03-15 Thread Aleksandr Platonov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG8bd00557e3f4: [clang][parser] Allow GNU attributes before namespace identifier (authored by ArcsinX). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121245/ne

[PATCH] D121550: [clang-format] Fix crash on invalid requires expression

2022-03-15 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. In D121550#3381903 , @owenpan wrote: > Nvm. See https://github.com/llvm/llvm-project/issues/54384. Phew. I thought I needed a fix for the fix, for the fix, for the fix. Repository: rG LLVM Github Monorepo CHANGES

[PATCH] D121533: [clang][deps] Fix traversal of precompiled dependencies

2022-03-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. This revision is now accepted and ready to land. LGTM, with another comment inline (up to you whether to do something with it). Comment at: clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp:92 + //

[PATCH] D121685: [clang][deps] NFC: Use range-based for loop instead of iterators

2022-03-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. This revision is now accepted and ready to land. LGTM. (Not sure if you were waiting for review, but I think it's fine to push this kind of thing after checking the tests pass.) Repository: rG LLVM Github Monorepo CHANGES SINCE L

[PATCH] D121295: [clang][deps] Modules don't contribute to search path usage

2022-03-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. This revision is now accepted and ready to land. Nice! LGTM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121295/new/ https://reviews.llvm.org/D121295

[PATCH] D121646: [Concepts] Fix an assertion failure while diagnosing constrained function candidates

2022-03-15 Thread Roy Jacobson via Phabricator via cfe-commits
royjacobson added a comment. In D121646#3382243 , @erichkeane wrote: > In D121646#3380902 , @royjacobson > wrote: > >> In D121646#3380893 , @erichkeane >> wrote: >> >>>

[PATCH] D121370: [clang-format] SortIncludes should support "@import" lines in Objective-C

2022-03-15 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. Some test with a main header and blocks would be nice. Comment at: clang/lib/Format/Format.cpp:2779 /*CheckMainHeader=*/!MainIncludeFound && FirstIncludeBlock); -int Priority = Categories.getSortIncludePriority( -

[clang] bc7034c - [Concepts] Fix an assertion failure while diagnosing constrained

2022-03-15 Thread Erich Keane via cfe-commits
Author: Roy Jacobson Date: 2022-03-15T13:11:32-07:00 New Revision: bc7034c1ecfbe942bc55ed054fca856c5ab90dc8 URL: https://github.com/llvm/llvm-project/commit/bc7034c1ecfbe942bc55ed054fca856c5ab90dc8 DIFF: https://github.com/llvm/llvm-project/commit/bc7034c1ecfbe942bc55ed054fca856c5ab90dc8.diff

[PATCH] D121646: [Concepts] Fix an assertion failure while diagnosing constrained function candidates

2022-03-15 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGbc7034c1ecfb: [Concepts] Fix an assertion failure while diagnosing constrained (authored by royjacobson, committed by erichkeane). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https:

[PATCH] D121733: Clean pathnames in FileManager.

2022-03-15 Thread Paul Pluzhnikov via Phabricator via cfe-commits
ppluzhnikov created this revision. Herald added subscribers: dexonsmith, arphaman. Herald added a project: All. ppluzhnikov requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This reduces visual noise ("./foo.h" -> "foo.h") in error messages.

[PATCH] D121327: Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO

2022-03-15 Thread Julian Lettner via Phabricator via cfe-commits
yln added a comment. Hi @Orlando and @RKSimon! Thanks for pointing out the test failure and reverting the change. I see this failure: : 'RUN: at line 1'; /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -lower-global-dtors -S < /home/buildbot/buildbot-

[PATCH] D111587: re-land: [clang] Fix absolute file paths with -fdebug-prefix-map

2022-03-15 Thread Keith Smiley via Phabricator via cfe-commits
keith added a comment. You're right it's version 5 not 4, maybe the issue is that some platforms (like macOS) are defaulting to 4 intentionally for now? I guess I thought 6 because passing 6 also reproduces, but I didn't also try 5. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACT

[PATCH] D121736: Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO

2022-03-15 Thread Julian Lettner via Phabricator via cfe-commits
yln created this revision. yln added reviewers: Orlando, RKSimon. Herald added subscribers: asb, ormris, pengfei, sunfish, hiraditya, jgravelle-google, sbc100, mgorny, dschuff. Herald added a project: All. yln requested review of this revision. Herald added subscribers: llvm-commits, cfe-commits,

[PATCH] D121441: [PowerPC][NFC] Add atomic alignments and ops tests for powerpc

2022-03-15 Thread Jinsong Ji via Phabricator via cfe-commits
jsji accepted this revision as: jsji. jsji added a comment. This revision is now accepted and ready to land. LGTM. Thanks. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121441/new/ https://reviews.llvm.org/D121441 _

[clang] 1db8112 - [clang-format] Fix crash with ObjC Blocks

2022-03-15 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-03-15T21:41:57+01:00 New Revision: 1db8112311c7f3c1d39c3b62637ac26055ad9d8f URL: https://github.com/llvm/llvm-project/commit/1db8112311c7f3c1d39c3b62637ac26055ad9d8f DIFF: https://github.com/llvm/llvm-project/commit/1db8112311c7f3c1d39c3b62637ac26055ad9d8f.diff

[clang] a2db7d5 - reland: [clang] Don't append the working directory to absolute paths

2022-03-15 Thread Keith Smiley via cfe-commits
Author: Keith Smiley Date: 2022-03-15T13:42:35-07:00 New Revision: a2db7d5e9c52804544363ea819de174bfaa7ecdd URL: https://github.com/llvm/llvm-project/commit/a2db7d5e9c52804544363ea819de174bfaa7ecdd DIFF: https://github.com/llvm/llvm-project/commit/a2db7d5e9c52804544363ea819de174bfaa7ecdd.diff

[PATCH] D121596: [clang-format] Fix crash with ObjC Blocks

2022-03-15 Thread Björn Schäpers via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG1db8112311c7: [clang-format] Fix crash with ObjC Blocks (authored by HazardyKnusperkeks). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121596/new/ https://

[PATCH] D121663: reland: [clang] Don't append the working directory to absolute paths

2022-03-15 Thread Keith Smiley via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGa2db7d5e9c52: reland: [clang] Don't append the working directory to absolute paths (authored by keith). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121663/

[PATCH] D121327: Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO

2022-03-15 Thread Julian Lettner via Phabricator via cfe-commits
yln added a comment. New revision here: D121736 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121327/new/ https://reviews.llvm.org/D121327 ___ cfe-commits mailing list

[PATCH] D111587: re-land: [clang] Fix absolute file paths with -fdebug-prefix-map

2022-03-15 Thread Keith Smiley via Phabricator via cfe-commits
keith abandoned this revision. keith added a comment. There were 2 competing revisions for this bug fix, I landed https://reviews.llvm.org/D121663 instead since it sounds like having an empty `directory` is more correct in this case Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACT

[PATCH] D121736: Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO

2022-03-15 Thread Julian Lettner via Phabricator via cfe-commits
yln added a comment. Hi @Orlando and @RKSimon, would you be able to confirm that this version avoids the previous `opt: Unknown command line argument '-lower-global-dtors'` error? Lit invocation: `env LIT_FILTER='dtor' ninja check-llvm` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D111400: [Clang] Implement P2242R3

2022-03-15 Thread Corentin Jabot via Phabricator via cfe-commits
cor3ntin updated this revision to Diff 415573. cor3ntin added a comment. - Add tests in lambdas - Do not allow static constexpr: I can't think of a scenario in which that would be problematic *today*, but I agree it would be non-conforming and should be discussed. For example it would affect htt

[PATCH] D111400: [Clang] Implement P2242R3

2022-03-15 Thread Corentin Jabot via Phabricator via cfe-commits
cor3ntin updated this revision to Diff 415574. cor3ntin added a comment. Formatting Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D111400/new/ https://reviews.llvm.org/D111400 Files: clang/docs/ReleaseNotes.rst clang/include/clang/Basic/Diagnos

[clang-tools-extra] fa1019f - [lit] add lit_config.substitute to interpolate lit_config.params

2022-03-15 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-03-15T22:09:43+01:00 New Revision: fa1019fa184344a9ba57e56c8ae6c52e65b5f05c URL: https://github.com/llvm/llvm-project/commit/fa1019fa184344a9ba57e56c8ae6c52e65b5f05c DIFF: https://github.com/llvm/llvm-project/commit/fa1019fa184344a9ba57e56c8ae6c52e65b5f05c.diff LO

[PATCH] D121427: [lit] add lit_config.substitute to interpolate lit_config.params

2022-03-15 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 rGfa1019fa1843: [lit] add lit_config.substitute to interpolate lit_config.params (authored by sammccall). Changed prior to commit: https://reviews.l

[clang] 1bb13b3 - Fix sphinx build because of indentation

2022-03-15 Thread Aleksandr Platonov via cfe-commits
Author: Aleksandr Platonov Date: 2022-03-16T00:11:56+03:00 New Revision: 1bb13b3f4956370afc01a8a9315dabed8c09a2cd URL: https://github.com/llvm/llvm-project/commit/1bb13b3f4956370afc01a8a9315dabed8c09a2cd DIFF: https://github.com/llvm/llvm-project/commit/1bb13b3f4956370afc01a8a9315dabed8c09a2cd.

[PATCH] D121098: [C++20][Modules][HU 4/5] Handle pre-processed header units.

2022-03-15 Thread Iain Sandoe via Phabricator via cfe-commits
iains added a comment. In D121098#3378375 , @ChuanqiXu wrote: > It lacks tests. This is not NFC, right? Right, (there are tests with the next patch which introduces the mechanism for producing the pre-processed output) but, I will find a suitable one f

[PATCH] D121422: [clang-tools-extra] Reuse llvm_config.use_clang() to set up test environment

2022-03-15 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG2b69eb4a7d1d: [clang-tools-extra] Reuse llvm_config.use_clang() to set up test environment (authored by sammccall). Changed prior to commit: https://reviews.llvm.org/D121422?vs=414514&id=415581#toc Rep

[clang-tools-extra] 2b69eb4 - [clang-tools-extra] Reuse llvm_config.use_clang() to set up test environment

2022-03-15 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-03-15T22:14:24+01:00 New Revision: 2b69eb4a7d1d1e6829081aa677cd52ad8eef2d5b URL: https://github.com/llvm/llvm-project/commit/2b69eb4a7d1d1e6829081aa677cd52ad8eef2d5b DIFF: https://github.com/llvm/llvm-project/commit/2b69eb4a7d1d1e6829081aa677cd52ad8eef2d5b.diff LO

[PATCH] D116635: Add warning to detect when calls passing arguments are made to functions without prototypes.

2022-03-15 Thread Dan Liew via Phabricator via cfe-commits
delcypher abandoned this revision. delcypher added inline comments. Herald added a project: All. Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:5529 +def warn_call_function_without_prototype : Warning< + "calling function %0 with arguments when function has no prot

[PATCH] D121497: Lex: add support for `{,u}i128` Microsoft extension

2022-03-15 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. This was something that I was hitting an issue with. In particular, it was a module build for a module which pulled in intsafe.h. Now, given that it is a preprocessor macro, it would stand to reason that it will normally be dropped and thus won't matter if the fronte

[PATCH] D121712: [clangd] Track time spent in filesystem ops during preamble builds

2022-03-15 Thread Trass3r via Phabricator via cfe-commits
Trass3r added a comment. Hmm just a few curious questions from the sidelines. Why a "custom system" instead of something -ftime-trace based? How much overhead does this introduce, esp. for normal use-cases? What's the gain? The information is very coarse and general-purpose system profiling tools

[PATCH] D121498: let EST_Uninstantiated in FunctionProtoType::canThrow return CT_Dependent

2022-03-15 Thread zhouyizhou via Phabricator via cfe-commits
zhouyizhou updated this revision to Diff 415601. zhouyizhou edited the summary of this revision. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121498/new/ https://reviews.llvm.org/D121498 Files: clang/lib/AST/Type.cpp clang/test/SemaTemplate/class-template-deduction.cpp Index: clan

[PATCH] D121746: Use lit_config.substitute instead of foo % lit_config.params everywhere

2022-03-15 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: hokein. Herald added a reviewer: bollu. Herald added subscribers: ayermolo, sdasgup3, wenzhicui, wrengr, Chia-hungDuan, dcaballe, cota, teijeong, rdzhabarov, tatianashp, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, liufengdb, aartbik,

[PATCH] D121748: [clang][Sema] Better support for ObjC++ in Sema::LookupName

2022-03-15 Thread Alex Langford via Phabricator via cfe-commits
bulbazord created this revision. bulbazord added a reviewer: arphaman. Herald added a project: All. bulbazord requested review of this revision. Herald added a project: clang. `Sema::LookupName` essentially has two possible code paths based on what language is currently being used. The predicate s

[PATCH] D121748: [clang][Sema] Better support for ObjC++ in Sema::LookupName

2022-03-15 Thread Alex Langford via Phabricator via cfe-commits
bulbazord added a comment. I'm not quite sure the best way to test this. Looks like `Sema::LookupName` isn't currently directly tested. I've run the test suite and did not find any new failing tests. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D1

[PATCH] D121749: [clang-format][docs] Regenerate ClangFormatStyleOptions.rst

2022-03-15 Thread Krystian Kuzniarek via Phabricator via cfe-commits
kuzkry created this revision. kuzkry added reviewers: sstwcw, MyDeveloperDay. kuzkry added a project: clang-format. Herald added a project: All. kuzkry requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Misalignment of clang/docs/ClangFormatSt

[PATCH] D121425: [VFS] Add a new getVFSFromYAMLs API

2022-03-15 Thread Ben Barham via Phabricator via cfe-commits
bnbarham updated this revision to Diff 415615. bnbarham edited the summary of this revision. bnbarham added a comment. Herald added subscribers: cfe-commits, lldb-commits, carlosgalvezp. Herald added projects: clang, LLDB, clang-tools-extra. Re-order to be before D121424

[PATCH] D121426: [VFS] Update uses of getVFSFromYAML to use the new getVFSFromYAMLs API

2022-03-15 Thread Ben Barham via Phabricator via cfe-commits
bnbarham marked an inline comment as done. bnbarham added a comment. Merged into D121425 instead. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121426/new/ https://reviews.llvm.org/D121426 ___

[PATCH] D121749: [clang-format][docs] Regenerate ClangFormatStyleOptions.rst

2022-03-15 Thread Krystian Kuzniarek via Phabricator via cfe-commits
kuzkry added a comment. @sstwcw, I think you must have forgotten to regenerate the rst file :) I added you as a reviewer to this revision. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121749/new/ https://reviews.llvm.org/D121749

[PATCH] D121233: [pseudo] Move pseudoparser from clang to clang-tools-extra

2022-03-15 Thread Sam McCall via Phabricator via cfe-commits
sammccall updated this revision to Diff 415619. sammccall marked 4 inline comments as done. sammccall added a comment. Rebase and restore conventional test/Unit suite Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121233/new/ https://reviews.llvm.or

[PATCH] D121425: [VFS] Add a new getVFSFromYAMLs API

2022-03-15 Thread Ben Barham via Phabricator via cfe-commits
bnbarham added a comment. There's two failing tests with this change: - VFSFromYAMLTest.ReturnsExternalPathVFSHit - VFSFromYAMLTest.ReturnsInternalPathVFSHit Apparently we allow relative paths in external-contents *without* specifying `overlay-relative: true`. In this case the relative paths ar

[clang-tools-extra] b97856c - [pseudo] Move pseudoparser from clang to clang-tools-extra

2022-03-15 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-03-16T00:14:11+01:00 New Revision: b97856c4cfe7efb13887d5691002a7aa38440924 URL: https://github.com/llvm/llvm-project/commit/b97856c4cfe7efb13887d5691002a7aa38440924 DIFF: https://github.com/llvm/llvm-project/commit/b97856c4cfe7efb13887d5691002a7aa38440924.diff LO

[PATCH] D121233: [pseudo] Move pseudoparser from clang to clang-tools-extra

2022-03-15 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 rGb97856c4cfe7: [pseudo] Move pseudoparser from clang to clang-tools-extra (authored by sammccall). Changed prior to commit: https://reviews.llvm.or

[PATCH] D120272: [CUDA] Add driver support for compiling CUDA with the new driver

2022-03-15 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 updated this revision to Diff 415622. jhuber6 added a comment. Fix wrong condition for picking up input. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D120272/new/ https://reviews.llvm.org/D120272 Files: clang/include/clang/Basic/Cuda.h

[PATCH] D119300: Use-after-dtor detection for trivial base classes.

2022-03-15 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added a comment. Herald added a project: All. @eugenis I will prepare google3 and land it? Comment at: clang/lib/CodeGen/CGClass.cpp:1872 // Ignore trivial destructors. + if (BaseClassDecl->hasTrivialDestructor()) { --

[PATCH] D121749: [clang-format][docs] Regenerate ClangFormatStyleOptions.rst

2022-03-15 Thread sstwcw via Phabricator via cfe-commits
sstwcw added a comment. Yes. I probably forgot to generate the doc. Thank you. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121749/new/ https://reviews.llvm.org/D121749 ___ cfe-commits mailing list cf

[PATCH] D121753: [clang-format] Use a macro for non-C keywords

2022-03-15 Thread sstwcw via Phabricator via cfe-commits
sstwcw created this revision. sstwcw added a reviewer: clang-format. sstwcw added a project: clang-format. Herald added a project: All. sstwcw requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. We had to add a bunch of keywords for a new langu

[PATCH] D120952: [clang][AST matchers] adding submatchers under cudaKernelCallExpr to match kernel launch config

2022-03-15 Thread Alister Johnson via Phabricator via cfe-commits
ajohnson-uoregon added a comment. For the specific argument matchers (`cudaBlockDim()`, `cudaStream()`, etc), I agree, I'm not sure if there's any other use cases in tree. I wasn't aware you could write local definitions like that, I could definitely do that within my project for those. I woul

[PATCH] D121754: [clang-format] Refactor determineStarAmpUsage

2022-03-15 Thread sstwcw via Phabricator via cfe-commits
sstwcw created this revision. sstwcw added a reviewer: clang-format. sstwcw added a project: clang-format. Herald added a project: All. sstwcw requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. There was some duplicate code in determineStarAmp

[PATCH] D121755: [clang-format] Join spaceRequiredBefore and spaceRequiredBetween

2022-03-15 Thread sstwcw via Phabricator via cfe-commits
sstwcw created this revision. sstwcw added a reviewer: clang-format. Herald added a project: All. sstwcw requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. After all these years, having the two functions now serves to confuse people. Reposit

[PATCH] D121756: [clang-format] Clean up code looking for if statements

2022-03-15 Thread sstwcw via Phabricator via cfe-commits
sstwcw created this revision. sstwcw added a reviewer: clang-format. sstwcw added a project: clang-format. Herald added a project: All. sstwcw requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Previously several places had code to determine w

[PATCH] D121441: [PowerPC][NFC] Add atomic alignments and ops tests for powerpc

2022-03-15 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: clang/test/CodeGen/PowerPC/atomic-alignment.c:2-6 +// RUN: %clang_cc1 -verify -triple powerpc-unkonwn-unknown -emit-llvm -o - %s | \ +// RUN: FileCheck %s --check-prefixes=PPC,PPC32 +// RUN: %clang_cc1 -verify -triple p

[PATCH] D121757: [clang-format] Take out common code for parsing blocks

2022-03-15 Thread sstwcw via Phabricator via cfe-commits
sstwcw created this revision. sstwcw added a reviewer: clang-format. sstwcw added a project: clang-format. Herald added a project: All. sstwcw requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo https://re

[PATCH] D63085: Provide a fix-it hint for -Wswitch, which adds missing cases. If there are >3 cases, the inserted text will contain newlines so it will not be shown in console output (but will be appl

2022-03-15 Thread Sergio Martins via Phabricator via cfe-commits
iamsergio added a comment. Herald added a subscriber: usaxena95. Herald added a project: All. I don't think we need to worry about formatting, that's the IDE's job (and whatever formatter it uses). In general, the code that knows how to warn should also be the one that knows how to fix it, this

[PATCH] D121758: [clang-format] Add support for formatting Verilog code

2022-03-15 Thread sstwcw via Phabricator via cfe-commits
sstwcw added a subscriber: svenvh. sstwcw added a comment. Do we have people who use Verilog and knows the clang-format code base? @svenvh Your email address looks like you work for a hardware company. If you know Verilog would you please have a look at this patch? Repository: rG LLVM Gith

[PATCH] D121441: [PowerPC][NFC] Add atomic alignments and ops tests for powerpc

2022-03-15 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: clang/test/CodeGen/PowerPC/atomic-alignment.c:1 +// REQUIRES: powerpc-registered-target +// RUN: %clang_cc1 -verify -triple powerpc-unkonwn-unknown -emit-llvm -o - %s | \ I am not sure about having a `Cod

[PATCH] D121233: [pseudo] Move pseudoparser from clang to clang-tools-extra

2022-03-15 Thread Ron Lieberman via Phabricator via cfe-commits
ronlieb added a comment. Hi Sam i think this breaks our amdgpu buildbot https://lab.llvm.org/buildbot/#/builders/193/builds/8513 any suggestions? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121233/new/ https://reviews.llvm.org/D121233 _

[PATCH] D121758: [clang-format] Add support for formatting Verilog code

2022-03-15 Thread sstwcw via Phabricator via cfe-commits
sstwcw added inline comments. Comment at: clang/lib/Format/UnwrappedLineParser.cpp:534 continue; - parseBlock(/*MustBeDeclaration=*/false, /*AddLevels=*/1u, - /*MunchSemi=*/true, /*UnindentWhitesmithBraces=*/false, - CanContainBracedL

[PATCH] D121748: [clang][Sema] Better support for ObjC++ in Sema::LookupName

2022-03-15 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. Is there a way this can be tested from Clang? Also, is there a Swift-based test case you have that demonstrates the original problem from Swift's clang importer side? I'm curious to see where it manifests in Swift. Repository: rG LLVM Github Monorepo CHANGES SINCE

[PATCH] D120296: [Attr] Fix a btf_type_tag AST generation bug

2022-03-15 Thread Yonghong Song via Phabricator via cfe-commits
yonghong-song updated this revision to Diff 415638. yonghong-song added a comment. - change TransformBTFTagAttributedType() implementation with a simple llvm_unreachable() message. I tested linux kernel and its selftests/bpf compilation with clang and found the only TreeTransformation function i

[clang] 049f4e4 - Revert "[pseudo] Move pseudoparser from clang to clang-tools-extra"

2022-03-15 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-03-16T01:06:24+01:00 New Revision: 049f4e4eab19c6e468e029232e94ca71245b0f56 URL: https://github.com/llvm/llvm-project/commit/049f4e4eab19c6e468e029232e94ca71245b0f56 DIFF: https://github.com/llvm/llvm-project/commit/049f4e4eab19c6e468e029232e94ca71245b0f56.diff LO

Re: [PATCH] D121233: [pseudo] Move pseudoparser from clang to clang-tools-extra

2022-03-15 Thread Sam McCall via cfe-commits
Sorry, this broke the world and I wasn't watching it carefully enough. Reverted in 049f4e4eab19c6e468e029232e94ca71245b0f56, trying to work out why the tests passed locally. On Wed, Mar 16, 2022 at 12:48 AM Ron Lieberman via Phabricator < revi...@reviews.llvm.org> wrote: > ronlieb added a comment

[PATCH] D121233: [pseudo] Move pseudoparser from clang to clang-tools-extra

2022-03-15 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. Ah I see what happened - there was one incorrect (and unneeded) dependency left behind, which caused tests to fail if you *didn't* have clang-tools-extra enabled. Relanding... Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org

[PATCH] D120956: [clang][AST matchers] new AST matcher argumentsGivenCountIs(n) that checks the actual number of arguments given in a function call

2022-03-15 Thread Alister Johnson via Phabricator via cfe-commits
ajohnson-uoregon added a comment. This is the same use case as my other patches :) https://github.com/ajohnson-uoregon/llvm-project/blob/feature-ajohnson/clang-tools-extra/clang-rewrite/ConstructMatchers.cpp#L545 If there's a function with default arguments, and our user doesn't specify some of

[clang-tools-extra] 89cd86b - Reapply [pseudo] Move pseudoparser from clang to clang-tools-extra"

2022-03-15 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-03-16T01:10:55+01:00 New Revision: 89cd86bbc58afe7d036bdb2f656dca38b62d8ef0 URL: https://github.com/llvm/llvm-project/commit/89cd86bbc58afe7d036bdb2f656dca38b62d8ef0 DIFF: https://github.com/llvm/llvm-project/commit/89cd86bbc58afe7d036bdb2f656dca38b62d8ef0.diff LO

[PATCH] D120956: [clang][AST matchers] new AST matcher argumentsGivenCountIs(n) that checks the actual number of arguments given in a function call

2022-03-15 Thread Alister Johnson via Phabricator via cfe-commits
ajohnson-uoregon added inline comments. Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:4452 +/// \endcode +AST_POLYMORPHIC_MATCHER_P(argumentsGivenCountIs, + AST_POLYMORPHIC_SUPPORTED_TYPES( aaron.ballman wrote: > I have a pref

[PATCH] D121425: [VFS] Add a new getVFSFromYAMLs API

2022-03-15 Thread Ben Barham via Phabricator via cfe-commits
bnbarham added a comment. In D121425#3384188 , @bnbarham wrote: > There's two failing tests with this change: > > - VFSFromYAMLTest.ReturnsExternalPathVFSHit > - VFSFromYAMLTest.ReturnsInternalPathVFSHit > > Apparently we allow relative paths in external-

[PATCH] D121736: Lower `@llvm.global_dtors` using `__cxa_atexit` on MachO

2022-03-15 Thread Julian Lettner via Phabricator via cfe-commits
yln added a comment. It looks like all tests succeed for `x64 debian`: https://buildkite.com/llvm-project/premerge-checks/builds/83802#c5002be5-e01c-46fc-a767-50fe6f854465 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121736/new/ https://reviews.ll

[PATCH] D121425: [VFS] Add a new getVFSFromYAMLs API

2022-03-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In D121425#3384188 , @bnbarham wrote: > There's two failing tests with this change: > > - VFSFromYAMLTest.ReturnsExternalPathVFSHit > - VFSFromYAMLTest.ReturnsInternalPathVFSHit > > Apparently we allow relative paths in externa

[PATCH] D121233: [pseudo] Move pseudoparser from clang to clang-tools-extra

2022-03-15 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Is there a reason why this can't be part of clang-tools-extra/test and check-clang-tools? Why is this in a directory called "pseudo" instead of "clang-pseudo"? This makes everything fairly self-inconsistent (`pseudo/tool` vs `clang-pseudo` in there, but then also `check

[PATCH] D121498: let EST_Uninstantiated in FunctionProtoType::canThrow return CT_Dependent

2022-03-15 Thread zhouyizhou via Phabricator via cfe-commits
zhouyizhou updated this revision to Diff 415655. zhouyizhou edited the summary of this revision. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D121498/new/ https://reviews.llvm.org/D121498 Files: clang/lib/AST/Type.cpp clang/test/SemaTemplate/class-template-deduction.cpp Index: clan

[PATCH] D121425: [VFS] Add a new getVFSFromYAMLs API

2022-03-15 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In D121425#3384479 , @bnbarham wrote: > In D121425#3384188 , @bnbarham > wrote: > >> There's two failing tests with this change: >> >> - VFSFromYAMLTest.ReturnsExternalPathVFSHit >> -

[PATCH] D120959: [clang][AST matchers] new hasExpectedReturnType submatcher for ReturnStmts

2022-03-15 Thread Alister Johnson via Phabricator via cfe-commits
ajohnson-uoregon added a comment. This is our use case: https://github.com/ajohnson-uoregon/llvm-project/blob/feature-ajohnson/clang-tools-extra/clang-rewrite/MatcherGenCallback.h#L365 I'm not sure if anyone else would want to use this, but it feels like it could be generally useful. Now that

[PATCH] D119479: [clang][extract-api] Add global record support

2022-03-15 Thread Zixu Wang via Phabricator via cfe-commits
zixuw updated this revision to Diff 415658. zixuw added a comment. - Address reviews - Add and handle unconditionally unavailable - Delete the default constructor of `APIRecord` - Make `APIRecord` abstract for LLVM RTTI - Improve `getFormattedText` and `getFormattedLines` - Fix wordings

<    1   2   3   >