[clang] 1ccded0 - [clang] Fix build when targeting ps4

2022-08-01 Thread Alex Brachet via cfe-commits
Author: Alex Brachet Date: 2022-08-01T20:31:01Z New Revision: 1ccded0fc111700f72ffa36b5d0160a86c65ec3a URL: https://github.com/llvm/llvm-project/commit/1ccded0fc111700f72ffa36b5d0160a86c65ec3a DIFF: https://github.com/llvm/llvm-project/commit/1ccded0fc111700f72ffa36b5d0160a86c65ec3a.diff LOG:

[PATCH] D120175: [Driver] Re-run lld with --reproduce when it crashes

2022-08-01 Thread Alex Brachet via Phabricator via cfe-commits
abrachet added a comment. In D120175#3691843 , @MaskRay wrote: > LGTM > > (Note: This is a patch which I think would benefit from a second look and > 2.5h from approval to push was too short for others to react on this patch.) Ack, I'll give more time i

[PATCH] D130935: [clang] Only modify FileEntryRef names that are externally remapped

2022-08-01 Thread Ben Langmuir via Phabricator via cfe-commits
benlangmuir created this revision. benlangmuir added reviewers: bnbarham, jansvoboda11. Herald added a project: All. benlangmuir requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. As progress towards having FileEntryRef contain the requested n

[PATCH] D130934: [clang] Update code that assumes FileEntry::getName is absolute NFC

2022-08-01 Thread Ben Barham via Phabricator via cfe-commits
bnbarham accepted this revision. bnbarham added a comment. This revision is now accepted and ready to land. LGTM, thanks for doing this 🙇 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130934/new/ https://reviews.llvm.org/D130934 __

[PATCH] D130800: [clang][Headers] Avoid compiler warnings in builtin headers

2022-08-01 Thread Dominic Chen via Phabricator via cfe-commits
ddcc updated this revision to Diff 449118. ddcc added a comment. Undef macros instead, handle other header files Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130800/new/ https://reviews.llvm.org/D130800 Files: clang/lib/Headers/__clang_cuda_bui

[PATCH] D130935: [clang] Only modify FileEntryRef names that are externally remapped

