kadircet added inline comments.

================
Comment at: clang-tools-extra/clangd/Preamble.cpp:721
+      // re-definition warnings.
+      if (TD.Directive == tok::pp_define)
+        Patch << "#undef " << TD.MacroName << '\n';
----------------
i know we've discussed emitting all the `#undef` directives at the top of the 
patch together rather than right before `#define` directives. but i am failing 
to remember any benefits and looping twice here doesn't feel great. so leaving 
it as-is for now, LMK if it feels wrong.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143093

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

Reply via email to