[clang] 491984c - Document __builtin_trap and __builtin_debugtrap

2022-01-05 Thread via cfe-commits
Author: serge-sans-paille Date: 2022-01-05T03:10:17-05:00 New Revision: 491984c4e60c0f0de9dd00dc1a19e90a7b3535eb URL: https://github.com/llvm/llvm-project/commit/491984c4e60c0f0de9dd00dc1a19e90a7b3535eb DIFF:

[PATCH] D116598: Document __builtin_trap and __builtin_debugtrap

2022-01-05 Thread serge 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 rG491984c4e60c: Document __builtin_trap and __builtin_debugtrap (authored by serge-sans-paille). Herald added a project: clang. Herald added a

[PATCH] D116592: [clang-format] Missing space after cast in a macro

2022-01-05 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay updated this revision to Diff 397473. MyDeveloperDay added a comment. Fix nit and add a few more tests just to be sure CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116592/new/ https://reviews.llvm.org/D116592 Files: clang/lib/Format/TokenAnnotator.cpp

[PATCH] D116503: [clang] Add arguments for silencing unused argument warnings for some but not all arguments

2022-01-05 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo updated this revision to Diff 397476. mstorsjo added a comment. Regenerated ClangCommandLineReference.rst (with the relevant changes), removed NoXarchOption. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116503/new/

[PATCH] D116638: [clang-format] Fix ignoring JavaScriptWrapImport when ColumnWidth: 0

