================
@@ -70,20 +70,56 @@ void RedundantConstCheck::registerMatchers(MatchFinder 
*Finder) {
       this);
 }
 
+static bool hasProblemSibling(const VarDecl *VD, SourceLocation ConstLoc,
+                              const SourceManager &SM, const LangOptions &LO) {
+  const SourceLocation Semi =
+      utils::lexer::findNextAnyTokenKind(ConstLoc, SM, LO, tok::semi);
+  if (Semi.isInvalid())
+    return false;
+
+  const SourceLocation Comma =
+      utils::lexer::findNextAnyTokenKind(ConstLoc, SM, LO, tok::comma);
+  if (Comma.isInvalid() || !SM.isBeforeInTranslationUnit(Comma, Semi))
+    return false;
+
+  for (Decl *D : VD->getDeclContext()->decls()) {
----------------
berkaysahiin wrote:

@vbvictor bump 

https://github.com/llvm/llvm-project/pull/189733
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to