lebedev.ri added a comment.
Also, please upload the correct patch, from the root of the repo, not from the
directory of the file.
Repository:
rC Clang
https://reviews.llvm.org/D46403
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http:/
NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.
Thanks!
Just curious - did these flags bother you? Cause we never really care about
cleaning up run lines after flipping the flag, so we have a lot of such stale
flags in our tests. We could start
thakis added inline comments.
Comment at: test/Frontend/plugins.c:7
+
+// RUN: c-index-test -code-completion-at=%s:6:1 -load
%llvmshlibdir/PrintFunctionNames%pluginext -add-plugin print-fns %s | FileCheck
-check-prefix=CHECK-COMPLETION-WITHOUT-PLUGINS %s
+// REQUIRES: plugins,
lebedev.ri added a comment.
Test?
Repository:
rC Clang
https://reviews.llvm.org/D46403
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
pfultz2 added inline comments.
Comment at: clang-tidy/ClangTidyOptions.h:80-82
+ /// \brief Turns on experimental alpha checkers from the static analyzer.
+ llvm::Optional AllowEnablingAlphaChecks;
+
alexfh wrote:
> Since this will only be configurable via a fl
pfultz2 updated this revision to Diff 145072.
pfultz2 added a comment.
Rename flag to `AllowEnablingAnalyzerAlphaCheckers`.
https://reviews.llvm.org/D46159
Files:
clang-tidy/ClangTidy.cpp
clang-tidy/ClangTidyOptions.cpp
clang-tidy/ClangTidyOptions.h
clang-tidy/tool/ClangTidyMain.cpp
t
vsk requested changes to this revision.
vsk added a comment.
This revision now requires changes to proceed.
Toolchain vendors aren't currently required to provide default blacklists for
every sanitizer clang supports. We don't ship a default ubsan blacklist on
macOS, so this patch would break ub
yaxunl accepted this revision.
yaxunl added a comment.
LGTM. Thanks!
https://reviews.llvm.org/D46049
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
cmtice updated this revision to Diff 145073.
cmtice added a comment.
Tried to upload the diff from the correct location.
https://reviews.llvm.org/D46403
Files:
lib/Driver/SanitizerArgs.cpp
Index: lib/Driver/SanitizerArgs.cpp
==
delena added inline comments.
Comment at: lib/Sema/SemaChecking.cpp:3098
+ case AtomicExpr::AO__atomic_fetch_umax:
+IsMinMax = true;
+Form = Arithmetic;
jfb wrote:
> Should `__sync_fetch_and_min` and others also set `IsMinMax`?
__sync_fetch_and_min is no
cmtice added a comment.
Ok, I'll work on making this CFI-specific and adding a test case.
https://reviews.llvm.org/D46403
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vsk added a comment.
In https://reviews.llvm.org/D46403#1086923, @cmtice wrote:
> Ok, I'll work on making this CFI-specific and adding a test case.
Sounds good, thanks! I'd suggest modifying test/Driver/fsanitize-blacklist.c
for your purposes. It should be possible to pair an empty resource di
jdenny updated this revision to Diff 145078.
jdenny edited the summary of this revision.
jdenny added a comment.
Rebased. Added example to summary. Ping.
https://reviews.llvm.org/D45093
Files:
include/clang/AST/ASTContext.h
include/clang/Sema/Sema.h
lib/Parse/ParseDecl.cpp
lib/Sema/Se
aaron.ballman updated this revision to Diff 145077.
aaron.ballman added a comment.
Updated to remove the contentious parts, though I still hope to add those back
in.
https://reviews.llvm.org/D45835
Files:
include/clang/Basic/Features.def
include/clang/Driver/CC1Options.td
include/clang/F
jgalenson created this revision.
jgalenson added reviewers: hans, sylvestre.ledru.
Repository:
rC Clang
https://reviews.llvm.org/D46406
Files:
docs/UsersManual.rst
Index: docs/UsersManual.rst
===
--- docs/UsersManual.rst
+++ d
Wizard added inline comments.
Comment at: clang-tidy/objc/PropertyDeclarationCheck.cpp:222
+ [MatchedDecl](std::string const &s) {
+return s == MatchedDecl->getName();
+ })) {
benhamilton wrote:
> `s` is a reg
lebedev.ri added a comment.
In https://reviews.llvm.org/D45931#1086665, @alexfh wrote:
> In https://reviews.llvm.org/D45931#1084503, @lebedev.ri wrote:
>
> > In https://reviews.llvm.org/D45931#1083192, @lebedev.ri wrote:
> >
> > > Thank you for looking at this.
> > >
> > > In https://reviews.llvm
EricWF added inline comments.
Comment at: lib/CodeGen/CGExprAgg.cpp:1002
+ return EmitFinalDestCopy(
+ E->getType(), CGF.MakeNaturalAlignAddrLValue(Select, E->getType()));
+}
rjmccall wrote:
> Is there something in Sema actually validating that the comparis
Author: ctopper
Date: Thu May 3 14:01:33 2018
New Revision: 331482
URL: http://llvm.org/viewvc/llvm-project?rev=331482&view=rev
Log:
[CodeGenFunction] Use the StringRef::split function that takes a char separator
instead of StringRef separator. NFC
The char separator version should be a little
Author: ctopper
Date: Thu May 3 14:01:35 2018
New Revision: 331483
URL: http://llvm.org/viewvc/llvm-project?rev=331483&view=rev
Log:
[X86] Make __builtin_ia32_directstore_u32 and __builtin_ia32_movdir64b 'nothrow'
These builtins snuck in while I was in the middle of adding nothrow to the
other
jdenny updated this revision to Diff 145092.
jdenny removed a reviewer: jbcoe.
jdenny added a comment.
Rebased. Ping.
https://reviews.llvm.org/D45463
Files:
include/clang-c/Index.h
include/clang/AST/PrettyPrinter.h
lib/AST/DeclPrinter.cpp
lib/AST/TypePrinter.cpp
test/Misc/ast-print-e
EricWF marked 12 inline comments as done.
EricWF added a comment.
Ping.
https://reviews.llvm.org/D45131
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
jfb added a comment.
This isn't bad, so I'd go with it, but separately I imagine that we could
implement the suggestion in http://wg21.link/p0943 and expose it even before
C++20? Not sure we do this much, but I'd argue that before that fix stdatomic.h
is just useless anyways, so it's a fine bre
EricWF added inline comments.
Comment at: lib/CodeGen/CGExprAgg.cpp:1002
+ return EmitFinalDestCopy(
+ E->getType(), CGF.MakeNaturalAlignAddrLValue(Select, E->getType()));
+}
EricWF wrote:
> rjmccall wrote:
> > Is there something in Sema actually validating
mstorsjo added a comment.
@sepavloff - does the additional change to this one also look fine to you?
https://reviews.llvm.org/D46286
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
This revision was automatically updated to reflect the committed changes.
Closed by commit rL331484: Follow-up to r331378. Update tests to allow to use C
atomics in C++. (authored by vsapsai, committed by ).
Herald added subscribers: llvm-commits, delcypher.
Changed prior to commit:
https://rev
vsapsai added a comment.
Thanks for the quick review.
Repository:
rL LLVM
https://reviews.llvm.org/D46363
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vsapsai added a comment.
In https://reviews.llvm.org/D45470#1087026, @jfb wrote:
> This isn't bad, so I'd go with it, but separately I imagine that we could
> implement the suggestion in http://wg21.link/p0943 and expose it even before
> C++20? Not sure we do this much, but I'd argue that befor
craig.topper created this revision.
craig.topper added reviewers: echristo, erichkeane.
If an always inline function requests a different CPU than its caller we should
probably error.
If the callee CPU has features that the caller CPU doesn't we would already
error for the feature mismatch, but
rsmith added inline comments.
Comment at: include/clang/AST/TypeLoc.h:1992-1993
+ unsigned getExtraLocalDataAlignment() const {
+static_assert(alignof(TransformTraitTypeLoc) >= alignof(TypeSourceInfo *),
+ "not enough alignment for tail-allocated data");
+
rjmccall added a comment.
Given that these are overloaded builtins, why are there separate builtins for
`min` and `umin`?
If this is a Clang extension, it needs to be documented in our extensions
documentation.
The documentation should describe the exact ordering semantics, to the extent
we w
rsmith added a comment.
> TagSpecifierAs expands sizeof(PrintingPolicy) from 8 to 16 bytes. My concern
> is the comments on PrintingPolicy about how PrintingPolicy is intended to be
> small. My guess it that 16 bytes is still small enough, but perhaps Richard
> Smith, who wrote that comment, kn
GorNishanov accepted this revision.
GorNishanov added a comment.
This revision is now accepted and ready to land.
LGTM
Repository:
rC Clang
https://reviews.llvm.org/D45860
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.
rsmith added inline comments.
Comment at: lib/CodeGen/CGExprConstant.cpp:1413
+ } else if (!Init->isEvaluatable(CE.CGM.getContext())) {
+return false;
+ } else if (InitTy->hasPointerRepresentation()) {
sepavloff wrote:
> rjmccall wrote:
> > Aren't the null-
shuaiwang updated this revision to Diff 145121.
shuaiwang marked 4 inline comments as done.
shuaiwang added a comment.
Addressed review comments, notably added check for DeclRefExpr to volatile
variables.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
Files:
clang-tidy
shuaiwang added inline comments.
Comment at: clang-tidy/utils/ExprMutationAnalyzer.cpp:82-83
+const auto *E = RefNodes.getNodeAs("expr");
+if (findMutation(E))
+ return E;
+ }
aaron.ballman wrote:
> Why does this not return the result of `findMutati
echristo added a comment.
I like the idea of a front end warning, but had believed that a subset of cpu
features should be allowed to be inlined into something that's a superset and
it sounds like you don't agree? Your thoughts here?
-eric
https://reviews.llvm.org/D46410
__
Author: dergachev
Date: Thu May 3 17:53:41 2018
New Revision: 331496
URL: http://llvm.org/viewvc/llvm-project?rev=331496&view=rev
Log:
[analyzer] NFC: Remove unused parameteer of StoreManager::CastRetrievedVal().
Modified:
cfe/trunk/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h
craig.topper added a comment.
From the backend codegen perspective it would be fine if the callees
instruction features were a subset. So it really depends on why the user wrote
the different arch on the callee in the first place. If they did it because of
one of the various tuning flags in the
NoQ created this revision.
NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet,
rnkovacs.
Herald added subscribers: cfe-commits, baloghadamsoftware.
Through C cast magic it's possible to put a raw void pointer into a variable of
non-void pointer type. It is fine - gene
Yes, it did. Thanks!
--
Maxim Kuvyrkov
www.linaro.org
> On May 3, 2018, at 3:48 PM, Nico Weber wrote:
>
> r331450 should hopefully fix this.
>
> On Tue, May 1, 2018 at 8:55 AM, Nico Weber wrote:
> tzik, can you take a look what's up on those bots?
>
> On Tue, May 1, 2018, 5:48 AM Maxim Ku
NoQ added inline comments.
Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:258-260
+Report->addNote(NoteBuf,
+PathDiagnosticLocation::create(FieldChain.getEndOfChain(),
+
Context.get
jdenny added a comment.
In https://reviews.llvm.org/D45463#1087174, @rsmith wrote:
> > TagSpecifierAs expands sizeof(PrintingPolicy) from 8 to 16 bytes. My
> > concern is the comments on PrintingPolicy about how PrintingPolicy is
> > intended to be small. My guess it that 16 bytes is still smal
aaron.ballman added inline comments.
Comment at: lib/AST/DeclPrinter.cpp:180-181
if (isFirst) {
- if(TD)
-SubPolicy.IncludeTagDefinition = true;
+ if (TD)
+SubPolicy.TagSpecifierAs = TD;
SubPolicy.SuppressSpecifiers = false;
rsmith added inline comments.
Comment at: lib/AST/DeclPrinter.cpp:180-181
if (isFirst) {
- if(TD)
-SubPolicy.IncludeTagDefinition = true;
+ if (TD)
+SubPolicy.TagSpecifierAs = TD;
SubPolicy.SuppressSpecifiers = false;
aaron.b
rsmith added inline comments.
Comment at: lib/AST/DeclPrinter.cpp:180-181
if (isFirst) {
- if(TD)
-SubPolicy.IncludeTagDefinition = true;
+ if (TD)
+SubPolicy.TagSpecifierAs = TD;
SubPolicy.SuppressSpecifiers = false;
rsmith
Wizard marked 3 inline comments as done.
Wizard added inline comments.
Comment at: test/clang-tidy/objc-property-declaration.m:24
@property(assign, nonatomic) int enableGLAcceleration;
+@property(assign, nonatomic) int ID;
@end
benhamilton wrote:
> Please add a
Wizard updated this revision to Diff 145145.
Wizard added a comment.
resolve comments
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D46374
Files:
clang-tidy/objc/PropertyDeclarationCheck.cpp
test/clang-tidy/objc-property-declaration-custom.m
test/clang-tidy/objc-property-
jdenny added inline comments.
Comment at: lib/AST/DeclPrinter.cpp:180-181
if (isFirst) {
- if(TD)
-SubPolicy.IncludeTagDefinition = true;
+ if (TD)
+SubPolicy.TagSpecifierAs = TD;
SubPolicy.SuppressSpecifiers = false;
rsmith
sepavloff accepted this revision.
sepavloff added a comment.
With additional changes the fix is OK.
LGTM.
https://reviews.llvm.org/D46286
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com
EricWF planned changes to this revision.
EricWF marked 7 inline comments as done.
EricWF added inline comments.
Comment at: include/clang/ASTMatchers/ASTMatchers.h:5262-5266
+AST_MATCHER(Type, unaryTransformType) {
+ if (const auto *T = Node.getAs())
+return T->getNumArgs()
rjmccall added inline comments.
Comment at: lib/Sema/SemaDeclCXX.cpp:8931
+ /*ConstArg*/ true, false, false, false, false);
+ auto *CopyCtor = cast_or_null(SMI.getMethod());
+
Sorry, I didn't realize you'd go off and write this code manu
Author: mstorsjo
Date: Thu May 3 23:05:58 2018
New Revision: 331504
URL: http://llvm.org/viewvc/llvm-project?rev=331504&view=rev
Log:
[Driver] Don't warn about unused inputs in config files
This avoids warnings about unused linker parameters, just like
other flags are ignored if they're from con
This revision was automatically updated to reflect the committed changes.
Closed by commit rC331504: [Driver] Don't warn about unused inputs in
config files (authored by mstorsjo, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D46286
Files:
lib/Driver/Driver.cpp
test/Driver
EricWF added inline comments.
Comment at: lib/Sema/SemaDeclCXX.cpp:8931
+ /*ConstArg*/ true, false, false, false, false);
+ auto *CopyCtor = cast_or_null(SMI.getMethod());
+
rjmccall wrote:
> Sorry, I didn't realize you'd go off and writ
ioeric added a comment.
Friendly ping.
Repository:
rC Clang
https://reviews.llvm.org/D46180
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yvvan added a comment.
Ping
https://reviews.llvm.org/D41537
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
nik added a comment.
Do I miss something? I've uploaded a new diff/version and state is still "(X)
Requested Changes to Prior Diff".
Waiting for review.
Repository:
rC Clang
https://reviews.llvm.org/D45815
___
cfe-commits mailing list
cfe-commi
101 - 158 of 158 matches
Mail list logo