[PATCH] D102779: [clang-tidy] cppcoreguidelines-explicit-constructor-and-conversion: new alias

2021-05-29 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. Is it worth using regex to ignore some operators: `*::operator bool` to ignore all bool conversions etc. Comment at: clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines-explicit-constructor-and-conversion.rst:12-14 +This check implements `C.46

[PATCH] D103245: [clang-format] Fix PointerAlignmentRight with AlignConsecutiveDeclarations

2021-05-29 Thread Gerhard Gappmeier via Phabricator via cfe-commits
gergap marked 4 inline comments as done. gergap added inline comments. Comment at: clang/lib/Format/WhitespaceManager.cpp:369 assert(Shift >= 0); +if (Shift == 0) + continue; HazardyKnusperkeks wrote: > This is unrelated, isn't it? > > If it is, I

[PATCH] D103358: [analyzer] MallocSizeof: sizeof pointer type is compatible with void*

2021-05-29 Thread Xuanda Yang via Phabricator via cfe-commits
TH3CHARLie created this revision. TH3CHARLie added a reviewer: NoQ. Herald added subscribers: manas, steakhal, ASDenysPetrov, martong, dkrupp, donat.nagy, Szelethus, mikhail.ramalho, a.sidorin, szepet, baloghadamsoftware, xazax.hun. TH3CHARLie requested review of this revision. Herald added a pro

[PATCH] D103245: [clang-format] Fix PointerAlignmentRight with AlignConsecutiveDeclarations

2021-05-29 Thread Gerhard Gappmeier via Phabricator via cfe-commits
gergap marked an inline comment as done. gergap added inline comments. Comment at: clang/unittests/Format/FormatTest.cpp:15045 + // PAS_RIGHT EXPECT_EQ("void SomeFunction(int parameter = 0) {\n" " int const i = 1;\n" gergap wrote: > HazardyKnu

[PATCH] D103245: [clang-format] Fix PointerAlignmentRight with AlignConsecutiveDeclarations

2021-05-29 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added inline comments. Comment at: clang/unittests/Format/FormatTest.cpp:14884 Alignment.AlignConsecutiveDeclarations = FormatStyle::ACS_None; + Alignment.PointerAlignment = FormatStyle::PAS_Right; verifyFormat("float const a = 5;\n" ger

[PATCH] D103245: [clang-format] Fix PointerAlignmentRight with AlignConsecutiveDeclarations

2021-05-29 Thread Gerhard Gappmeier via Phabricator via cfe-commits
gergap added inline comments. Comment at: clang/unittests/Format/FormatTest.cpp:15045 + // PAS_RIGHT EXPECT_EQ("void SomeFunction(int parameter = 0) {\n" " int const i = 1;\n" gergap wrote: > gergap wrote: > > HazardyKnusperkeks wrote: > > > I

[PATCH] D103245: [clang-format] Fix PointerAlignmentRight with AlignConsecutiveDeclarations

2021-05-29 Thread Gerhard Gappmeier via Phabricator via cfe-commits
gergap updated this revision to Diff 348625. gergap added a comment. fix review findings - fix case of comments - rename for loop variable name - use preincrement instead of postincrement Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103245/new/ h

[PATCH] D103245: [clang-format] Fix PointerAlignmentRight with AlignConsecutiveDeclarations

2021-05-29 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius accepted this revision. curdeius added a comment. This revision is now accepted and ready to land. LGTM. But please wait for @hazardyknusperkeks to land. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103245/new/ https://reviews.llvm.org/D1

[PATCH] D103319: [analyzer] Use Optional as a return type of StoreManager::castRegion

2021-05-29 Thread Denys Petrov 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 rGfae3534b3056: [analyzer] Use Optional as a return type of StoreManager::castRegion (authored by ASDenysPetrov). Repository: rG LLVM Github Monore

[clang] fae3534 - [analyzer] Use Optional as a return type of StoreManager::castRegion

2021-05-29 Thread Denys Petrov via cfe-commits
Author: Denys Petrov Date: 2021-05-29T15:16:56+03:00 New Revision: fae3534b3056bb96d26a6d1b6e7d6a2ccaf4fab1 URL: https://github.com/llvm/llvm-project/commit/fae3534b3056bb96d26a6d1b6e7d6a2ccaf4fab1 DIFF: https://github.com/llvm/llvm-project/commit/fae3534b3056bb96d26a6d1b6e7d6a2ccaf4fab1.diff

[clang] ffb48d4 - [clang-format] successive C# attributes cause line breaking issues

2021-05-29 Thread via cfe-commits
Author: mydeveloperday Date: 2021-05-29T16:43:55+01:00 New Revision: ffb48d48e45c72ed81dda4983ccb06e800cdbbd0 URL: https://github.com/llvm/llvm-project/commit/ffb48d48e45c72ed81dda4983ccb06e800cdbbd0 DIFF: https://github.com/llvm/llvm-project/commit/ffb48d48e45c72ed81dda4983ccb06e800cdbbd0.diff

[PATCH] D103307: [clang-format] successive C# attributes cause line breaking issues

2021-05-29 Thread MyDeveloperDay via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGffb48d48e45c: [clang-format] successive C# attributes cause line breaking issues (authored by MyDeveloperDay). Changed prior to commit: https://reviews.llvm.org/D103307?vs=348495&id=348634#toc Reposito

[PATCH] D103245: [clang-format] Fix PointerAlignmentRight with AlignConsecutiveDeclarations

2021-05-29 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. Please just check `continue`, I would like to make it a separate commit, because it seems unrelated to me. Otherwise this is good. Comment at: clang/lib/Format/WhitespaceManager.cpp:369 assert(Shift >= 0); +if (Shift == 0) + co

[PATCH] D103286: [clang-format] Add PPIndentWidth option

2021-05-29 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks requested changes to this revision. HazardyKnusperkeks added a comment. This revision now requires changes to proceed. Love it! But this will result in unexpected (one might say breaking) behaviour, if someone set `IndentWidth` to a different value than his base style and upda

[PATCH] D103286: [clang-format] Add PPIndentWidth option

2021-05-29 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added inline comments. Comment at: clang/include/clang/Format/Format.h:2336 + /// \endcode + unsigned PPIndentWidth; + I prefer alphabetical sorting, I know there are some entries which aren't sorted. Repository: rG LLVM Github Monorepo

[PATCH] D103319: [analyzer] Use Optional as a return type of StoreManager::castRegion

2021-05-29 Thread Denys Petrov via Phabricator via cfe-commits
ASDenysPetrov added a comment. @NoQ > I guess another option is to put `loc::MemRegionVal()` inside `castRegion()`. > This way the return type `Optional` unambigously tells > that the region is always non-null if present (protected by the assertion in > the constructor of `loc::MemRegionVal`).

[PATCH] D103358: [analyzer] MallocSizeof: sizeof pointer type is compatible with void*

2021-05-29 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. Amazing, perfect, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D103358/new/ https://reviews.llvm.org/D103358

[clang] 620cef9 - [analyzer] MallocSizeof: sizeof pointer type is compatible with void*

2021-05-29 Thread Xuanda Yang via cfe-commits
Author: Xuanda Yang Date: 2021-05-30T09:51:41+08:00 New Revision: 620cef91207bbeb570a529328976040e658a60ee URL: https://github.com/llvm/llvm-project/commit/620cef91207bbeb570a529328976040e658a60ee DIFF: https://github.com/llvm/llvm-project/commit/620cef91207bbeb570a529328976040e658a60ee.diff L

[PATCH] D103358: [analyzer] MallocSizeof: sizeof pointer type is compatible with void*

2021-05-29 Thread Xuanda Yang via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG620cef91207b: [analyzer] MallocSizeof: sizeof pointer type is compatible with void* (authored by TH3CHARLie). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D1

[PATCH] D102723: [HIP] Tighten checks in hip-include-path.hip test case

2021-05-29 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added a comment. This change is causing failures when the build is done from a working directory that has symlinks: https://lab.llvm.org/staging/#/builders/126/builds/529/steps/5/logs/FAIL__Clang__hip-include-path_hip Repository: rG LLVM Github Monorepo CHANGES SINCE L