Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:51-52 @@ -34,4 +50,4 @@ void UseBoolLiteralsCheck::check(const MatchFinder::MatchResult &Result) { - const auto *Literal = Result.Nodes.getNodeAs("literal"); - const auto *Cast = Result.Nod

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:51-52 @@ -34,4 +50,4 @@ void UseBoolLiteralsCheck::check(const MatchFinder::MatchResult &Result) { - const auto *Literal = Result.Nodes.getNodeAs("literal"); - const auto *Cast = Result.Nod

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:51-52 @@ -34,4 +50,4 @@ void UseBoolLiteralsCheck::check(const MatchFinder::MatchResult &Result) { - const auto *Literal = Result.Nodes.getNodeAs("literal"); - const auto *Cast = Result.Nod

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:51-52 @@ -34,4 +50,4 @@ void UseBoolLiteralsCheck::check(const MatchFinder::MatchResult &Result) { - const auto *Literal = Result.Nodes.getNodeAs("literal"); - const auto *Cast = Result.Nod

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67102. omtcyfz added a comment. Added ternary operator example to docs. https://reviews.llvm.org/D23243 Files: clang-tidy/modernize/UseBoolLiteralsCheck.cpp docs/clang-tidy/checks/modernize-use-bool-literals.rst test/clang-tidy/modernize-use-bool-lite

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-07 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23243#508097, @aaron.ballman wrote: > LGTM! We may want to consider BinaryConditionalOperator as well, but that can > be in as a separate patch. Well, I personally have never seen `BinaryConditionalOperator `in my life. And honestly I'm no

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Ah, and yes, it's better to move `*.yaml` to `extra/test/clang-rename/Inputs` in order to prevent confusion as every other file in `extra/test/clang-rename` is a test. https://reviews.llvm.org/D23198 ___ cfe-commits mailin

[PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added a reviewer: alexfh. omtcyfz added a subscriber: cfe-commits. `readability-else-after-return` only warns about `return` calls, but [[ http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return | Coding Stadnards ]] mention `throw`, `contin

Re: [PATCH] D23193: [clang-rename] fix bug with initializer lists

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67165. omtcyfz added a comment. Do these symbolic pointers seem reasonable? https://reviews.llvm.org/D23193 Files: clang-rename/USRFinder.cpp clang-rename/USRLocFinder.cpp test/clang-rename/Field.cpp Index: test/clang-rename/Field.cpp ===

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67169. omtcyfz marked an inline comment as done. omtcyfz added a comment. Use shiny `eachOf` and bind everything to `"literal"` value. https://reviews.llvm.org/D23243 Files: clang-tidy/modernize/UseBoolLiteralsCheck.cpp docs/clang-tidy/checks/modernize-

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-tidy/modernize/UseBoolLiteralsCheck.cpp:41 @@ +40,3 @@ + // using anyOf(BINDLITERAL(), anything()). + anyOf(hasTrueExpression(ignoringParenImpCasts( +integerLiteral().bind("trueBranchLiteral")))

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked an inline comment as done. omtcyfz added a comment. https://reviews.llvm.org/D23243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67189. omtcyfz added a comment. Remove redundant `anyOf` and `anything`. https://reviews.llvm.org/D23243 Files: clang-tidy/modernize/UseBoolLiteralsCheck.cpp docs/clang-tidy/checks/modernize-use-bool-literals.rst test/clang-tidy/modernize-use-bool-lit

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz marked an inline comment as done. omtcyfz added a comment. https://reviews.llvm.org/D23243 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r278022 - [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-08 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Mon Aug 8 12:11:56 2016 New Revision: 278022 URL: http://llvm.org/viewvc/llvm-project?rev=278022&view=rev Log: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator modernize-use-bool-literals doesn't checks operands in ternary operator. For example:

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-08 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278022: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23243?vs=67195&id=67197#toc Repository: rL

Re: [PATCH] D23193: [clang-rename] fix bug with initializer lists

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67199. omtcyfz added a comment. Added more info to the test. https://reviews.llvm.org/D23193 Files: clang-rename/USRFinder.cpp clang-rename/USRLocFinder.cpp test/clang-rename/Field.cpp Index: test/clang-rename/Field.cpp ==

Re: [PATCH] D23243: [clang-tidy] enhance modernize-use-bool-literals to check ternary operator

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67195. omtcyfz added a comment. More strict test messages. https://reviews.llvm.org/D23243 Files: clang-tidy/modernize/UseBoolLiteralsCheck.cpp docs/clang-tidy/checks/modernize-use-bool-literals.rst test/clang-tidy/modernize-use-bool-literals.cpp Ind

Re: [PATCH] D23193: [clang-rename] fix bug with initializer lists

2016-08-08 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67289. omtcyfz marked an inline comment as done. omtcyfz added a comment. `auto` -> `SourceLocation` https://reviews.llvm.org/D23193 Files: clang-rename/USRFinder.cpp clang-rename/USRLocFinder.cpp test/clang-rename/Field.cpp Index: test/clang-rename/

[clang-tools-extra] r278099 - [clang-rename] fix bug with initializer lists

2016-08-09 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Aug 9 02:14:48 2016 New Revision: 278099 URL: http://llvm.org/viewvc/llvm-project?rev=278099&view=rev Log: [clang-rename] fix bug with initializer lists Clang-rename is currently not able to find a symbol in initializer list. This patch fixes described issue. Reviewers

Re: [PATCH] D23193: [clang-rename] fix bug with initializer lists

2016-08-09 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278099: [clang-rename] fix bug with initializer lists (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23193?vs=67289&id=67290#toc Repository: rL LLVM https://reviews.llvm.o

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a subscriber: omtcyfz. omtcyfz added a comment. In https://reviews.llvm.org/D23279#509047, @Eugene.Zelenko wrote: > May be this could be Clang-rename mode? Definitely not. I think this is in scope of `clang-tidy`. In https://reviews.llvm.org/D23279#509076, @compnerd wrote: > Th

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. And actually it makes much more sense for C than for C++. In C++ you just do `s/struct/class/g`, insert `public:` and you're golden. P.S. It actually breaks code. I haven't looked into that, but bar::Foo foo = { &x, 17, 1.29, 0 }; // CHECK: bar::Foo foo = { 1.29, 0, 1

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Please fix the same thing @ `USRLocFinder.cpp:47`. Other than that, looks OK - a bit more readable. Thanks. https://reviews.llvm.org/D23298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-b

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#509567, @omtcyfz wrote: > In https://reviews.llvm.org/D23279#509047, @Eugene.Zelenko wrote: > > > May be this could be Clang-rename mode? > > > Definitely not. > > I think this is in scope of `clang-tidy`. > > In https://reviews.llvm.org

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#509570, @klimek wrote: > In https://reviews.llvm.org/D23279#509568, @omtcyfz wrote: > > > And actually it makes much more sense for C than for C++. In C++ you just > > do `s/struct/class/g`, insert `public:` and you're golden. > > > Tha

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz accepted this revision. omtcyfz added a comment. This revision is now accepted and ready to land. LGTM Thanks! Do you have a commit access or do you need me to land the patch? https://reviews.llvm.org/D23298 ___ cfe-commits mailing list cf

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. Sure. https://reviews.llvm.org/D23298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] r278112 - [clang-rename] cleanup: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Tue Aug 9 05:03:33 2016 New Revision: 278112 URL: http://llvm.org/viewvc/llvm-project?rev=278112&view=rev Log: [clang-rename] cleanup: use isWritten nit: use isWritten and const auto *Initializer in NamedDeclFindingASTVisitor::VisitCXXConstructorDecl method. Test plan: make

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278112: [clang-rename] cleanup: use isWritten (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23298?vs=67301&id=67309#toc Repository: rL LLVM https://reviews.llvm.org/D2329

Re: [PATCH] D23298: [clang-rename] nit: use isWritten

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. FYI: I think the diff (accessible by `Download Raw Diff`) is corrupted for some reason; at least I don't see `Index: test/clang-rename/USRLocFinder.cpp` line in the end, which should be present, I guess. Repository: rL LLVM https://reviews.llvm.org/D23298 ___

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 67328. omtcyf0 added a comment. Address comments Alex made. https://reviews.llvm.org/D17990 Files: clang-tidy/modernize/DeprecatedHeadersCheck.cpp docs/clang-tidy/checks/modernize-deprecated-headers.rst test/clang-tidy/modernize-deprecated-headers-cxx

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 67334. omtcyf0 marked 3 inline comments as done. omtcyf0 added a comment. Address remaining comments. https://reviews.llvm.org/D17990 Files: clang-tidy/modernize/DeprecatedHeadersCheck.cpp docs/clang-tidy/checks/modernize-deprecated-headers.rst test/c

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67347. omtcyfz marked 2 inline comments as done. omtcyfz added a comment. Address the comments. https://reviews.llvm.org/D23265 Files: clang-tidy/readability/ElseAfterReturnCheck.cpp docs/clang-tidy/checks/readability-else-after-return.rst test/clang-

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-rename/tool/ClangRename.cpp:65 @@ +64,3 @@ + + RenameAllInfo() : Offset(0) {} +}; AFAIK there's no need to do that, integer types are by default initialized with 0, aren't they? https://reviews.llvm.org/D23198

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#509896, @compnerd wrote: > If the argument really is that we want to minimize the tools then Id argue > that `clang-rename` also belongs in `clang-tidy` as it would be used to > rename fields to match the naming convention (tidying up

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510011, @aaron.ballman wrote: > In https://reviews.llvm.org/D23279#510002, @omtcyfz wrote: > > > In https://reviews.llvm.org/D23279#509896, @compnerd wrote: > > > > > If the argument really is that we want to minimize the tools then Id

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz accepted this revision. omtcyfz added a comment. This revision is now accepted and ready to land. LGTM Comment at: clang-rename/tool/ClangRename.cpp:65 @@ +64,3 @@ + + RenameAllInfo() : Offset(0) {} +}; vmiklos wrote: > omtcyfz wrote: > > AFAIK there's

Re: [PATCH] D23198: clang-rename rename-all: support reading old/newname pairs from a YAML file

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-rename/tool/ClangRename.cpp:65 @@ +64,3 @@ + + RenameAllInfo() : Offset(0) {} +}; omtcyfz wrote: > vmiklos wrote: > > omtcyfz wrote: > > > AFAIK there's no need to do that, integer types are by default > > > initi

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510061, @alexshap wrote: > First of all, many thanks for the comments & proposal of clang-refactor. > > 1. Regarding high-level project organization: clang-refactor - that can be a > good place for various refactoring techniques like th

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510129, @alexshap wrote: > Regarding TUs - i am aware of that - would be useful if you could provide a > test which doesn't work - that would help us avoid miscommunication. Thanks. Suppose you have a `struct Foo` defined in `LibA` an

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-tidy/readability/ElseAfterReturnCheck.cpp:45 @@ +44,3 @@ + for (const auto &BindingName : + {"return", "continue", "break", "goto", "throw"}) { +if (Result.Nodes.getNodeAs(BindingName)) { alexfh wrote: >

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-tidy/readability/ElseAfterReturnCheck.cpp:45 @@ +44,3 @@ + for (const auto &BindingName : + {"return", "continue", "break", "goto", "throw"}) { +if (Result.Nodes.getNodeAs(BindingName)) { aaron.ballman wr

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510147, @alexshap wrote: > Suppose you have a struct Foo defined in LibA and you have used clang-rename > to rename Foo into Bar (or just a field of Foo say - you have renamed Foo::x > into Foo::y); LibA is linked to LibB and you have

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510157, @alexshap wrote: > The difference is that if we reorder fields the new struct is not > binary-compatible with the old one. Exactly. If both libraries are in your project, it becomes broken. Repository: rL LLVM https://rev

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: clang-tidy/readability/ElseAfterReturnCheck.cpp:45 @@ +44,3 @@ + for (const auto &BindingName : + {"return", "continue", "break", "goto", "throw"}) { +if (Result.Nodes.getNodeAs(BindingName)) { aaron.ballman wr

Re: [PATCH] D23279: clang-reorder-fields

2016-08-09 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510167, @alexshap wrote: > my point is the following: this tool helps perform some operation (changing > the order of fields), > if smb decides to do it manually - the result will have exactly the same > issue. While creating tools

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67475. omtcyfz marked 7 inline comments as done. omtcyfz added a comment. Address comments. https://reviews.llvm.org/D23265 Files: clang-tidy/readability/ElseAfterReturnCheck.cpp docs/clang-tidy/checks/readability-else-after-return.rst test/clang-tidy

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67476. omtcyfz added a comment. Make helper matcher `const`. https://reviews.llvm.org/D23265 Files: clang-tidy/readability/ElseAfterReturnCheck.cpp docs/clang-tidy/checks/readability-else-after-return.rst test/clang-tidy/readability-else-after-return.

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 67488. omtcyf0 marked 2 inline comments as done. omtcyf0 added a comment. Address comments. https://reviews.llvm.org/D17990 Files: clang-tidy/modernize/DeprecatedHeadersCheck.cpp docs/clang-tidy/checks/modernize-deprecated-headers.rst test/clang-tidy/

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyf0 marked 3 inline comments as done. omtcyf0 added a comment. https://reviews.llvm.org/D17990 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23158: [clang-rename] merge tests when possible

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67501. omtcyfz added a comment. Address comments. https://reviews.llvm.org/D23158 Files: test/clang-rename/ClassAsTemplateArgument.cpp test/clang-rename/ClassFindByName.cpp test/clang-rename/ClassSimpleRenaming.cpp test/clang-rename/ClassTestMulti.c

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67512. omtcyfz marked 4 inline comments as done. omtcyfz added a comment. Address comments. https://reviews.llvm.org/D23265 Files: clang-tidy/readability/ElseAfterReturnCheck.cpp docs/clang-tidy/checks/readability-else-after-return.rst test/clang-tidy

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67513. omtcyfz added a comment. Remove braces around single statement in `for` and `if` as Alex proposed. https://reviews.llvm.org/D23265 Files: clang-tidy/readability/ElseAfterReturnCheck.cpp docs/clang-tidy/checks/readability-else-after-return.rst t

Re: [PATCH] D23158: [clang-rename] merge tests when possible

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67515. omtcyfz added a comment. Update files not previouysly added with `git add`. https://reviews.llvm.org/D23158 Files: test/clang-rename/ClassAsTemplateArgument.cpp test/clang-rename/ClassAsTemplateArgumentFindByClass.cpp test/clang-rename/ClassAsT

Re: [PATCH] D23158: [clang-rename] merge tests when possible

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67516. omtcyfz added a comment. Delete two more files. https://reviews.llvm.org/D23158 Files: test/clang-rename/ClassAsTemplateArgument.cpp test/clang-rename/ClassAsTemplateArgumentFindByClass.cpp test/clang-rename/ClassAsTemplateArgumentFindByTemplat

[clang-tools-extra] r278221 - [clang-rename] merge tests when possible

2016-08-10 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Aug 10 08:28:30 2016 New Revision: 278221 URL: http://llvm.org/viewvc/llvm-project?rev=278221&view=rev Log: [clang-rename] merge tests when possible The only difference between some tests is -offset passed to clang-rename. It makes sense to merge them into a single file

Re: [PATCH] D23158: [clang-rename] merge tests when possible

2016-08-10 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278221: [clang-rename] merge tests when possible (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23158?vs=67516&id=67517#toc Repository: rL LLVM https://reviews.llvm.org/D2

[clang-tools-extra] r278223 - [clang-rename] remove bunch of deprecated tests

2016-08-10 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Aug 10 08:32:37 2016 New Revision: 278223 URL: http://llvm.org/viewvc/llvm-project?rev=278223&view=rev Log: [clang-rename] remove bunch of deprecated tests Removed: clang-tools-extra/trunk/test/clang-rename/ClassAsTemplateArgumentFindByClass.cpp clang-tools-ext

[clang-tools-extra] r278225 - [clang-rename] fix test introduced in r278221

2016-08-10 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Aug 10 08:46:36 2016 New Revision: 278225 URL: http://llvm.org/viewvc/llvm-project?rev=278225&view=rev Log: [clang-rename] fix test introduced in r278221 Modified: clang-tools-extra/trunk/test/clang-rename/ComplicatedClassType.cpp Modified: clang-tools-extra/trunk/t

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a subscriber: omtcyfz. Comment at: clang-tidy/modernize/DeprecatedHeadersCheck.cpp:79 @@ -69,3 +78,3 @@ for (const auto &KeyValue : std::vector>( {{"fenv.h", "cfenv"}, aaron.ballman wrote: > This will definitely fail in M

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 67519. omtcyf0 added a comment. Address comments. https://reviews.llvm.org/D17990 Files: clang-tidy/modernize/DeprecatedHeadersCheck.cpp docs/clang-tidy/checks/modernize-deprecated-headers.rst test/clang-tidy/modernize-deprecated-headers-cxx03.cpp t

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyf0 marked an inline comment as done. omtcyf0 added a comment. https://reviews.llvm.org/D17990 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D23279: clang-reorder-fields

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#510234, @alexshap wrote: > > I do think that an automated tool will do a better job of changing field > > orderings in a non-breaking way than most people would, mostly due to > > initializer lists. > > > yeah, that was the original mo

Re: [PATCH] D23279: clang-reorder-fields

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a comment. In https://reviews.llvm.org/D23279#511202, @bcraig wrote: > In https://reviews.llvm.org/D23279#511187, @omtcyfz wrote: > > > In https://reviews.llvm.org/D23279#510234, @alexshap wrote: > > > > > > I do think that an automated tool will do a better job of changing > > > >

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 67551. omtcyf0 marked an inline comment as not done. omtcyf0 added a comment. Revert changes. https://reviews.llvm.org/D17990 Files: clang-tidy/modernize/DeprecatedHeadersCheck.cpp docs/clang-tidy/checks/modernize-deprecated-headers.rst test/clang-tid

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. In https://reviews.llvm.org/D17990#511429, @alexfh wrote: > In https://reviews.llvm.org/D17990#511424, @omtcyf0 wrote: > > > Revert changes. > > > Thanks! If Aaron has no objections, good to go. Great! Thank you! https://reviews.llvm.org/D17990

Re: [PATCH] D23279: clang-reorder-fields

2016-08-10 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a subscriber: omtcyf0. omtcyf0 added a comment. In https://reviews.llvm.org/D23279#511439, @bcraig wrote: > I will agree that compilation databases are a (mostly) necessary, but not > sufficient part of the solution. The refactoring tool will need to be > careful about changing t

[clang-tools-extra] r278254 - [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Aug 10 13:01:45 2016 New Revision: 278254 URL: http://llvm.org/viewvc/llvm-project?rev=278254&view=rev Log: [clang-tidy] minor improvements in modernise-deprecated-headers check This patch introduces a minor list of changes as proposed by Richard Smith in the mailing lis

Re: [PATCH] D17990: [clang-tidy] minor improvements in modernise-deprecated-headers check

2016-08-10 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278254: [clang-tidy] minor improvements in modernise-deprecated-headers check (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D17990?vs=67551&id=67560#toc Repository: rL LLVM

[clang-tools-extra] r278257 - [clang-tidy] enhance readability-else-after-return

2016-08-10 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Wed Aug 10 13:05:47 2016 New Revision: 278257 URL: http://llvm.org/viewvc/llvm-project?rev=278257&view=rev Log: [clang-tidy] enhance readability-else-after-return `readability-else-after-return` only warns about `return` calls, but LLVM Coding Standars stat that `throw`, `co

Re: [PATCH] D23265: [clang-tidy] enhance readability-else-after-return

2016-08-10 Thread Kirill Bobyrev via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278257: [clang-tidy] enhance readability-else-after-return (authored by omtcyfz). Changed prior to commit: https://reviews.llvm.org/D23265?vs=67513&id=67561#toc Repository: rL LLVM https://reviews.l

[clang-tools-extra] r278324 - [clang-tidy] fix readability-else-after-return test

2016-08-11 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Thu Aug 11 03:18:39 2016 New Revision: 278324 URL: http://llvm.org/viewvc/llvm-project?rev=278324&view=rev Log: [clang-tidy] fix readability-else-after-return test As pointed by Yung Douglas, exceptions in test/clang-tidy/readability-else-after-return.cpp are causing PS4 bot

[PATCH] D23397: [clang-rename] cleanup `auto` usages

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz created this revision. omtcyfz added reviewers: alexfh, klimek. omtcyfz added a subscriber: cfe-commits. As Alexander pointed out, LLVM Coding Standards are more conservative about using `auto`, i.e. it should be used in the following situations: * When the type is //obvious//, i.e. expl

Re: [PATCH] D23316: [analyzer] Fixed the false-positives caused by macro generated code.

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz added a subscriber: omtcyfz. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} Do I understand correctly that a code generated by a macro doesn't affect "complexity" at all then? ``

Re: [PATCH] D23316: [analyzer] Fixed the false-positives caused by macro generated code.

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} NoQ wrote: > omtcyfz wrote: > > Do I understand correctly that a code generated by a macro doesn't affect > >

Re: [PATCH] D23316: [analyzer] Fixed the false-positives caused by macro generated code.

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} omtcyfz wrote: > NoQ wrote: > > omtcyfz wrote: > > > Do I understand correctly that a code generated by a macr

Re: [PATCH] D23316: [analyzer] Fixed the false-positives caused by macro generated code.

2016-08-11 Thread Kirill Bobyrev via cfe-commits
omtcyfz added inline comments. Comment at: lib/Analysis/CloneDetection.cpp:436 @@ +435,3 @@ +if (IsInMacro) { + Signature.Complexity = 0; +} omtcyfz wrote: > omtcyfz wrote: > > NoQ wrote: > > > omtcyfz wrote: > > > > Do I understand correctly that a c

Re: [PATCH] D23397: [clang-rename] cleanup `auto` usages

2016-08-14 Thread Kirill Bobyrev via cfe-commits
omtcyfz updated this revision to Diff 67989. omtcyfz marked 3 inline comments as done. omtcyfz added a comment. Address comments. https://reviews.llvm.org/D23397 Files: clang-rename/RenamingAction.cpp clang-rename/USRFinder.cpp clang-rename/USRFindingAction.cpp clang-rename/USRLocFinder

[PATCH] D17244: [clang-tidy] readability-ternary-operator new check

2016-02-13 Thread Kirill Bobyrev via cfe-commits
omtcyf0 created this revision. omtcyf0 added reviewers: alexfh, LegalizeAdulthood, Eugene.Zelenko, djasper. omtcyf0 added a subscriber: cfe-commits. This patch introduces a proof-of-concept check for clang-tidy aiming to suggest using ternary operator in order to improve readability. It's curren

Re: [PATCH] D17244: [clang-tidy] readability-ternary-operator new check

2016-02-17 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48231. omtcyf0 added a comment. Followed some suggestions Richard has kindly given me; fixed the nonsense in SourceRanges' extracting code http://reviews.llvm.org/D17244 Files: clang-tidy/readability/BracesAroundStatementsCheck.cpp clang-tidy/readabili

[PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-20 Thread Kirill Bobyrev via cfe-commits
omtcyf0 created this revision. omtcyf0 added reviewers: alexfh, LegalizeAdulthood, Eugene.Zelenko. omtcyf0 added a subscriber: cfe-commits. This patch introduces the modernize-deprecated-headers check, which is supposed to replace deprecated C library headers with the C++ STL-ones. For informati

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-20 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48598. omtcyf0 added a comment. fixed clang-tidy/modernize/DeprecatedHeaders.h head typo caused by the check rename http://reviews.llvm.org/D17484 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/DeprecatedHeadersCheck.cpp clang-tidy/m

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-20 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48600. omtcyf0 added a comment. Thanks for a review, Eugene! The FixItHint and warning now comes with the "angled" version of header wrapping. http://reviews.llvm.org/D17484 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/DeprecatedHea

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-21 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48613. omtcyf0 added a comment. Thanks for a review, Richard! Fixed all the issues you pointed to! Thanks for the hint, Eugene! I'll try to add this functionality to this check later on. http://reviews.llvm.org/D17484 Files: clang-tidy/modernize/CMakeLis

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-21 Thread Kirill Bobyrev via cfe-commits
omtcyf0 marked 3 inline comments as done. omtcyf0 added a comment. http://reviews.llvm.org/D17484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-22 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. Thank you for a review, Alex! I'll clean up the parts you mentioned soon! In http://reviews.llvm.org/D17484#358617, @alexfh wrote: > The most important question to this check is that the standard doesn't > guarantee that the C++ headers declare all the same functions *

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-22 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48711. omtcyf0 marked 9 inline comments as done. omtcyf0 added a comment. Fixed all the issues @alexfh pointed to. http://reviews.llvm.org/D17484 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/DeprecatedHeadersCheck.cpp clang-tidy/mod

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-22 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. Marked the comments as *done*. Comment at: test/clang-tidy/modernize-deprecated-headers-cxx03.cpp:1 @@ +1,2 @@ +// RUN: %check_clang_tidy %s modernize-deprecated-headers %t -- -- -std=c++03 -isystem %S/Inputs/Headers + alexfh wrote: > Y

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-23 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48797. omtcyf0 marked 4 inline comments as done. omtcyf0 added a comment. Resolved issues @alexfh pointed to. http://reviews.llvm.org/D17484 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/DeprecatedHeadersCheck.cpp clang-tidy/moderniz

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-23 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48799. omtcyf0 added a comment. changed the warning comment to be more precise; fixed line with > 80 symbols http://reviews.llvm.org/D17484 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/DeprecatedHeadersCheck.cpp clang-tidy/modernize

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 48905. omtcyf0 added a comment. replaced few explicit casts to llvm::Twine with implicit ones http://reviews.llvm.org/D17484 Files: clang-tidy/modernize/CMakeLists.txt clang-tidy/modernize/DeprecatedHeadersCheck.cpp clang-tidy/modernize/DeprecatedHead

Re: [PATCH] D17484: [clang-tidy] introduce modernize-deprecated-headers check

2016-02-24 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. In http://reviews.llvm.org/D17484#359634, @alexfh wrote: > Looks good with one nit. > > Let me know if you need me to commit the patch for you. Yes, commit please! http://reviews.llvm.org/D17484 ___ cfe-commits mailing li

Re: [PATCH] D17244: [clang-tidy] readability-ternary-operator new check

2016-02-24 Thread Kirill Bobyrev via cfe-commits
omtcyf0 marked 3 inline comments as done. omtcyf0 added a comment. Thanks for the review! I'll fix these issues as soon as I manage to get time for that! http://reviews.llvm.org/D17244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

[PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 created this revision. omtcyf0 added reviewers: cfe-commits, alexfh. Because of the recent Google Code shutdown links to the Google Code Style up there are no longer relevant. http://reviews.llvm.org/D17602 Files: clang-tidy/google/AvoidCStyleCastsCheck.h clang-tidy/google/ExplicitC

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added inline comments. Comment at: docs/clang-tidy/checks/readability-named-parameter.rst:13 @@ -13,1 +12,3 @@ +https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_ +Definitions hokein wrote: > This should be in one line? It is in

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 49048. omtcyf0 added a comment. Removed the breakline. http://reviews.llvm.org/D17602 Files: clang-tidy/google/AvoidCStyleCastsCheck.h clang-tidy/google/ExplicitConstructorCheck.h clang-tidy/google/OverloadedUnaryAndCheck.h clang-tidy/google/Unnamed

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added inline comments. Comment at: docs/clang-tidy/checks/readability-named-parameter.rst:13 @@ -13,2 +12,3 @@ +https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions All parameters should be named, with identical names in the declaratio

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added inline comments. Comment at: docs/clang-tidy/checks/readability-named-parameter.rst:13 @@ -13,2 +12,3 @@ +https://google.github.io/styleguide/cppguide.html#Function_Declarations_and_Definitions All parameters should be named, with identical names in the declaratio

Re: [PATCH] D17602: [clang-tidy] update links to Google Code Style in docs

2016-02-25 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. Thank you very much, @hokein! http://reviews.llvm.org/D17602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   6   7   >