shuaiwang added a comment.
> - there seems to be a false positive with array-to-pointer decay.
> ExprMutAnalyzer does think of it, but maybe there is a bug in it.
Could you give a concrete example of this?
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45444
_
shuaiwang added a comment.
In https://reviews.llvm.org/D50447#1192393, @JonasToth wrote:
> ... just check if the variable is dereferenced in the scope of the loop (any
> declRefExpr exists).
+1
And I would imagine it's very rare (as in categories not raw number of
occurrences) for a loop vari
shuaiwang added a comment.
In https://reviews.llvm.org/D45444#1191874, @JonasToth wrote:
> > Could you give a concrete example of this?
>
> vi llvm/lib/Demangle/ItaniumDemangle.cpp +1762
>
> /home/jonas/opt/llvm/lib/Demangle/ItaniumDemangle.cpp:1762:7: warning:
> variable 'num' of type 'char [Fl
shuaiwang added a comment.
In https://reviews.llvm.org/D50447#1194967, @JonasToth wrote:
> Do you think it is a bad idea? If the variable is not used it is ok to
> ignore it in this particular circumstance. Other warnings/check should
> deal with such a situation IMHO.
>
> Am 10.08.2018 um 10:2
shuaiwang added a comment.
In https://reviews.llvm.org/D45444#1196271, @JonasToth wrote:
> Always the same with the templates ;) So uninstantiated templates should
> just be ignored.
>
> I think it would be better to have it in the ExprMutAnalyzer, because
> that part can not decide on const-ne
shuaiwang created this revision.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D50605
Files:
include/clang/AST/ExprCXX.h
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
Index: unittests/ASTMatchers/ASTMa
shuaiwang created this revision.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D50606
Files:
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
lib/ASTMatchers/ASTMatchersInternal.cpp
lib/ASTMatchers/Dynamic/Registry.cpp
shuaiwang updated this revision to Diff 160263.
shuaiwang marked 2 inline comments as done.
shuaiwang added a comment.
undo unrelated changes in doc
Repository:
rC Clang
https://reviews.llvm.org/D50606
Files:
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
lib
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339522: [ASTMatchers] Add matchers unresolvedMemberExpr,
cxxDependentScopeMemberExpr (authored by shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews
shuaiwang updated this revision to Diff 160265.
shuaiwang added a comment.
update ast matchers doc
Repository:
rC Clang
https://reviews.llvm.org/D50605
Files:
docs/LibASTMatchersReference.html
include/clang/AST/ExprCXX.h
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/A
shuaiwang marked an inline comment as done.
shuaiwang added inline comments.
Comment at: include/clang/AST/ExprCXX.h:3436
using const_arg_iterator = const Expr* const *;
+ using arg_const_range = llvm::iterator_range;
aaron.ballman wrote:
> Please name this
shuaiwang updated this revision to Diff 160273.
shuaiwang marked 3 inline comments as done.
shuaiwang added a comment.
arg_const_range -> const_arg_range
Repository:
rC Clang
https://reviews.llvm.org/D50605
Files:
docs/LibASTMatchersReference.html
include/clang/AST/ExprCXX.h
include/cl
shuaiwang created this revision.
shuaiwang added a reviewer: aaron.ballman.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D50617
Files:
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersNarro
This revision was automatically updated to reflect the committed changes.
Closed by commit rL339530: [ASTMatchers] Let hasAnyArgument also support
CXXUnresolvedConstructExpr (authored by shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llv
shuaiwang created this revision.
shuaiwang added reviewers: aaron.ballman, JonasToth.
Herald added subscribers: cfe-commits, a.sidorin, xazax.hun.
Herald added a reviewer: george.karpenkov.
- If a function is unresolved, assume it mutates its arguments
- Follow unresolved member expressions for ne
shuaiwang updated this revision to Diff 160694.
shuaiwang marked 2 inline comments as done.
shuaiwang added a comment.
Herald added a subscriber: Szelethus.
- Fix a few cases overlooked previously
- More test cases
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50619
Files:
c
shuaiwang added inline comments.
Comment at: unittests/clang-tidy/ExprMutationAnalyzerTest.cpp:410
+ match(withEnclosingCompound(declRefTo("y")), AST->getASTContext());
+ EXPECT_THAT(mutatedBy(ResultsY, AST.get()), ElementsAre("y"));
+}
JonasToth wrote:
> O
shuaiwang updated this revision to Diff 160952.
shuaiwang marked 3 inline comments as done.
shuaiwang added a comment.
More test cases
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50619
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutationAnal
shuaiwang added inline comments.
Comment at: unittests/clang-tidy/ExprMutationAnalyzerTest.cpp:309
+TEST(ExprMutationAnalyzerTest, CallUnresolved) {
+ auto AST =
JonasToth wrote:
> I think we are missing tests for non-type template paramters (`template
> `).
shuaiwang updated this revision to Diff 160960.
shuaiwang added a comment.
Test case with non-type template
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50619
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutationAnalyzerTest.cpp
Index: unitte
shuaiwang added a comment.
In https://reviews.llvm.org/D50619#1202135, @JonasToth wrote:
> @shuaiwang i tried to apply this and check the clang-tidy part again, but it
> does not compile (log attached).
> I update clang to master, did you add a matcher or something like this?
>
> F6950472: erro
shuaiwang created this revision.
shuaiwang added a reviewer: hokein.
Herald added subscribers: cfe-commits, Szelethus, a.sidorin, xazax.hun.
Herald added a reviewer: george.karpenkov.
For smart pointers like std::unique_ptr which uniquely owns the
underlying object, treat the mutation of the point
shuaiwang added a comment.
In https://reviews.llvm.org/D50883#1203690, @JonasToth wrote:
> I am suprised that this does not automatically follow from the general rules.
> At the end, smartpointers cant do anything else then 'normal' classes.
>
> The `operator+/->` were not handled before? The mu
shuaiwang created this revision.
shuaiwang added reviewers: aaron.ballman, alexfh.
Herald added subscribers: cfe-commits, Szelethus, a.sidorin, xazax.hun.
Herald added a reviewer: george.karpenkov.
This handles cases like this:
typedef int& IntRef;
void mutate(IntRef);
void f() {
int x;
shuaiwang updated this revision to Diff 161830.
shuaiwang added a comment.
Fix issue with implicit access.
Repository:
rC Clang
https://reviews.llvm.org/D50617
Files:
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersNarrowingTes
shuaiwang added a comment.
In https://reviews.llvm.org/D50619#1207785, @JonasToth wrote:
> @shuaiwang Unfortunatly the analysis does not pass and fails on an assertion
>
> → ~/opt/llvm/build/bin/clang-tidy
> -checks=-*,cppcoreguidelines-const-correctness ItaniumDemangle.cpp --
> clang-tidy:
shuaiwang updated this revision to Diff 146514.
shuaiwang marked 10 inline comments as done.
shuaiwang added a comment.
Rename to readability-simplify-subscript-expr and addressed other comments.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45702
Files:
clang-tidy/readabili
shuaiwang updated this revision to Diff 146531.
shuaiwang marked 3 inline comments as done.
shuaiwang added a comment.
Handle unevaluated expressions.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
Files:
clang-tidy/utils/CMakeLists.txt
clang-tidy/utils/ExprMutationAn
shuaiwang updated this revision to Diff 146532.
shuaiwang marked 3 inline comments as done.
shuaiwang added a comment.
Addressed review comments.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45702
Files:
clang-tidy/readability/CMakeLists.txt
clang-tidy/readability/Readabi
shuaiwang added a comment.
In https://reviews.llvm.org/D45702#1101136, @aaron.ballman wrote:
> In https://reviews.llvm.org/D45702#1097294, @shuaiwang wrote:
>
> > Addressed review comments.
>
>
> This patch was approved; do you need someone to commit this for you?
Yes please :)
Repository:
This revision was automatically updated to reflect the committed changes.
Closed by commit rC340547: [ASTMatchers] Let hasObjectExpression also support
UnresolvedMemberExpr… (authored by shuaiwang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D50617?vs=161830&id=162218#toc
shuaiwang added a comment.
Ping :)
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50619
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
shuaiwang added a comment.
In https://reviews.llvm.org/D45679#1183116, @george.karpenkov wrote:
> @aaron.ballman @alexfh @shuaiwang Would it be possible to move that code into
> a matcher, or into a something which could be used from Clang? We would also
> like to use similar functionality, but
shuaiwang added a comment.
I have a rough idea about how `findPointeeMutation` would look like, I'm pretty
sure I can use a lot of your help :)
My current plan:
- Finish the few existing pending changes
- Move the analyzer to `clang/lib/Analysis` (likely remove
`PseudoConstantAnalysis` there as
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE341848: [clang-tidy] Handle unresolved expressions in
ExprMutationAnalyzer (authored by shuaiwang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D50619?vs=160960&id=164704#toc
Rep
shuaiwang accepted this revision.
shuaiwang added a comment.
This revision is now accepted and ready to land.
LGTM :)
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D51884
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http:
shuaiwang added a comment.
In https://reviews.llvm.org/D50883#1229297, @JonasToth wrote:
> > Different from std::vector::operator[] which has two overloads for const
> > and non-const access, std::unique_ptr only has one const version of
> > `operator->`.
> >
> > So for SmartPtr x; x->mf();
shuaiwang created this revision.
Herald added subscribers: cfe-commits, Szelethus, a.sidorin, xazax.hun.
Herald added a reviewer: george.karpenkov.
Tests somehow break on windows (and only on windows)
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/13003
http://lab.llvm.org:8011/buil
shuaiwang updated this revision to Diff 164773.
shuaiwang added a comment.
rebase
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D51898
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutationAnalyzerTest.cpp
Index: unittests/clang-tidy/ExprMutatio
This revision was not accepted when it landed; it landed in state "Needs
Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL341886: Revert "[clang-tidy] Handle unresolved
expressions in ExprMutationAnalyzer" (authored by shuaiwang, committed by
shuaiwang updated this revision to Diff 164806.
shuaiwang marked 2 inline comments as done.
shuaiwang added a comment.
more test cases.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50953
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutationAna
shuaiwang added a comment.
In https://reviews.llvm.org/D50953#1229287, @JonasToth wrote:
> What happens to pointers in a typedef (in the sense of `*` instead of `&`)?
I checked around and I believe reference type is the only type we're explicitly
matching right now. We'll need to handle carefu
shuaiwang updated this revision to Diff 164810.
shuaiwang marked an inline comment as done.
shuaiwang added a comment.
rebase & add test case
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50883
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutat
shuaiwang added inline comments.
Comment at: unittests/clang-tidy/ExprMutationAnalyzerTest.cpp:658
+ "void f() { UniquePtr x; x->mf(); }");
+ Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
+ EXPECT_FALSE(isMutated(Results, AST.
shuaiwang added inline comments.
Comment at: unittests/clang-tidy/ExprMutationAnalyzerTest.cpp:658
+ "void f() { UniquePtr x; x->mf(); }");
+ Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
+ EXPECT_FALSE(isMutated(Results, AST.
shuaiwang added a comment.
Yeah let's see what happens in the wild and decide whether we need further
actions. In any case I think that deserves a separate diff.
Is there other concerns about this diff?
In https://reviews.llvm.org/D50883#1230805, @JonasToth wrote:
> Your point is valid, that th
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE341967: [clang-tidy] Handle unique owning smart pointers
in ExprMutationAnalyzer (authored by shuaiwang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D50883?vs=164810&id=164926#to
shuaiwang updated this revision to Diff 164929.
shuaiwang added a comment.
more test cases
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50953
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutationAnalyzerTest.cpp
Index: unittests/clang-tidy/Ex
shuaiwang added a comment.
In https://reviews.llvm.org/D50953#1230138, @JonasToth wrote:
> In https://reviews.llvm.org/D50953#1230003, @shuaiwang wrote:
>
> > In https://reviews.llvm.org/D50953#1229287, @JonasToth wrote:
> >
> > > What happens to pointers in a typedef (in the sense of `*` instead
shuaiwang updated this revision to Diff 164938.
shuaiwang added a comment.
More test cases:
- Mutating pointers
- Const values
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50953
Files:
clang-tidy/utils/ExprMutationAnalyzer.cpp
unittests/clang-tidy/ExprMutationAnalyzerTes
This revision was automatically updated to reflect the committed changes.
Closed by commit rL341986: [clang-tidy] Handle sugared reference types in
ExprMutationAnalyzer (authored by shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org
shuaiwang created this revision.
Herald added subscribers: cfe-commits, mgorny.
It's not used anywhere for years. The last usage is removed in
https://reviews.llvm.org/rL198476 in 2014.
Repository:
rC Clang
https://reviews.llvm.org/D51946
Files:
include/clang/Analysis/Analyses/PseudoConst
shuaiwang created this revision.
shuaiwang added a reviewer: george.karpenkov.
Herald added subscribers: cfe-commits, Szelethus, mikhail.ramalho, a.sidorin,
szepet, xazax.hun, mgorny.
This is 1/2 of moving ExprMutationAnalyzer from clangtidy to
clang/Analysis.
This diff along simply copies the Ex
This revision was automatically updated to reflect the committed changes.
Closed by commit rL341994: [analyzer] Add ExprMutationAnalyzer (authored by
shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D51948
Files:
cfe/trunk/incl
This revision was automatically updated to reflect the committed changes.
Closed by commit rC341994: [analyzer] Add ExprMutationAnalyzer (authored by
shuaiwang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51948?vs=164969&id=164972#toc
Repository:
rL LLVM
https://revie
shuaiwang created this revision.
shuaiwang added reviewers: george.karpenkov, JonasToth.
Herald added subscribers: cfe-commits, Szelethus, a.sidorin, mgorny.
This is 2/2 of moving ExprMutationAnalyzer from clangtidy to clang/Analysis.
ExprMutationAnalyzer is moved to clang/Analysis in
https://rev
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE342006: [clangtidy] Remove old copy of
ExprMutationAnalyzer (authored by shuaiwang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D51950?vs=164977&id=164991#toc
Repository:
rCTE
shuaiwang created this revision.
shuaiwang added reviewers: lebedev.ri, JonasToth.
Herald added subscribers: cfe-commits, Szelethus, mikhail.ramalho, a.sidorin,
szepet, xazax.hun.
Herald added a reviewer: george.karpenkov.
We used to treat an `Expr` mutated whenever it's passed as non-const
refer
shuaiwang added a comment.
Just some quick comments, I'll take a deeper look into other comments later.
This diff along unfortunately won't be able to handle `emplace_back` just yet,
the reason (I believe, haven't fully tested) is that `std::forward` is not
handled properly and almost all std f
shuaiwang updated this revision to Diff 165420.
shuaiwang marked 10 inline comments as done.
shuaiwang added a comment.
More test cases addressing review comments
Repository:
rC Clang
https://reviews.llvm.org/D52008
Files:
include/clang/Analysis/Analyses/ExprMutationAnalyzer.h
lib/Analys
shuaiwang added a comment.
In https://reviews.llvm.org/D52008#1232923, @lebedev.ri wrote:
> Thanks for working on this! I tried, and it appears to not fix the issue at
> hand.
>
> - ``` struct C1 { C1(const C1* c, int num); };
>
> int x = 0; auto y = std::make_unique(nullptr, x); // <- still
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342246: Remove PseudoConstantAnalysis (authored by
shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D51946
Files:
cfe/trunk/include/cl
shuaiwang updated this revision to Diff 165552.
shuaiwang marked 8 inline comments as done.
shuaiwang added a comment.
Addressed review comments.
Repository:
rC Clang
https://reviews.llvm.org/D52008
Files:
include/clang/Analysis/Analyses/ExprMutationAnalyzer.h
lib/Analysis/ExprMutationAn
shuaiwang added a comment.
In https://reviews.llvm.org/D52008#1234828, @JonasToth wrote:
> The `std::move` as cast is a follow up patch?
Yes I'll send a follow up patch.
Comment at: lib/Analysis/ExprMutationAnalyzer.cpp:381
+FunctionParmMutationAnalyzer::findMutation(const P
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342271: [analyzer] Handle forwarding reference better in
ExprMutationAnalyzer. (authored by shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.
shuaiwang created this revision.
shuaiwang added reviewers: lebedev.ri, JonasToth.
Herald added subscribers: cfe-commits, Szelethus, mikhail.ramalho, a.sidorin,
szepet, xazax.hun.
Herald added a reviewer: george.karpenkov.
This is a follow up of https://reviews.llvm.org/D52008 and should make the
shuaiwang added a comment.
@lebedev.ri could you help test whether this fully resolves PR38891? Thanks!
Repository:
rC Clang
https://reviews.llvm.org/D52120
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mai
shuaiwang added a comment.
In https://reviews.llvm.org/D45679#1183116, @george.karpenkov wrote:
> @aaron.ballman @alexfh @shuaiwang Would it be possible to move that code into
> a matcher, or into a something which could be used from Clang? We would also
> like to use similar functionality, but
shuaiwang created this revision.
Herald added a reviewer: george.karpenkov.
Herald added subscribers: cfe-commits, a.sidorin.
This yields better recall as ExprMutationAnalyzer is more accurate.
One common pattern this check is now able to catch is:
void foo(std::vector v) {
for (const auto
shuaiwang updated this revision to Diff 158408.
shuaiwang added a comment.
Add test case
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50102
Files:
clang-tidy/performance/UnnecessaryValueParamCheck.cpp
test/clang-tidy/performance-unnecessary-value-param.cpp
Index: test/cl
shuaiwang updated this revision to Diff 158856.
shuaiwang marked 2 inline comments as done.
shuaiwang added a comment.
Update comments.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50102
Files:
clang-tidy/performance/UnnecessaryValueParamCheck.cpp
test/clang-tidy/performa
shuaiwang added inline comments.
Comment at: clang-tidy/performance/UnnecessaryValueParamCheck.cpp:108
return;
+ if (const auto *Ctor = dyn_cast(Function)) {
+for (const auto *Init : Ctor->inits()) {
hokein wrote:
> Is this a new fix or a special case
shuaiwang updated this revision to Diff 159037.
shuaiwang marked 2 inline comments as done.
shuaiwang added a comment.
Add comments explaining CXXCtorInitializer check
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D50102
Files:
clang-tidy/performance/UnnecessaryValueParamChec
This revision was automatically updated to reflect the committed changes.
Closed by commit rL338903: Use ExprMutationAnalyzer in
performance-unnecessary-value-param (authored by shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D50
shuaiwang updated this revision to Diff 149659.
shuaiwang marked 5 inline comments as done.
shuaiwang added a comment.
Handle sizeof on VLA.
Added test case for typeof()
Added TODO for handling typeid and generic selection.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
F
shuaiwang added inline comments.
Comment at: clang-tidy/utils/ExprMutationAnalyzer.cpp:34-38
+const ast_matchers::internal::VariadicDynCastAllOfMatcher
+cxxTypeidExpr;
+
+const ast_matchers::internal::VariadicDynCastAllOfMatcher
+cxxNoexceptExpr;
aaron.ba
shuaiwang updated this revision to Diff 149661.
shuaiwang marked 4 inline comments as done.
shuaiwang added a comment.
Handle typeid and generic selection.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
Files:
clang-tidy/utils/CMakeLists.txt
clang-tidy/utils/ExprMutat
shuaiwang added a comment.
Overestimated the work of supporting typeid and _Generic, done now.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bi
shuaiwang updated this revision to Diff 150026.
shuaiwang marked an inline comment as done.
shuaiwang added a comment.
Remove stale comment
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
Files:
clang-tidy/utils/CMakeLists.txt
clang-tidy/utils/ExprMutationAnalyzer.cpp
shuaiwang added a comment.
Thanks a lot for the review!
Could you also help commit this diff as well? Thanks!
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists
shuaiwang updated this revision to Diff 151244.
shuaiwang added a comment.
Don't include in unit tests, should fix the test failures.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
Files:
clang-tidy/utils/CMakeLists.txt
clang-tidy/utils/ExprMutationAnalyzer.cpp
cla
shuaiwang updated this revision to Diff 151245.
shuaiwang added a comment.
Add include for std::isspace() (thanks aaron.ballman!)
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D45679
Files:
clang-tidy/utils/CMakeLists.txt
clang-tidy/utils/ExprMutationAnalyzer.cpp
clang-t
shuaiwang added a comment.
In https://reviews.llvm.org/D45679#1131115, @aaron.ballman wrote:
> I had to revert due to failing tests. The revert was done in r334606 and this
> is an example of a failing bot:
> http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/31
shuaiwang added a comment.
Friendly ping @EricWF
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D54399/new/
https://reviews.llvm.org/D54399
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org
shuaiwang created this revision.
Herald added subscribers: cfe-commits, dkrupp, donat.nagy, Szelethus,
a.sidorin, mgorny.
Herald added a reviewer: george.karpenkov.
This just copies ExprMutationAnalyzer to Tooling/Analysis with minor tweaks
around including path & namespaces.
2/3 will change exi
shuaiwang created this revision.
shuaiwang added reviewers: george.karpenkov, rsmith, dblaikie.
Herald added subscribers: cfe-commits, dkrupp, donat.nagy, Szelethus,
a.sidorin, mgorny.
shuaiwang added a dependency: D54399: Move ExprMutationAnalyzer to
Tooling/Analysis (1/3).
Reference the new lo
shuaiwang added a comment.
In https://reviews.llvm.org/D54399#1296317, @dblaikie wrote:
> Could you fix the modulemap (might amount to reverting the change Eric made
> in r342827? or maybe it's more involved than that) & validate that the
> modules build is working with this change (probably un
shuaiwang marked 2 inline comments as done.
shuaiwang added inline comments.
Comment at: unittests/Analysis/ExprMutationAnalyzerTest.cpp:387
match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
- EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("std::
shuaiwang updated this revision to Diff 165684.
shuaiwang marked an inline comment as done.
shuaiwang added a comment.
Added more test cases around std::move
Repository:
rC Clang
https://reviews.llvm.org/D52120
Files:
lib/Analysis/ExprMutationAnalyzer.cpp
unittests/Analysis/ExprMutationA
shuaiwang created this revision.
shuaiwang added a reviewer: aaron.ballman.
Herald added a subscriber: cfe-commits.
Repository:
rC Clang
https://reviews.llvm.org/D52157
Files:
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
unittests/ASTMatchers/ASTMatchersNarro
shuaiwang created this revision.
shuaiwang added reviewers: alexfh, JonasToth.
Herald added subscribers: cfe-commits, Szelethus, a.sidorin, chrib,
kristof.beyls, xazax.hun.
Herald added a reviewer: george.karpenkov.
Repository:
rCTE Clang Tools Extra
https://reviews.llvm.org/D52158
Files:
c
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342403: [clang-tidy] Remove duplicated logic in
UnnecessaryValueParamCheck and use… (authored by shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.
shuaiwang updated this revision to Diff 165799.
shuaiwang marked an inline comment as done.
shuaiwang added a comment.
Addressed review comment.
Repository:
rC Clang
https://reviews.llvm.org/D52157
Files:
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
unittes
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342407: [ASTMatchers] Let isArrow also support
UnresolvedMemberExpr… (authored by shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.org/D52157
shuaiwang updated this revision to Diff 165801.
shuaiwang marked an inline comment as done.
shuaiwang added a comment.
Added test case with copy-ctor & assignment operator taking value as param.
Repository:
rC Clang
https://reviews.llvm.org/D52120
Files:
lib/Analysis/ExprMutationAnalyzer.c
This revision was automatically updated to reflect the committed changes.
Closed by commit rC342409: [analyzer] Treat std::{move,forward} as casts in
ExprMutationAnalyzer. (authored by shuaiwang, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D52120?vs=165801&id=165813#toc
R
This revision was automatically updated to reflect the committed changes.
Closed by commit rL342409: [analyzer] Treat std::{move,forward} as casts in
ExprMutationAnalyzer. (authored by shuaiwang, committed by ).
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
https://reviews.llvm.
shuaiwang created this revision.
shuaiwang added reviewers: JonasToth, aaron.ballman.
Herald added subscribers: cfe-commits, Szelethus, mikhail.ramalho, a.sidorin,
szepet, xazax.hun.
Herald added a reviewer: george.karpenkov.
We handle pointee mutation for native pointers & pointer-like types
(lo
shuaiwang updated this revision to Diff 166065.
shuaiwang added a comment.
Rebase
Repository:
rC Clang
https://reviews.llvm.org/D52219
Files:
include/clang/Analysis/Analyses/ExprMutationAnalyzer.h
lib/Analysis/ExprMutationAnalyzer.cpp
unittests/Analysis/ExprMutationAnalyzerTest.cpp
In
shuaiwang added a comment.
In https://reviews.llvm.org/D52219#1238423, @JonasToth wrote:
> Do you think it would be possible to the analysis for `>const?< int
> ***`-cases? (recursively checking through the pointer levels)
I think that should be possible, will do after single-layer pointee ana
1 - 100 of 145 matches
Mail list logo