[clang-tools-extra] c0d0b12 - [clang-tidy][NFC] Remove unused User argument in misc-misleading-bidirectional check

Carlos Galvez via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 8 07:18:32 PST 2023


Author: Carlos Galvez
Date: 2023-01-08T15:18:13Z
New Revision: c0d0b1237a9f9ee992f6775305113738e9374ca0

URL: https://github.com/llvm/llvm-project/commit/c0d0b1237a9f9ee992f6775305113738e9374ca0
DIFF: https://github.com/llvm/llvm-project/commit/c0d0b1237a9f9ee992f6775305113738e9374ca0.diff

LOG: [clang-tidy][NFC] Remove unused User argument in misc-misleading-bidirectional check

It's not used anywhere.

Differential Revision: https://reviews.llvm.org/D141118

Added: 
    

Modified: 
    clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp b/clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp
index 3706f43d255b..dad6737ab40c 100644
--- a/clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp
+++ b/clang-tools-extra/clang-tidy/misc/MisleadingBidirectional.cpp
@@ -90,8 +90,7 @@ static bool containsMisleadingBidi(StringRef Buffer,
 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 @@ class MisleadingBidirectionalCheck::MisleadingBidirectionalHandler
 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;
 


        


More information about the cfe-commits mailing list