[PATCH] D36670: misc-misplaced-widening-cast: fix assertion

2017-08-29 Thread Daniel Marjamäki via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL311984: [clang-tidy] Fix 'misc-misplaced-widening-cast' assertion error. (authored by danielmarjamaki). Changed prior to commit: https://reviews.llvm.org/D36670?vs=110940=113026#toc Repository: rL

[PATCH] D36670: misc-misplaced-widening-cast: fix assertion

2017-08-17 Thread Alexander Kornienko via Phabricator via cfe-commits
alexfh accepted this revision. alexfh added a comment. LG. Thank you for the fix! Comment at: test/clang-tidy/misc-misplaced-widening-cast-explicit-only.cpp:63 + enum Type {}; + static char *m_fn1() { char p = (Type)( - m_fn1()); } +}; xazax.hun wrote: >

[PATCH] D36670: misc-misplaced-widening-cast: fix assertion

2017-08-15 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun added inline comments. Comment at: test/clang-tidy/misc-misplaced-widening-cast-explicit-only.cpp:63 + enum Type {}; + static char *m_fn1() { char p = (Type)( - m_fn1()); } +}; Isn't this testcase a bit overcomplicated to demonstrate the issue?

[PATCH] D36670: misc-misplaced-widening-cast: fix assertion

2017-08-15 Thread Gábor Horváth via Phabricator via cfe-commits
xazax.hun accepted this revision. xazax.hun added a comment. This revision is now accepted and ready to land. LGTM! Repository: rL LLVM https://reviews.llvm.org/D36670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D36670: misc-misplaced-widening-cast: fix assertion

2017-08-14 Thread Daniel Marjamäki via Phabricator via cfe-commits
danielmarjamaki added a comment. LGTM. I let others approve this. Repository: rL LLVM https://reviews.llvm.org/D36670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D36670: misc-misplaced-widening-cast: fix assertion

2017-08-14 Thread Anders Rönnholm via Phabricator via cfe-commits
AndersRonnholm created this revision. AndersRonnholm added a project: clang-tools-extra. Fixes assert reported in https://bugs.llvm.org/show_bug.cgi?id=33660 Repository: rL LLVM https://reviews.llvm.org/D36670 Files: clang-tidy/misc/MisplacedWideningCastCheck.cpp