[PATCH] D65549: [Sema] Prevent -Wunused-lambda-capture from generating false positive warnings on templated member function

2019-08-07 Thread Ziang Wan via Phabricator via cfe-commits
ziangwan updated this revision to Diff 214013. ziangwan added a comment. Fix style issue. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D65549/new/ https://reviews.llvm.org/D65549 Files: clang/lib/Sema/SemaExpr.cpp clang/test/SemaCXX/warn-unused-lambda-capture-this.cpp Index:

[PATCH] D65549: [Sema] Prevent -Wunused-lambda-capture from generating false positive warnings on templated member function

2019-08-06 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added a comment. Thanks for the patch @ziangwan ! Comment at: clang/lib/Sema/SemaExpr.cpp:5631 + } +} + LLVM style is not to use `{}` for single statement bodies. Repository: rL LLVM CHANGES SINCE LAST ACTION

[PATCH] D65549: [Sema] Prevent -Wunused-lambda-capture from generating false positive warnings on templated member function

2019-07-31 Thread Ziang Wan via Phabricator via cfe-commits
ziangwan created this revision. ziangwan added reviewers: rsmith, nickdesaulniers, kongyi, pirama, stephenkelly. Herald added a project: clang. Herald added a subscriber: cfe-commits. This is a continuation of https://reviews.llvm.org/D44844 and a potential fix for