2022-08-01 Thread Ben Barham via Phabricator via cfe-commits
bnbarham accepted this revision. bnbarham added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Basic/FileManager.cpp:277-278 - if (Status.getName() == Filename) { -// The name matches. Set the FileEntry. + if (Status.getName() == F

[PATCH] D120175: [Driver] Re-run lld with --reproduce when it crashes

2022-08-01 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. This breaks tests on mac and win: http://45.33.8.238/macm1/41545/step_7.txt http://45.33.8.238/win/63579/step_7.txt Please take a look and revert for now if it takes a while to fix. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.o

[clang] 9028966 - [clang] Don't create executable in test

2022-08-01 Thread Alex Brachet via cfe-commits
Author: Alex Brachet Date: 2022-08-01T20:59:40Z New Revision: 9028966a717239cf586d6c4f606965d444176dc4 URL: https://github.com/llvm/llvm-project/commit/9028966a717239cf586d6c4f606965d444176dc4 DIFF: https://github.com/llvm/llvm-project/commit/9028966a717239cf586d6c4f606965d444176dc4.diff LOG:

[PATCH] D120175: [Driver] Re-run lld with --reproduce when it crashes

2022-08-01 Thread Alex Brachet via Phabricator via cfe-commits
abrachet added a comment. In D120175#3692032 , @thakis wrote: > This breaks tests on mac and win: > http://45.33.8.238/macm1/41545/step_7.txt > http://45.33.8.238/win/63579/step_7.txt > > Please take a look and revert for now if it takes a while to fix.

[PATCH] D130935: [clang] Only modify FileEntryRef names that are externally remapped

2022-08-01 Thread Ben Langmuir via Phabricator via cfe-commits
benlangmuir added inline comments. Comment at: clang/lib/Basic/FileManager.cpp:277-278 - if (Status.getName() == Filename) { -// The name matches. Set the FileEntry. + if (Status.getName() == Filename || !Status.ExposesExternalVFSPath) { +// Use the requested name. Se

[PATCH] D130791: [clang] Short-circuit trivial constexpr array constructors

2022-08-01 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. > Thank you for working on this! This should also include test coverage (hmmm, > we don't have a reasonable way to lit test performance regressions though > so perhaps we just need to ensure there's at least one test that would > normally have been unreasonably slo

[clang] 4b8f375 - [clang] Temporarily expect failure from test

2022-08-01 Thread Alex Brachet via cfe-commits
Author: Alex Brachet Date: 2022-08-01T21:11:21Z New Revision: 4b8f375c9f9ece32106da899bc2debf31ed20970 URL: https://github.com/llvm/llvm-project/commit/4b8f375c9f9ece32106da899bc2debf31ed20970 DIFF: https://github.com/llvm/llvm-project/commit/4b8f375c9f9ece32106da899bc2debf31ed20970.diff LOG:

[PATCH] D130935: [clang] Only modify FileEntryRef names that are externally remapped

2022-08-01 Thread Ben Langmuir via Phabricator via cfe-commits
benlangmuir updated this revision to Diff 449124. benlangmuir added a comment. Flip the order of comparisons to avoid unnecessary string comparisons. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130935/new/ https://reviews.llvm.org/D130935 Files:

[PATCH] D130754: [X86] Support ``-mindirect-branch-cs-prefix`` for call and jmp to indirect thunk

2022-08-01 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers accepted this revision. nickdesaulniers added a comment. This revision is now accepted and ready to land. LGTM; thanks for the patch! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130754/new/ https://reviews.llvm.org/D130754 __

[PATCH] D130516: [llvm] compression classes

2022-08-01 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. (still lots of outstanding comments from my last round, so I won't reiterate those - but waiting for some responses to them) Comment at: llvm/lib/Support/Compression.cpp:30-32 +ZStdCompressionAlgorithm +*llvm::compression::ZStdCompressionAlgorithm

[PATCH] D129954: [CodeGen][inlineasm] assume the flag output of inline asm is boolean value

2022-08-01 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers accepted this revision. nickdesaulniers added a comment. Thanks for the patch! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129954/new/ https://reviews.llvm.org/D129954 ___ cfe-commits m

[PATCH] D130936: [SemaCXX] Validate destructor is valid for dependent classes

2022-08-01 Thread Roy Jacobson via Phabricator via cfe-commits
royjacobson created this revision. Herald added a project: All. royjacobson updated this revision to Diff 449130. royjacobson added a comment. royjacobson retitled this revision from "[SemaCXX] Fix destructor name accepts-invalid bug." to "[SemaCXX] Validate destructor is valid for dependent clas

[clang] b4c6dc2 - [clang] Update code that assumes FileEntry::getName is absolute NFC

2022-08-01 Thread Ben Langmuir via cfe-commits
Author: Ben Langmuir Date: 2022-08-01T14:48:37-07:00 New Revision: b4c6dc2e66370d94ff52075c2710a674d8e1e0f8 URL: https://github.com/llvm/llvm-project/commit/b4c6dc2e66370d94ff52075c2710a674d8e1e0f8 DIFF: https://github.com/llvm/llvm-project/commit/b4c6dc2e66370d94ff52075c2710a674d8e1e0f8.diff

[PATCH] D130934: [clang] Update code that assumes FileEntry::getName is absolute NFC

2022-08-01 Thread Ben Langmuir via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGb4c6dc2e6637: [clang] Update code that assumes FileEntry::getName is absolute NFC (authored by benlangmuir). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D13

[PATCH] D127641: [clang-cl][MSVC] Enable /Zc:alignedNew for C++17 and /Zc:sizedDealloc by default

2022-08-01 Thread Stephen Long via Phabricator via cfe-commits
steplong updated this revision to Diff 449140. steplong added a comment. Herald added a subscriber: steakhal. - Change unittest to match Num Args 1 or 2 I won't merge this. Just want to see if this passes the unittest Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://re

[PATCH] D130871: [C++20] [Modules] Handle initializer for Header Units

2022-08-01 Thread Iain Sandoe via Phabricator via cfe-commits
iains accepted this revision. iains added a comment. This revision is now accepted and ready to land. LGTM, one small point about the test, Comment at: clang/test/CodeGenCXX/module-initializer-header.cppm:5-7 +// RUN: %clang_cc1 -std=c++20 -triple=x86_64-unknown-linux-gnu -xc+

[clang] 71f2d5c - [clang] Re-enable test after marking it XFAIL

2022-08-01 Thread Alex Brachet via cfe-commits
Author: Alex Brachet Date: 2022-08-01T22:09:13Z New Revision: 71f2d5c2d195256f27f293aefdc1d4f6c117065d URL: https://github.com/llvm/llvm-project/commit/71f2d5c2d195256f27f293aefdc1d4f6c117065d DIFF: https://github.com/llvm/llvm-project/commit/71f2d5c2d195256f27f293aefdc1d4f6c117065d.diff LOG:

[clang] 6b3fa58 - [clang] Make test agnostic to file seperator character

2022-08-01 Thread Alex Brachet via cfe-commits
Author: Alex Brachet Date: 2022-08-01T22:12:04Z New Revision: 6b3fa58fde5962f00523e2a8f2498b1206345db2 URL: https://github.com/llvm/llvm-project/commit/6b3fa58fde5962f00523e2a8f2498b1206345db2 DIFF: https://github.com/llvm/llvm-project/commit/6b3fa58fde5962f00523e2a8f2498b1206345db2.diff LOG:

[PATCH] D126097: [clang-tidy] Adds the NSDateFormatter checker to clang-tidy

2022-08-01 Thread Rashmi Mudduluru via Phabricator via cfe-commits
t-rasmud updated this revision to Diff 449144. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126097/new/ https://reviews.llvm.org/D126097 Files: clang-tools-extra/clang-tidy/objc/CMakeLists.txt clang-tools-extra/clang-tidy/objc/NSDateFormatterCheck.cpp clang-tools-extra/clang-tidy/

[PATCH] D126097: [clang-tidy] Adds the NSDateFormatter checker to clang-tidy

2022-08-01 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. Great, thanks! Unless there are other objections from other reviewers, I think this is good to go. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126097/new/ https://reviews.llvm.org/D126097 __

[PATCH] D130311: [RISCV] Enable strict FP in clang as long as Zve* or V are not enabled.

2022-08-01 Thread Craig Topper via Phabricator via cfe-commits
craig.topper added inline comments. Comment at: clang/lib/Basic/Targets/RISCV.cpp:286 + // StrictFP support for vectors is incomplete. + if (ISAInfo->hasExtension("zve32x")) +HasStrictFP = false; reames wrote: > craig.topper wrote: > > reames wrote: > > > c

[clang] 98cf745 - [clang] Only modify FileEntryRef names that are externally remapped

2022-08-01 Thread Ben Langmuir via cfe-commits
Author: Ben Langmuir Date: 2022-08-01T15:45:51-07:00 New Revision: 98cf745a032ea0d29fbddaa204760d4e823c237f URL: https://github.com/llvm/llvm-project/commit/98cf745a032ea0d29fbddaa204760d4e823c237f DIFF: https://github.com/llvm/llvm-project/commit/98cf745a032ea0d29fbddaa204760d4e823c237f.diff

[PATCH] D130935: [clang] Only modify FileEntryRef names that are externally remapped

2022-08-01 Thread Ben Langmuir 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 rG98cf745a032e: [clang] Only modify FileEntryRef names that are externally remapped (authored by benlangmuir). Repository: rG LLVM Github Monorepo

[PATCH] D130311: [RISCV] Enable strict FP in clang as long as Zve* or V are not enabled.

2022-08-01 Thread Craig Topper via Phabricator via cfe-commits
craig.topper updated this revision to Diff 449150. craig.topper added a comment. Add hasVInstructions to RISCVISAInfo Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130311/new/ https://reviews.llvm.org/D130311 Files: clang/lib/Basic/Targets/RISCV

[PATCH] D130800: [clang][Headers] Avoid compiler warnings in builtin headers

2022-08-01 Thread Artem Belevich via Phabricator via cfe-commits
tra added inline comments. Comment at: clang/lib/Headers/__clang_cuda_builtin_vars.h:37 -#if __cplusplus >= 201103L +#if defined(__cplusplus) && __cplusplus >= 201103L #define __DELETE =delete Are there actual use cases where CUDA headers are used from a non-C

[PATCH] D130951: [HLSL] CodeGen hlsl resource binding.

2022-08-01 Thread Xiang Li via Phabricator via cfe-commits
python3kgae created this revision. python3kgae added reviewers: aaron.ballman, Anastasia, kuhar, bogner, beanz, pow2clk. Herald added a project: All. python3kgae requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. ''register(ID, space)'' like

[PATCH] D130863: [clangd] Make git ignore index directories

2022-08-01 Thread sums via Phabricator via cfe-commits
sums marked an inline comment as done. sums added inline comments. Comment at: clang-tools-extra/clangd/test/background-index.test:23 +# RUN: ls %/t/.cache/clangd/index/.gitignore +# RUN: ls %/t/sub_dir/.cache/clangd/index/.gitignore + sammccall wrote: > Bleh, id

[PATCH] D129048: Rewording the "static_assert" to static assertion

2022-08-01 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. This change caused a ton of churn, for what I understand fix the diag in C mode when assert.h is not included. IMHO, it would've been better to change the diag to say either `static_assert` as before in c++ mode or when assert.h is included (i.e. almost always), and `_S

[clang] 9bf6ecc - [clang] Only run test on x86

2022-08-01 Thread Alex Brachet via cfe-commits
Author: Alex Brachet Date: 2022-08-02T00:56:05Z New Revision: 9bf6eccae112476d953180e814781b99237bd0bb URL: https://github.com/llvm/llvm-project/commit/9bf6eccae112476d953180e814781b99237bd0bb DIFF: https://github.com/llvm/llvm-project/commit/9bf6eccae112476d953180e814781b99237bd0bb.diff LOG:

[PATCH] D130936: [SemaCXX] Validate destructor is valid for dependent classes

2022-08-01 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik added a comment. LGTM but let's have Erich take a look. Comment at: clang/lib/Sema/SemaDecl.cpp:11499 - // FIXME: Shouldn't we be able to perform this check even when the class - // type is dependent? Both gcc and edg can handle that. The FIX

[clang] db6152a - [C++20] [Modules] Handle initializer for Header Units

2022-08-01 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2022-08-02T10:27:02+08:00 New Revision: db6152ad66d7cf48f9f5c3eb28bf54c092978773 URL: https://github.com/llvm/llvm-project/commit/db6152ad66d7cf48f9f5c3eb28bf54c092978773 DIFF: https://github.com/llvm/llvm-project/commit/db6152ad66d7cf48f9f5c3eb28bf54c092978773.diff LO

[PATCH] D130871: [C++20] [Modules] Handle initializer for Header Units

2022-08-01 Thread Chuanqi Xu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGdb6152ad66d7: [C++20] [Modules] Handle initializer for Header Units (authored by ChuanqiXu). Changed prior to commit: https://reviews.llvm.org/D130871?vs=448931&id=449172#toc Repository: rG LLVM Gith

[clang] 0bb3aaf - [docs] Regenerate clang/docs/ClangCommandLineReference.rst

2022-08-01 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2022-08-01T19:31:25-07:00 New Revision: 0bb3aafbd5d59fdd3720c4ba9b995863bc3d2f45 URL: https://github.com/llvm/llvm-project/commit/0bb3aafbd5d59fdd3720c4ba9b995863bc3d2f45 DIFF: https://github.com/llvm/llvm-project/commit/0bb3aafbd5d59fdd3720c4ba9b995863bc3d2f45.diff

[clang] 29f852a - [Driver] Remove deprecated -fsanitize-coverage-{black,white}list=

2022-08-01 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2022-08-01T19:39:25-07:00 New Revision: 29f852a1516bcd3928dad74835965f238de34409 URL: https://github.com/llvm/llvm-project/commit/29f852a1516bcd3928dad74835965f238de34409 DIFF: https://github.com/llvm/llvm-project/commit/29f852a1516bcd3928dad74835965f238de34409.diff

[PATCH] D130864: [NFC] Introduce ASTContext::isInSameModule()

2022-08-01 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu updated this revision to Diff 449173. ChuanqiXu added a comment. Address comments. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130864/new/ https://reviews.llvm.org/D130864 Files: clang/include/clang/AST/ASTContext.h clang/include/clang/Sema/Sema.h clang/lib/AST/ASTCon

[PATCH] D130864: [NFC] Introduce ASTContext::isInSameModule()

2022-08-01 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu marked 2 inline comments as done. ChuanqiXu added inline comments. Comment at: clang/lib/AST/ASTContext.cpp:6232 + + auto getHashValueForPrimaryModule = [this](const Module *M) { +if (!PrimaryModuleHash.count(M)) erichkeane wrote: > Doesn't `FindAn

[clang] 39cfde2 - Revert "[C++20] [Modules] Handle initializer for Header Units"

2022-08-01 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2022-08-02T11:09:38+08:00 New Revision: 39cfde236693a928ff6594ddc321c4550237cfaa URL: https://github.com/llvm/llvm-project/commit/39cfde236693a928ff6594ddc321c4550237cfaa DIFF: https://github.com/llvm/llvm-project/commit/39cfde236693a928ff6594ddc321c4550237cfaa.diff LO

[clang] 6d10733 - [C++20] [Modules] Handle initializer for Header Units

2022-08-01 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2022-08-02T11:24:46+08:00 New Revision: 6d10733d445506c02ebec9faa54658431857bb49 URL: https://github.com/llvm/llvm-project/commit/6d10733d445506c02ebec9faa54658431857bb49 DIFF: https://github.com/llvm/llvm-project/commit/6d10733d445506c02ebec9faa54658431857bb49.diff LO

[PATCH] D130906: [clang] format string checking for conpile-time evaluated str literal

2022-08-01 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added inline comments. Comment at: clang/lib/Sema/SemaChecking.cpp:8504 return SLCT_UncheckedLiteral; + Expr::EvalResult Result; + if (E->EvaluateAsRValue(Result, S.Context)) { A comment above this line would be helpful. Would also visually separat

[PATCH] D130791: [clang] Short-circuit trivial constexpr array constructors

2022-08-01 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added a comment. In D130791#3692071 , @dblaikie wrote: > also: What about zero length arrays? (which are supported as an extension) - > this change would cause failures that wouldn't be emitted in the old code? There's a `if (FinalSize == 0) ret

[PATCH] D130791: [clang] Short-circuit trivial constexpr array constructors

2022-08-01 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder updated this revision to Diff 449182. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130791/new/ https://reviews.llvm.org/D130791 Files: clang/docs/ReleaseNotes.rst clang/lib/AST/ExprConstant.cpp Index: clang/lib/AST/ExprConstant.cpp =

[PATCH] D130964: Enable __bf16 for x86 targets.

2022-08-01 Thread Freddy, Ye via Phabricator via cfe-commits
FreddyYe created this revision. Herald added subscribers: luke957, pengfei, s.egerton, simoncook. Herald added a project: All. FreddyYe requested review of this revision. Herald added subscribers: llvm-commits, cfe-commits, pcwang-thead. Herald added projects: clang, LLVM. X86 psABI has updated to

[PATCH] D130510: Missing tautological compare warnings due to unary operators

2022-08-01 Thread Richard Trieu via Phabricator via cfe-commits
rtrieu reopened this revision. rtrieu added a comment. This revision is now accepted and ready to land. This warning is now flagging some code which I believe is a false positive. In particular, when template arguments are involved, their values can be calculated during template instantiation,

[PATCH] D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init

2022-08-01 Thread gehry via Phabricator via cfe-commits
Sockke updated this revision to Diff 449188. Sockke added a comment. Rebased. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127293/new/ https://reviews.llvm.org/D127293 Files: clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp clang-tools-extra/docs/ReleaseNo

[PATCH] D130827: [clang] Fixed a number of typos

2022-08-01 Thread H. Vetinari via Phabricator via cfe-commits
h-vetinari added a comment. Thanks for chasing these down! Comment at: clang/include/clang/Basic/SourceManager.h:1922 +/// SourceManager and necessary dependencies (e.g. VFS, FileManager) for a +/// single in-memorty file. class SourceManagerForFile { Even tho

[PATCH] D130906: [clang] format string checking for conpile-time evaluated str literal

2022-08-01 Thread YingChi Long via Phabricator via cfe-commits
inclyc added inline comments. Comment at: clang/lib/Sema/SemaChecking.cpp:8507 +if (Result.Val.isLValue()) { + auto *LVE = Result.Val.getLValueBase().dyn_cast(); + if (LVE && LVE->getStmtClass() == Stmt::StringLiteralClass) { tbaeder wrote: > I thin

[PATCH] D130906: [clang] format string checking for conpile-time evaluated str literal

2022-08-01 Thread YingChi Long via Phabricator via cfe-commits
inclyc updated this revision to Diff 449191. inclyc added a comment. Make if statements concise and add comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130906/new/ https://reviews.llvm.org/D130906 Files: clang/lib/Sema/SemaChecking.cpp

[PATCH] D130906: [clang] format string checking for conpile-time evaluated str literal

2022-08-01 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added inline comments. Comment at: clang/lib/Sema/SemaChecking.cpp:8507 +if (Result.Val.isLValue()) { + auto *LVE = Result.Val.getLValueBase().dyn_cast(); + if (LVE && LVE->getStmtClass() == Stmt::StringLiteralClass) { inclyc wrote: > tbaede

[PATCH] D130311: [RISCV] Enable strict FP in clang as long as Zve* or V are not enabled.

2022-08-01 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng added inline comments. Comment at: clang/lib/Basic/Targets/RISCV.cpp:286 + // StrictFP support for vectors is incomplete. + if (ISAInfo->hasExtension("zve32x")) +HasStrictFP = false; craig.topper wrote: > reames wrote: > > craig.topper wrote: > >

[PATCH] D130906: [clang] format string checking for conpile-time evaluated str literal

2022-08-01 Thread YingChi Long via Phabricator via cfe-commits
inclyc added inline comments. Comment at: clang/test/Sema/format-strings-scanf.c:236 + scanf(1 ? "%s" : "%d", i); // expected-warning{{format specifies type 'char *'}} \ + // expected-note{{format string is defined here}} scanf(0 ? "%d %d" : "%d",

[PATCH] D130906: [clang] format string checking for conpile-time evaluated str literal

2022-08-01 Thread YingChi Long via Phabricator via cfe-commits
inclyc updated this revision to Diff 449195. inclyc added a comment. rebase Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130906/new/ https://reviews.llvm.org/D130906 Files: clang/lib/Sema/SemaChecking.cpp clang/test/Sema/format-strings-scanf.

<    1   2