2022-01-05 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added inline comments. Comment at: clang/unittests/Format/FormatTestJS.cpp:1948 + Style.JavaScriptWrapImports = false; verifyFormat("import {VeryLongImportsAreAnnoying, VeryLongImportsAreAnnoying," " VeryLongImportsAreAnnoying,

[PATCH] D116314: [clang-format] Add style to separate definition blocks

2022-01-05 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added a comment. @ksyx Did you see this issue https://github.com/llvm/llvm-project/issues/52976 In its current form, this patch causes huge amounts of flux in projects that document code like (anyone using doxygen likely, + most normal people ;-) ) ... } // My function

[PATCH] D93298: [RISCV] add the part of MC layer support of Zfinx extension

2022-01-05 Thread Shao-Ce SUN via Phabricator via cfe-commits
achieveartificialintelligence updated this revision to Diff 397469. achieveartificialintelligence marked an inline comment as done. achieveartificialintelligence added a comment. Fix issue in RISCVISAInfo.cpp Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D116638: [ClangFormat] Fix ignoring JavaScriptWrapImport when ColumnWidth: 0

2022-01-05 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added a comment. Thank you for the patch, could you just handle the documentation, but otherwise pretty good Comment at: clang/docs/ClangFormatStyleOptions.rst:2820 +**JavaScriptWrapImports** (``Boolean``) :versionbadge:`clang-format 3.9` + Whether to wrap

[PATCH] D116503: [clang] Add arguments for silencing unused argument warnings for some but not all arguments

2022-01-05 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In D116503#3221083 , @MaskRay wrote: > A more searchable subject (mentioning the new option in the subject is useful > for archaeology) may be `Add > --start-no-unused-arguments/--end-no-unused-arguments to silence some unused

[PATCH] D93793: [IR] Let IRBuilder's CreateVectorSplat/CreateShuffleVector use poison as placeholder

2022-01-05 Thread Allen zhong via Phabricator via cfe-commits
Allen added a comment. I have a babyism question, why poison is preferred to the undef in the pattern ConstantVector::getSplat ? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93793/new/ https://reviews.llvm.org/D93793

[PATCH] D116638: [clang-format] Fix ignoring JavaScriptWrapImport when ColumnWidth: 0

2022-01-05 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius requested changes to this revision. curdeius added a comment. This revision now requires changes to proceed. Thanks for working on this! Apart from other reviewer's comments, it looks pretty much ok, but the tests are a bit messy IMO. I'd like to see something that tests 4 cases (false

[PATCH] D116155: [clang][AST][ASTImporter] Set record to complete during import of its members.

2022-01-05 Thread Balázs Kéri via Phabricator via cfe-commits
balazske added inline comments. Comment at: clang/lib/AST/ASTImporter.cpp:2021 + // fields imported) at that time without multiple AST import passes. + To->setCompleteDefinition(true); // Complete the definition even if error is returned. balazske wrote: >

[PATCH] D116647: [clang-format] Simplify raw string regex. NFC.

2022-01-05 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius created this revision. curdeius added reviewers: MyDeveloperDay, HazardyKnusperkeks, owenpan. curdeius requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Introduced in https://reviews.llvm.org/D115168. Repository: rG LLVM Github

[PATCH] D116643: [clangd] Don't rename on symbols from system headers.

2022-01-05 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clang-tools-extra/clangd/refactor/Rename.cpp:163 +// By default, we exclude symbols from system headers and protobuf symbols as +// rename these symbols would change system/generated files which are unlikely +// to be modified.

[PATCH] D116596: [clang][dataflow] Add transfer functions for assignment

2022-01-05 Thread Stanislav Gatev via Phabricator via cfe-commits
sgatev added inline comments. Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h:34 +/// storage locations or values. +enum class SkipPast { + /// No indirections should be skipped past. xazax.hun wrote: > I am just wondering if this

[PATCH] D115060: [clang-format][NFC] Code Tidies in UnwrappedLineFormatter

2022-01-05 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks reopened this revision. HazardyKnusperkeks added a comment. This revision is now accepted and ready to land. In D115060#3219116 , @curdeius wrote: > @HazardyKnusperkeks, it *seems* as if this commit (or one of others indicated > on

[PATCH] D115790: [Coroutines] Set presplit attribute in Clang and mlir

2022-01-05 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu added a comment. In D115790#3221307 , @MaskRay wrote: > Early heads-up: we see a failure with > `llvm/lib/Transforms/Coroutines/CoroEarly.cpp:186 in bool (anonymous > namespace)::Lowerer::lowerEarlyIntrinsics(llvm::Function &): >

[PATCH] D116599: Simplify AttrBuilder storage for target dependent attributes

2022-01-05 Thread serge via Phabricator via cfe-commits
serge-sans-paille updated this revision to Diff 397486. serge-sans-paille added a comment. Take advice into account CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116599/new/ https://reviews.llvm.org/D116599 Files: clang/lib/CodeGen/CGAtomic.cpp clang/lib/CodeGen/CGBuiltin.cpp

[PATCH] D116351: Update Bug report URL to Github Issues

2022-01-05 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu added a comment. @asl hi, do you feel good with this revision? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116351/new/ https://reviews.llvm.org/D116351 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D115790: [Coroutines] Set presplit attribute in Clang and mlir

2022-01-05 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. Early heads-up: we see a failure with `llvm/lib/Transforms/Coroutines/CoroEarly.cpp:186 in bool (anonymous namespace)::Lowerer::lowerEarlyIntrinsics(llvm::Function &): F.hasFnAttribute(CORO_PRESPLIT_ATTR) && F.getFnAttribute(CORO_PRESPLIT_ATTR).getValueAsString() ==

[PATCH] D115790: [Coroutines] Set presplit attribute in Clang and mlir

2022-01-05 Thread Chuanqi Xu 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 rGc75cedc237f9: [Coroutines] Set presplit attribute in Clang and mlir (authored by ChuanqiXu). Changed prior to commit:

[clang] ea83517 - Revert "[Clang][ScanDeps] Use the virtual path for module maps"

2022-01-05 Thread Archibald Elliott via cfe-commits
Author: Archibald Elliott Date: 2022-01-05T12:17:06Z New Revision: ea835171389aa356b865bf9cb72ca8f4f84b64fd URL: https://github.com/llvm/llvm-project/commit/ea835171389aa356b865bf9cb72ca8f4f84b64fd DIFF: https://github.com/llvm/llvm-project/commit/ea835171389aa356b865bf9cb72ca8f4f84b64fd.diff

[PATCH] D116020: [clang][#52782] Bail on incomplete parameter type in stdcall name mangling

2022-01-05 Thread Markus Böck via Phabricator via cfe-commits
zero9178 updated this revision to Diff 397524. zero9178 added a comment. Update test according to reviewers comment CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116020/new/ https://reviews.llvm.org/D116020 Files: clang/lib/AST/Mangle.cpp

[PATCH] D116527: [clang-format] Fix indentation for array variables with alignment of consecutive assignments and declarations.

2022-01-05 Thread Marek Kurdej 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 rG5109737c924d: [clang-format] Fix indentation for array variables with alignment of… (authored by curdeius). Repository: rG LLVM Github Monorepo

[clang] 5109737 - [clang-format] Fix indentation for array variables with alignment of consecutive assignments and declarations.

2022-01-05 Thread Marek Kurdej via cfe-commits
Author: Marek Kurdej Date: 2022-01-05T13:52:45+01:00 New Revision: 5109737c924d68323b1982949a3e28ef26bc289e URL: https://github.com/llvm/llvm-project/commit/5109737c924d68323b1982949a3e28ef26bc289e DIFF: https://github.com/llvm/llvm-project/commit/5109737c924d68323b1982949a3e28ef26bc289e.diff

[PATCH] D116328: [ast-matchers] Add hasSubstatement() traversal matcher for caseStmt(), defaultStmt(), labelStmt()

2022-01-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. > Previously if you wanted to match the statement associated with a case, > default, or labelled statement, you had to use hasDescendant. This isn't true. You can use `has()` to do direct substatemematching, and I'm wondering whether we need this new matcher at

[PATCH] D116559: [clang-format][NFC] Early return in TokenAnnotator::next

2022-01-05 Thread Björn Schäpers 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 rG918c977dc1c8: [clang-format][NFC] Early return in TokenAnnotator::next (authored by HazardyKnusperkeks). Repository: rG LLVM Github Monorepo

[PATCH] D116562: [clang-format][NFC] Right.Previous is Left

2022-01-05 Thread Björn Schäpers 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 rG1da96f744951: [clang-format][NFC] Right.Previous is Left (authored by HazardyKnusperkeks). Repository: rG LLVM Github Monorepo CHANGES SINCE

[PATCH] D116563: [clang-format][NFC] Put all state change into the for statement

2022-01-05 Thread Björn Schäpers 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 rG8f6af1d46889: [clang-format][NFC] Put all state change into the for statement (authored by HazardyKnusperkeks). Repository: rG LLVM Github

[PATCH] D116561: [clang-format][NFC] Use Prev instead of Current->Previous

2022-01-05 Thread Björn Schäpers 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 rG2ab5d29f556b: [clang-format][NFC] Use Prev instead of Current-Previous (authored by HazardyKnusperkeks). Repository: rG LLVM Github Monorepo

[PATCH] D116558: [clang-format][NFC] Don't pass member by argument

2022-01-05 Thread Björn Schäpers 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 rGa1db43539027: [clang-format][NFC] Dont pass member by argument (authored by HazardyKnusperkeks). Repository: rG LLVM Github Monorepo CHANGES

[PATCH] D116560: [clang-format][NFC] TokenAnnotator: Use range based for

2022-01-05 Thread Björn Schäpers 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 rG29d8535e2b86: [clang-format][NFC] TokenAnnotator: Use range based for (authored by HazardyKnusperkeks). Repository: rG LLVM Github Monorepo

[PATCH] D114206: [Clang][ScanDeps] Use the virtual path for module maps

2022-01-05 Thread Michael Spencer via Phabricator via cfe-commits
Bigcheese added a comment. In D114206#3221893 , @lenary wrote: > Update: I'm going to revert this on main. This patch was accepted > conditionally on you fixing the windows crash, which you have not done, so > this was landed without being accepted. >

[PATCH] D116643: [clangd] Don't rename on symbols from system headers.

2022-01-05 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: kbobyrev. Herald added subscribers: usaxena95, kadircet, arphaman. hokein requested review of this revision. Herald added subscribers: MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra. Fixes

[PATCH] D116155: [clang][AST][ASTImporter] Set record to complete during import of its members.

2022-01-05 Thread Balázs Kéri via Phabricator via cfe-commits
balazske added inline comments. Comment at: clang/lib/AST/ASTImporter.cpp:2021 + // fields imported) at that time without multiple AST import passes. + To->setCompleteDefinition(true); // Complete the definition even if error is returned. shafik wrote: > So

[clang] 015e08c - [clang][scandeps] Update Module Cache Path in Test

2022-01-05 Thread Archibald Elliott via cfe-commits
Author: Archibald Elliott Date: 2022-01-05T10:42:38Z New Revision: 015e08c6badad6b27404d6f94569e25c18d79049 URL: https://github.com/llvm/llvm-project/commit/015e08c6badad6b27404d6f94569e25c18d79049 DIFF: https://github.com/llvm/llvm-project/commit/015e08c6badad6b27404d6f94569e25c18d79049.diff

[PATCH] D116611: [clang][scandeps] Update Module Cache Path in Test

2022-01-05 Thread Sam Elliott 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 rG015e08c6bada: [clang][scandeps] Update Module Cache Path in Test (authored by lenary). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[clang] 35493b4 - [clang-format][NFC] Replace deque with vector

2022-01-05 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-01-05T12:31:34+01:00 New Revision: 35493b45603fc897280cfba60866075888d9a790 URL: https://github.com/llvm/llvm-project/commit/35493b45603fc897280cfba60866075888d9a790 DIFF:

[clang] c2257fe - [clang-format] Fix SeparateDefinitionBlocks docs and ...

2022-01-05 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-01-05T12:31:34+01:00 New Revision: c2257fe236726ed46f1ec3d68633f1b6663d2513 URL: https://github.com/llvm/llvm-project/commit/c2257fe236726ed46f1ec3d68633f1b6663d2513 DIFF:

[clang] a1db435 - [clang-format][NFC] Don't pass member by argument

2022-01-05 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-01-05T12:31:34+01:00 New Revision: a1db43539027898cbd200798c4549115d261ed86 URL: https://github.com/llvm/llvm-project/commit/a1db43539027898cbd200798c4549115d261ed86 DIFF:

[PATCH] D115064: [clang-format][NFC] Replace deque with vector

2022-01-05 Thread Björn Schäpers 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 rG35493b45603f: [clang-format][NFC] Replace deque with vector (authored by HazardyKnusperkeks). Repository: rG LLVM Github Monorepo CHANGES SINCE

[clang] 2ab5d29 - [clang-format][NFC] Use Prev instead of Current->Previous

2022-01-05 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-01-05T12:31:35+01:00 New Revision: 2ab5d29f556bc3b5510ae495e5bb54b8b5921d1f URL: https://github.com/llvm/llvm-project/commit/2ab5d29f556bc3b5510ae495e5bb54b8b5921d1f DIFF:

[clang] 8f6af1d - [clang-format][NFC] Put all state change into the for statement

2022-01-05 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-01-05T12:31:36+01:00 New Revision: 8f6af1d4688904fda730d0fea78d2df11252bf40 URL: https://github.com/llvm/llvm-project/commit/8f6af1d4688904fda730d0fea78d2df11252bf40 DIFF:

[clang] 1da96f7 - [clang-format][NFC] Right.Previous is Left

2022-01-05 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-01-05T12:31:36+01:00 New Revision: 1da96f744951b54f7a3f9bf799fb8e75a31d291b URL: https://github.com/llvm/llvm-project/commit/1da96f744951b54f7a3f9bf799fb8e75a31d291b DIFF:

[clang] 918c977 - [clang-format][NFC] Early return in TokenAnnotator::next

2022-01-05 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-01-05T12:31:35+01:00 New Revision: 918c977dc1c8905086443e13c172a492247d4709 URL: https://github.com/llvm/llvm-project/commit/918c977dc1c8905086443e13c172a492247d4709 DIFF:

[clang] 29d8535 - [clang-format][NFC] TokenAnnotator: Use range based for

2022-01-05 Thread Björn Schäpers via cfe-commits
Author: Björn Schäpers Date: 2022-01-05T12:31:35+01:00 New Revision: 29d8535e2b86d27a3c1363646f04ddf1835c30d2 URL: https://github.com/llvm/llvm-project/commit/29d8535e2b86d27a3c1363646f04ddf1835c30d2 DIFF:

[PATCH] D116557: [clang-format] Fix SeparateDefinitionBlocks docs and ...

2022-01-05 Thread Björn Schäpers 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 rGc2257fe23672: [clang-format] Fix SeparateDefinitionBlocks docs and ... (authored by HazardyKnusperkeks). Repository: rG LLVM Github Monorepo

[PATCH] D116596: [clang][dataflow] Add transfer functions for assignment

2022-01-05 Thread Stanislav Gatev via Phabricator via cfe-commits
sgatev updated this revision to Diff 397508. sgatev marked 3 inline comments as done. sgatev added a comment. Address reviewers' comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116596/new/ https://reviews.llvm.org/D116596 Files:

[PATCH] D115060: [clang-format][NFC] Code Tidies in UnwrappedLineFormatter

2022-01-05 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks updated this revision to Diff 397531. HazardyKnusperkeks added a comment. Option 3 CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115060/new/ https://reviews.llvm.org/D115060 Files: clang/lib/Format/UnwrappedLineFormatter.cpp Index:

[PATCH] D114206: [Clang][ScanDeps] Use the virtual path for module maps

2022-01-05 Thread Sam Elliott via Phabricator via cfe-commits
lenary added a comment. In D114206#3221950 , @Bigcheese wrote: > In D114206#3221893 , @lenary wrote: > >> Update: I'm going to revert this on main. This patch was accepted >> conditionally on you fixing the

[PATCH] D116643: [clangd] Don't rename on symbols from system headers.

2022-01-05 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added inline comments. Comment at: clang-tools-extra/clangd/unittests/RenameTests.cpp:1202 +TEST(RenameTest, NoRenameOnSymbolsFromSystemHeaders) { + // filter out references not from main file. + llvm::StringRef Test = Nit: capitalization.

[clang] 3dc1907 - [ConstantFold] Use ConstantFoldLoadFromUniformValue() in more places

2022-01-05 Thread Nikita Popov via cfe-commits
Author: Nikita Popov Date: 2022-01-05T12:47:50+01:00 New Revision: 3dc1907d063c1fb1617a0043d5fdb89104e7f7a3 URL: https://github.com/llvm/llvm-project/commit/3dc1907d063c1fb1617a0043d5fdb89104e7f7a3 DIFF: https://github.com/llvm/llvm-project/commit/3dc1907d063c1fb1617a0043d5fdb89104e7f7a3.diff

[PATCH] D116599: Simplify AttrBuilder storage for target dependent attributes

2022-01-05 Thread Nikita Popov via Phabricator via cfe-commits
nikic accepted this revision. nikic added a comment. This revision is now accepted and ready to land. LG from my side, but I'd like a second opinion for the "require LLVMContext in AttrBuilder" part of the change, as that's the main API impact. Comment at:

[PATCH] D116638: [clang-format] Fix ignoring JavaScriptWrapImport when ColumnWidth: 0

2022-01-05 Thread Martin Probst via Phabricator via cfe-commits
mprobst added inline comments. Comment at: clang/docs/ClangFormatStyleOptions.rst:2827 -**JavaScriptWrapImports** (``Boolean``) :versionbadge:`clang-format 3.9` - Whether to wrap JavaScript import/export statements. + * If ``ColumnWidth`` is 0 (no limit on the number of

[PATCH] D114206: [Clang][ScanDeps] Use the virtual path for module maps

2022-01-05 Thread Sam Elliott via Phabricator via cfe-commits
lenary reopened this revision. lenary added a comment. This revision is now accepted and ready to land. Update: I'm going to revert this on main. This patch was accepted conditionally on you fixing the windows crash, which you have not done, so this was landed without being accepted. Revert is

[PATCH] D116518: [ast-matchers] Add hasSubstatementSequence matcher

2022-01-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:5435-5442 +/// Matches two consecutive statements within a compound statement. +/// +/// Given +/// \code +/// { if (x > 0) return true; return false; } +/// \endcode +///

[clang] 46db030 - [clang-format] Simplify raw string regex. NFC.

2022-01-05 Thread Marek Kurdej via cfe-commits
Author: Marek Kurdej Date: 2022-01-05T13:39:28+01:00 New Revision: 46db030188e562c02a3ef2bb83360691bad26caf URL: https://github.com/llvm/llvm-project/commit/46db030188e562c02a3ef2bb83360691bad26caf DIFF: https://github.com/llvm/llvm-project/commit/46db030188e562c02a3ef2bb83360691bad26caf.diff

[PATCH] D116647: [clang-format] Simplify raw string regex. NFC.

2022-01-05 Thread Marek Kurdej 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 rG46db030188e5: [clang-format] Simplify raw string regex. NFC. (authored by curdeius). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D116583: Change the default optimisation level of PTXAS from -O0 to -O3. This makes the optimisation levels of PTXAS and the ptxjitcompiler equal (ptxjitcompiler defaults to -O3).

2022-01-05 Thread Hugh Delaney via Phabricator via cfe-commits
hdelan added inline comments. Comment at: clang/lib/Driver/ToolChains/Cuda.cpp:433 } else { -// If no -O was passed, pass -O0 to ptxas -- no opt flag should correspond -// to no optimizations, but ptxas's default is -O3. -CmdArgs.push_back("-O0"); +// If no -O

[PATCH] D114206: [Clang][ScanDeps] Use the virtual path for module maps

2022-01-05 Thread Sam Elliott via Phabricator via cfe-commits
lenary added a comment. @Bigcheese have you got a fix for the vfs issue with `.` and `..`? Looking closely at your comment, I'm surprised you landed this without an llvm-lit xfail for windows, given your comment above. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D116638: [clang-format] Fix ignoring JavaScriptWrapImport when ColumnWidth: 0

2022-01-05 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added inline comments. Comment at: clang/docs/ClangFormatStyleOptions.rst:2827 -**JavaScriptWrapImports** (``Boolean``) :versionbadge:`clang-format 3.9` - Whether to wrap JavaScript import/export statements. + * If ``ColumnWidth`` is 0 (no limit on the

[PATCH] D116630: [clangd] Handle declarators more consistently in Selection.

2022-01-05 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Thanks, this looks better! Comment at: clang-tools-extra/clangd/Selection.cpp:756 +claimRange( +SourceRange(FTL.getParensRange().getBegin(),

[clang-tools-extra] ed8ff29 - [clang-tidy] Fix false positive in modernize-pass-by-value

2022-01-05 Thread Clement Courbet via cfe-commits
Author: Clement Courbet Date: 2022-01-05T14:33:40+01:00 New Revision: ed8ff29aa6835187f3d5e7b64de022fe6b33a131 URL: https://github.com/llvm/llvm-project/commit/ed8ff29aa6835187f3d5e7b64de022fe6b33a131 DIFF:

[PATCH] D116535: [clang-tidy] Fix false positive in modernize-pass-by-value

2022-01-05 Thread Clement Courbet 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 rGed8ff29aa683: [clang-tidy] Fix false positive in modernize-pass-by-value (authored by courbet). Repository: rG LLVM Github Monorepo CHANGES

[PATCH] D116596: [clang][dataflow] Add transfer functions for assignment

2022-01-05 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel added inline comments. Comment at: clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h:36 +/// FIXME: Consider replacing this with a model that is more aligned with C++ +/// value categories. +enum class SkipPast { I'm not sure that value

[PATCH] D116630: [clangd] Handle declarators more consistently in Selection.

2022-01-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked 3 inline comments as done. sammccall added inline comments. Comment at: clang-tools-extra/clangd/Selection.cpp:757 if (const auto *TL = N.get()) { - // e.g. EltType Foo[OuterSize][InnerSize]; - // ~

[PATCH] D116512: [clang-tidy] Limit non-Strict mode to public functions

2022-01-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman requested changes to this revision. aaron.ballman added inline comments. This revision now requires changes to proceed. Comment at: clang-tools-extra/clang-tidy/misc/UnusedParametersCheck.cpp:188 // (constructor initializer counts for non-empty body). -if

[clang-tools-extra] 7632d19 - [clangd] Fix typos in the SelectionTree comment.

2022-01-05 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2022-01-05T15:50:07+01:00 New Revision: 7632d19ada4a1feebc4a06067490ee1c77cd4dc1 URL: https://github.com/llvm/llvm-project/commit/7632d19ada4a1feebc4a06067490ee1c77cd4dc1 DIFF: https://github.com/llvm/llvm-project/commit/7632d19ada4a1feebc4a06067490ee1c77cd4dc1.diff

[PATCH] D116513: [clang-tidy] Fix bugs in misc-unused-parameters for Constructors calls site

2022-01-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tools-extra/test/clang-tidy/checkers/misc-unused-parameters.cpp:157-159 // CHECK-FIXES: C() {} C(int i) {} // CHECK-MESSAGES: :[[@LINE-1]]:9: warning I think this fix is incorrect and should not be

[PATCH] D116351: Update Bug report URL to Github Issues

2022-01-05 Thread James Henderson via Phabricator via cfe-commits
jhenderson added inline comments. Comment at: llvm/docs/CommandGuide/llvm-install-name-tool.rst:79 -To report bugs, please visit . +To report bugs, please visit . I believe

[PATCH] D116478: [clang-tidy] A comma-separated list of the names of functions or methods to be considered as not having side-effects

2022-01-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tools-extra/clang-tidy/bugprone/AssertSideEffectCheck.h:37-48 + using FunctionExceptionType = llvm::SmallSet; AssertSideEffectCheck(StringRef Name, ClangTidyContext *Context); void

[PATCH] D113676: WIP: [clang][lex] Fix search path usage remark with modules

2022-01-05 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added a comment. In D113676#3168219 , @Bigcheese wrote: > Can we not consider a modulemap used when we load an AST that depends on that > modulemap? It's possible this breaks if the module only includes textual > headers though. I don't

[clang-tools-extra] bb10e03 - [clangd] Refine comment on declarator ranges

2022-01-05 Thread via cfe-commits
Author: Sam McCall Date: 2022-01-05T16:00:13+01:00 New Revision: bb10e03fba7106e51d2e64269d10c3ba95055b26 URL: https://github.com/llvm/llvm-project/commit/bb10e03fba7106e51d2e64269d10c3ba95055b26 DIFF: https://github.com/llvm/llvm-project/commit/bb10e03fba7106e51d2e64269d10c3ba95055b26.diff

[PATCH] D116314: [clang-format] Add style to separate definition blocks

2022-01-05 Thread ksyx via Phabricator via cfe-commits
ksyx added a comment. In D116314#3221488 , @MyDeveloperDay wrote: > @ksyx > > Did you see this issue https://github.com/llvm/llvm-project/issues/52976 > > In its current form, this patch causes huge amounts of flux in projects > that document code like

[clang] afc14a0 - Retire llvm::make_reverse_iterator in favor of std::make_reverse_iterator

2022-01-05 Thread Benjamin Kramer via cfe-commits
Author: Benjamin Kramer Date: 2022-01-05T14:07:08+01:00 New Revision: afc14a0d1767d9f9dc1b9d81a2f76916ba2bab61 URL: https://github.com/llvm/llvm-project/commit/afc14a0d1767d9f9dc1b9d81a2f76916ba2bab61 DIFF:

[PATCH] D116615: [Clang] Extract availability mapping from VersionMap for watchOS/tvOS

2022-01-05 Thread Egor Zhdan via Phabricator via cfe-commits
egorzhdan updated this revision to Diff 397541. egorzhdan added a comment. Add a test to verify that `iOS_tvOS` mapping is parsed correctly. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116615/new/ https://reviews.llvm.org/D116615 Files:

[PATCH] D115429: [Clang] Implement the rest of __builtin_elementwise_* functions.

2022-01-05 Thread Jun Zhang via Phabricator via cfe-commits
junaire added a comment. In D115429#3219563 , @fhahn wrote: > LGTM, thanks! May I ask you to help me to land this patch? I plan to request commit access after this one. Thanks a lot! ;D Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D115060: [clang-format][NFC] Code Tidies in UnwrappedLineFormatter

2022-01-05 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius accepted this revision. curdeius added a comment. That's look good. And it's a nice clean up with all those repeated checks removed. Don't forget to reformat before landing. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D115060/new/ https://reviews.llvm.org/D115060

[clang] 32c2ea5 - [clang][lex] NFC: Simplify loop

2022-01-05 Thread Jan Svoboda via cfe-commits
Author: Jan Svoboda Date: 2022-01-05T14:40:47+01:00 New Revision: 32c2ea5c33a710cb1497bbd903039d8a9641e98a URL: https://github.com/llvm/llvm-project/commit/32c2ea5c33a710cb1497bbd903039d8a9641e98a DIFF: https://github.com/llvm/llvm-project/commit/32c2ea5c33a710cb1497bbd903039d8a9641e98a.diff

[PATCH] D93793: [IR] Let IRBuilder's CreateVectorSplat/CreateShuffleVector use poison as placeholder

2022-01-05 Thread Juneyoung Lee via Phabricator via cfe-commits
aqjune added a comment. In D93793#3221414 , @Allen wrote: > I have a babyism question, why poison is preferred to the undef in the > pattern ConstantVector::getSplat ? Hi Allen, It is because folding poison is easier than folding undef. :) For example,

[clang-tools-extra] 96f5cc1 - [clangd] Handle declarators more consistently in Selection.

2022-01-05 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-01-05T15:40:47+01:00 New Revision: 96f5cc1ee417f863f85756d1e56b1bed1bd76a7e URL: https://github.com/llvm/llvm-project/commit/96f5cc1ee417f863f85756d1e56b1bed1bd76a7e DIFF: https://github.com/llvm/llvm-project/commit/96f5cc1ee417f863f85756d1e56b1bed1bd76a7e.diff

[PATCH] D116630: [clangd] Handle declarators more consistently in Selection.

2022-01-05 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. sammccall marked 2 inline comments as done. Closed by commit rG96f5cc1ee417: [clangd] Handle declarators more consistently in Selection. (authored by sammccall). Changed prior to commit:

[PATCH] D116615: [Clang] Extract availability mapping from VersionMap for watchOS/tvOS

2022-01-05 Thread Egor Zhdan via Phabricator via cfe-commits
egorzhdan updated this revision to Diff 397565. egorzhdan added a comment. Fix lint warning Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116615/new/ https://reviews.llvm.org/D116615 Files: clang/lib/Basic/DarwinSDKInfo.cpp

[clang-tools-extra] 055d809 - [clangd] Don't index __reserved_names in headers.

2022-01-05 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-01-05T16:34:04+01:00 New Revision: 055d8090d1d5137dab88533995e0c5d9b5390c28 URL: https://github.com/llvm/llvm-project/commit/055d8090d1d5137dab88533995e0c5d9b5390c28 DIFF: https://github.com/llvm/llvm-project/commit/055d8090d1d5137dab88533995e0c5d9b5390c28.diff

[PATCH] D115301: [clangd] Don't index __reserved_names in headers.

2022-01-05 Thread Sam McCall via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. sammccall marked an inline comment as done. Closed by commit rG055d8090d1d5: [clangd] Dont index __reserved_names in headers. (authored by sammccall). Changed prior to commit:

[PATCH] D116535: [clang-tidy] Fix false positive in modernize-pass-by-value

2022-01-05 Thread Clement Courbet via Phabricator via cfe-commits
courbet marked 2 inline comments as done. courbet added a comment. Thanks. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116535/new/ https://reviews.llvm.org/D116535 ___ cfe-commits mailing list

[PATCH] D116535: [clang-tidy] Fix false positive in modernize-pass-by-value

2022-01-05 Thread Clement Courbet via Phabricator via cfe-commits
courbet updated this revision to Diff 397543. courbet added a comment. Address review comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116535/new/ https://reviews.llvm.org/D116535 Files:

[PATCH] D116659: [llvm][clang][vfs] NFC: Extract directory iteration boilerplate into macro

2022-01-05 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 created this revision. jansvoboda11 added reviewers: Bigcheese, dexonsmith, arphaman. Herald added subscribers: kerbowa, nhaehnle, jvesely. jansvoboda11 requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. The

[PATCH] D116550: [clang-tidy] Recognize transformer checks as providing fixits

2022-01-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM, thank you! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116550/new/ https://reviews.llvm.org/D116550

[PATCH] D114787: [clang][PR51931] Enable `-Wdeclaration-after-statement` for all C versions

2022-01-05 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D114787#3218382 , @zero9178 wrote: > In D114787#3188735 , @aaron.ballman > wrote: > >> https://reviews.llvm.org/D115094 is a review for doing effectively the same >> fix. Can

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

2022-01-05 Thread Elvis Stansvik via Phabricator via cfe-commits
estan added a comment. @lebedev.ri @aaron.ballman I think the opt-in sounds good too. Are we waiting for @fiesh to implement this, or is the patch abandoned? Would be sad if it was stranded the way https://reviews.llvm.org/D31130 was, since I think many people are skipping this check due to

[PATCH] D115301: [clangd] Don't index __reserved_names in headers.

2022-01-05 Thread Sam McCall via Phabricator via cfe-commits
sammccall marked an inline comment as done. sammccall added inline comments. Comment at: clang-tools-extra/clangd/SourceCode.h:334 +/// Returns true if Name is reserved, like _Foo or __Vector_base. +inline bool isReservedName(llvm::StringRef Name) { + // This doesn't catch all

[PATCH] D116020: [clang][#52782] Bail on incomplete parameter type in stdcall name mangling

2022-01-05 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. lgtm Comment at: clang/test/CodeGen/pr52782-stdcall-func-decl.cpp:10 +class nsICanvasRenderingContextInternal { + NS_IMETHOD_(nsresult) InitializeWithDrawTarget(NotNull); +} nsTBaseHashSet; rnk wrote: > Please

[PATCH] D116658: [clang-format][NFC] Fix typo in comment

2022-01-05 Thread Marek Kurdej 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 rG319971ca958a: [clang-format][NFC] Fix typo in comment (authored by pjessesco, committed by curdeius). Repository: rG LLVM Github Monorepo

[clang] 319971c - [clang-format][NFC] Fix typo in comment

2022-01-05 Thread Marek Kurdej via cfe-commits
Author: Jino Park Date: 2022-01-05T17:33:16+01:00 New Revision: 319971ca958adce9b3f0274a25ba7f3402b49376 URL: https://github.com/llvm/llvm-project/commit/319971ca958adce9b3f0274a25ba7f3402b49376 DIFF: https://github.com/llvm/llvm-project/commit/319971ca958adce9b3f0274a25ba7f3402b49376.diff

[PATCH] D116313: [MSVC] Silence -Wnon-virtual-dtor on DIA APIs

2022-01-05 Thread Hans Wennborg via Phabricator via cfe-commits
hans added a comment. In D116313#3218224 , @aganea wrote: > I was wondering, can we mandate `LLVM_ENABLE_WERROR=ON` for all bots at > least? (or maybe enable it through cmake, if ever there's a setting to detect > we're running as a bot) > Or just

[PATCH] D112913: Misleading bidirectional detection

2022-01-05 Thread serge via Phabricator via cfe-commits
serge-sans-paille added a comment. @upsuper I've not added extra test cases yet, but does it looks it's heading in the right direction? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D112913/new/ https://reviews.llvm.org/D112913 ___

[PATCH] D116670: [ASan] Driver changes to always link-in asan_static library.

2022-01-05 Thread Kirill Stoimenov via Phabricator via cfe-commits
kstoimenov created this revision. kstoimenov requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This enables the changes from D116182 . Repository: rG LLVM Github Monorepo

[PATCH] D116638: [clang-format] Fix ignoring JavaScriptWrapImport when ColumnWidth: 0

2022-01-05 Thread Andrey Mishchenko via Phabricator via cfe-commits
andmis added a comment. Thanks all for the reviews. I've updated the patch and added responses to your comments. Comment at: clang/docs/ClangFormatStyleOptions.rst:2820 +**JavaScriptWrapImports** (``Boolean``) :versionbadge:`clang-format 3.9` + Whether to wrap JavaScript

[PATCH] D116638: [clang-format] Fix ignoring JavaScriptWrapImport when ColumnWidth: 0

2022-01-05 Thread Andrey Mishchenko via Phabricator via cfe-commits
andmis updated this revision to Diff 397579. andmis added a comment. - Move source code for option documentation to `Format.h`, from which the RST is autogenerated. - Clean up tests in response to review feedback. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116638/new/

  1   2   3   >