MaskRay added inline comments.
Comment at: clangd/FuzzyMatch.cpp:93
+ for (int I = PatN; I <= WordN; I++)
+Best = std::max(Best, Scores[PatN][I][Match].Score);
if (isAwful(Best))
sammccall wrote:
> this looks like a behavior change - why?
This is a
aaron.ballman added a comment.
In https://reviews.llvm.org/D44559#1044639, @rjmccall wrote:
> In https://reviews.llvm.org/D44559#1044186, @avt77 wrote:
>
> > >> In https://reviews.llvm.org/D44559#1040799, @rjmccall wrote:
> > >>
> > >>> I think we're correct not to warn here and that GCC/ICC
MaskRay updated this revision to Diff 139314.
MaskRay edited the summary of this revision.
MaskRay added a comment.
Update summary
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44720
Files:
clangd/FuzzyMatch.cpp
clangd/FuzzyMatch.h
Index: clangd/FuzzyMatch.h
MaskRay updated this revision to Diff 139313.
MaskRay added a comment.
Update summary
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44720
Files:
clangd/FuzzyMatch.cpp
clangd/FuzzyMatch.h
Index: clangd/FuzzyMatch.h
rjmccall added a comment.
In https://reviews.llvm.org/D44559#1044186, @avt77 wrote:
> >> In https://reviews.llvm.org/D44559#1040799, @rjmccall wrote:
> >>
> >>> I think we're correct not to warn here and that GCC/ICC are being noisy.
> >>> The existence of a temporary promotion to a wider
This revision was automatically updated to reflect the committed changes.
Closed by commit rL328114: [Fuchsia] Dont install libc++, libc++abi or
libunwind on Darwin (authored by phosek, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
Author: phosek
Date: Wed Mar 21 09:48:26 2018
New Revision: 328114
URL: http://llvm.org/viewvc/llvm-project?rev=328114=rev
Log:
[Fuchsia] Don't install libc++, libc++abi or libunwind on Darwin
The Clang driver doesn't currently know how to use the libraries
that are shipped as part of the
ilya-biryukov added inline comments.
Comment at: clangd/DraftStore.h:36
/// Replace contents of the draft for \p File with \p Contents.
- void updateDraft(PathRef File, StringRef Contents);
+ void addDraft(PathRef File, StringRef Contents);
+
simark wrote:
phosek updated this revision to Diff 139311.
https://reviews.llvm.org/D44724
Files:
clang/cmake/caches/Fuchsia-stage2.cmake
Index: clang/cmake/caches/Fuchsia-stage2.cmake
===
--- clang/cmake/caches/Fuchsia-stage2.cmake
+++
simark updated this revision to Diff 139310.
simark marked an inline comment as done.
simark added a comment.
Address review comments, except LSP version check
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44272
Files:
clangd/ClangdLSPServer.cpp
clangd/DraftStore.cpp
vsapsai added a comment.
In https://reviews.llvm.org/D44589#1044350, @aaron.ballman wrote:
> This generally looks reasonable to me, but @rsmith should weigh in before you
> commit because `MultiSourceLocation` is novel.
Thanks for the review, Aaron. I tried not to do anything stupid with
aaron.ballman added inline comments.
Comment at: clang-tidy/modernize/DeprecatedFunctionalCheck.cpp:48-54
+ } else if (const auto *const Call =
+ Result.Nodes.getNodeAs("ptr_fun_call")) {
+diag(Call->getLocStart(), Message) << "'std::ptr_fun'";
+ } else if
Author: jonastoth
Date: Wed Mar 21 08:50:15 2018
New Revision: 328108
URL: http://llvm.org/viewvc/llvm-project?rev=328108=rev
Log:
[Fix] fix type deduction on ARM and MSVC
Modified:
clang-tools-extra/trunk/clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp
Modified:
a.sidorin accepted this revision.
a.sidorin added a comment.
This revision is now accepted and ready to land.
This looks good to me. Thank you!
@xazax.hun Gabor, could you please take a look?
Repository:
rC Clang
https://reviews.llvm.org/D43967
alexfh added inline comments.
Comment at: clang-tidy/modernize/DeprecatedFunctionalCheck.cpp:48-54
+ } else if (const auto *const Call =
+ Result.Nodes.getNodeAs("ptr_fun_call")) {
+diag(Call->getLocStart(), Message) << "'std::ptr_fun'";
+ } else if (const
simark marked 34 inline comments as done.
simark added inline comments.
Comment at: clangd/DraftStore.h:36
/// Replace contents of the draft for \p File with \p Contents.
- void updateDraft(PathRef File, StringRef Contents);
+ void addDraft(PathRef File, StringRef
courbet added a comment.
Thanks for the pointer. I missed the trampoline through
GetSourceExpressionMatcher.
Repository:
rC Clang
https://reviews.llvm.org/D44729
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
>From the bot changes, it seems that -Wunknown-pragma doesn't disable this
new warning. Shouldn't it do that?
On Tue, Mar 20, 2018, 9:55 AM Hans Wennborg via cfe-commits <
cfe-commits@lists.llvm.org> wrote:
> Author: hans
> Date: Tue Mar 20 01:53:11 2018
> New Revision: 327959
>
> URL:
Author: jonastoth
Date: Wed Mar 21 08:34:15 2018
New Revision: 328107
URL: http://llvm.org/viewvc/llvm-project?rev=328107=rev
Log:
[clang-tidy] Resubmit hicpp-multiway-paths-covered without breaking test
The original check did break the green buildbot in the sanitizer build.
It took a while to
mibintc added inline comments.
Comment at: include/llvm-c/Target.h:25
-#if defined(_MSC_VER) && !defined(inline)
+#if defined(_MSC_VER) && !defined(inline) && !defined(__INTEL_COMPILER)
#define inline __inline
yvvan wrote:
> mibintc wrote:
> > I really think
JonasToth added inline comments.
Comment at: clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp:119
+ if (!SwitchHasDefault && SwitchCaseCount == 0) {
+diag(Switch->getLocStart(), "degenerated switch without labels");
+return;
aaron.ballman wrote:
>
JonasToth updated this revision to Diff 139304.
JonasToth marked 3 inline comments as done.
JonasToth added a comment.
- add fixme for degenerated switch
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D40737
Files:
clang-tidy/hicpp/CMakeLists.txt
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM!
Comment at: clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp:119
+ if (!SwitchHasDefault && SwitchCaseCount == 0) {
+diag(Switch->getLocStart(),
grokos abandoned this revision.
grokos added a comment.
@ABataev came up with a much simpler solution to the implementation of `declare
target`: https://reviews.llvm.org/rL327636
I am abandoning this obsolete revision.
Repository:
rL LLVM
https://reviews.llvm.org/D38798
grokos abandoned this revision.
grokos added a comment.
@ABataev came up with a much simpler solution to the implementation of `declare
target`: https://reviews.llvm.org/rL327636
I am abandoning this obsolete revision.
Repository:
rC Clang
https://reviews.llvm.org/D43026
djasper accepted this revision.
djasper added a comment.
Looks good.
Repository:
rC Clang
https://reviews.llvm.org/D44632
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
djasper accepted this revision.
djasper added a comment.
Looks good.
Repository:
rC Clang
https://reviews.llvm.org/D44692
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: simark
Date: Wed Mar 21 07:36:46 2018
New Revision: 328100
URL: http://llvm.org/viewvc/llvm-project?rev=328100=rev
Log:
Make positionToOffset return llvm::Expected
Summary:
To implement incremental document syncing, we want to verify that the
ranges provided by the front-end are valid.
alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.
LG modulo other reviewers' open comments.
https://reviews.llvm.org/D44231
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
On Mon, Mar 19, 2018 at 10:43 PM wrote:
> This should be fixed by r327911.
>
Thanks!
>
>
> Douglas Yung
>
>
>
> *From:* cfe-commits [mailto:cfe-commits-boun...@lists.llvm.org] *On
> Behalf Of *Galina Kistanova via cfe-commits
> *Sent:* Monday, March 19, 2018 13:13
>
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE328100: Make positionToOffset return
llvm::Expectedsize_t (authored by simark, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D44673?vs=139292=139297#toc
Repository:
rL LLVM
This revision was automatically updated to reflect the committed changes.
Closed by commit rL328101: [clang-tidy][modernize-make-unique] Checks c++14
flag before using stdā¦ (authored by alexfh, committed by ).
Herald added subscribers: llvm-commits, klimek.
Changed prior to commit:
This revision was automatically updated to reflect the committed changes.
Closed by commit rL328100: Make positionToOffset return
llvm::Expectedsize_t (authored by simark, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D44673
Files:
Author: alexfh
Date: Wed Mar 21 07:39:24 2018
New Revision: 328101
URL: http://llvm.org/viewvc/llvm-project?rev=328101=rev
Log:
[clang-tidy][modernize-make-unique] Checks c++14 flag before using
std::make_unique
Summary: For a c++11 code, the clang-tidy rule "modernize-make-unique" should
alexfh accepted this revision.
alexfh added a comment.
LG. Thanks!
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44694
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
ilya-biryukov added inline comments.
Comment at: clangd/ClangdServer.cpp:199
+return End.takeError();
+
+ return formatCode(Code, File, {tooling::Range(*Begin, *End - *Begin)});
simark wrote:
> ilya-biryukov wrote:
> > NIT: unnecessary empty line
> In
martong added inline comments.
Comment at: unittests/AST/ASTImporterTest.cpp:1169
+ MatchVerifier Verifier;
+ ASSERT_TRUE(Verifier.match(From, cxxRecordDecl(has(fieldDecl();
+ ASSERT_TRUE(Verifier.match(To, cxxRecordDecl(has(fieldDecl();
a.sidorin
martong updated this revision to Diff 139295.
martong marked 7 inline comments as done.
martong added a comment.
Add minor syntax changes and rename
Repository:
rC Clang
https://reviews.llvm.org/D43967
Files:
unittests/AST/ASTImporterTest.cpp
unittests/AST/DeclMatcher.h
Index:
JonasToth added inline comments.
Comment at: clang-tidy/hicpp/MultiwayPathsCoveredCheck.cpp:119
+ if (!SwitchHasDefault && SwitchCaseCount == 0) {
+diag(Switch->getLocStart(), "degenerated switch without labels");
+return;
aaron.ballman wrote:
> I think
JonasToth updated this revision to Diff 139293.
JonasToth marked 4 inline comments as done.
JonasToth added a comment.
- adress review comments
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D40737
Files:
clang-tidy/hicpp/CMakeLists.txt
clang-tidy/hicpp/HICPPTidyModule.cpp
simark marked 6 inline comments as done.
simark added inline comments.
Comment at: clangd/ClangdServer.cpp:199
+return End.takeError();
+
+ return formatCode(Code, File, {tooling::Range(*Begin, *End - *Begin)});
ilya-biryukov wrote:
> NIT: unnecessary empty
simark updated this revision to Diff 139292.
simark marked 3 inline comments as done.
simark added a comment.
Remove spaces, add fixmes
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44673
Files:
clangd/ClangdServer.cpp
clangd/SourceCode.cpp
clangd/SourceCode.h
hokein created this revision.
hokein added a reviewer: sammccall.
Herald added subscribers: ioeric, jkorous-apple, ilya-biryukov, klimek.
This would allow us to log the editor using custom-built clangd.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44732
Files:
Author: lukecheeseman
Date: Wed Mar 21 05:05:19 2018
New Revision: 328092
URL: http://llvm.org/viewvc/llvm-project?rev=328092=rev
Log:
clang-interpreter example cmake fix
Add in a space when appending the export to the linker options. Without
the space the export is appended onto whatever the
ilya-biryukov added inline comments.
Comment at: clangd/SourceCode.h:41
/// Turn an offset in Code into a [line, column] pair.
Position offsetToPosition(llvm::StringRef Code, size_t Offset);
We should be consistent for all functions inside this fail. They
aaron.ballman added a comment.
This generally looks reasonable to me, but @rsmith should weigh in before you
commit because `MultiSourceLocation` is novel.
https://reviews.llvm.org/D44589
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
aaron.ballman added a comment.
I think `hasSourceExpression()` already does what you're looking for.
void f() {
int i = 1.0f;
}
clang-query> match implicitCastExpr(hasSourceExpression(floatLiteral()))
Match #1:
C:\Users\aballman.GRAMMATECH\Desktop\test.c:2:11: note: "root" binds here
djasper accepted this revision.
djasper added a comment.
This revision is now accepted and ready to land.
Please generally upload diffs with the full file as context so that Phabricator
can properly expand the context where necessary.
This looks good, though.
Repository:
rC Clang
a.sidorin added a comment.
Hi Gabor! This looks much better.
Comment at: unittests/AST/ASTImporterTest.cpp:1000
+ R"(
+ template
+ struct X {};
In C++, names started with underscore are reserved for implementation so it's
undesirable to use
LukeCheeseman closed this revision.
LukeCheeseman added a comment.
closed by https://reviews.llvm.org/rC328092
Repository:
rC Clang
https://reviews.llvm.org/D44555
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
jolesiak added inline comments.
Comment at: lib/Format/Format.cpp:1450
// Keep this array sorted, since we are binary searching over it.
static constexpr llvm::StringLiteral FoundationIdentifiers[] = {
"CGFloat",
krasimir wrote:
> jolesiak
ilya-biryukov accepted this revision.
ilya-biryukov added a comment.
This revision is now accepted and ready to land.
LGTM. See the empty line NITS, though.
Comment at: clangd/ClangdServer.cpp:199
+return End.takeError();
+
+ return formatCode(Code, File,
dim accepted this revision.
dim added a comment.
This revision is now accepted and ready to land.
LGTM.
https://reviews.llvm.org/D41808
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: courbet
Date: Wed Mar 21 03:54:29 2018
New Revision: 328087
URL: http://llvm.org/viewvc/llvm-project?rev=328087=rev
Log:
[ASTMatchers] Remove extra qualifier for consistency
(LibASTMatchersReference.html)
+ Regenerate doc.
Modified:
cfe/trunk/docs/LibASTMatchersReference.html
courbet created this revision.
courbet added reviewers: aaron.ballman, alexfh.
Herald added a subscriber: klimek.
This is needed to implement more checks in https://reviews.llvm.org/D38455.
Repository:
rC Clang
https://reviews.llvm.org/D44729
Files:
docs/LibASTMatchersReference.html
Author: courbet
Date: Wed Mar 21 03:48:00 2018
New Revision: 328086
URL: http://llvm.org/viewvc/llvm-project?rev=328086=rev
Log:
[ASTMatchers] Regenerate doc.
Modified:
cfe/trunk/docs/LibASTMatchersReference.html
Modified: cfe/trunk/docs/LibASTMatchersReference.html
URL:
avt77 updated this revision to Diff 139271.
avt77 added a comment.
I removed the dependence on arch and updated the tests.
https://reviews.llvm.org/D44559
Files:
lib/Sema/SemaChecking.cpp
test/Sema/conversion.c
test/SemaCXX/conversion.cpp
Index: test/SemaCXX/conversion.cpp
courbet added inline comments.
Comment at: clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp:26
+ binaryOperator(
+ anyOf(hasOperatorName("+="), hasOperatorName("-=")),
+ hasLHS(hasType(isInteger())),
aaron.ballman wrote:
>
On Wed, Mar 21, 2018 at 5:28 AM, Petr Hosek via cfe-commits
wrote:
> Author: phosek
> Date: Tue Mar 20 19:28:22 2018
> New Revision: 328069
>
> URL: http://llvm.org/viewvc/llvm-project?rev=328069=rev
> Log:
> Revert "[lit] Adding config initialization to lit tests in
yvvan added inline comments.
Comment at: include/clang/Sema/CodeCompleteConsumer.h:565
+ /// \brief For this completion result correction is required.
+ Optional Corr = None;
+
ilya-biryukov wrote:
> Having a string replacement without an actual range to
yvvan added a comment.
In https://reviews.llvm.org/D44426#1042162, @mibintc wrote:
> I added some inline comments. You are using the Intel 18.0 compiler on
> Windows - what version of Visual Studio is in the environment?
Yes, I'm using 18.0
Comment at:
avt77 added a comment.
>> In https://reviews.llvm.org/D44559#1040799, @rjmccall wrote:
>>
>>> I think we're correct not to warn here and that GCC/ICC are being noisy.
>>> The existence of a temporary promotion to a wider type doesn't justify
>>> warning on arithmetic between two operands that
sammccall added a comment.
(Sorry if I sound gruff - I'm sure there are improvements to be had here. But
since the code is a bit dense (my fault) I have trouble inferring them from the
deltas.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D44720
sammccall added a comment.
Can you elaborate on what this patch is improving, and how?
There are some stylistic changes, and also what look like subtle logic changes,
and some rearrangement of the algorithm - to what end?
Canonical way to run all tests is `ninja check-clang-tools`, the way you
kito-cheng marked 4 inline comments as done.
kito-cheng added a comment.
Hi Alex:
Thanks for your input, check for repeated letter was missed in my last patch :)
Comment at: lib/Driver/ToolChains/Arch/RISCV.cpp:34
+
+// The canonical order specified in ISA manual.
+
kito-cheng updated this revision to Diff 139256.
kito-cheng added a comment.
Update revision according Alex's review.
Changes:
- Add testcase for uppercase of -march string.
- Add testcase for repeated letter in -march.
- Add more comment.
- Add several TODO item for diagnostic message
mcgrathr accepted this revision.
mcgrathr added a comment.
This revision is now accepted and ready to land.
Lgtm with some more comments
Repository:
rC Clang
https://reviews.llvm.org/D44724
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
101 - 167 of 167 matches
Mail list logo