[PATCH] D71666: [clang-tidy] Fix readability-const-return-type identifying the wrong `const` token
Ilya Mirsky via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 18 09:22:40 PST 2019
ilya created this revision.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
Replace tidy::utils::lexer::getConstQualifyingToken with a corrected and also
generalized to other qualifiers variant - getQualifyingToken.
Fixes: http://llvm.org/PR44326
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71666
Files:
clang-tools-extra/clang-tidy/readability/ConstReturnTypeCheck.cpp
clang-tools-extra/clang-tidy/utils/LexerUtils.cpp
clang-tools-extra/clang-tidy/utils/LexerUtils.h
clang-tools-extra/test/clang-tidy/checkers/readability-const-return-type.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71666.234557.patch
Type: text/x-patch
Size: 6687 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191218/d7cd1235/attachment.bin>
More information about the cfe-commits
mailing list