kadircet added a reviewer: kadircet.
kadircet added a comment.

thanks for taking a look at this!



================
Comment at: clang-tools-extra/clangd/unittests/XRefsTests.cpp:447
         struct X {
-          X& [[operator]]++() {}
+          X& [[operator]]++() { return *this; }
         };
----------------
nit: I would rather turn this into a declaration.


================
Comment at: clang-tools-extra/clangd/unittests/XRefsTests.cpp:532
 
+    // Disable warnings which some testcases intentionally trigger,
+    // so that we can assert the testcases have no diagnostics and
----------------
could we rather move these cases into a new test case?

in order to prevent accidental reliance on these flags when adding new tests.


================
Comment at: clang-tools-extra/clangd/unittests/XRefsTests.cpp:542
+    for (auto &Diag : AST.getDiagnostics()) {
+      llvm::errs() << Diag << "\n";
+    }
----------------
use `ADD_FAILURE` instead.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72066/new/

https://reviews.llvm.org/D72066



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to