njames93 added inline comments.

================
Comment at: clang-tools-extra/clangd/CodeComplete.cpp:187-188
+      if (auto Header = headerToInsertIfAllowed(Opts)) {
+        auto HeaderFile = toHeaderFile(*Header, FileName);
+        if (HeaderFile) {
           if (auto Spelled =
----------------
This can stay as 1 line, The condition variable in an if has lifetime 
throughout the then/else branch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93220

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

Reply via email to