[clang] 2369560 - Fix -Wunused-lambda-capture warnings.
Eric Christopher via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 26 15:29:17 PST 2019
Author: Eric Christopher
Date: 2019-12-26T15:27:21-08:00
New Revision: 2369560f4a7720b19edfbf9de14ef061307ff773
URL: https://github.com/llvm/llvm-project/commit/2369560f4a7720b19edfbf9de14ef061307ff773
DIFF: https://github.com/llvm/llvm-project/commit/2369560f4a7720b19edfbf9de14ef061307ff773.diff
LOG: Fix -Wunused-lambda-capture warnings.
Added:
Modified:
clang-tools-extra/clang-query/QueryParser.cpp
clang/lib/ASTMatchers/Dynamic/Parser.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clang-query/QueryParser.cpp b/clang-tools-extra/clang-query/QueryParser.cpp
index db4b9a4b0530..a980722de9e6 100644
--- a/clang-tools-extra/clang-query/QueryParser.cpp
+++ b/clang-tools-extra/clang-query/QueryParser.cpp
@@ -26,7 +26,7 @@ namespace query {
// is found before End, return StringRef(). Begin is adjusted to exclude the
// lexed region.
StringRef QueryParser::lexWord() {
- Line = Line.drop_while([this](char c) {
+ Line = Line.drop_while([](char c) {
// Don't trim newlines.
return StringRef(" \t\v\f\r").contains(c);
});
diff --git a/clang/lib/ASTMatchers/Dynamic/Parser.cpp b/clang/lib/ASTMatchers/Dynamic/Parser.cpp
index 1781f2a6439f..77c9629f6f85 100644
--- a/clang/lib/ASTMatchers/Dynamic/Parser.cpp
+++ b/clang/lib/ASTMatchers/Dynamic/Parser.cpp
@@ -297,7 +297,7 @@ class Parser::CodeTokenizer {
/// Consume all leading whitespace from \c Code.
void consumeWhitespace() {
- Code = Code.drop_while([this](char c) {
+ Code = Code.drop_while([](char c) {
// Don't trim newlines.
return StringRef(" \t\v\f\r").contains(c);
});
More information about the cfe-commits
mailing list