[PATCH] D141118: [clang-tidy][NFC] Remove unused User argument in misc-misleading-bidirectional check
Carlos Galvez via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 6 03:03:39 PST 2023
carlosgalvezp created this revision.
Herald added a subscriber: xazax.hun.
Herald added a reviewer: njames93.
Herald added a project: All.
carlosgalvezp requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber: cfe-commits.
It's not used anywhere.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141118
Files:
clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp
Index: clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp
===================================================================
--- clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp
+++ clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp
@@ -90,8 +90,7 @@
class MisleadingBidirectionalCheck::MisleadingBidirectionalHandler
: public CommentHandler {
public:
- MisleadingBidirectionalHandler(MisleadingBidirectionalCheck &Check,
- std::optional<std::string> User)
+ MisleadingBidirectionalHandler(MisleadingBidirectionalCheck &Check)
: Check(Check) {}
bool HandleComment(Preprocessor &PP, SourceRange Range) override {
@@ -114,8 +113,7 @@
MisleadingBidirectionalCheck::MisleadingBidirectionalCheck(
StringRef Name, ClangTidyContext *Context)
: ClangTidyCheck(Name, Context),
- Handler(std::make_unique<MisleadingBidirectionalHandler>(
- *this, Context->getOptions().User)) {}
+ Handler(std::make_unique<MisleadingBidirectionalHandler>(*this)) {}
MisleadingBidirectionalCheck::~MisleadingBidirectionalCheck() = default;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141118.486791.patch
Type: text/x-patch
Size: 1136 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230106/8d88cb73/attachment.bin>
More information about the cfe-commits
mailing list